/*
Theme Name: Tuoifruit Woo Theme
Theme URI:
Author: Tuoifruit
Author URI:
Description: WordPress theme with WooCommerce integration based on wp-plugin-development architecture.
Version: 1.0.2
Text Domain: tuoifruit-woo-theme
*/

/* --- Basic Responsive CSS --- */
body {
    font-family: 'Inter', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    color: #111827;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Header Reset */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 !important;
}

/* Header Top */
.header-top {
    background: #f7f7f7;
    border-bottom: 1px solid #eaeaea;
    font-size: 13px;
    color: #666;
    padding: 8px 0;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-hotline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-hotline strong {
    color: #e74c3c;
}

.header-utilities {
    display: flex;
    gap: 15px;
}

.header-utilities a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-utilities a:hover {
    color: #4CAF50;
}

/* Header Main */
.header-main {
    padding: 15px 0;
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Branding/Logo */
.site-branding a {
    text-decoration: none;
    color: #333;
}

.site-branding h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #4CAF50;
    letter-spacing: -0.5px;
}

.site-branding img {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: #4CAF50;
}

/* Dropdown Menu (Sub-menu) */
.main-navigation ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    border-radius: 4px;
}

.main-navigation ul li:hover>ul {
    display: flex;
}

.main-navigation ul li ul li a {
    padding: 10px 20px;
    font-size: 14px;
    text-transform: none;
    border-bottom: 1px solid #f1f1f1;
}

.main-navigation ul li ul li:last-child a {
    border-bottom: none;
}

.main-navigation ul li ul li a:hover {
    background: #f9f9f9;
}

/* Action Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.3s ease;
}

.header-actions a:hover {
    color: #4CAF50;
}

/* Search toggle button – reset & style */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #333;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
    line-height: 1;
}

.search-toggle:hover {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.08);
}

.search-toggle:focus-visible {
    outline: 2px solid #4CAF50;
    outline-offset: 3px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Mobile Toggles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #333;
}

.mobile-menu-wrapper {
    display: none;
}

/* Hide Mobile Elements on Desktop */
@media screen and (min-width: 769px) {

    .mobile-menu-overlay,
    .mobile-menu-close,
    .sub-menu-toggle {
        display: none !important;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .header-top {
        display: none;
    }

    .mobile-menu-wrapper {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    /* Off-canvas modern mobile menu */
    .main-navigation {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 10001;
        padding: 60px 0 20px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        overflow-y: auto;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .main-navigation {
        transform: translateX(0);
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    body.menu-open .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: #f5f5f5;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #333;
        transition: background 0.3s ease;
    }

    .mobile-menu-close:hover {
        background: #e0e0e0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        display: block;
    }

    .main-navigation li {
        border-bottom: 1px solid #f1f1f1;
        position: relative;
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        padding: 15px 20px;
        font-size: 16px;
        color: #333;
        display: block;
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item>a {
        color: #4CAF50;
        background: #fcfcfc;
    }

    .main-navigation ul li ul {
        position: static;
        box-shadow: none;
        display: none;
        /* JS will toggle */
        padding-left: 0;
        background: #fafafa;
        border-radius: 0;
        min-width: 100%;
    }

    .main-navigation ul li ul li a {
        padding: 12px 20px 12px 40px;
        font-size: 14px;
        border-bottom: 1px solid #eaeaea;
    }

    .main-navigation ul li:hover>ul {
        display: none;
        /* Disable native hover dropdown for mobile */
    }

    .sub-menu-toggle {
        position: absolute;
        right: 10px;
        top: 8px;
        background: #f1f1f1;
        border: none;
        width: 34px;
        height: 34px;
        border-radius: 4px;
        color: #666;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .sub-menu-toggle:active {
        background: #e5e5e5;
    }

    .sub-menu-toggle.toggled svg {
        transform: rotate(180deg);
    }

    li.submenu-active>a {
        color: #4CAF50;
    }

    .header-main-inner {
        position: relative;
    }
}

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.search-overlay[hidden] {
    display: none;
}

/* Backdrop */
.search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: searchBackdropIn 0.25s ease;
}

@keyframes searchBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-overlay__backdrop {
        animation: none;
    }
}

/* Panel */
.search-overlay__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    margin: 80px 16px 0;
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
    animation: searchPanelIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes searchPanelIn {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-overlay__panel {
        animation: none;
    }
}

/* Close button */
.search-overlay__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-overlay__close:hover {
    background: #e8e8e8;
    color: #111;
}

.search-overlay__close:focus-visible {
    outline: 2px solid #4CAF50;
    outline-offset: 3px;
}

/* Label / heading */
.search-overlay__label {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* Input wrapper */
.search-overlay__input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f7f7f7;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-overlay__input-wrap:focus-within {
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.12);
}

.search-overlay__icon {
    flex-shrink: 0;
    color: #999;
    margin-left: 16px;
}

.search-overlay__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 12px;
    font-size: 1.0625rem;
    color: #111;
    font-family: inherit;
    outline: none;
}

.search-overlay__input::placeholder {
    color: #aaa;
}

/* Submit button */
.search-overlay__submit {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 0 24px;
    height: 56px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-overlay__submit:hover {
    background: #388E3C;
}

.search-overlay__submit:focus-visible {
    outline: 2px solid #1b5e20;
    outline-offset: 2px;
}

/* Popular tags */
.search-overlay__popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.search-overlay__popular-label {
    font-size: 0.8125rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.search-overlay__tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #f1f8f1;
    border: 1px solid #c8e6c9;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2e7d32;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.search-overlay__tag:hover {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
    transform: translateY(-2px);
}

.search-overlay__tag:focus-visible {
    outline: 2px solid #4CAF50;
    outline-offset: 3px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .search-overlay__panel {
        margin: 0;
        border-radius: 0 0 20px 20px;
        padding: 56px 20px 32px;
    }

    .search-overlay__label {
        font-size: 1.25rem;
    }

    .search-overlay__input-wrap {
        border-radius: 10px;
    }

    .search-overlay__input {
        font-size: 1rem;
        padding: 14px 10px;
    }

    .search-overlay__submit {
        padding: 0 16px;
        font-size: 0.875rem;
        height: 50px;
    }
}

/* --- Footer Styles --- */
.site-footer {
    background-color: #1a1a1a;
    color: #b3b3b3;
    padding-top: 60px;
    margin-top: 50px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-widget h3 {
    color: #fff;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-logo h2 a {
    color: #4CAF50 !important;
    font-size: 28px;
    margin-bottom: 15px;
    display: block;
    font-weight: 800;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-contact-info {
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact-info strong {
    color: #fff;
}

.footer-contact-info a,
.footer-contact-info a:visited {
    color: #fff;
    text-decoration: none;
}

.footer-contact-info a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: #4CAF50;
    padding-left: 5px;
}

.footer-newsletter p {
    font-size: 14px;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    margin-bottom: 25px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: #333;
    color: #fff;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter-form button {
    padding: 10px 20px;
    border: none;
    background: #4CAF50;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #45a049;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #4CAF50;
    color: #fff;
    transform: translateY(-3px);
}

.site-info {
    border-top: 1px solid #333;
    padding: 20px 0;
}

.site-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-info p {
    margin: 0;
    font-size: 14px;
}

.site-info p a {
    color: #4CAF50;
    text-decoration: none;
}

.payment-methods {
    color: #666;
}

/* Footer Responsive adjustments */
@media screen and (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 576px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-info-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ==========================================================================
   WOOCOMMERCE CUSTOM STYLES
   ========================================================================== */

/* GLOBAL WOOCOMMERCE COLORS AND FONTS */
:root {
    --woo-primary: #4CAF50;
    --woo-primary-hover: #45a049;
    --woo-secondary: #ff6b6b;
    --woo-text-main: #333333;
    --woo-text-light: #777777;
    --woo-bg-light: #f9f9fc;
    --woo-border: #eaeaea;
    --woo-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --woo-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --woo-radius: 8px;
    --woo-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --------------------------------------------------------------------------
   PRODUCT GRID & ARCHIVE
   -------------------------------------------------------------------------- */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    background: #fff;
    border-radius: var(--woo-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--woo-shadow);
    transition: var(--woo-transition);
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--woo-shadow-hover);
    transform: translateY(-5px);
}

/* Product Image Wrapper */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    position: relative;
}

.product-image-frame {
    margin: 10px;
    padding: 10px;
    border: 1px solid var(--woo-border);
    border-radius: var(--woo-radius);
    background-color: #fafafa;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.woocommerce ul.products li.product:hover .product-image-frame {
    border-color: var(--woo-primary);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    margin-bottom: 0 !important;
    transition: transform 0.6s ease;
    border-radius: calc(var(--woo-radius) - 2px);
    display: block;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Sale Badge */
.woocommerce span.onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    /* modern left positioning */
    right: auto;
    background-color: var(--woo-secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 10;
    min-height: auto;
    min-width: auto;
    line-height: 1.2;
}

/* Product Content Info */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--woo-text-main);
    padding: 20px 20px 10px;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--woo-primary);
}

/* Star Rating */
.woocommerce .star-rating {
    margin: 0 20px 10px;
    font-size: 13px;
    color: #f39c12;
}

/* Price */
.woocommerce ul.products li.product .price {
    color: var(--woo-primary);
    font-weight: 700;
    font-size: 16px;
    padding: 0 20px 20px;
    margin: 0;
}

.woocommerce ul.products li.product .price del {
    color: var(--woo-text-light);
    font-weight: 400;
    font-size: 13px;
    margin-right: 6px;
}

.woocommerce ul.products li.product .price ins {
    background: transparent;
    text-decoration: none;
}

/* Add To Cart Wrapper */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    margin: 0 20px 20px;
    /* Push to bottom */
    display: block;
    text-align: center;
    background-color: transparent;
    color: var(--woo-primary);
    border: 1px solid var(--woo-primary);
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--woo-transition);
}

