/* ==============================
   ZAVDAAN — Custom Styles
   ============================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

/* ==============================
   Base / Typography
   ============================== */
body {
    font-family: 'Nunito', sans-serif;
    color: #333;
}
h1, h2, h3, .brand, .display-font {
    font-family: 'Playfair Display', serif;
}
.brand {
    font-size: 1.6rem;
    letter-spacing: 1px;
}

/* ==============================
   Navbar
   ============================== */
#mainNavbar {
    transition: box-shadow 0.3s ease;
    background: #fff !important;
    z-index: 1040;
}
#mainNavbar.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.nav-search-group {
    max-width: 200px;
    transition: max-width 0.3s ease;
}
.nav-search-group:focus-within {
    max-width: 300px;
}

/* ==============================
   Hero Section
   ============================== */
.hero-section {
    background: linear-gradient(135deg, #c06014 0%, #d4883e 40%, #e8a952 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: heroFloat 8s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

/* ==============================
   Product Cards
   ============================== */
.product-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.product-img-wrapper {
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-img {
    transform: scale(1.05);
}
.product-img-placeholder {
    width: 100%;
    height: 100%;
}

/* ==============================
   Color Swatches
   ============================== */
.color-swatch {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.color-swatch:hover {
    border-color: #aaa;
}
.color-swatch.selected {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.25);
}

/* ==============================
   Product Thumbnails
   ============================== */
.product-thumbnail {
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}
.product-thumbnail:hover,
.product-thumbnail.active {
    opacity: 1;
    border-color: var(--bs-primary) !important;
}

/* ==============================
   Loader Overlay
   ============================== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* ==============================
   Page Entry Animation
   ============================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-up {
    animation: fadeUp 0.5s ease forwards;
}

/* ==============================
   Upload Zone
   ============================== */
.upload-zone {
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.upload-zone:hover {
    background-color: #f0f4ff;
    border-color: var(--bs-primary) !important;
}

/* ==============================
   Admin KPI Cards
   ============================== */
.card[style*="border-left"] {
    border-left-width: 4px !important;
    border-left-style: solid !important;
}

/* ==============================
   Cart Item Rows
   ============================== */
.cart-item-row {
    transition: opacity 0.3s ease, background-color 0.2s ease;
}
.cart-item-row:hover {
    background-color: #f8f9fa;
}

/* ==============================
   Quantity Controls
   ============================== */
.qty-input {
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==============================
   Toast Enhancements
   ============================== */
.toast {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ==============================
   Badge Enhancements
   ============================== */
.badge {
    font-weight: 600;
}

/* ==============================
   Footer
   ============================== */
footer a:hover {
    color: #fff !important;
}

/* ==============================
   Responsive Adjustments
   ============================== */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 50vh;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .brand {
        font-size: 1.3rem;
    }
    .product-card .card-body {
        padding: 0.5rem !important;
    }
    .product-card .card-title {
        font-size: 0.85rem;
    }
}
