/* ==========================================================================
   TARA'S COLLECTION - MODERN LUXURY & MOBILE-FIRST DESIGN SYSTEM
   ========================================================================== */

/* Smooth behavior & touch optimizations */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
    padding-bottom: 70px; /* Space for fixed mobile bottom navigation bar */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* Custom scrollbar hiding for clean horizontal swiping on mobile */
.scrollbar-hide::-webkit-scrollbar { 
    display: none; 
}
.scrollbar-hide { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

/* ==========================================================================
   HEADER & NAVIGATION ANIMATIONS
   ========================================================================== */
#main-header { 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.nav-tab-active {
    color: #C86D39 !important; /* rust */
    position: relative;
}
.nav-tab-active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #C86D39;
    border-radius: 2px;
}

/* ==========================================================================
   HERO BANNER & LUXURY OVERLAYS
   ========================================================================== */
.hero-gradient {
    background: linear-gradient(135deg, #2C2927 0%, #2E4C63 60%, #1a2733 100%);
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(203, 163, 120, 0.25) 0%, rgba(203, 163, 120, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ==========================================================================
   PRODUCT CARDS & BLOB MASKING / ASPECT RATIO LAYOUTS
   ========================================================================== */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-4px);
}
.product-card:hover .overlay-btn { 
    opacity: 1; 
}

/* Blob frame styling for artistic collection presentation */
.blob-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio square container */
}
.blob-frame {
    position: absolute;
    inset: 0;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transition: border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.6s ease;
    overflow: hidden; 
    -webkit-mask-image: -webkit-radial-gradient(white, black); 
    mask-image: radial-gradient(white, black);
    transform: translateZ(0); 
    background-color: #f4f0eb;
    border: 1px solid rgba(184, 184, 172, 0.25);
}
.group:hover .blob-frame {
    border-radius: 58% 42% 35% 65% / 55% 35% 65% 45%;
    background-color: #EFE6D6;
}

.blob-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.35); 
    transition: transform 0.7s ease, filter 0.4s ease;
}
.group:hover .blob-image {
    transform: scale(1.42); 
}

/* Sold out state styling - keep photos full color and vibrant! */
.card-sold-out .blob-image {
    filter: none;
}
.card-sold-out {
    opacity: 1;
}

/* Uniform high-contrast badge styling */
.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3.5px 9px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.badge-bestseller { background-color: #16a34a; color: #ffffff; border: 1px solid rgba(255,255,255,0.2); }
.badge-healing { background-color: #16a34a; color: #ffffff; border: 1px solid rgba(255,255,255,0.2); }
.badge-new { background-color: #16a34a; color: #ffffff; border: 1px solid rgba(255,255,255,0.2); }
.badge-soldout { background-color: #C86D39; color: #ffffff; border: 1px solid rgba(255,255,255,0.2); }
.badge-customizable { background-color: #16a34a; color: #ffffff; border: 1px solid rgba(255,255,255,0.2); }

/* ==========================================================================
   MARQUEE & VIDEO ANIMATIONS
   ========================================================================== */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 30s linear infinite;
    display: flex;
    width: max-content;
}
.animate-marquee:hover {
    animation-play-state: paused;
}

.mix-blend-multiply {
    mix-blend-mode: multiply;
}

/* ==========================================================================
   MODALS, DRAWER, & TOAST SYSTEM
   ========================================================================== */
#cart-modal, #about-modal, #contact-modal, #shipping-modal, #howto-modal, 
#gallery-modal, #proof-modal, #image-zoom-modal, #chat-modal, #export-modal { 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.cart-open { transform: translateX(0); }
.cart-closed { transform: translateX(100%); }

/* Toast Notifications & Cart Animations */
#toast-container {
    position: fixed;
    bottom: 140px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
    width: auto;
    max-width: 280px;
}
@media (min-width: 768px) {
    #toast-container {
        bottom: 120px;
        right: 30px;
        align-items: flex-end;
    }
}

.toast-message {
    pointer-events: auto;
    background-color: #2C2927;
    color: #FBF9F6;
    border: 1px solid #CBA378;
    padding: 9px 15px;
    border-radius: 9999px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: auto;
    animation: toast-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-success { border-color: #C86D39; }
.toast-info { border-color: #2E4C63; }

@keyframes toast-slide-in {
    0% { transform: translateX(50px) scale(0.9); opacity: 0; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}
.toast-fade-out {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
}

/* Wiggle Animation for Floating Cart Button */
@keyframes cart-wiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    15% { transform: rotate(-15deg) scale(1.2); }
    30% { transform: rotate(15deg) scale(1.2); }
    45% { transform: rotate(-12deg) scale(1.15); }
    60% { transform: rotate(12deg) scale(1.15); }
    75% { transform: rotate(-6deg) scale(1.08); }
}
.animate-cart-wiggle {
    animation: cart-wiggle 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
}


/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR & TOUCH TARGETS
   ========================================================================== */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(184, 184, 172, 0.4);
    z-index: 60;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 65px;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
@media (min-width: 768px) {
    .bottom-nav-bar {
        display: none;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 25%;
    height: 100%;
    color: #2C2927;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
}
.nav-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}
.nav-item.active {
    color: #C86D39;
}
.nav-item.active svg {
    transform: scale(1.15);
}

/* Touch targets */
button, a, input, select, textarea {
    touch-action: manipulation;
}
.touch-min {
    min-height: 44px;
    min-width: 44px;
}

/* ==========================================================================
   ADMIN DASHBOARD MOBILE POLISH
   ========================================================================== */
.admin-card {
    background: #ffffff;
    border: 1px solid rgba(184, 184, 172, 0.3);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}
.admin-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.status-pill-available { background-color: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.status-pill-sold { background-color: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.status-pill-hidden { background-color: #f3f4f6; color: #4b5563; border: 1px solid #d1d5db; }