.woocommerce ul.products li.product .button {
    margin-top: auto;
}

.woocommerce ul.products li.product .added_to_cart {
    margin-top: -10px; /* Slight offset since button has no bottom margin initially */
    background-color: var(--woo-primary);
    color: #fff;
}

.woocommerce ul.products li.product .added_to_cart:hover,
.woocommerce ul.products li.product .button:hover {
    background-color: var(--woo-primary);
    color: #fff;
    opacity: 0.9;
}


/* --------------------------------------------------------------------------
   SINGLE PRODUCT PAGE - PREMIUM REDESIGN (Web Interface Guidelines compliant)
   -------------------------------------------------------------------------- */

/* ── Google Fonts import via PHP (see functions.php) ──────────────── */
/* Font: Inter (700,600,400) + Be Vietnam Pro (800,700) */

/* ── CSS Custom Properties ─────────────────────────────────────────── */
:root {
    --sp-green: #16a34a;
    --sp-green-dark: #14532d;
    --sp-green-light: #dcfce7;
    --sp-green-mid: #bbf7d0;
    --sp-orange: #ea580c;
    --sp-red: #dc2626;
    --sp-text: #111827;
    --sp-text-muted: #6b7280;
    --sp-border: #e5e7eb;
    --sp-bg: #f9fafb;
    --sp-white: #ffffff;
    --sp-shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --sp-shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
    --sp-shadow-lg: 0 12px 40px rgba(0, 0, 0, .14);
    --sp-radius: 12px;
    --sp-radius-sm: 8px;
    --sp-radius-xs: 6px;
    --sp-tr-fast: 150ms ease;
    --sp-tr: 250ms ease;
}

/* ── Breadcrumb ───────────────────────────────────────────────────── */
.sp-breadcrumb {
    background: var(--sp-bg);
    border-bottom: 1px solid var(--sp-border);
    padding: 14px 0;
}

.sp-breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--sp-text-muted);
}

.sp-breadcrumb__list a {
    color: var(--sp-text-muted);
    text-decoration: none;
    transition: color var(--sp-tr-fast);
}

.sp-breadcrumb__list a:hover {
    color: var(--sp-green);
}

.sp-breadcrumb__list a:focus-visible {
    outline: 2px solid var(--sp-green);
    outline-offset: 2px;
    border-radius: 2px;
}

.sp-breadcrumb__list [aria-current="page"] {
    color: var(--sp-text);
    font-weight: 500;
}

/* ── Layout Grid ──────────────────────────────────────────────────── */
.sp-layout {
    padding: 48px 0 24px;
}

.sp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* ── Gallery ──────────────────────────────────────────────────────── */
.sp-gallery {
    position: sticky;
    top: 80px;
}

.sp-gallery__main {
    position: relative;
    border-radius: var(--sp-radius);
    overflow: hidden;
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.sp-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease, opacity 200ms ease;
}

