/* =======================================================
   WooCommerce Custom Homepage — Frontend Styles
   Nike-inspired design with animations
   ======================================================= */

/* ---- RESET & BASE ---- */
html {
    scroll-behavior: smooth;
}

.wh-homepage *,
.wh-homepage *::before,
.wh-homepage *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wh-homepage {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--wh-dark);
    overflow-x: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #ffffff;
}

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

.wh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.wh-section {
    padding: 80px 0;
}

.wh-section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    position: relative;
}

.wh-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--wh-primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ---- ANIMATIONS ---- */
.wh-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.wh-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================
   HERO BANNER
   ======================================================== */
.wh-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wh-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    will-change: transform;
}

.wh-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.wh-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
    max-width: 800px;
}

.wh-hero-heading {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.wh-hero-subheading {
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wh-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 42px;
    background: var(--wh-primary);
    color: var(--wh-btn-text);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px rgba(113, 26, 32, 0.35);
}

.wh-hero-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(113, 26, 32, 0.5);
    background: var(--wh-secondary);
    color: var(--wh-dark);
}

.wh-hero-btn:active {
    transform: translateY(0) scale(0.98);
}

.wh-hero-btn svg {
    transition: transform 0.3s ease;
}

.wh-hero-btn:hover svg {
    transform: translateX(5px);
}

/* ========================================================
   CATEGORIES SECTION
   ======================================================== */
.wh-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.wh-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: all 0.3s ease;
}

.wh-category-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f5f5f5;
}

.wh-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wh-category-name {
    font-size: 18px;
    font-weight: 600;
    color: #111111;
    margin: 0;
    text-align: center;
    transition: color 0.3s ease;
}

.wh-category-card:hover {
    background: #28353c;
    transform: translateY(-5px);
}

.wh-category-card:hover .wh-category-name {
    color: #ffffff;
}

/* ========================================================
   PRODUCT CARD — Exact Match (Nike Mockup Style)
   ======================================================== */
.wh-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Slider Layout Modifier */
.wh-products-grid.wh-slider-layout {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    
    /* Break out of container to prevent the shadow from being clipped by overflow-x: auto. Match desktop container padding (24px). */
    padding: 60px 24px 80px 24px;
    margin: -60px -24px -80px -24px; 
    scroll-padding-left: 24px;
    scroll-padding-right: 24px;
}
.wh-products-grid.wh-slider-layout::-webkit-scrollbar {
    display: none;
}
.wh-slider-layout .wh-product-card-wrapper {
    flex: 0 0 calc(33.333% - 11px);
    scroll-snap-align: start;
    min-width: 250px;
}

.wh-product-card-wrapper {
    position: relative;
    filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.05));
    border-radius: 32px;
    transition: transform 0.4s ease, filter 0.4s ease;
    margin-bottom: 20px;
}

.wh-product-card-wrapper:hover {
    transform: translateY(-8px);
    filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.1));
}

