/* 
 * 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) --- */
/* REMOVED from this block: `height: 450px !important`, `min-height: 450px
   !important` and `border-radius: 12px !important`.

   The height pair silently beat the Sizing control -- an external !important
   outranks the inline style the template writes -- so a slider set to 400px
   rendered at 450px and the setting looked broken. The radius is now a
   per-device Customizer setting (default 0), read from --slider-radius in
   assets/slider.css, rather than a fixed 12px. */
.almas-slider-container.is-compact {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 0 auto 20px auto;
    overflow: hidden;
}

/* 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) {
    /* Same removal as above: the mobile slider height belongs to the Mobile tab
       of the Sizing control, not to a leftover compact-mode rule. */
    .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
   REMOVED: this forced `display: flex !important` on every product list and
   pinned each card to a hardcoded 33.333%. The !important beat the grid in
   woocommerce.css even though that file loads later, so the --shop-cols setting
   did nothing and the archive was locked to three columns whatever the space.
   Layout for product lists now lives in woocommerce.css and nowhere else --
   the card styling below is what this file is for. */

/* 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
   The per-breakpoint 50% / 100% widths went with the flex layout above; the
   grid works out its own column count from the space it has. */
@media (max-width: 767px) {
    .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;
}

/* REMOVED: a second, body-class-scoped copy of the same forced flex layout.
   It named body.woocommerce-shop and body.post-type-archive-product but NOT
   tax-product_cat, so the Shop page and a category archive were laid out by
   two different sets of rules -- which is exactly why one showed three columns
   and the other did not. Both now use the grid in woocommerce.css. */

/* ============================================
   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) {

    /* Product cards dropped out of this list: forcing width/max-width to 100%
       on a grid item collapsed the archive to one column at 768px, overriding
       the grid's own count. The showcase columns are not grid items and still
       need it. */
    .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: styles moved to assets/rfq.css (Quick View sheet). */

/* ============================================
   HOME V2 - PREMIUM B2B PRODUCT CARDS
   Scoped to Home v2 only
   ============================================ */
.page-template-template-homev2-php .product-card {
    border: 1px solid #e8ecf1;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-template-template-homev2-php .product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(229, 86, 4, 0.28);
    box-shadow: 0 18px 34px rgba(16, 24, 40, 0.12);
}

.page-template-template-homev2-php .product-image-wrapper {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) !important;
    border-bottom: 1px solid #eef2f6;
}

.page-template-template-homev2-php .product-card-image {
    transition: transform 0.35s ease;
    border-radius: 10px;
}

.page-template-template-homev2-php .product-card:hover .product-card-image {
    transform: scale(1.04);
}

.page-template-template-homev2-php .product-info {
    padding: 16px 16px 18px;
}

.page-template-template-homev2-php .product-title {
    margin-bottom: 10px !important;
}

.page-template-template-homev2-php .product-title a {
    color: #0f172a !important;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.page-template-template-homev2-php .product-price {
    margin-bottom: 12px !important;
    min-height: 52px !important;
}

.page-template-template-homev2-php .product-price .price {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    margin: 0 !important;
}

.page-template-template-homev2-php .product-price del {
    color: #94a3b8 !important;
    font-size: 0.95rem;
    text-decoration-thickness: 2px;
}

.page-template-template-homev2-php .product-price ins {
    text-decoration: none !important;
}

.page-template-template-homev2-php .product-price ins .woocommerce-Price-amount {
    color: #0f172a !important;
    font-size: 1.38rem;
    font-weight: 800;
    line-height: 1;
}

.page-template-template-homev2-php .product-card .d-flex.gap-2.mb-3 {
    margin-bottom: 12px !important;
}

.page-template-template-homev2-php .product-card .d-flex.gap-2.mb-3 .btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    border-color: #d7dee7 !important;
    color: #334155 !important;
}