.sp-gallery__main:hover .sp-gallery__main-img {
    transform: scale(1.04);
}

.sp-gallery__zoom-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    border: 1px solid var(--sp-border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-text);
    cursor: pointer;
    transition: background var(--sp-tr-fast), transform var(--sp-tr-fast);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sp-gallery__zoom-btn:hover {
    background: var(--sp-white);
    transform: scale(1.08);
}

.sp-gallery__zoom-btn:focus-visible {
    outline: 2px solid var(--sp-green);
    outline-offset: 2px;
}

.sp-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.sp-gallery__thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--sp-bg);
    padding: 0;
    cursor: pointer;
    transition: border-color var(--sp-tr-fast), opacity var(--sp-tr-fast);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.65;
    transition: opacity var(--sp-tr-fast);
}

.sp-gallery__thumb:hover img,
.sp-gallery__thumb--active img {
    opacity: 1;
}

.sp-gallery__thumb--active {
    border-color: var(--sp-green);
}

.sp-gallery__thumb:focus-visible {
    outline: 2px solid var(--sp-green);
    outline-offset: 2px;
}

/* Badges */
.sp-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
}

.sp-badge--sale {
    background: var(--sp-red);
    color: #fff;
}

.sp-badge--oos {
    background: #374151;
    color: #fff;
    top: 16px;
    left: auto;
    right: 16px;
}

.sp-badge--sm {
    font-size: 10px;
    padding: 3px 8px;
}

/* ── Summary ──────────────────────────────────────────────────────── */
.sp-summary {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Category tags */
.sp-summary__cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.sp-cat-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--sp-green);
    background: var(--sp-green-light);
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background var(--sp-tr-fast), color var(--sp-tr-fast);
}

.sp-cat-tag:hover {
    background: var(--sp-green);
    color: #fff;
}

.sp-cat-tag:focus-visible {
    outline: 2px solid var(--sp-green);
    outline-offset: 2px;
}

/* Title */
.sp-summary__title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--sp-text);
    margin: 0 0 16px;
    line-height: 1.15;
    text-wrap: balance;
    letter-spacing: -0.02em;
}

/* Rating */
.sp-summary__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sp-stars {
    display: flex;
    gap: 2px;
}

.sp-star {
    fill: #d1d5db;
    stroke: none;
}

.sp-star--filled {
    fill: #f59e0b;
}

.sp-rating-text {
    font-size: 14px;
    color: var(--sp-text-muted);
}

.sp-rating-link {
    font-size: 13px;
    color: var(--sp-green);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--sp-tr-fast);
}

.sp-rating-link:hover {
    color: var(--sp-green-dark);
}

.sp-rating-link:focus-visible {
    outline: 2px solid var(--sp-green);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Price */
.sp-summary__price {
    margin-bottom: 20px;
}

.sp-summary__price .price {
    display: flex !important;
    align-items: baseline !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.sp-summary__price .price ins,
.sp-summary__price .woocommerce-Price-amount {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: var(--sp-green) !important;
    text-decoration: none !important;
    background: transparent !important;
    font-variant-numeric: tabular-nums;
}

.sp-summary__price .price del {
    font-size: 18px !important;
    color: var(--sp-text-muted) !important;
    font-weight: 400 !important;
}

/* Short description */
.sp-summary__shortdesc {
    font-size: 15px;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--sp-border);
}

.sp-summary__shortdesc p {
    margin: 0 0 10px;
}

.sp-summary__shortdesc p:last-child {
    margin-bottom: 0;
}

/* ── Cart Form ────────────────────────────────────────────────────── */
.sp-cart-form {
    margin: 0 !important;
}

.sp-contact-only {
    margin-bottom: 24px;
}

.sp-contact-only__note {
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--sp-text-muted);
}

.sp-qty-group {
    margin-bottom: 16px;
}

.sp-qty-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--sp-text);
    margin-bottom: 8px;
}

.sp-qty-control {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    overflow: hidden;
    background: var(--sp-white);
}

.sp-qty-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--sp-text);
    transition: background var(--sp-tr-fast), color var(--sp-tr-fast);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.sp-qty-btn:hover {
    background: var(--sp-green-light);
    color: var(--sp-green);
}

.sp-qty-btn:focus-visible {
    outline: 2px solid var(--sp-green);
    outline-offset: -2px;
}

.sp-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sp-qty-control .qty {
    width: 60px !important;
    height: 46px !important;
    border: none !important;
    border-left: 1px solid var(--sp-border) !important;
    border-right: 1px solid var(--sp-border) !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--sp-text) !important;
    background: var(--sp-white) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    -moz-appearance: textfield;
    appearance: textfield;
    font-variant-numeric: tabular-nums;
}


.sp-qty-control .qty::-webkit-outer-spin-button,
.sp-qty-control .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.sp-qty-control .qty:focus-visible {
    outline: 2px solid var(--sp-green);
    outline-offset: -2px;
}

/* Cart action buttons */
.sp-cart-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.sp-btn-cart,
.sp-btn-buynow,
.sp-btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 28px;
    border-radius: var(--sp-radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.sp-btn-cart,
.sp-btn-contact {
    flex: 1;
    min-width: 180px;
    background: var(--sp-green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, .35);
    transition: background var(--sp-tr), box-shadow var(--sp-tr), transform var(--sp-tr);
}

.sp-btn-cart:hover,
.sp-btn-contact:hover {
    background: var(--sp-green-dark);
    box-shadow: 0 6px 20px rgba(22, 163, 74, .45);
    transform: translateY(-2px);
    color: #fff;
}

.sp-btn-cart:focus-visible,
.sp-btn-contact:focus-visible {
    outline: 2px solid var(--sp-green-dark);
    outline-offset: 2px;
}

.sp-btn-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sp-btn-buynow {
    background: transparent;
    color: var(--sp-green);
    border: 2px solid var(--sp-green);
    transition: background var(--sp-tr), color var(--sp-tr), border-color var(--sp-tr);
}

.sp-btn-buynow:hover {
    background: var(--sp-green);
    color: #fff;
}

.sp-btn-buynow:focus-visible {
    outline: 2px solid var(--sp-green);
    outline-offset: 2px;
}

/* Out of stock */
.sp-out-of-stock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--sp-radius-sm);
    color: var(--sp-red);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* ── Trust Signals ─────────────────────────────────────────────────── */
.sp-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
}

.sp-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sp-trust__icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.sp-trust__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-trust__text strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--sp-text);
    line-height: 1.3;
}