/* Background Construction for Inner Corner Cutout */
.wh-card-bg-main,
.wh-card-bg-bottom,
.wh-card-fillet {
    position: absolute;
    background: var(--wh-card-bg, #ffffff);
    z-index: 0;
}

.wh-card-bg-main {
    top: 0;
    left: 0;
    right: 0;
    bottom: 90px;
    border-radius: 32px 32px 0 0;
}

.wh-card-bg-bottom {
    top: calc(100% - 90px);
    left: 0;
    right: 90px;
    bottom: 0;
    border-radius: 0 0 0 32px;
}

.wh-card-fillet {
    right: 90px;
    bottom: 90px;
    width: 26px;
    height: 26px;
    background: transparent;
    background-image: radial-gradient(circle at bottom right, transparent 25px, var(--wh-card-bg, #ffffff) 26px);
}

/* RTL Support for Background Shapes */
.wh-rtl .wh-card-bg-bottom {
    left: 90px;
    right: 0;
    border-radius: 0 0 32px 0;
}

.wh-rtl .wh-card-fillet {
    left: 90px;
    right: auto;
    background-image: radial-gradient(circle at bottom left, transparent 25px, var(--wh-card-bg, #ffffff) 26px);
}

/* Content Area */
.wh-card-content {
    position: relative;
    z-index: 1;
    padding: 14px 14px 24px 14px;
}

/* Image */
.wh-card-image-area {
    position: relative;
    background: var(--wh-card-img-bg, #1a1a2e);
    /* Studio BG */
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1 / 1.05;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wh-card-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--wh-badge, #22c55e);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    z-index: 2;
}

.wh-rtl .wh-card-badge {
    left: auto;
    right: 18px;
}

.wh-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.wh-card-img {
    width: 100%;
    height: 100%;
    object-fit: auto;
    /* Support no-crop container fill */
    transition: transform 0.5s ease;
}

/* Product Card Slider */
.wh-card-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wh-card-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wh-card-slider-track>a {
    flex: 0 0 100%;
    display: block;
    width: 100%;
    height: 100%;
}

.wh-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 1;
    /* Always visible to ensure they can be used */
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #111;
}

.wh-slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.wh-slider-prev {
    left: 8px;
}

.wh-slider-next {
    right: 8px;
}

.wh-rtl .wh-slider-prev {
    left: auto;
    right: 8px;
}

.wh-rtl .wh-slider-next {
    right: auto;
    left: 8px;
}

.wh-product-card-wrapper:hover .wh-card-img {
    transform: scale(1.05);
}

/* Text Content */
.wh-card-body {
    padding: 24px 8px 0;
}

.wh-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.wh-card-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--wh-card-text, #111);
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

.wh-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wh-card-title a:hover {
    color: var(--wh-primary);
}

/* Wishlist Circle Heart */
.wh-wishlist-circle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #cecece;
    /* Outline color */
}

.wh-wishlist-circle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.wh-heart-outline {
    fill: none;
    stroke: currentColor;
    transition: all 0.3s ease;
}

/* Active Wishlist State */
.woodmart-wishlist-btn.added .wh-wishlist-circle-btn,
.wh-wishlisted .wh-wishlist-circle-btn {
    color: var(--wh-primary, #711a20);
}

.woodmart-wishlist-btn.added .wh-heart-outline,
.wh-wishlisted .wh-heart-outline {
    fill: var(--wh-primary, #711a20);
    stroke: var(--wh-primary, #711a20);
}

/* Description */
.wh-card-desc {
    font-size: 15px;
    color: #777;
    margin-bottom: 24px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price Wrap - stays left of cutout */
.wh-card-price-wrap {
    display: flex;
    align-items: center;
    height: 60px;
}

.wh-card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--wh-card-price, #111);
}

.wh-card-price .amount {
    font-weight: 800;
}

.wh-card-price del {
    font-size: 15px;
    font-weight: 500;
    color: #999;
    margin-right: 8px;
}

.wh-card-price ins {
    text-decoration: none;
}

/* Floating Cart Button in Cutout Corner */
.wh-cart-floating-btn-wrapper {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.wh-rtl .wh-cart-floating-btn-wrapper {
    left: 4px;
    right: auto;
}

.wh-floating-cart-btn {
    width: 68px;
    height: 68px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    /* Clear shadow to pop out */
    color: #111;
    /* Black cart icon */
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.wh-floating-cart-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Hide Woodmart's appended View Cart text/buttons */
.wh-product-card-wrapper .added_to_cart,
#wh-quickview-modal .added_to_cart {
    display: none !important;
}

/* Loading State */
.wh-floating-cart-btn.loading {
    pointer-events: none;
    position: relative;
}

.wh-floating-cart-btn.loading svg {
    opacity: 0;
}

.wh-floating-cart-btn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top-color: #111;
    border-radius: 50%;
    animation: wh-spin 0.6s linear infinite;
}

/* Added State - Checkmark Black */
.wh-floating-cart-btn.added {
    background: #fff;
    pointer-events: none;
    position: relative;
    color: #111;
}

.wh-floating-cart-btn.added svg {
    display: none;
}

.wh-floating-cart-btn.added::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 9px;
    border-left: 3px solid #111;
    border-bottom: 3px solid #111;
    transform: rotate(-45deg);
    margin-top: -4px;
    animation: wh-popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wh-popIn {
    0% {
        transform: rotate(-45deg) scale(0);
        opacity: 0;
    }

    100% {
        transform: rotate(-45deg) scale(1.1);
        /* slight pop effect */
        opacity: 1;
    }
}


/* Variable Product Form Overlay */
.wh-variable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border-radius: 24px;
    overflow-y: auto;
}
.wh-variable-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.wh-variable-overlay-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    background: #f0f0f0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 2;
}
.wh-variable-overlay-close:hover {
    background: #e0e0e0;
}
.wh-variation-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}
.wh-variable-overlay-content {
    margin-top: 20px;
}
.wh-variable-overlay-content form.cart {
    display: block !important;
}
.wh-variable-overlay-content .variations {
    width: 100%;
    margin-bottom: 20px;
}
.wh-variable-overlay-content .variations label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}
.wh-variable-overlay-content .variations select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    margin-bottom: 10px;
}
.wh-variable-overlay-content .woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wh-variable-overlay-content .single_add_to_cart_button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: var(--wh-primary, #000);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

/* ========================================================
   ABOUT US SECTION
   ======================================================== */
.wh-about-section {
    text-align: center;
}

.wh-about-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

.wh-about-text p {
    margin-bottom: 16px;
}

/* ========================================================
   FAQ SECTION
   ======================================================== */
.wh-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.wh-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.wh-faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wh-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: inherit;
    text-align: left;
    gap: 16px;
    font-family: inherit;
}

.wh-faq-question span {
    flex: 1;
}

.wh-faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--wh-primary);
}