.page-template-template-homev2-php .product-card .d-flex.gap-2.mb-3 .btn:hover {
    border-color: var(--primary, #0F766E) !important;
    background-color: var(--primary, #0F766E) !important;
    color: #fff !important;
}

.page-template-template-homev2-php .product-card .b2b-badges {
    gap: 8px !important;
    margin-bottom: 14px !important;
}

.page-template-template-homev2-php .product-card .badge-custom {
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 6px 10px !important;
}

.page-template-template-homev2-php .product-card .btn-inquiry {
    border-radius: 12px !important;
    padding: 12px 14px !important;
    font-size: 12px !important;
    letter-spacing: 0.7px;
    font-weight: 700;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
}

.page-template-template-homev2-php .product-card .btn-inquiry:hover {
    background: linear-gradient(135deg, var(--primary, #0F766E) 0%, #0B4F49 100%) !important;
    box-shadow: 0 10px 20px rgba(229, 86, 4, 0.25) !important;
}

.page-template-template-homev2-php .product-widgets-section-v2 .product-tabs-v2 .nav-link {
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #334155 !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
}

.page-template-template-homev2-php .product-widgets-section-v2 .product-tabs-v2 .nav-link.active {
    border-color: var(--primary, #0F766E);
    background: var(--primary, #0F766E) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(229, 86, 4, 0.24);
}

/* ============================================
   SHOP PAGE - PREMIUM UI SKIN (B2B)
   ============================================ */
body.woocommerce-shop,
body.post-type-archive-product {
    background:
        radial-gradient(circle at 8% 8%, rgba(229, 86, 4, 0.04) 0, rgba(229, 86, 4, 0) 45%),
        radial-gradient(circle at 92% 2%, rgba(38, 87, 124, 0.05) 0, rgba(38, 87, 124, 0) 42%),
        #f6f8fb;
}

body.woocommerce-shop .site--container,
body.post-type-archive-product .site--container {
    padding-top: 26px;
}

body.woocommerce-shop .woocommerce-breadcrumb,
body.post-type-archive-product .woocommerce-breadcrumb {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

body.woocommerce-shop .woocommerce-products-header__title.page-title,
body.post-type-archive-product .woocommerce-products-header__title.page-title {
    font-size: clamp(32px, 3.4vw, 46px);
    line-height: 1.05;
    margin-bottom: 18px;
    color: #0f172a;
    letter-spacing: -0.5px;
    font-weight: 800;
}

body.woocommerce-shop .woocommerce-result-count,
body.post-type-archive-product .woocommerce-result-count {
    margin: 6px 0 18px !important;
    color: #475569;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 10px;
    display: inline-block;
}

body.woocommerce-shop .woocommerce-ordering,
body.post-type-archive-product .woocommerce-ordering {
    margin-bottom: 20px !important;
}

body.woocommerce-shop .woocommerce-ordering select,
body.post-type-archive-product .woocommerce-ordering select {
    border: 1px solid #d5dee8;
    border-radius: 10px;
    min-height: 42px;
    padding: 8px 38px 8px 12px;
    background: #fff;
    color: #334155;
    font-weight: 600;
}

body.woocommerce-shop #secondary,
body.post-type-archive-product #secondary {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    padding: 20px 18px;
}

body.woocommerce-shop .shop-content .sidebar-shop,
body.post-type-archive-product .shop-content .sidebar-shop {
    padding-top: 18px;
}

body.woocommerce-shop #secondary .widget,
body.post-type-archive-product #secondary .widget {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f7;
}

body.woocommerce-shop #secondary .widget:last-child,
body.post-type-archive-product #secondary .widget:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

body.woocommerce-shop #secondary .widget-title,
body.post-type-archive-product #secondary .widget-title {
    font-size: 16px;
    letter-spacing: 0.2px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

body.woocommerce-shop #secondary ul li,
body.post-type-archive-product #secondary ul li {
    margin-bottom: 7px;
}

body.woocommerce-shop #secondary ul li a,
body.post-type-archive-product #secondary ul li a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.woocommerce-shop #secondary ul li a:hover,
body.post-type-archive-product #secondary ul li a:hover {
    color: var(--primary, #0F766E);
}

/* Sidebar search widget polish */
body.woocommerce-shop #secondary .widget_product_search,
body.post-type-archive-product #secondary .widget_product_search {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e4ebf4;
    border-radius: 12px;
    padding: 14px;
}

body.woocommerce-shop #secondary .widget_product_search .woocommerce-product-search,
body.post-type-archive-product #secondary .widget_product_search .woocommerce-product-search {
    display: flex;
    gap: 8px;
    align-items: center;
}

body.woocommerce-shop #secondary .widget_product_search input[type="search"],
body.post-type-archive-product #secondary .widget_product_search input[type="search"] {
    flex: 1;
    height: 40px;
    border: 1px solid #d6deea;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    color: #334155;
    background: #fff;
}

body.woocommerce-shop #secondary .widget_product_search button[type="submit"],
body.post-type-archive-product #secondary .widget_product_search button[type="submit"] {
    height: 40px;
    border: none;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary, #0F766E) 0%, #0B4F49 100%);
    color: #fff;
}