.sp-trust__text span {
    font-size: 12px;
    color: var(--sp-text-muted);
}

/* ── Product Meta ──────────────────────────────────────────────────── */
.sp-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--sp-border);
    font-size: 14px;
}

.sp-meta__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-meta__label {
    color: var(--sp-text-muted);
    font-weight: 500;
    flex-shrink: 0;
    min-width: 72px;
}

.sp-meta__value {
    color: var(--sp-text);
    font-weight: 500;
}

.sp-meta__cat-link {
    color: var(--sp-green);
    text-decoration: none;
    transition: color var(--sp-tr-fast);
}

.sp-meta__cat-link:hover {
    color: var(--sp-green-dark);
    text-decoration: underline;
}

.sp-meta__cat-link:focus-visible {
    outline: 2px solid var(--sp-green);
    outline-offset: 2px;
    border-radius: 2px;
}

.sp-stock-instock {
    color: var(--sp-green);
}

.sp-stock-outofstock {
    color: var(--sp-red);
}

/* ── Tabs Section ─────────────────────────────────────────────────── */
.sp-tabs-section {
    padding: 56px 0;
    background: var(--sp-bg);
}

.sp-tabs__nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--sp-border);
    padding-bottom: 0;
}

.sp-tabs__tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--sp-text-muted);
    cursor: pointer;
    border-radius: var(--sp-radius-xs) var(--sp-radius-xs) 0 0;
    transition: color var(--sp-tr-fast), background var(--sp-tr-fast);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    bottom: -2px;
    border-bottom: 2px solid transparent;
}

.sp-tabs__tab:hover {
    color: var(--sp-text);
    background: var(--sp-white);
}

.sp-tabs__tab--active {
    color: var(--sp-green) !important;
    border-bottom-color: var(--sp-green);
    background: var(--sp-white);
}

.sp-tabs__tab:focus-visible {
    outline: 2px solid var(--sp-green);
    outline-offset: -2px;
}

.sp-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--sp-green-light);
    color: var(--sp-green);
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
}

.sp-tabs__panel {
    background: var(--sp-white);
    border-radius: var(--sp-radius);
    padding: 40px;
    border: 1px solid var(--sp-border);
    box-shadow: var(--sp-shadow-sm);
}

.sp-tabs__panel[hidden] {
    display: none !important;
}

.sp-desc-content {
    font-size: 15px;
    color: #374151;
    line-height: 1.9;
}

.sp-desc-content h2,
.sp-desc-content h3 {
    color: var(--sp-text);
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    text-wrap: balance;
}

.sp-desc-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--sp-radius-sm);
}

.sp-desc-content ul,
.sp-desc-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.sp-desc-content li {
    margin-bottom: 6px;
}

.sp-no-content {
    color: var(--sp-text-muted);
    font-style: italic;
}

/* Attributes table */
.sp-attrs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sp-attrs-table tr:nth-child(even) {
    background: var(--sp-bg);
}

.sp-attrs-table th,
.sp-attrs-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sp-border);
}

.sp-attrs-table th {
    font-weight: 600;
    color: var(--sp-text);
    width: 35%;
}

.sp-attrs-table td {
    color: #374151;
}

/* WooCommerce reviews override */
.sp-tabs__panel .comment-respond {
    margin-top: 40px;
}

.sp-tabs__panel .comment-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--sp-text);
}

.sp-tabs__panel .comment-form input[type="text"],
.sp-tabs__panel .comment-form input[type="email"],
.sp-tabs__panel .comment-form textarea {
    width: 100%;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-xs);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--sp-text);
    transition: border-color var(--sp-tr-fast);
    box-sizing: border-box;
}

.sp-tabs__panel .comment-form input[type="text"]:focus,
.sp-tabs__panel .comment-form input[type="email"]:focus,
.sp-tabs__panel .comment-form textarea:focus {
    outline: none;
    border-color: var(--sp-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}

.sp-tabs__panel .comment-form-comment textarea {
    min-height: 120px;
}

.sp-tabs__panel .form-submit .submit {
    background: var(--sp-green);
    color: #fff;
    border: none;
    border-radius: var(--sp-radius-xs);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--sp-tr), transform var(--sp-tr);
    touch-action: manipulation;
}

.sp-tabs__panel .form-submit .submit:hover {
    background: var(--sp-green-dark);
    transform: translateY(-1px);
}

.sp-tabs__panel .form-submit .submit:focus-visible {
    outline: 2px solid var(--sp-green-dark);
    outline-offset: 2px;
}

/* ── Related Products ─────────────────────────────────────────────── */
.sp-related {
    padding: 60px 0 80px;
}

.sp-related__header {
    text-align: center;
    margin-bottom: 40px;
}

.sp-related__title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--sp-text);
    margin: 10px 0 0;
    text-wrap: balance;
}

.sp-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sp-related__card {
    background: var(--sp-white);
    border-radius: var(--sp-radius);
    overflow: hidden;
    border: 1px solid var(--sp-border);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--sp-tr), transform var(--sp-tr);
    box-shadow: var(--sp-shadow-sm);
}

.sp-related__card:hover {
    box-shadow: var(--sp-shadow-md);
    transform: translateY(-4px);
}

.sp-related__img-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.sp-related__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.sp-related__card:hover .sp-related__img {
    transform: scale(1.05);
}

.sp-related__info {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sp-related__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--sp-text);
    text-decoration: none;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color var(--sp-tr-fast);
}

.sp-related__name:hover {
    color: var(--sp-green);
}

.sp-related__name:focus-visible {
    outline: 2px solid var(--sp-green);
    outline-offset: 2px;
    border-radius: 2px;
}

.sp-related__stars {
    display: flex;
    gap: 2px;
}

.sp-related__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--sp-green);
    font-variant-numeric: tabular-nums;
}

.sp-related__price .woocommerce-Price-amount {
    color: var(--sp-green) !important;
}

.sp-related__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 9px 16px;
    border: 1.5px solid var(--sp-green);
    border-radius: var(--sp-radius-xs);
    color: var(--sp-green);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--sp-tr-fast), color var(--sp-tr-fast);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sp-related__btn:hover {
    background: var(--sp-green);
    color: #fff;
}

.sp-related__btn:focus-visible {
    outline: 2px solid var(--sp-green);
    outline-offset: 2px;
}

