/* 
 * Pahla Store - Home Page v1 Premium Styles
 * This file handles advanced animations and UI refinements for the Home v1 sections.
 */

:root {
    --premium-font: 'Oswald', sans-serif;
    --body-font: 'Montserrat', sans-serif;
}

/* --- Section Styling --- */
.product-section.section--v1 {
    padding: 100px 0;
    overflow: hidden;
}

/* --- Typography & Category Headers --- */
.category--name {
    font-family: var(--premium-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.category--name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    /* Yellow accent from Pahla theme */
}

/* --- Image Shadows & Effects --- */
.category-image--container {
    padding: 20px;
    perspective: 1000px;
}

.category-image {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.category-image:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
}

/* --- FlexSlider Premium Overhaul --- */
.product-slider--v1 {
    background: transparent;
    border: none;
    box-shadow: none;
    margin-top: 30px;
}

/* Hide FlexSlider default "Next/Prev" text */
.flex-direction-nav a {
    text-indent: -9999px;
    font-size: 0 !important;
    overflow: hidden;
    background: #fff !important;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99;
    /* Ensure it stays above Quick View buttons */
}

.flexslider:hover .flex-direction-nav .flex-prev {
    opacity: 1;
    left: 10px;
}

.flexslider:hover .flex-direction-nav .flex-next {
    opacity: 1;
    right: 10px;
}

/* Custom Arrows using FontAwesome (ensure it's loaded) */
.flex-direction-nav a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    text-indent: 0;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: var(--black);
}

.flex-direction-nav .flex-prev::before {
    content: "\f053" !important;
    /* fa-chevron-left */
}

.flex-direction-nav .flex-next::before {
    content: "\f054" !important;
    /* fa-chevron-right */
}

/* Hide Quick View / Zoom icons that might overlap in this specific slider */
.product-slider--v1 .yith-wcqv-button,
.product-slider--v1 .quick-view,
.product-slider--v1 .wc-block-grid__product-image .wc-block-grid__product-quick-view {
    display: none !important;
}