/* Price filter polish */
body.woocommerce-shop #secondary .widget_price_filter .price_slider_wrapper,
body.post-type-archive-product #secondary .widget_price_filter .price_slider_wrapper {
    background: #f8fbff;
    border: 1px solid #e6edf6;
    border-radius: 12px;
    padding: 12px;
}

body.woocommerce-shop #secondary .widget_price_filter .ui-slider,
body.post-type-archive-product #secondary .widget_price_filter .ui-slider {
    height: 6px;
}

body.woocommerce-shop #secondary .widget_price_filter .ui-slider .ui-slider-handle,
body.post-type-archive-product #secondary .widget_price_filter .ui-slider .ui-slider-handle {
    width: 14px;
    height: 14px;
    top: -4px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary, #0F766E);
}

/* Taxonomy widgets polish */
body.woocommerce-shop #secondary .widget_layered_nav ul li,
body.woocommerce-shop #secondary .widget_product_categories ul li,
body.post-type-archive-product #secondary .widget_layered_nav ul li,
body.post-type-archive-product #secondary .widget_product_categories ul li {
    padding: 6px 0;
    border-bottom: 1px dashed #edf2f7;
}

body.woocommerce-shop #secondary .widget_layered_nav ul li:last-child,
body.woocommerce-shop #secondary .widget_product_categories ul li:last-child,
body.post-type-archive-product #secondary .widget_layered_nav ul li:last-child,
body.post-type-archive-product #secondary .widget_product_categories ul li:last-child {
    border-bottom: none;
}

body.woocommerce-shop #secondary .widget_layered_nav ul li a::before,
body.woocommerce-shop #secondary .widget_product_categories ul li a::before,
body.post-type-archive-product #secondary .widget_layered_nav ul li a::before,
body.post-type-archive-product #secondary .widget_product_categories ul li a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d6dee9;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

body.woocommerce-shop #secondary .widget_layered_nav ul li a:hover::before,
body.woocommerce-shop #secondary .widget_product_categories ul li a:hover::before,
body.post-type-archive-product #secondary .widget_layered_nav ul li a:hover::before,
body.post-type-archive-product #secondary .widget_product_categories ul li a:hover::before {
    background: var(--primary, #0F766E);
}

body.woocommerce-shop ul.products li.product .product-card,
body.post-type-archive-product ul.products li.product .product-card {
    border: 1px solid #e7ecf2;
    border-radius: 16px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(2px);
}