/* ── Sticky Bar (mobile) ──────────────────────────────────────────── */
.sp-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--sp-white);
    border-top: 1px solid var(--sp-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .10);
    padding: 12px 16px;
    transform: translateY(100%);
    transition: transform 300ms ease;
    display: none;
}

.sp-sticky-bar.sp-sticky-bar--visible {
    transform: translateY(0);
}

.sp-sticky-bar__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 600px;
    margin: 0 auto;
}

.sp-sticky-bar__info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    flex: 1;
}

.sp-sticky-bar__thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
}

.sp-sticky-bar__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-sticky-bar__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--sp-text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sp-sticky-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--sp-green);
    color: #fff;
    border: none;
    border-radius: var(--sp-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--sp-tr-fast);
    white-space: nowrap;
    text-decoration: none;
}

.sp-sticky-bar__btn:hover {
    background: var(--sp-green-dark);
}

.sp-sticky-bar__btn:focus-visible {
    outline: 2px solid var(--sp-green-dark);
    outline-offset: 2px;
}

.sp-sticky-bar__btn--disabled {
    background: #9ca3af;
    cursor: default;
}

.sp-sticky-bar__btn--disabled:hover {
    background: #9ca3af;
}

/* ── Lightbox ─────────────────────────────────────────────────────── */
.sp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sp-lightbox[hidden] {
    display: none !important;
}

.sp-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    cursor: pointer;
}

.sp-lightbox__img {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 900px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--sp-radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

.sp-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background var(--sp-tr-fast), transform var(--sp-tr-fast);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sp-lightbox__close:hover {
    background: rgba(255, 255, 255, .25);
    transform: scale(1.1);
}

.sp-lightbox__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ── Toast ────────────────────────────────────────────────────────── */
.sp-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a2e;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease, transform 300ms ease;
    white-space: nowrap;
    z-index: 9999;
}

.sp-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

    .sp-gallery__main-img,
    .sp-gallery__main:hover .sp-gallery__main-img,
    .sp-related__img,
    .sp-related__card:hover .sp-related__img,
    .sp-sticky-bar,
    .sp-lightbox__close,
    .sp-btn-cart,
    .sp-btn-buynow,
    .sp-tabs__tab {
        transition: none;
    }

    .sp-gallery__main:hover .sp-gallery__main-img,
    .sp-related__card:hover .sp-related__img {
        transform: none;
    }

    .sp-related__card:hover {
        transform: none;
    }

    .sp-btn-cart:hover {
        transform: none;
    }
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media screen and (max-width: 1024px) {
    .sp-grid {
        gap: 36px;
    }

    .sp-related__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .sp-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sp-gallery {
        position: static;
    }

    .sp-summary__price .price ins,
    .sp-summary__price .woocommerce-Price-amount {
        font-size: 28px !important;
    }

    .sp-sticky-bar {
        display: block;
    }

    .sp-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 640px) {
    .sp-layout {
        padding: 24px 0 16px;
    }

    .sp-summary__title {
        font-size: 26px;
    }

    .sp-trust {
        grid-template-columns: 1fr;
    }

    .sp-cart-actions {
        flex-direction: column;
    }

    .sp-btn-cart,
    .sp-btn-buynow {
        width: 100%;
    }

    .sp-tabs__panel {
        padding: 24px 20px;
    }

    .sp-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .sp-related__info {
        padding: 12px 14px 14px;
    }
}

@media screen and (max-width: 480px) {
    .sp-related__grid {
        grid-template-columns: 1fr;
    }

    .sp-gallery__thumbs {
        gap: 8px;
    }

    .sp-gallery__thumb {
        width: 68px;
        height: 68px;
    }
}




/* ==========================================================================
   FRONT PAGE – HOME SECTIONS
   ========================================================================== */

/* Custom Properties for Category Colors */
:root {
    --cat-purple: #7c3aed;
    --cat-orange: #ea580c;
    --cat-red: #dc2626;
    --cat-green: #16a34a;
    --cat-pink: #db2777;
    --green-primary: #16a34a;
    --green-dark: #14532d;
    --green-light: #dcfce7;
}

/* ── Shared Section Styles ─────────────────────────────────── */
.section-header {
    margin-bottom: 40px;
}

.section-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--green-primary);
    background: var(--green-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 12px;
    line-height: 1.2;
}

.section-desc {
    font-size: 16px;
    color: #555;
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

.text-center .section-desc {
    margin: 0 auto;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-primary);
    color: #fff;
    border: 2px solid var(--green-primary);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, .35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-color: #fff;
}

.btn-outline-dark {
    background: transparent;
    color: #333;
    border: 2px solid #d1d5db;
    font-size: 14px;
    padding: 10px 20px;
}

.btn-outline-dark:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .5);
    font-size: 14px;
    padding: 10px 22px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

/* ── HERO SECTION ──────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 540px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 80px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    color: #bbf7d0;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .2);
    letter-spacing: .5px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-title span {
    color: #86efac;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, .8);
    margin: 0 0 32px;
    line-height: 1.7;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding-top: 28px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat strong {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.stat span {
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    letter-spacing: .5px;
}

/* ── CATEGORY CARDS ────────────────────────────────────────── */
.section-categories {
    padding: 72px 0;
    background: #f8fafc;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 28px 22px 22px;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.cat-card:hover {
    border-color: var(--card-accent);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
}

.cat-card:hover::before {
    transform: scaleX(1);
}

.cat-card-icon {
    font-size: 40px;
    margin-bottom: 14px;
    line-height: 1;
}

.cat-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.3;
}

.cat-card-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 14px;
    line-height: 1.5;
    flex: 1;
}

.cat-card-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--card-accent);
    background: color-mix(in srgb, var(--card-accent) 10%, white);
    padding: 3px 10px;
    border-radius: 12px;
}

.cat-card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 18px;
    color: var(--card-accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: all .3s ease;
}

.cat-card:hover .cat-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── PRODUCTS SECTIONS ─────────────────────────────────────── */
.section-products {
    padding: 72px 0;
}

.section-alt {
    background: #f8fafc;
}