.wh-faq-item.wh-faq-open .wh-faq-chevron {
    transform: rotate(180deg);
}

.wh-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.4s ease;
    padding: 0 24px;
}

.wh-faq-item.wh-faq-open .wh-faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.wh-faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.85;
}

/* ========================================================
   SOCIAL LINKS
   ======================================================== */
.wh-social-section {
    text-align: center;
}

.wh-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.wh-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.wh-social-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.wh-social-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wh-social-icon svg {
    width: 20px;
    height: 20px;
}

/* ========================================================
   TOAST NOTIFICATION
   ======================================================== */
#wh-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wh-toast {
    padding: 14px 24px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: wh-toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.wh-toast-success {
    background: var(--wh-badge, #22c55e);
}

.wh-toast-error {
    background: #ef4444;
}

.wh-toast.wh-toast-out {
    animation: wh-toastOut 0.3s ease forwards;
}

@keyframes wh-toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes wh-toastOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ========================================================
   RESPONSIVE — MOBILE
   ======================================================== */
@media (max-width: 768px) {
    .wh-section {
        padding: 50px 0;
    }

    .wh-section-title {
        font-size: 26px;
        margin-bottom: 32px;
    }

    .wh-hero {
        min-height: 75vh;
    }

    .wh-hero-heading {
        font-size: clamp(36px, 10vw, 56px);
    }

    .wh-hero-btn {
        padding: 14px 32px;
        font-size: 14px;
    }

    /* Categories: 2 per row on mobile */
    .wh-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Products: 1 per row on mobile */
    .wh-products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 420px;
    }
    
    .wh-products-grid.wh-slider-layout {
        max-width: none; /* override 420px max-width which disrupts margin-pull */
        padding: 60px 16px 80px 16px;
        margin: -60px -16px -80px -16px; 
        scroll-padding-left: 16px;
        scroll-padding-right: 16px;
    }
    
    .wh-slider-layout .wh-product-card-wrapper {
        /* Mobile slider config: show 1 full card and 20% of next */
        flex: 0 0 80%;
        min-width: auto;
    }

    .wh-card-title {
        font-size: 18px;
    }

    .wh-card-price {
        font-size: 18px;
    }

    .wh-card-body {
        padding: 16px 20px 20px;
    }

    .wh-social-btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .wh-faq-question {
        padding: 16px 18px;
        font-size: 14px;
    }

    #wh-toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }
}

@media (max-width: 480px) {
    .wh-container {
        padding: 0 16px;
    }

    .wh-hero-content {
        padding: 30px 16px;
    }

    .wh-card-image-area {
        margin: 8px;
        padding: 20px;
    }
}

/* ========================================================
   RTL SUPPORT
   ======================================================== */
.wh-rtl {
    direction: rtl;
    text-align: right;
}

.wh-rtl .wh-hero-content {
    text-align: center;
}

.wh-rtl .wh-card-badge {
    left: auto;
    right: 16px;
}

.wh-rtl .wh-faq-question {
    text-align: right;
}

.wh-rtl .wh-hero-btn svg {
    transform: rotate(180deg);
}

.wh-rtl .wh-hero-btn:hover svg {
    transform: rotate(180deg) translateX(5px);
}

.wh-rtl #wh-toast-container {
    right: auto;
    left: 30px;
}

.wh-rtl .wh-card-price del {
    margin-right: 0;
    margin-left: 6px;
}

/* ========================================================
   PRODUCTS SECTION 2 — Slight variation
   ======================================================== */