/* --- Product Cards within Slider --- */
.product-slider--v1 .card {
    border: none;
    border-radius: 8px;
    margin: 0 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-slider--v1 .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-slider--v1 .card-img-top {
    border-radius: 8px 8px 0 0;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.product-slider--v1 .card-title {
    font-family: var(--premium-font);
    font-size: 1.1rem;
    margin-top: 10px;
}

.product-slider--v1 .btn-orange {
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 4px;
}

/* --- Dot Navigation --- */
.flex-control-paging li a {
    box-shadow: none;
}

.flex-control-paging li a.flex-active {
    background: var(--primary) !important;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 767px) {
    .product-section.section--v1 {
        padding: 50px 0;
    }

    .flex-row-reverse {
        flex-direction: column !important;
    }

    .category-image--container {
        margin-bottom: 30px;
    }
}

/* --- Showcase Products Section (Phase 16) --- */
.showcase-products-section {
    background: #0f172a;
    padding: 60px 0;
    /* More compact padding */
}

.showcase-products-section .container-fluid {
    max-width: 1400px !important;
    margin: 0 auto;
    border-radius: 24px;
    /* Premium rounded look */
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spotlight-header-col {
    background: radial-gradient(circle at top left, rgba(229, 86, 4, 0.1), transparent);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem !important;
    /* Compact padding */
}

.spotlight-badge {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 20px;
}

.spotlight-title {
    font-family: var(--premium-font);
    font-size: 3rem;
    /* Slightly smaller for compactness */
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.spotlight-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Showcase Grid & Glassmorphism */
.showcase-glass-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    /* Tighter gap */
}

.showcase-glass-card {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    /* Refined radius */
    padding: 20px;
    text-decoration: none !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.showcase-glass-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.showcase-image-wrapper {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.showcase-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.showcase-glass-card:hover .showcase-image-wrapper img {
    transform: scale(1.1);
}

.showcase-product-title {
    color: #fff;
    font-family: var(--premium-font);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.showcase-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 20px;
}

.btn-spotlight {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.showcase-glass-card:hover .btn-spotlight {
    background: var(--primary);
    border-color: var(--primary);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.showcase-card-wrapper:nth-child(even) .showcase-glass-card {
    animation: float 6s ease-in-out infinite;
}

.showcase-card-wrapper:nth-child(odd) .showcase-glass-card {
    animation: float 6s ease-in-out infinite 1s;
}

/* Mobile adjustments for Showcase */
@media (max-width: 991px) {
    .showcase-glass-grid {
        grid-template-columns: 1fr;
    }

    .spotlight-title {
        font-size: 3rem;
    }
}

/* --- Newsletter / Subscriber Section (Phase 17) --- */
.newsletter-section {
    padding: 80px 0;
    position: relative;
    background-size: cover;
    background-position: center;
}

.newsletter-title {
    font-family: var(--premium-font);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 700;
}

.newsletter-subtitle {
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 40px !important;
    opacity: 0.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form-container {
    max-width: 550px;
    /* Compact width for premium look */
    margin: 0 auto;
    position: relative;
}

/* Custom Premium Newsletter Form */
#premium-newsletter-form {
    position: relative;
    display: block;
}

#premium-newsletter-form input[type="email"] {
    width: 100%;
    height: 60px;
    border-radius: 4px;
    /* Rectangular shape */
    border: 1px solid #e1e1e1;
    /* Subtle gray border */
    padding: 0 170px 0 20px;
    background: #fff;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    outline: none;
}

#premium-newsletter-form input[type="email"]:focus {
    border-color: #000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

#premium-newsletter-form input[type="email"]::placeholder {
    color: #999;
    opacity: 1;
    font-weight: 400;
    letter-spacing: 0.5px;
}

#premium-newsletter-form .btn-newsletter-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 160px;
    border-radius: 3px;
    /* Rectangular button */
    background: #000;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 10;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#premium-newsletter-form .btn-newsletter-submit .btn-icon {
    display: none;
}

#premium-newsletter-form .btn-newsletter-submit:hover {
    background: #333;
    transform: none;
}

/* Success/Error Message */
#newsletter-message {
    font-family: var(--body-font);
    font-weight: 500;
}

.text-success {
    color: #27ae60;
}

.text-danger {
    color: #e74c3c;
}

/* Unified Mobile Styling (< 575px) - Icon Only for Perfect Alignment */
@media (max-width: 575px) {
    .newsletter-section {
        padding: 40px 0;
    }

    .newsletter-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .newsletter-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px !important;
        opacity: 0.7;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .newsletter-form-container {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    #premium-newsletter-form input[type="email"] {
        padding: 0 60px 0 15px !important;
        /* Optimized for icon button */
        height: 50px;
    }

    /* Icon-Only Button for ALL Mobile */
    #premium-newsletter-form .btn-newsletter-submit {
        width: 44px !important;
        padding: 0 !important;
        right: 4px !important;
        top: 4px !important;
        bottom: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #premium-newsletter-form .btn-newsletter-submit .btn-text {
        display: none !important;
    }

    #premium-newsletter-form .btn-newsletter-submit .btn-icon {
        display: block !important;
        font-size: 16px;
    }
}