/* ── SPLIT SECTION ─────────────────────────────────────────── */
.section-split {
    padding: 72px 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.split-col {
    display: flex;
    flex-direction: column;
}

.split-footer {
    margin-top: 24px;
}

/* ── FLORAL (lẵng hoa) SECTION ─────────────────────────────── */
.section-floral {
    padding: 80px 0;
    background: linear-gradient(135deg, #831843 0%, #be185d 50%, #ec4899 100%);
    position: relative;
    overflow: hidden;
}

.section-floral::before {
    content: '💐';
    position: absolute;
    font-size: 300px;
    opacity: .05;
    right: -40px;
    top: -40px;
    line-height: 1;
}

.section-floral .section-tag {
    color: #fce7f3;
    background: rgba(255, 255, 255, .15);
}

.section-floral .section-title,
.section-floral .section-desc {
    color: #fff;
}

.section-floral .section-desc {
    color: rgba(255, 255, 255, .85);
}

/* Product cards styling inside floral section */
.section-floral .woocommerce ul.products li.product {
    background: rgba(255, 255, 255, .95);
}

/* ── WHY SECTION ───────────────────────────────────────────── */
.section-why {
    padding: 80px 0;
    background: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.why-item {
    text-align: center;
    padding: 36px 24px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e8f5e9;
    transition: all .3s ease;
}

.why-item:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(22, 163, 74, .1);
    transform: translateY(-4px);
    border-color: var(--green-primary);
}

.why-icon {
    font-size: 44px;
    margin-bottom: 18px;
    display: block;
}

.why-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.why-item p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media screen and (max-width: 1100px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 640px) {
    .hero-content {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        gap: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-categories {
        padding: 48px 0;
    }

    .section-products,
    .section-split,
    .section-floral,
    .section-why {
        padding: 48px 0;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cat-card {
        padding: 18px 14px 14px;
    }

    .cat-card-icon {
        font-size: 30px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .section-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ── ABOUT PAGE ─────────────────────────────────────────────── */
.about-page-hero .hero-bg {
    background: none;
}

.about-story-section {
    padding: 72px 0;
}

.about-story-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.about-copy {
    display: grid;
    gap: 16px;
    color: #4b5563;
    line-height: 1.8;
}

.about-copy p {
    margin: 0;
}

.about-feature-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 14px;
    color: #4b5563;
    line-height: 1.7;
}

.about-editor-section {
    background: #f8fafc;
}

.about-editor-content {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
    line-height: 1.8;
    color: #374151;
}

.about-editor-content > :first-child {
    margin-top: 0;
}

.about-editor-content > :last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 640px) {
    .about-story-card,
    .about-editor-content {
        padding: 24px;
    }
}

/* ==========================================================================
   PRODUCT ARCHIVE / CATEGORY PAGE  –  Premium Redesign
   ========================================================================== */

/* Page wrapper */
.arc-page {
    background: #f8f9fa;
    min-height: 60vh;
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.arc-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    min-height: 280px;
    display: flex;
    align-items: center;
}

/* Gradient fallback */
.arc-hero--gradient {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #16a34a 100%);
}

/* Image variant */
.arc-hero--has-image {
    background-image: var(--arc-hero-bg);
    background-size: cover;
    background-position: center;
}

.arc-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(6, 78, 59, 0.88) 0%,
            rgba(6, 95, 70, 0.75) 100%);
}

.arc-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Breadcrumb */
.arc-breadcrumb {
    margin-bottom: 20px;
}

.arc-breadcrumb__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.arc-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.arc-breadcrumb__item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.arc-breadcrumb__item a:hover {
    color: #fff;
}

.arc-breadcrumb__item--current span {
    color: #86efac;
    font-weight: 600;
}

.arc-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* Hero content */
.arc-hero__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arc-hero__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}

.arc-hero__desc {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    line-height: 1.6;
}

.arc-hero__count {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: fit-content;
}

/* ── TOOLBAR ──────────────────────────────────────────────────────────────── */
.arc-toolbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    /* sticks just below our site header */
    z-index: 80;
    padding: 12px 0;
}

.arc-toolbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.arc-toolbar__count,
.arc-toolbar__count .woocommerce-result-count {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
}

/* WooCommerce sort select */
.arc-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arc-toolbar__sort::before {
    content: "Sắp xếp:";
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.arc-toolbar__sort .woocommerce-ordering {
    margin: 0;
}

.arc-toolbar__sort select.orderby {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 36px 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center / 16px,
        #f9fafb;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s ease;
}

.arc-toolbar__sort select.orderby:hover {
    border-color: #9ca3af;
    background-color: #fff;
}

.arc-toolbar__sort select.orderby:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
    background-color: #fff;
}

/* ── MAIN AREA ────────────────────────────────────────────────────────────── */
.arc-main {
    padding: 40px 15px 64px;
}

/* ── PRODUCT GRID ─────────────────────────────────────────────────────────── */
.arc-product-grid {
    list-style: none;
    margin: 0 0 48px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── PRODUCT CARD ─────────────────────────────────────────────────────────── */
.arc-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.arc-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.arc-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* Image */
.arc-card__img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* modified border radius to look like frame */
    background: #fafafa;
    aspect-ratio: 1 / 1;
    margin: 10px;
    padding: 10px;
    border: 1px solid var(--woo-border);
    transition: border-color 0.3s ease;
}

.arc-card:hover .arc-card__img-wrap {
    border-color: var(--woo-primary);
}

.arc-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    border-radius: 6px;
    display: block;
}

.arc-card:hover .arc-card__img {
    transform: scale(1.06);
}

/* Overlay */
.arc-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.arc-card:hover .arc-card__overlay {
    opacity: 1;
}

.arc-card__quick-view {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Badges */
.arc-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
}

.arc-card__badge--sale {
    background: #ef4444;
    color: #fff;
}

.arc-card__badge--soldout {
    background: #6b7280;
    color: #fff;
    top: auto;
    bottom: 12px;
    left: 12px;
}