.wh-products-section-2 {
    background: #fafafa;
}

/* ========================================================
   LOADING SPINNER FOR CART BUTTON
   ======================================================== */
.wh-cart-btn.wh-adding::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--wh-dark);
    border-radius: 50%;
    animation: wh-spin 0.6s linear infinite;
}

.wh-cart-btn.wh-adding svg {
    display: none;
}

@keyframes wh-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================================
   ABOUT US PAGE (DEDICATED)
   ======================================================== */
.wh-about-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 60vh;
}

.wh-about-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--wh-about-accent);
}

.wh-about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

/* ========================================================
   ABOUT US LAYOUT: COMMON STYLES
   ======================================================== */
.wh-about-heading {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    position: relative;
    color: var(--wh-about-accent);
}

.wh-about-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--wh-about-accent);
    margin-top: 12px;
    border-radius: 2px;
}

.wh-about-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--wh-about-text);
}

.wh-about-content p {
    margin-bottom: 20px;
}

.wh-about-content p:last-child {
    margin-bottom: 0;
}

.wh-about-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wh-rtl .wh-about-page p,
.wh-rtl .wh-about-page div {
    text-align: right;
}

/* ========================================================
   OPTION 1: BENTO BOX GRID (.wh-about-style-bento)
   ======================================================== */