body.woocommerce-shop ul.products li.product .product-card:hover,
body.post-type-archive-product ul.products li.product .product-card:hover {
    transform: translateY(-7px);
    border-color: rgba(229, 86, 4, 0.32);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

body.woocommerce-shop ul.products li.product .product-image-wrapper,
body.post-type-archive-product ul.products li.product .product-image-wrapper {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border-bottom: 1px solid #eef2f6;
}

body.woocommerce-shop ul.products li.product .product-card-image,
body.post-type-archive-product ul.products li.product .product-card-image {
    transition: transform 0.35s ease;
    border-radius: 10px;
}

body.woocommerce-shop ul.products li.product .product-card:hover .product-card-image,
body.post-type-archive-product ul.products li.product .product-card:hover .product-card-image {
    transform: scale(1.045);
}

body.woocommerce-shop ul.products li.product .product-info,
body.post-type-archive-product ul.products li.product .product-info {
    padding: 16px 16px 18px;
}

body.woocommerce-shop ul.products li.product .product-title a,
body.post-type-archive-product ul.products li.product .product-title a {
    color: #0f172a !important;
    font-weight: 700;
}

body.woocommerce-shop ul.products li.product .product-price .price,
body.post-type-archive-product ul.products li.product .product-price .price {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    justify-content: center;
}

body.woocommerce-shop ul.products li.product .product-price del,
body.post-type-archive-product ul.products li.product .product-price del {
    color: #94a3b8 !important;
    font-size: 0.95rem;
    opacity: 1;
}

body.woocommerce-shop ul.products li.product .product-price ins .woocommerce-Price-amount,
body.post-type-archive-product ul.products li.product .product-price ins .woocommerce-Price-amount {
    font-size: 1.42rem;
    color: #0f172a !important;
    font-weight: 800;
}

body.woocommerce-shop ul.products li.product .btn-inquiry,
body.post-type-archive-product ul.products li.product .btn-inquiry {
    border-radius: 12px !important;
    font-size: 12px !important;
    letter-spacing: 0.7px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
}

body.woocommerce-shop ul.products li.product .btn-inquiry:hover,
body.post-type-archive-product ul.products li.product .btn-inquiry:hover {
    background: linear-gradient(135deg, var(--primary, #0F766E) 0%, #0B4F49 100%) !important;
    box-shadow: 0 10px 20px rgba(229, 86, 4, 0.24) !important;
}

@media (max-width: 991px) {
    body.woocommerce-shop .shop-content .sidebar-shop,
    body.post-type-archive-product .shop-content .sidebar-shop {
        padding-top: 0;
    }

    body.woocommerce-shop #secondary,
    body.post-type-archive-product #secondary {
        margin-bottom: 18px;
        padding: 16px 14px;
        border-radius: 14px;
    }
}

@media (max-width: 767px) {
    body.woocommerce-shop ul.products,
    body.post-type-archive-product ul.products {
        gap: 12px !important;
    }

    body.woocommerce-shop ul.products li.product,
    body.post-type-archive-product ul.products li.product {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    body.woocommerce-shop ul.products li.product .product-info,
    body.post-type-archive-product ul.products li.product .product-info {
        padding: 12px 12px 14px !important;
    }

    body.woocommerce-shop ul.products li.product .product-price ins .woocommerce-Price-amount,
    body.post-type-archive-product ul.products li.product .product-price ins .woocommerce-Price-amount {
        font-size: 1.2rem;
    }
}

/* Shop Stats Strip (Static B2B trust points) */
body.woocommerce-shop .pahla-shop-stats-strip,
body.post-type-archive-product .pahla-shop-stats-strip {
    clear: both;
    width: 100%;
    margin: 14px 0 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

body.woocommerce-shop .pahla-shop-stat,
body.post-type-archive-product .pahla-shop-stat {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e2eaf3;
    border-radius: 14px;
    padding: 14px 12px 12px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

body.woocommerce-shop .pahla-shop-stat::before,
body.post-type-archive-product .pahla-shop-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary, #0F766E), #2FD4C4);
    opacity: 0.95;
}

body.woocommerce-shop .pahla-shop-stat__value,
body.post-type-archive-product .pahla-shop-stat__value {
    display: block;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #0f172a;
}

body.woocommerce-shop .pahla-shop-stat__label,
body.post-type-archive-product .pahla-shop-stat__label {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    font-weight: 700;
    color: #5a6f8f;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

/* Premium Pagination */
body.woocommerce-shop nav.woocommerce-pagination,
body.post-type-archive-product nav.woocommerce-pagination {
    margin-top: 26px;
}

body.woocommerce-shop nav.woocommerce-pagination ul,
body.post-type-archive-product nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 8px;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

body.woocommerce-shop nav.woocommerce-pagination ul li,
body.post-type-archive-product nav.woocommerce-pagination ul li {
    border: none !important;
    margin: 0 !important;
    overflow: visible !important;
}

body.woocommerce-shop nav.woocommerce-pagination ul li a,
body.woocommerce-shop nav.woocommerce-pagination ul li span,
body.post-type-archive-product nav.woocommerce-pagination ul li a,
body.post-type-archive-product nav.woocommerce-pagination ul li span {
    min-width: 42px;
    height: 42px;
    padding: 0 12px !important;
    border-radius: 12px;
    border: 1px solid #d9e2ec;
    background: #fff;
    color: #334155 !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease;
}

body.woocommerce-shop nav.woocommerce-pagination ul li a:hover,
body.post-type-archive-product nav.woocommerce-pagination ul li a:hover {
    border-color: var(--primary, #0F766E);
    color: var(--primary, #0F766E) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(229, 86, 4, 0.15);
}

body.woocommerce-shop nav.woocommerce-pagination ul li span.current,
body.post-type-archive-product nav.woocommerce-pagination ul li span.current {
    border-color: var(--primary, #0F766E);
    background: linear-gradient(135deg, var(--primary, #0F766E) 0%, #0B4F49 100%);
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(229, 86, 4, 0.24);
}

@media (max-width: 991px) {
    body.woocommerce-shop .pahla-shop-stats-strip,
    body.post-type-archive-product .pahla-shop-stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 12px;
    }
}

@media (max-width: 575px) {
    body.woocommerce-shop .pahla-shop-stats-strip,
    body.post-type-archive-product .pahla-shop-stats-strip {
        gap: 8px;
        margin: 10px 0 18px;
    }

    body.woocommerce-shop .pahla-shop-stat,
    body.post-type-archive-product .pahla-shop-stat {
        padding: 12px 8px 10px;
    }

    body.woocommerce-shop .pahla-shop-stat__value,
    body.post-type-archive-product .pahla-shop-stat__value {
        font-size: 22px;
    }

    body.woocommerce-shop .pahla-shop-stat__label,
    body.post-type-archive-product .pahla-shop-stat__label {
        font-size: 10px;
    }

    body.woocommerce-shop nav.woocommerce-pagination ul li a,
    body.woocommerce-shop nav.woocommerce-pagination ul li span,
    body.post-type-archive-product nav.woocommerce-pagination ul li a,
    body.post-type-archive-product nav.woocommerce-pagination ul li span {
        min-width: 38px;
        height: 38px;
        border-radius: 10px;
    }
}

/* ============================================
   SINGLE PRODUCT - RELATED PRODUCTS PREMIUM
   ============================================ */
body.single-product .related.products {
    margin-top: 38px;
}

body.single-product .related.products > h2 {
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.4px;
    margin-bottom: 22px;
    color: #0f172a;
    font-weight: 800;
}

body.single-product .related.products ul.products {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.single-product .related.products 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;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

body.single-product .related.products ul.products li.product .product-card {
    border: 1px solid #e7ecf2;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    width: 100%;
    height: 100%;
}

body.single-product .related.products ul.products li.product .product-card:hover {
    transform: translateY(-7px);
    border-color: rgba(229, 86, 4, 0.34);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

body.single-product .related.products ul.products li.product .product-image-wrapper {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border-bottom: 1px solid #eef2f6;
}

body.single-product .related.products ul.products li.product .product-card-image {
    transition: transform 0.35s ease;
    border-radius: 10px;
}

body.single-product .related.products ul.products li.product .product-card:hover .product-card-image {
    transform: scale(1.045);
}

body.single-product .related.products ul.products li.product .product-info {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
}

body.single-product .related.products ul.products li.product .product-title a {
    color: #0f172a !important;
    font-weight: 700;
}

body.single-product .related.products ul.products li.product .product-title {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.single-product .related.products ul.products li.product .product-price {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px !important;
}

body.single-product .related.products ul.products li.product .product-price .price {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    justify-content: center;
}

body.single-product .related.products ul.products li.product .product-price del {
    color: #94a3b8 !important;
    font-size: 0.95rem;
    opacity: 1;
}

body.single-product .related.products ul.products li.product .product-price ins .woocommerce-Price-amount {
    color: #0f172a !important;
    font-size: 1.4rem;
    font-weight: 800;
}

body.single-product .related.products ul.products li.product .product-card .d-flex.gap-2.mb-3 .btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    border-color: #d7dee7 !important;
    color: #334155 !important;
}

body.single-product .related.products ul.products li.product .product-card .d-flex.gap-2.mb-3 .btn:hover {
    border-color: var(--primary, #0F766E) !important;
    background-color: var(--primary, #0F766E) !important;
    color: #fff !important;
}

body.single-product .related.products ul.products li.product .product-card .badge-custom {
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 6px 10px !important;
}

body.single-product .related.products ul.products li.product .product-card .b2b-badges {
    min-height: 38px;
    align-items: center;
}

body.single-product .related.products ul.products li.product .product-card .badge-placeholder {
    visibility: hidden;
    border-color: transparent !important;
    background: transparent !important;
}

body.single-product .related.products ul.products li.product .product-card .price-placeholder {
    display: inline-block;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.2px;
}

body.single-product .related.products ul.products li.product .btn-inquiry {
    border-radius: 12px !important;
    font-size: 12px !important;
    letter-spacing: 0.7px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
    margin-top: auto;
}

body.single-product .related.products ul.products li.product .btn-inquiry:hover {
    background: linear-gradient(135deg, var(--primary, #0F766E) 0%, #0B4F49 100%) !important;
    box-shadow: 0 10px 20px rgba(229, 86, 4, 0.24) !important;
}

@media (max-width: 991px) {
    body.single-product .related.products ul.products li.product {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}

@media (max-width: 767px) {
    body.single-product .related.products > h2 {
        font-size: 28px;
        margin-bottom: 16px;
    }

    body.single-product .related.products ul.products {
        gap: 12px;
    }

    body.single-product .related.products ul.products li.product {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    body.single-product .related.products ul.products li.product .product-info {
        padding: 12px 12px 14px !important;
    }

    body.single-product .related.products ul.products li.product .product-price ins .woocommerce-Price-amount {
        font-size: 1.2rem;
    }
}

/* ============================================
   SHOP SIDEBAR - DIRECT WIDGET OUTPUT (no #secondary)
   ============================================ */
body.woocommerce-shop .sidebar-shop,
body.post-type-archive-product .sidebar-shop {
    padding-top: 20px;
}

body.woocommerce-shop .sidebar-shop .pahla-store-widget,
body.post-type-archive-product .sidebar-shop .pahla-store-widget {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5ebf3;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    padding: 14px 14px 12px;
    margin-bottom: 14px;
}

body.woocommerce-shop .sidebar-shop .pahla-store-widget .widget-title,
body.post-type-archive-product .sidebar-shop .pahla-store-widget .widget-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px;
    color: #0f172a !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #ebf0f6 !important;
}

body.woocommerce-shop .sidebar-shop .pahla-store-widget ul li,
body.post-type-archive-product .sidebar-shop .pahla-store-widget ul li {
    margin-bottom: 6px;
}

body.woocommerce-shop .sidebar-shop .pahla-store-widget ul li a,
body.post-type-archive-product .sidebar-shop .pahla-store-widget ul li a {
    color: #334155;
    text-decoration: none;
}

body.woocommerce-shop .sidebar-shop .pahla-store-widget ul li a:hover,
body.post-type-archive-product .sidebar-shop .pahla-store-widget ul li a:hover {
    color: var(--primary, #0F766E);
}

body.woocommerce-shop .sidebar-shop .widget_product_search .woocommerce-product-search,
body.post-type-archive-product .sidebar-shop .widget_product_search .woocommerce-product-search {
    display: flex;
    gap: 8px;
}

/* Generic WP search widget (the one currently visible in sidebar) */
body.woocommerce-shop .sidebar-shop .widget_search form,
body.post-type-archive-product .sidebar-shop .widget_search form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
}

body.woocommerce-shop .sidebar-shop .widget_search form > label,
body.post-type-archive-product .sidebar-shop .widget_search form > label {
    grid-column: 1 / -1;
    display: block;
    margin: 0;
    line-height: 1.2;
    width: 100%;
}

body.woocommerce-shop .sidebar-shop .widget_product_search input[type="search"],
body.post-type-archive-product .sidebar-shop .widget_product_search input[type="search"] {
    flex: 1;
    border: 1px solid #d7deea;
    border-radius: 12px;
    height: 42px;
    padding: 0 14px;
    background: #fff;
    color: #1e293b;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.woocommerce-shop .sidebar-shop .widget_search input[type="search"],
body.post-type-archive-product .sidebar-shop .widget_search input[type="search"] {
    width: 100%;
    min-width: 0;
    border: 1px solid #d7deea;
    border-radius: 12px;
    height: 42px;
    padding: 0 14px;
    background: #fff;
    color: #1e293b;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.woocommerce-shop .sidebar-shop .widget_product_search input[type="search"]::placeholder,
body.post-type-archive-product .sidebar-shop .widget_product_search input[type="search"]::placeholder {
    color: #94a3b8;
}

body.woocommerce-shop .sidebar-shop .widget_search input[type="search"]::placeholder,
body.post-type-archive-product .sidebar-shop .widget_search input[type="search"]::placeholder {
    color: #94a3b8;
}

body.woocommerce-shop .sidebar-shop .widget_product_search input[type="search"]:focus,
body.post-type-archive-product .sidebar-shop .widget_product_search input[type="search"]:focus {
    border-color: var(--primary, #0F766E);
    box-shadow: 0 0 0 3px rgba(229, 86, 4, 0.16);
    outline: none;
    background: #fffefb;
}

body.woocommerce-shop .sidebar-shop .widget_search input[type="search"]:focus,
body.post-type-archive-product .sidebar-shop .widget_search input[type="search"]:focus,
body.woocommerce-shop .sidebar-shop .widget_search input[type="search"]:focus-visible,
body.post-type-archive-product .sidebar-shop .widget_search input[type="search"]:focus-visible,
body.woocommerce-shop .sidebar-shop .widget_search input[type="search"]:invalid:focus,
body.post-type-archive-product .sidebar-shop .widget_search input[type="search"]:invalid:focus {
    border-color: var(--primary, #0F766E) !important;
    box-shadow: 0 0 0 3px rgba(229, 86, 4, 0.16) !important;
    outline: none !important;
    background: #fffefb;
}

body.woocommerce-shop .sidebar-shop .widget_product_search button[type="submit"],
body.post-type-archive-product .sidebar-shop .widget_product_search button[type="submit"] {
    height: 42px;
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    background: linear-gradient(135deg, var(--primary, #0F766E) 0%, #0B4F49 100%);
    color: #fff;
    box-shadow: 0 8px 16px rgba(229, 86, 4, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

body.woocommerce-shop .sidebar-shop .widget_search button[type="submit"],
body.post-type-archive-product .sidebar-shop .widget_search button[type="submit"] {
    height: 42px;
    white-space: nowrap;
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    background: linear-gradient(135deg, var(--primary, #0F766E) 0%, #0B4F49 100%);
    color: #fff;
    box-shadow: 0 8px 16px rgba(229, 86, 4, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

body.woocommerce-shop .sidebar-shop .widget_product_search button[type="submit"]:hover,
body.post-type-archive-product .sidebar-shop .widget_product_search button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(229, 86, 4, 0.26);
    filter: saturate(1.06);
}

body.woocommerce-shop .sidebar-shop .widget_search button[type="submit"]:hover,
body.post-type-archive-product .sidebar-shop .widget_search button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(229, 86, 4, 0.26);
    filter: saturate(1.06);
}

@media (max-width: 420px) {
    body.woocommerce-shop .sidebar-shop .widget_search form,
    body.post-type-archive-product .sidebar-shop .widget_search form {
        grid-template-columns: 1fr;
    }

    body.woocommerce-shop .sidebar-shop .widget_search button[type="submit"],
    body.post-type-archive-product .sidebar-shop .widget_search button[type="submit"] {
        width: 100%;
    }
}

body.woocommerce-shop .sidebar-shop .widget_price_filter .price_slider_wrapper,
body.post-type-archive-product .sidebar-shop .widget_price_filter .price_slider_wrapper {
    background: #f8fbff;
    border: 1px solid #e6edf6;
    border-radius: 12px;
    padding: 10px;
}

@media (max-width: 991px) {
    body.woocommerce-shop .sidebar-shop,
    body.post-type-archive-product .sidebar-shop {
        padding-top: 0;
    }
}

@media (max-width: 767px) {
    .page-template-template-homev2-php .product-card {
        border-radius: 12px !important;
    }

    .page-template-template-homev2-php .product-info {
        padding: 12px 12px 14px !important;
    }

    .page-template-template-homev2-php .product-title {
        margin-bottom: 8px !important;
    }

    .page-template-template-homev2-php .product-title a {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .page-template-template-homev2-php .product-price {
        min-height: 46px !important;
        margin-bottom: 10px !important;
    }

    .page-template-template-homev2-php .product-price ins .woocommerce-Price-amount {
        font-size: 1.18rem !important;
    }

    .page-template-template-homev2-php .product-card .d-flex.gap-2.mb-3 .btn {
        width: 34px !important;
        height: 34px !important;
    }

    .page-template-template-homev2-php .product-card .btn-inquiry {
        padding: 10px 12px !important;
        font-size: 11px !important;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 575px) {
    .page-template-template-homev2-php .product-card {
        border-radius: 10px !important;
    }

    .page-template-template-homev2-php .product-image-wrapper {
        aspect-ratio: 1 / 1 !important;
    }

    .page-template-template-homev2-php .product-card .b2b-badges {
        gap: 6px !important;
        margin-bottom: 10px !important;
    }

    .page-template-template-homev2-php .product-card .badge-custom {
        font-size: 10px !important;
        padding: 5px 8px !important;
    }
}

/* Global fallback: softly round inner product images in card-based UI */
.product-card .product-image-wrapper img,
.product-card .product-card-image {
    border-radius: 10px;
}

