/* =========================================
   PREMIUM UI/UX OVERHAUL v2.0
   Sitewide Visual Upgrade
   ========================================= */

/* --- LOADING SCREEN --- */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FAF8F5 0%, #F0EBE3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(212, 163, 115, 0.2);
    border-top: 3px solid var(--accent, #D4A373);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- SMOOTH SCROLL BAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F0EB;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4A373, #A68A64);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #C49363, #967A54);
}

/* --- HEADER POLISH --- */
header {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

header.scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 30px rgba(0, 0, 0, 0.06) !important;
}

/* Cart Button Fix */
#cart-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Cart Count Badge */
.cart-count {
    background: linear-gradient(135deg, #D4A373, #C49363) !important;
    color: white !important;
    border-radius: 50% !important;
    min-width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    position: absolute !important;
    top: 0px !important;
    right: 0px !important;
    line-height: 1 !important;
    padding: 0 4px !important;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(212, 163, 115, 0.4);
}

/* --- HERO SECTION UPGRADE --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    margin-top: calc(var(--header-height, 80px) * -1);
    padding-top: calc(var(--header-height, 80px) + 4rem) !important;
    padding-bottom: 4rem !important;
    background: linear-gradient(160deg, #FDFCFA 0%, #FAF5EF 40%, #F5EDE3 100%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, #FAF8F5, transparent);
    pointer-events: none;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: clamp(1rem, 1.5vw, 1.2rem) !important;
    line-height: 1.7;
    color: #6B6B6B !important;
    max-width: 540px;
}

/* Hero Trust Badge */
.hero-image-wrapper>div:last-child {
    background: white !important;
    border-radius: 16px !important;
    padding: 18px 22px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: blur(10px);
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* --- SECTION STYLING UPGRADE --- */
section {
    padding: 7rem 0 !important;
}

.section-header {
    margin-bottom: 4.5rem !important;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
    letter-spacing: -0.02em;
    text-shadow: none !important;
    color: var(--primary) !important;
    margin-bottom: 1rem;
}

.section-header h2:hover {
    text-shadow: none !important;
    transform: none !important;
}

.section-header p {
    font-size: 1.15rem !important;
    color: #888 !important;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Section label accent bar */
.section-label {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* --- CATEGORY CARDS POLISH --- */
.category-card {
    border-radius: 20px !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.category-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(212, 163, 115, 0.15) !important;
}

.category-info h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

/* --- PRODUCT CARDS POLISH --- */
.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
}

.product-card {
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 163, 115, 0.12) !important;
}

.product-card:hover::before {
    opacity: 0 !important;
}

.product-image {
    height: 280px !important;
    overflow: hidden;
}

.product-image img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card:hover .product-image img {
    transform: scale(1.08) !important;
}

.product-info {
    padding: 1.25rem 1.5rem 1.5rem !important;
}

.product-info h3 {
    font-size: 1.1rem !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-info h3 a {
    transition: color 0.3s ease;
}

.product-info h3 a:hover {
    color: var(--accent) !important;
}

.product-rating {
    margin-bottom: 1rem !important;
}

.add-to-cart {
    border-radius: 8px !important;
    padding: 11px 16px !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.08em !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, var(--accent, #D4A373), #C49363) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #C49363, #B48353) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 163, 115, 0.4);
}

/* --- FEATURES SECTION STYLING --- */
.features-enhanced {
    background: linear-gradient(180deg, #FDFBF7 0%, #F9F5EF 100%) !important;
}

.feature-card-new {
    border-radius: 20px !important;
    padding: 2.5rem 2rem !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

.feature-card-new:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07) !important;
    border-color: rgba(212, 163, 115, 0.2) !important;
}

.f-icon-wrapper {
    width: 72px !important;
    height: 72px !important;
    background: linear-gradient(135deg, #FFF8F0, #FFF3E6) !important;
    border: 1px solid rgba(212, 163, 115, 0.15);
    margin-bottom: 1.5rem !important;
    font-size: 1.6rem !important;
}

.feature-card-new:hover .f-icon-wrapper {
    background: linear-gradient(135deg, #D4A373, #C49363) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.3);
}

.feature-card-new h3 {
    font-size: 1.3rem !important;
    margin-bottom: 0.75rem !important;
}

.feature-card-new p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #888 !important;
}

/* --- STORY SECTION POLISH --- */
.story-wrapper {
    background: linear-gradient(180deg, #F9F5F0 0%, #F5EDE3 100%) !important;
}

.story-main-img {
    border-radius: 16px 48px 16px 16px !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12) !important;
}

.story-content h2 {
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
}

.story-badge {
    border-radius: 12px !important;
    border-left: 3px solid var(--gold-accent, #D4A373) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* --- DEALER / NEWSLETTER SECTION --- */
.dealer-network-section {
    background: linear-gradient(160deg, #1A1412 0%, #2C221F 50%, #1A1412 100%) !important;
}

.dealer-form-wrapper {
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(16px) !important;
}

.dealer-input {
    border-radius: 10px !important;
    padding: 0.9rem 1.2rem !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dealer-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--nl-gold, #D4A373) !important;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12) !important;
}

.dealer-btn {
    border-radius: 12px !important;
    padding: 0.9rem 2.5rem !important;
    font-size: 1rem !important;
    background: linear-gradient(135deg, #D4A373, #C49363) !important;
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dealer-btn:hover {
    background: white !important;
    color: #1A1412 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.12) !important;
}

/* --- FOOTER POLISH --- */
#footer {
    border-top: none !important;
}

#footer::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4A373, transparent);
}

.footer-col h4::after {
    height: 2px;
    background: linear-gradient(90deg, #D4A373, transparent) !important;
    width: 40px !important;
}

.social-circle {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.social-circle:hover {
    background: #D4A373 !important;
    border-color: #D4A373 !important;
    transform: translateY(-4px) scale(1.05) !important;
}

/* --- CART SIDEBAR POLISH --- */
.cart-sidebar {
    border-radius: 24px 0 0 24px !important;
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.15) !important;
}

.cart-header {
    padding: 1.5rem 1.75rem !important;
    background: linear-gradient(135deg, #2C2C2C, #3A3A3A) !important;
}

.cart-header h3 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.checkout-btn {
    border-radius: 12px !important;
    padding: 0.9rem !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.05em !important;
    background: linear-gradient(135deg, #D4A373, #C49363) !important;
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.25) !important;
    transition: all 0.3s ease !important;
}

.checkout-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.35) !important;
    background: linear-gradient(135deg, #C49363, #B48353) !important;
}

/* --- MODAL POLISH --- */
.modal-overlay {
    background: rgba(20, 16, 14, 0.7) !important;
    backdrop-filter: blur(8px) !important;
}

.success-modal {
    border-radius: 20px !important;
    border-top: 3px solid #D4A373 !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2) !important;
}

.modal-btn {
    border-radius: 10px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #D4A373, #C49363) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.modal-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.4) !important;
}

.modal-input,
.modal-textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

.modal-input:focus,
.modal-textarea:focus {
    border-color: #D4A373 !important;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12) !important;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366 !important;
}

.whatsapp-btn:hover {
    background: #1DA851 !important;
}

/* --- NOTIFICATION TOAST --- */
.notification-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2C2C2C, #3A3A3A);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* --- SCROLL TOP BUTTON --- */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #D4A373, #C49363);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.4);
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #25D366, #1DA851) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3) !important;
    transition: all 0.3s ease !important;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4) !important;
}

/* --- SECTION DIVIDER --- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 163, 115, 0.3), transparent);
    max-width: 1200px;
    margin: 0 auto;
    opacity: 1 !important;
}

/* --- GLOBAL TYPOGRAPHY TWEAKS --- */
body {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-rendering: optimizeLegibility;
}

/* Improved link focus outlines */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent, #D4A373);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- SELECTION COLOR --- */
::selection {
    background: #D4A373;
    color: white;
}

/* =========================================
   MOBILE RESPONSIVE POLISH
   ========================================= */

@media (max-width: 768px) {

    /* Hero */
    .hero {
        min-height: 75vh;
        padding-top: calc(var(--header-height, 80px) + 2rem) !important;
        padding-bottom: 2rem !important;
    }

    .hero-text h1 {
        font-size: 2.2rem !important;
        text-align: center;
    }

    .hero-text p {
        text-align: center;
        margin: 0 auto 1.5rem !important;
    }

    .hero-image-wrapper>div:last-child {
        display: none !important;
    }

    /* Sections */
    section {
        padding: 4rem 0 !important;
    }

    .section-header {
        margin-bottom: 2.5rem !important;
    }

    .section-header h2 {
        font-size: 1.8rem !important;
    }

    .section-header p {
        font-size: 1rem !important;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-image {
        height: 160px !important;
    }

    .product-info {
        padding: 0.75rem !important;
    }

    .product-info h3 {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
    }

    .product-rating {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .add-to-cart {
        padding: 8px 12px !important;
        font-size: 0.72rem !important;
    }

    /* Categories */
    .category-card {
        height: 180px !important;
    }

    .category-info h3 {
        font-size: 1.2rem !important;
    }

    /* Features */
    .feature-card-new {
        padding: 1.5rem !important;
    }

    .f-icon-wrapper {
        width: 56px !important;
        height: 56px !important;
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }

    .feature-card-new h3 {
        font-size: 1.1rem !important;
    }

    .feature-card-new p {
        font-size: 0.85rem !important;
    }

    /* Story */
    .story-content h2 {
        font-size: 2rem !important;
        text-align: center;
    }

    .story-main-img {
        border-radius: 12px 32px 12px 12px !important;
    }

    /* Dealer */
    .dealer-header h2 {
        font-size: 2rem !important;
    }

    .dealer-form-wrapper {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }

    /* Cart */
    .cart-sidebar {
        width: 95vw !important;
        right: -95vw !important;
        border-radius: 20px 0 0 20px !important;
    }

    .cart-sidebar.active {
        right: 0 !important;
    }

    /* Buttons */
    .cta-button {
        padding: 12px 24px !important;
        font-size: 0.85rem !important;
    }

    /* Toast */
    .notification-toast {
        left: 50%;
        width: 90%;
        text-align: center;
        font-size: 0.85rem;
        padding: 12px 20px;
    }

    /* Scroll top */
    .scroll-top {
        bottom: 80px;
        right: 16px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    /* WhatsApp */
    .whatsapp-float {
        width: 48px !important;
        height: 48px !important;
        border-radius: 14px !important;
        bottom: 24px !important;
        right: 16px !important;
        font-size: 1.3rem !important;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }

    .product-image {
        height: 200px !important;
    }

    .hero-text h1 {
        font-size: 1.8rem !important;
    }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .hero-text h1 {
        font-size: 2.8rem !important;
    }
}

/* =========================================
   PERFORMANCE: REDUCE MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}