.wh-about-style-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.wh-about-style-bento .wh-about-section-block {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wh-about-style-bento .wh-about-section-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.wh-about-style-bento .wh-section-1 {
    grid-column: span 3;
    padding: 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
}

.wh-about-style-bento .wh-section-1 .wh-about-heading::after {
    margin-left: auto;
    margin-right: auto;
}

.wh-about-style-bento .wh-section-2 {
    grid-column: span 2;
}

.wh-about-style-bento .wh-section-3 {
    grid-column: span 1;
}

.wh-about-style-bento .wh-section-4 {
    grid-column: span 1;
}

.wh-about-style-bento .wh-section-5 {
    grid-column: span 2;
}

.wh-about-style-bento .wh-section-6 {
    grid-column: span 2;
}

.wh-about-style-bento .wh-section-7 {
    grid-column: span 1;
}

@media (max-width: 992px) {
    .wh-about-style-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .wh-about-style-bento .wh-section-1,
    .wh-about-style-bento .wh-section-2,
    .wh-about-style-bento .wh-section-3,
    .wh-about-style-bento .wh-section-4,
    .wh-about-style-bento .wh-section-5,
    .wh-about-style-bento .wh-section-6,
    .wh-about-style-bento .wh-section-7 {
        grid-column: span 2 !important;
    }
}

/* ========================================================
   OPTION 2: TIMELINE (.wh-about-style-timeline)
   ======================================================== */
.wh-about-style-timeline {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wh-about-style-timeline::before {
    content: '';
    position: absolute;
    top: 80px;
    bottom: 80px;
    left: 50%;
    width: 2px;
    background: var(--wh-about-accent);
    opacity: 0.2;
    transform: translateX(-50%);
}

.wh-about-style-timeline .wh-about-section-block {
    width: calc(50% - 40px);
    margin-bottom: 60px;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.wh-about-style-timeline .wh-about-section-block::before {
    content: '';
    position: absolute;
    top: 50px;
    width: 16px;
    height: 16px;
    background: var(--wh-about-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 1), 0 0 0 8px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.wh-about-style-timeline .wh-about-section-block:nth-child(odd) {
    align-self: flex-start;
}

.wh-about-style-timeline .wh-about-section-block:nth-child(even) {
    align-self: flex-end;
}

.wh-about-style-timeline .wh-about-section-block:nth-child(odd)::before {
    right: -48px;
}

.wh-about-style-timeline .wh-about-section-block:nth-child(even)::before {
    left: -48px;
}

@media (max-width: 768px) {
    .wh-about-style-timeline::before {
        left: 24px;
        transform: none;
    }

    .wh-about-style-timeline .wh-about-section-block {
        width: calc(100% - 40px);
        align-self: flex-end !important;
        margin-left: 40px;
    }

    .wh-about-style-timeline .wh-about-section-block::before {
        left: -48px !important;
        right: auto !important;
    }
}

/* ========================================================
   OPTION 3: EDITORIAL (.wh-about-style-editorial)
   ======================================================== */
.wh-about-style-editorial {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 24px;
}

.wh-about-style-editorial .wh-about-section-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 120px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 120px;
}

.wh-about-style-editorial .wh-about-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wh-about-style-editorial .wh-about-heading {
    flex: 0 0 40%;
    position: sticky;
    top: 120px;
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 0;
    padding-right: 60px;
}

.wh-rtl .wh-about-style-editorial .wh-about-heading {
    padding-right: 0;
    padding-left: 60px;
}

.wh-about-style-editorial .wh-about-heading::after {
    display: none;
}

.wh-about-style-editorial .wh-about-content {
    flex: 1;
    font-size: 20px;
}

.wh-about-style-editorial .wh-about-content p:first-child {
    font-size: 24px;
    font-weight: 500;
    color: var(--wh-about-accent);
}

@media (max-width: 768px) {
    .wh-about-style-editorial {
        padding: 60px 24px;
    }

    .wh-about-style-editorial .wh-about-section-block {
        flex-direction: column;
        margin-bottom: 80px;
        padding-bottom: 80px;
    }

    .wh-about-style-editorial .wh-about-heading {
        position: relative;
        top: 0;
        font-size: 36px;
        margin-bottom: 30px;
        padding-right: 0;
        padding-left: 0;
    }
}

/* ========================================================
   OFFER BANNER SECTION
   ======================================================== */
.wh-offer-section {
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.wh-offer-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.wh-offer-banner-link {
    display: block;
    width: 100%;
    overflow: hidden;
}

.wh-offer-banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    display: block;
}

.wh-offer-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wh-offer-banner-link:hover .wh-offer-img {
    transform: scale(1.03);
}

.wh-offer-content-below {
    padding: 30px 20px 45px;
    text-align: center;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.wh-offer-small-text {
    font-size: 14px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.wh-rtl .wh-offer-small-text {
    letter-spacing: 0;
}

.wh-offer-btn-wrapper {
    position: relative;
    margin-top: 10px;
}

/* Gift Button with Ribbon Bow */
.wh-gift-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: visible; /* to show the ribbon bow sticking out */
}

/* Translucent vertical ribbon stripe */
.wh-gift-btn::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 32px;
    width: 4px;
    background: rgba(255, 215, 0, 0.35); /* shiny gold stripe */
    z-index: 1;
    pointer-events: none;
}

.wh-gift-bow-wrap {
    position: absolute;
    top: -15px; /* sit slightly above the button */
    left: 18px; /* aligned with the stripe */
    width: 32px;
    height: 32px;
    color: #ffd700; /* gold color for the ribbon bow */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wh-offer-btn-text,
.wh-offer-btn-arrow {
    position: relative;
    z-index: 2; /* display above ribbon stripe */
}

.wh-gift-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
    filter: brightness(1.08);
}

.wh-gift-btn:hover .wh-gift-bow-wrap {
    transform: translateY(-2px) rotate(-8deg) scale(1.1);
}

.wh-gift-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.wh-offer-btn-arrow {
    transition: transform 0.3s ease;
}

.wh-gift-btn:hover .wh-offer-btn-arrow {
    transform: translateX(5px);
}

.wh-rtl .wh-gift-btn:hover .wh-offer-btn-arrow {
    transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .wh-offer-content-below {
        padding: 24px 16px 36px;
        gap: 10px;
    }

    .wh-offer-small-text {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .wh-gift-btn {
        padding: 14px 38px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .wh-offer-content-below {
        padding: 20px 12px 30px;
    }

    .wh-offer-small-text {
        font-size: 12px;
    }

    .wh-gift-btn {
        padding: 12px 32px;
        font-size: 14px;
    }
}

/* ========================================================
   WD MAGIC COMET & CART BOUNCE
   ======================================================== */
.wd-cart-bounce {
    animation: wdCartBounce 0.7s ease;
}

@keyframes wdCartBounce {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.12); }
    40%  { transform: scale(0.94); }
    60%  { transform: scale(1.06); }
    80%  { transform: scale(0.99); }
    100% { transform: scale(1); }
}

/* bright moving comet head */
.wd-magic-comet {
    position: fixed;
    z-index: 9999999;
    width: 16px;
    height: 16px;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    background: radial-gradient(circle, rgba(255,245,200,1) 0%, rgba(255,218,120,0.98) 38%, rgba(255,190,70,0.68) 62%, rgba(255,190,70,0) 75%);
    box-shadow:
        0 0 10px rgba(255, 220, 140, 0.95),
        0 0 22px rgba(255, 220, 140, 0.65),
        0 0 38px rgba(255, 220, 140, 0.28);
    opacity: 1;
}

/* trail sparkles */
.wd-trail-spark {
    position: fixed;
    z-index: 9999998;
    pointer-events: none;
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
    filter: drop-shadow(0 0 8px rgba(255, 223, 140, 0.6));
}

.wd-trail-spark::before,
.wd-trail-spark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(255, 232, 170, 0.98);
    box-shadow:
        0 0 10px rgba(255, 232, 170, 0.86),
        0 0 18px rgba(255, 232, 170, 0.52),
        0 0 28px rgba(255, 232, 170, 0.28);
}

.wd-trail-spark::before {
    width: 100%;
    height: 2px;
}

.wd-trail-spark::after {
    width: 2px;
    height: 100%;
}

.wd-trail-spark.strong {
    filter: drop-shadow(0 0 11px rgba(255, 223, 140, 0.82));
}

.wd-trail-spark.strong::before,
.wd-trail-spark.strong::after {
    box-shadow:
        0 0 14px rgba(255, 235, 180, 0.96),
        0 0 24px rgba(255, 235, 180, 0.58),
        0 0 36px rgba(255, 235, 180, 0.32);
}

.wd-trail-spark.show {
    animation: wdTrailSpark 0.82s ease forwards;
}

@keyframes wdTrailSpark {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
    }
    16% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(35deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35) rotate(115deg);
    }
}