/* --- Dynamic Product Section (Phase 18) --- */
.dynamic-products-section .dp-title {
    font-family: var(--premium-font);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dynamic-products-section .dp-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* List Style */
.dp-style-list .dp-list-container {
    margin: 0 auto;
}

.dp-list-item {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dp-list-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.dp-list-thumb {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.dp-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.dp-list-info .product-title {
    font-family: var(--premium-font);
    font-size: 1.35rem;
    color: #000;
}

.dp-list-info .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.dp-list-info .btn-link {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    display: inline-block;
}

/* Carousel Style */
.dp-style-carousel .product-card--premium {
    margin: 10px;
}

.dp-carousel-slider.flexslider {
    border: none;
    background: transparent;
    box-shadow: none;
}

/* --- Advanced Layout Builder (Phase 19 Refined) --- */
.advanced-layout-section {
    position: relative;
    background-color: #fcfcfc;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.alb-compact {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.alb-compact .section-header {
    margin-bottom: 25px !important;
}

.alb-compact .g-4,
.alb-compact .row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Loading Skeleton / Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.alb-skeleton {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    display: inline-block;
    position: relative;
    animation: shimmer 1.2s infinite linear forwards;
    border-radius: 4px;
}

.alb-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.customize-partial-refreshing .alb-loading-overlay {
    opacity: 1;
}

.alb-skeleton-card {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
}

.alb-skeleton-text {
    width: 100%;
    height: 20px;
    margin-bottom: 10px;
}

.alb-column-content {
    height: 100%;
    transition: transform 0.4s ease;
}

.alb-column-wrapper {
    display: flex;
    flex-direction: column;
}

/* List Small Thumb */
.dp-list-thumb.small-thumb {
    width: 80px;
    height: 80px;
}

/* Hover Zoom effect */
.hover-zoom {
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.alb-static-image:hover .hover-zoom {
    transform: scale(1.08);
}

/* Widget Styling inside ALB */
.alb-widget-area .widget {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 12px;
}

.alb-widget-area .widget-title {
    font-family: var(--premium-font);
    text-transform: uppercase;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

/* Responsiveness for columns */
@media (max-width: 767px) {
    .alb-column-wrapper {
        margin-bottom: 30px;
    }
}

/* --- Compact Slider Mode (Phase 20) --- */
.almas-slider-container.is-compact {
    height: 450px !important;
    min-height: 450px !important;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 0 auto 20px auto;
    /* Removed top margin */
    border-radius: 12px !important;
    /* Fixed 12px radius as requested */
    overflow: hidden;
}

.is-compact .almas-slide {
    height: 450px !important;
    border-radius: 12px !important;
}

.is-compact .slide-background {
    border-radius: 12px !important;
}

/* Hide Title and Button as requested */
.is-compact .slide-title,
.is-compact .slide-actions {
    display: none !important;
}

.is-compact .slide-excerpt {
    font-size: 1.4rem !important;
    font-weight: 500;
    margin-bottom: 0;
    max-width: 800px;
    text-align: center;
    line-height: 1.4;
    color: #fff;
}

.is-compact .content-inner {
    padding: 0;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.is-compact .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.is-compact .slider-controls {
    bottom: 20px;
}

@media (max-width: 768px) {
    .almas-slider-container.is-compact {
        height: 350px !important;
        min-height: 350px !important;
        border-radius: 12px !important;
    }

    .is-compact .almas-slide {
        height: 350px !important;
    }

    .is-compact .slide-excerpt {
        font-size: 1.1rem !important;
        padding: 0 20px;
    }
}

/* --- Sleek Header Redesign (Phase 21) --- */
.transparent-header {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 0 !important;
    /* Slimmer header */
    z-index: 1000;
}

/* Logo Refinement */
.header-logo img {
    max-height: 60px !important;
    transition: all 0.3s ease;
}

/* Nav Typography & Global Caret Fix */
.header-nav .nav-link,
.header-nav .dropdown-item {
    font-family: var(--body-font);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent !important;
}

.header-nav .nav-link {
    padding: 10px 20px !important;
}

/* Fix Global Carets */
.header-nav .dropdown-toggle::after {
    display: none !important;
}

.header-nav .dropdown>a::before,
.header-nav .dropdown-toggle::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    content: "\f107";
    /* Angle Down */
    margin-left: 8px;
    font-size: 10px;
    order: 2;
    /* Ensure it stays at the end */
}

/* Nested sub-menu caret adjustment (Right Arrow) */
.header-nav .dropdown-menu .dropdown>a::before,
.header-nav .dropdown-menu .dropdown-toggle::before {
    content: "\f105";
    /* Angle Right */
    margin-left: auto;
}

/* Sub-menu container styling */
.header-nav .dropdown-menu {
    border-radius: 12px !important;
    padding: 10px 0 !important;
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    min-width: 220px;
    margin-top: 2px !important;
    /* Pixel perfect proximity */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    visibility: hidden;
    opacity: 0;
    display: block !important;
    transform: translateY(5px);
    pointer-events: none;
    z-index: 1000;
}

/* Ensure sub-menus don't get clipped by parent */
.header-nav .dropdown {
    position: relative;
}

/* Show menu on hover */
.header-nav .dropdown:hover>.dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Deep Nested Menu (3rd level+) Adjustment */
.header-nav .dropdown-menu .dropdown-menu {
    top: -5px !important;
    /* Aligning closer to parent link */
    left: 100% !important;
    margin-top: 0 !important;
    margin-left: -15px !important;
    /* Tight overlap to ensure bridge */
    transform: translateX(5px);
    z-index: 1100;
}

.header-nav .dropdown-menu .dropdown:hover>.dropdown-menu {
    transform: translateX(0);
}

/* Invisible bridge to maintain hover state while moving mouse to menu */
.header-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

/* Side bridge for nested menus */
.header-nav .dropdown-menu .dropdown-menu::before {
    top: 0;
    left: -15px;
    width: 15px;
    height: 100%;
}

/* Desktop Hover Underline - Top Level Only */
.header-nav-desktop-v1 .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.header-nav-desktop-v1 .nav-link:hover::after,
.header-nav .current-menu-item>.nav-link::after {
    width: 20px;
}

.header-nav .nav-link:hover {
    opacity: 0.8;
}

/* Search Toggle Refinement */
.search-toggle {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-toggle:hover {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
    transform: scale(1.1);
}

/* Sticky Header State */
.is-sticky .transparent-header {
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 10px 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.is-sticky .header-logo img {
    max-height: 50px !important;
}

@media (max-width: 991px) {
    .transparent-header {
        padding: 10px 0 !important;
    }

    .navbar-toggler {
        border: none !important;
        padding: 0;
        transition: all 0.4s ease;
        outline: none !important;
    }

    .navbar-toggler-icon {
        filter: invert(1);
    }
}

/* --- Search Overlay Sleek Refinement --- */
.full-screen-search {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.search-container {
    max-width: 800px;
    width: 90%;
}

.search-input {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    font-size: 3rem !important;
    font-family: var(--premium-font) !important;
    text-align: center;
    padding: 20px 0 !important;
    transition: all 0.4s ease;
    outline: none !important;
}

.search-input:focus {
    border-bottom-color: var(--primary) !important;
}

.search-submit {
    background: transparent !important;
    color: var(--primary) !important;
    font-size: 2rem !important;
    margin-top: 20px;
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.search-submit:hover {
    transform: scale(1.2);
}

.search-close {
    font-size: 40px !important;
    opacity: 0.5;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

.search-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Header Alignment Tweaks */
.header-inner-flex {
    min-height: 80px;
    display: flex !important;
    align-items: center !important;
    /* Perfect vertical centering */
}

/* Match Header width with Slider max-width (1400px) */
.transparent-header .container {
    max-width: 1400px !important;
}

.header-logo {
    min-width: 150px;
    display: flex;
    align-items: center;
}

.header-logo a,
.header-logo img {
    display: block;
    margin: 0 !important;
    vertical-align: middle;
}

.header-nav-desktop-v1 {
    margin-left: 0 !important;
    /* Reset legacy margin */
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-search-wrap {
    min-width: 150px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Ensure Nav Toggler is also centered on mobile */
@media (max-width: 991px) {
    .transparent-header {
        padding: 10px 0 !important;
    }

    .navbar-toggler {
        border: none !important;
        padding: 0;
        display: flex;
        align-items: center;
        transition: all 0.4s ease;
        outline: none !important;
    }

    .navbar-toggler-icon {
        filter: invert(1);
    }

    .header-inner-flex {
        min-height: 60px;
    }
}

/* =================================================================
   SHOP PAGE PRODUCT CARDS - CLEAN DESIGN
   ================================================================= */

/* Shop Page Grid Alignment */
.woocommerce ul.products {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start !important;
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

/* Product Card Container */
.woocommerce ul.products li.product .product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Product Image */
.woocommerce ul.products li.product .product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 aspect ratio */
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce ul.products li.product .product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
}

/* Image stays centered on hover, no zoom effect needed since card has lift effect */

/* Sale Badge */
.woocommerce ul.products li.product .sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc3545;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

/* Product Info */
.woocommerce ul.products li.product .product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .product-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

/* Price */
.woocommerce ul.products li.product .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary, #f39c12);
    margin: 0 0 15px 0;
}

.woocommerce ul.products li.product .price del {
    opacity: 0.5;
    font-size: 16px;
    margin-right: 8px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

/* Product Meta Badges */
.woocommerce ul.products li.product .product-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.woocommerce ul.products li.product .meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.woocommerce ul.products li.product .meta-badge.moq-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.woocommerce ul.products li.product .meta-badge.sample-badge {
    background: #e8f5e9;
    color: #388e3c;
}

.woocommerce ul.products li.product .meta-badge.lead-time-badge {
    background: #fff3e0;
    color: #f57c00;
}

/* View Details Button */
.woocommerce ul.products li.product .product-view-details {
    margin-top: auto;
}

.woocommerce ul.products li.product .btn-view-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.woocommerce ul.products li.product .btn-view-details:hover {
    background: #1a252f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
    .woocommerce ul.products li.product {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .woocommerce ul.products {
        gap: 15px;
    }

    .woocommerce ul.products li.product {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .woocommerce ul.products li.product .product-info {
        padding: 15px;
    }
}

/* Override any theme default margins/paddings */
.woocommerce .products ul,
.woocommerce-page .products ul {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove pseudo-elements that interfere with flex/grid layout */
body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after,
body.post-type-archive-product ul.products::before,
body.post-type-archive-product ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

/* Force flex layout with higher specificity */
/* Force flex layout with higher specificity */
body.woocommerce-shop ul.products,
body.post-type-archive-product ul.products,
body.woocommerce-cart ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.woocommerce-shop ul.products li.product,
body.post-type-archive-product ul.products li.product,
body.woocommerce-cart ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 calc(33.333% - 14px) !important;
    max-width: calc(33.333% - 14px) !important;
}

/* ============================================
   PRODUCT CARD - Social Icons & Badges
   ============================================ */

/* Social Icons (WhatsApp & Share) */
.product-card .social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.product-card .social-icon-btn:hover {
    background: #f8f8f8;
    border-color: #ccc;
    color: #333;
    transform: translateY(-2px);
}

.product-card .social-icon-btn .fa-whatsapp {
    color: #25D366;
}

.product-card .social-icon-btn:hover .fa-whatsapp {
    color: #128C7E;
}

/* Custom Badges */
.product-card .badge-custom {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.product-card .badge-custom strong {
    font-weight: 600;
    color: #333;
}

.product-card .moq-badge {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.product-card .sample-badge {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.product-card .sample-badge i {
    font-size: 10px;
}

.product-card .time-badge {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

/* START INQUIRY Button */
.btn-inquiry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #000;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-inquiry:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-inquiry i {
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-card .social-icon-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .product-card .badge-custom {
        font-size: 10px;
        padding: 3px 8px;
    }

    .btn-inquiry {
        font-size: 12px;
        padding: 10px 16px;
    }
}

/* ============================================
   NEWSLETTER FORM VISIBILITY FIX
   ============================================ */
.newsletter-form-container form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.newsletter-form-container .wpcf7-form-control-wrap {
    display: block;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.newsletter-form-container input[type="email"],
.newsletter-form-container input[type="text"] {
    display: block !important;
    width: 100% !important;
    height: 50px !important;
    padding: 10px 20px !important;
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
}

.newsletter-form-container input[type="submit"] {
    display: inline-block !important;
    height: 50px !important;
    padding: 0 30px !important;
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.newsletter-form-container input[type="submit"]:hover {
    background-color: #333 !important;
    transform: translateY(-2px);
}

.newsletter-form-container p {
    margin: 0;
    padding: 0;


}

/* FORCE 1 COLUMN ON MOBILE FOR SHOP PAGE (PREMIUM OVERRIDE) */
@media screen and (max-width: 768px) {

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .woocommerce ul.products[class*="columns-"] li.product,
    .woocommerce-page ul.products[class*="columns-"] li.product,
    .showcase-products-new .col-6 {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
        clear: both !important;
        margin-left: 0 !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Force Black Inquiry Button on Mobile & Fix Font Sizes */
    .btn.btn-inquiry {
        background-color: #000 !important;
        color: #fff !important;
        border-color: #000 !important;
        font-size: 13px !important;
        padding: 10px !important;
    }

    /* Reduce Heading Sizes on Mobile */
    h1.title--heading,
    .title--heading {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }

    .display-5,
    .display-6 {
        font-size: 24px !important;
    }
}

/* --- Quick View Modal Fixes (Mobile Scroll) --- */
#pahla-quick-view-modal.pahla-modal {
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 10000 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ensure centering on desktop */
#pahla-quick-view-modal[style*="display: flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#pahla-quick-view-modal .pahla-modal-content {
    background: #fff;
    border-radius: 8px;
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    /* Prevent overflow on desktop */
    overflow-y: auto;
    /* Scroll internally on desktop if needed */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin: auto;
}

/* Close button positioning */
.pahla-close.qv-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    color: #333;
    transition: color 0.3s;
}

.pahla-close.qv-close:hover {
    color: var(--primary);
}

/* MOBILE SCROLL FIX */
@media (max-width: 768px) {
    #pahla-quick-view-modal.pahla-modal[style*="display: flex"] {
        align-items: flex-start !important;
        /* Top align for scrolling */
        overflow-y: auto !important;
        /* Allow modal wrapper to scroll */
        padding: 40px 10px !important;
        /* Top padding to ensure close button space */
    }

    #pahla-quick-view-modal .pahla-modal-content {
        margin: 20px auto !important;
        width: 100% !important;
        max-height: none !important;
        /* Let content grow */
        height: auto !important;
        overflow: visible !important;
        /* No internal scroll, use wrapper scroll */
    }

    #qv-result {
        overflow: visible !important;
    }
}