/* Info area */
.arc-card__info {
    padding: 16px 18px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arc-card__cat {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #16a34a;
}

.arc-card__name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Star rating */
.arc-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.arc-card__stars {
    display: flex;
    gap: 2px;
}

.arc-card__rating-count {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Price */
.arc-card__price {
    font-size: 1rem;
    font-weight: 800;
    color: #16a34a;
    margin-top: 2px;
}

.arc-card__btn--contact {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.arc-card__price del {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #9ca3af;
    margin-right: 6px;
}

.arc-card__price ins {
    text-decoration: none;
}

/* Footer / Add to cart */
.arc-card__footer {
    padding: 0 18px 18px;
}

/* Override WooCommerce loop button */
.arc-product-grid .arc-card__footer .button,
.arc-product-grid .arc-card__footer a.button,
.arc-product-grid .arc-card__footer .add_to_cart_button,
.arc-product-grid .arc-card__footer .arc-card__btn,
.arc-product-grid .arc-card__footer .added_to_cart {
    display: inline-block !important;
    width: 100% !important;
    text-align: center !important;
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}

.arc-product-grid .arc-card__footer .added_to_cart {
    margin-top: 10px !important;
    background: linear-gradient(135deg, #4ade80, #22c55e) !important;
    /* slightly different green or outline? */
}

.arc-product-grid .arc-card__footer .button:hover,
.arc-product-grid .arc-card__footer a.button:hover,
.arc-product-grid .arc-card__footer .add_to_cart_button:hover,
.arc-product-grid .arc-card__footer .arc-card__btn:hover,
.arc-product-grid .arc-card__footer .added_to_cart:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35) !important;
    color: #fff !important;
}

.arc-product-grid .arc-card__footer .button:focus-visible,
.arc-product-grid .arc-card__footer a.button:focus-visible,
.arc-product-grid .arc-card__footer .arc-card__btn:focus-visible .arc-product-grid .arc-card__footer .add_to_cart_button:focus-visible,
.arc-product-grid .arc-card__footer .added_to_cart:focus-visible {
    outline: 2px solid #16a34a !important;
    outline-offset: 3px !important;
}


.arc-card__sold-out {
    display: block;
    text-align: center;
    padding: 11px 16px;
    background: #f3f4f6;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
}

/* ── PAGINATION ───────────────────────────────────────────────────────────── */
.arc-pagination {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.arc-pagination .woocommerce-pagination {
    margin: 0;
}

.arc-pagination .page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.arc-pagination .page-numbers li a,
.arc-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.arc-pagination .page-numbers li a:hover {
    border-color: #16a34a;
    color: #16a34a;
}

.arc-pagination .page-numbers li span.current {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.arc-pagination .page-numbers li a:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 3px;
}

/* ── EMPTY STATE ──────────────────────────────────────────────────────────── */
.arc-empty {
    text-align: center;
    padding: 96px 20px;
}

.arc-empty__icon {
    font-size: 4rem;
    margin-bottom: 16px;
    filter: grayscale(0.3);
}

.arc-empty__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 10px;
}

.arc-empty__desc {
    color: #6b7280;
    font-size: 1rem;
    max-width: 380px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.arc-empty__btn {
    display: inline-flex;
    align-items: center;
    background: #16a34a;
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.arc-empty__btn:hover {
    background: #14532d;
    transform: translateY(-2px);
}

.arc-empty__btn:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 3px;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .arc-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .arc-hero {
        padding: 48px 0 40px;
        min-height: 200px;
    }

    .arc-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .arc-main {
        padding: 24px 12px 48px;
    }
}

@media (max-width: 480px) {
    .arc-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .arc-card__info {
        padding: 12px 12px 8px;
    }

    .arc-card__footer {
        padding: 0 12px 12px;
    }

    .arc-card__name {
        font-size: 0.8125rem;
    }

    .arc-card__price {
        font-size: 0.9375rem;
    }
}

@media (max-width: 360px) {
    .arc-product-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Hide default WooCommerce sidebar & wrapper divs ─────────────────────── */
body.term-description,
.woocommerce-products-header {
    display: none;
}

/* WooCommerce notices inside arc-main */
.arc-main .woocommerce-info,
.arc-main .woocommerce-error,
.arc-main .woocommerce-message {
    margin-bottom: 24px;
    border-radius: 12px;
}

/* ==========================================================================
   PRICE FILTER BAR
   ========================================================================== */

.arc-filter-bar {
    padding: 0 15px 0;
    margin-bottom: 0;
}

.arc-price-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 24px;
    margin: 20px 0 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Label */
.arc-price-filter__label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
    flex-shrink: 0;
}

.arc-price-filter__label svg {
    color: #16a34a;
    flex-shrink: 0;
}

/* ── DUAL-RANGE SLIDER ─────────────────────────────────────────────────── */
.arc-price-slider {
    flex: 1;
    min-width: 180px;
    max-width: 340px;
    position: relative;
    padding-top: 22px;
    /* space for tooltip */
}

.arc-price-slider__track {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
}

.arc-price-slider__fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: #16a34a;
    border-radius: 999px;
    pointer-events: none;
}

/* Range inputs stacked */
.arc-price-slider__range {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    background: transparent;
    pointer-events: none;
    margin: 0;
    outline: none;
}

.arc-price-slider__range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #16a34a;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
    pointer-events: all;
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    z-index: 2;
}

.arc-price-slider__range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #16a34a;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
    pointer-events: all;
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.arc-price-slider__range:active::-webkit-slider-thumb {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.18);
    cursor: grabbing;
}

.arc-price-slider__range:active::-moz-range-thumb {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.18);
    cursor: grabbing;
}

.arc-price-slider__range:focus-visible::-webkit-slider-thumb {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

/* Tooltip labels */
.arc-price-slider__tooltips {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    pointer-events: none;
}

.arc-price-slider__tooltip {
    position: absolute;
    transform: translateX(-50%);
    background: #16a34a;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
    top: -4px;
    /* above the track */
}

.arc-price-slider__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #16a34a;
}

/* ── NUMBER INPUTS ──────────────────────────────────────────────────────── */
.arc-price-filter__inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.arc-price-filter__dash {
    color: #9ca3af;
    font-size: 1rem;
    flex-shrink: 0;
}