/* burst at cart */
.wd-end-burst {
    position: fixed;
    width: 8px;
    height: 8px;
    z-index: 9999999;
    pointer-events: none;
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    background: radial-gradient(circle, #fff0bf 0%, #ffd879 40%, #ffbf4d 62%, transparent 76%);
    box-shadow:
        0 0 12px rgba(255, 215, 130, 0.9),
        0 0 24px rgba(255, 215, 130, 0.52);
}

.wd-end-burst.show {
    animation: wdEndBurst 0.9s ease forwards;
}

@keyframes wdEndBurst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.35);
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--dx)), calc(var(--dy))) scale(0.08);
    }
}

/* ========================================================
   NEW PRODUCT CARD DESIGN
   ======================================================== */
.wh-product-card-wrapper {
    position: relative;
    min-height: 100%;
}

.wh-new-card-inner {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wh-new-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.wh-new-card-image-wrap {
    position: relative;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.wh-new-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #111111;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.wh-rtl .wh-new-card-badge {
    left: auto;
    right: 12px;
}

.wh-new-card-img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.wh-new-card-inner:hover .wh-new-card-img {
    transform: scale(1.05);
}

.wh-new-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wh-new-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.wh-new-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wh-new-card-title a {
    color: #111111;
    text-decoration: none;
}

.wh-new-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    white-space: nowrap;
}

.wh-new-card-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.wh-new-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.wh-btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    outline: none;
}

.wh-btn-add {
    background: #111111;
    color: #ffffff;
}

.wh-btn-add:hover {
    background: #333333;
    color: #ffffff;
}

.wh-btn-quickview {
    background: #ffffff;
    color: #111111;
    border: 1px solid #e0e0e0;
}

.wh-btn-quickview:hover {
    background: #f5f5f5;
    color: #111111;
}

/* ========================================================
   QUICK VIEW MODAL
   ======================================================== */
.wh-qv-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.wh-qv-modal.is-open {
    display: flex;
}

.wh-qv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wh-qv-container {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: whQvFadeIn 0.3s ease;
}

@keyframes whQvFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wh-qv-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #111111;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.wh-rtl .wh-qv-close {
    right: auto;
    left: 16px;
}

.wh-qv-close:hover {
    background: #f0f0f0;
}

.wh-qv-content {
    display: flex;
    flex-wrap: wrap;
}

.wh-qv-image-col {
    flex: 1 1 50%;
    background: #f9f9f9;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wh-qv-image-col img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.wh-qv-details-col {
    flex: 1 1 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.wh-qv-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #111111;
}

.wh-qv-price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111111;
}

.wh-qv-desc {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1;
}

.wh-qv-full-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .wh-qv-content {
        flex-direction: column;
    }
    .wh-qv-image-col {
        flex: 1 1 100%;
        padding: 30px;
    }
    .wh-qv-details-col {
        flex: 1 1 100%;
        padding: 30px;
    }
    .wh-qv-title {
        font-size: 22px;
    }
    .wh-qv-price {
        font-size: 20px;
    }
}

body.wh-qv-open {
    overflow: hidden;
}