.arc-price-filter__input-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.arc-price-filter__input-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.arc-price-filter__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.arc-price-filter__input {
    width: 110px;
    padding: 7px 24px 7px 10px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #374151;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.arc-price-filter__input::-webkit-inner-spin-button,
.arc-price-filter__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.arc-price-filter__input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.arc-price-filter__input-suffix {
    position: absolute;
    right: 9px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    pointer-events: none;
}

/* ── ACTIONS ────────────────────────────────────────────────────────────── */
.arc-price-filter__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.arc-price-filter__btn-apply {
    padding: 9px 20px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.arc-price-filter__btn-apply:hover {
    background: #14532d;
    transform: translateY(-1px);
}

.arc-price-filter__btn-apply:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 3px;
}

.arc-price-filter__btn-clear {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 14px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.arc-price-filter__btn-clear:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Active filter chip (below the form when filtered) */
.arc-filter-active {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 12px;
}

.arc-filter-active__chip {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .arc-price-filter {
        padding: 14px 16px;
        gap: 12px;
    }

    .arc-price-slider {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .arc-price-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .arc-price-filter__inputs {
        width: 100%;
    }

    .arc-price-filter__input {
        width: 90px;
    }

    .arc-price-filter__actions {
        margin-left: 0;
        width: 100%;
    }

    .arc-price-filter__btn-apply {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   CONTACT FLOATING POPUP
   ========================================================================== */

/* Wrapper – góc phải dưới cùng */
.contact-popup-wrap {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
    /* Con cái tự bật pointer-events */
}

/* ── Menu tùy chọn liên hệ ── */
.contact-popup-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Trạng thái đóng */
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    transform-origin: bottom right;
    transition:
        opacity 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    visibility: hidden;
}

/* Trạng thái mở */
.contact-popup-wrap.is-open .contact-popup-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

/* ── Mỗi item liên hệ ── */
.contact-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
    /* Stagger animation khi mở */
    animation: none;
}

.contact-popup-wrap.is-open .contact-option:nth-child(1) {
    animation: contactItemIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) 0.00s both;
}

.contact-popup-wrap.is-open .contact-option:nth-child(2) {
    animation: contactItemIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) 0.06s both;
}

.contact-popup-wrap.is-open .contact-option:nth-child(3) {
    animation: contactItemIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
}

@keyframes contactItemIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

.contact-option:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

/* Icon vòng tròn */
.contact-option__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.contact-option:hover .contact-option__icon {
    transform: scale(1.1);
}

/* Text nhãn */
.contact-option__label {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    flex: 1;
}

/* Badge số điện thoại / phụ đề */
.contact-option__badge {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    font-weight: 500;
}

/* Màu riêng từng kênh */

/* Zalo */
.contact-option--zalo .contact-option__icon {
    background: #e8f0ff;
    color: #0068FF;
}

.contact-option--zalo:hover {
    background: #f0f5ff;
}

.contact-option--zalo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0068FF;
    border-radius: 14px 0 0 14px;
}

/* Điện thoại */
.contact-option--phone .contact-option__icon {
    background: #e8f5e9;
    color: #2e7d32;
}

.contact-option--phone:hover {
    background: #f1faf1;
}

.contact-option--phone::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #4CAF50;
    border-radius: 14px 0 0 14px;
}

/* Facebook */
.contact-option--facebook .contact-option__icon {
    background: #e8f0fe;
    color: #1877F2;
}

.contact-option--facebook:hover {
    background: #eef3fe;
}

.contact-option--facebook::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #1877F2;
    border-radius: 14px 0 0 14px;
}

/* ── Nút toggle chính ── */
.contact-toggle-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    box-shadow:
        0 6px 24px rgba(76, 175, 80, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.12);
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        background 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.contact-toggle-btn:hover {
    transform: scale(1.08);
    box-shadow:
        0 10px 32px rgba(76, 175, 80, 0.55),
        0 3px 8px rgba(0, 0, 0, 0.14);
}

.contact-toggle-btn:focus-visible {
    outline: 3px solid rgba(76, 175, 80, 0.6);
    outline-offset: 3px;
}

/* Trạng thái mở – nền đỏ (để đóng) */
.contact-popup-wrap.is-open .contact-toggle-btn {
    background: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
    box-shadow:
        0 6px 24px rgba(239, 83, 80, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Icon trong nút */
.contact-toggle-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: absolute;
}

.contact-toggle-btn__icon--open {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.contact-toggle-btn__icon--close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

.contact-popup-wrap.is-open .contact-toggle-btn__icon--open {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

.contact-popup-wrap.is-open .contact-toggle-btn__icon--close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Nhãn bên dưới nút */
.contact-toggle-btn__label {
    position: absolute;
    bottom: -20px;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
}

/* Pulse animation – thu hút chú ý */
.contact-toggle-btn__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.35);
    animation: contactPulse 2.4s ease-out infinite;
    pointer-events: none;
}

.contact-popup-wrap.is-open .contact-toggle-btn__pulse {
    animation: none;
    opacity: 0;
}

@keyframes contactPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.8);
        opacity: 0;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ── Responsive mobile ── */
@media (max-width: 480px) {
    .contact-popup-wrap {
        bottom: 18px;
        right: 14px;
    }

    .contact-toggle-btn {
        width: 56px;
        height: 56px;
    }

    .contact-option {
        min-width: 170px;
        padding: 8px 12px 8px 10px;
    }

    .contact-option__icon {
        width: 38px;
        height: 38px;
    }

    .contact-option__badge {
        display: none;
        /* Ẩn badge trên màn nhỏ để gọn hơn */
    }
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */

.scroll-to-top-btn {
    position: fixed;
    bottom: 110px;
    right: 24px;
    z-index: 99989;

    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    color: #4CAF50;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.14),
        0 1px 4px rgba(0, 0, 0, 0.08);

    /* Ẩn mặc định – JS thêm .is-visible để hiện */
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease,
        background 0.2s ease;

    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.scroll-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
    background: #4CAF50;
    color: #fff;
    box-shadow:
        0 8px 24px rgba(76, 175, 80, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px) scale(1.05);
}

.scroll-to-top-btn:focus-visible {
    outline: 3px solid rgba(76, 175, 80, 0.55);
    outline-offset: 3px;
}

/* Tooltip "Lên đầu" hiện khi hover */
.scroll-to-top-btn::before {
    content: 'Lên đầu';
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    background: rgba(17, 24, 39, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-50%) translateX(4px);
    letter-spacing: 0.02em;
}

.scroll-to-top-btn:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.scroll-to-top-btn svg {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.scroll-to-top-btn:hover svg {
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 480px) {
    .scroll-to-top-btn {
        bottom: 98px;
        right: 14px;
        width: 40px;
        height: 40px;
    }

    .scroll-to-top-btn::before {
        display: none;
    }
}

/* ── Ad Banner Popup ────────────────────────────────────────────────── */
.ad-banner-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ad-banner-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.ad-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ad-banner-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    z-index: 1;
}

.ad-banner-popup.is-visible .ad-banner-content {
    transform: scale(1) translateY(0);
}

.ad-banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.ad-banner-close:hover {
    background: #fff;
    color: #e74c3c;
    transform: rotate(90deg);
}

.ad-banner-link img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
}

.ad-banner-text {
    padding: 24px;
    text-align: center;
}

.ad-banner-text h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 800;
}

.ad-banner-text p {
    margin: 0 0 20px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.btn-ad-shop {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-ad-shop:hover {
    background: #43A047;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
    color: #fff;
}