/* ============================================================
   WrapUp — Premium Packaging  |  styles.css
   Enhanced with animations, micro-interactions, glassmorphism
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #064e3b;
    --secondary: #047857;
    --accent: #10b981;
    --gold: #d4af37;
    --gold-light: #f5e6b8;
    --light: #eff6ff;
    --white: #ffffff;
    --gray: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
    --glass: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(5, 150, 105, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f8fafc;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HEADER & NAV ===== */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #0f402c 50%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ===== SVG LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-icon {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Inter', sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 0.15rem;
    color: white;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-caption {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a:hover::after {
    width: 60%;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--gold) 0%, #c9a227 100%);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.cart-icon:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    animation: popIn 0.3s ease;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0f2847 40%, var(--secondary) 100%);
    color: white;
    padding: 7rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo-img {
    width: 180px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    animation: fadeInDown 1s ease;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
}

.hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2rem;
    line-height: 1.1;
    color: white;
    animation: fadeInDown 1s ease 0.2s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero .subtitle {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease 0.4s both;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.05rem;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInDown 1s ease 0.6s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInDown 1s ease 0.8s both;
}

.cta-button {
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    color: var(--primary);
    padding: 16px 42px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 42px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

/* ===== FEATURES STRIP ===== */
.features-strip {
    background: white;
    border-bottom: 1px solid var(--gray);
    padding: 1.8rem 2rem;
    box-shadow: var(--shadow-sm);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.8rem;
}

.feature-text {
    text-align: left;
}

.feature-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
}

.feature-text span {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.hidden {
    display: none;
}

/* ===== SEARCH & FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.search-input {
    padding: 12px 20px 12px 44px;
    border: 2px solid var(--gray);
    border-radius: 12px;
    font-size: 0.95rem;
    min-width: 280px;
    transition: all 0.3s;
    outline: none;
    background: var(--light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.442.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 14px center;
    font-family: 'Inter', sans-serif;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    background-color: white;
}

.filter-btn {
    padding: 9px 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    color: var(--accent);
    background: rgba(5, 150, 105, 0.05);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(5, 150, 105, 0.2);
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #f0f5ff 0%, #e0ecff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    background-color: #ffffff;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent) 0%, #047857 100%);
    color: white;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.product-badge.inactive {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.product-info {
    padding: 1.6rem 1.8rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    letter-spacing: 0.1rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--primary);
}

.product-description {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.6;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.2rem;
}

.price-range {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.2rem;
    font-weight: 500;
}

.add-to-cart {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--accent) 0%, #047857 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 48px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.add-to-cart:hover::before {
    transform: translateX(100%);
}

.add-to-cart:hover {
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
}

.add-to-cart:active {
    transform: scale(0.97);
}

.whatsapp-btn {
    width: 100%;
    padding: 13px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 48px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    margin-top: auto;
}

.whatsapp-btn:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    margin-top: 1rem;
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    width: 100%;
    height: 480px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--gray);
    padding: 20px;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.thumbnail-row {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: var(--light);
}

.thumb:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.thumb.active {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.product-detail-category {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
}

.product-detail-price {
    font-size: 2.5rem;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.product-detail-description {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: #4b5563;
}

.product-specs {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(5, 150, 105, 0.1);
}

.product-specs h3 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.product-specs ul {
    list-style: none;
}

.product-specs li {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    font-size: 1rem;
    color: #374151;
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-specs li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 700;
    margin-right: 0.5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 2rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--gray);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.back-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: #9ca3af;
    background: none;
    border: none;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--danger);
    background: #fee2e2;
}

/* ===== CART ===== */
.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.2rem;
    border-bottom: 1px solid var(--gray);
    transition: all 0.3s;
    border-radius: 12px;
    margin-bottom: 4px;
}

.cart-item:hover {
    background: var(--light);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
    color: var(--primary);
}

.cart-item-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.quantity-controls {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.8rem;
}

.quantity-btn {
    padding: 6px 14px;
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--gray);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.1rem;
    min-width: 38px;
    min-height: 38px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.quantity-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.quantity-display {
    font-weight: 700;
    font-size: 1.05rem;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s;
    padding: 4px;
}

.remove-item:hover {
    color: var(--danger);
    transform: scale(1.2);
}

.cart-total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--primary);
    font-size: 1.6rem;
    font-weight: 800;
    text-align: right;
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    color: var(--primary);
    border: none;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.2rem;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* ===== LOGIN FORM ===== */
.login-form {
    max-width: 440px;
    margin: 5rem auto;
    padding: 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.login-form h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
}

/* ===== ADMIN PANEL ===== */
.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 2rem 2.5rem;
    margin: -2rem -2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.admin-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.admin-stat {
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(4px);
}

.logout-btn:hover {
    background: white;
    color: var(--primary);
}

.admin-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray);
}

.admin-form-header h3 {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
}

.cancel-edit-btn {
    padding: 8px 20px;
    background: #fee2e2;
    color: var(--danger);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: none;
    font-family: 'Inter', sans-serif;
}

.cancel-edit-btn:hover {
    background: var(--danger);
    color: white;
}

.cancel-edit-btn.show {
    display: inline-block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    background: #fafbfc;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.status-toggle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.status-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

.status-toggle label {
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
}

.save-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #047857 100%);
    color: white;
    padding: 14px 36px;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

/* ===== ADMIN PRODUCT LIST ===== */
.admin-search {
    padding: 12px 20px 12px 44px;
    border: 2px solid var(--gray);
    border-radius: 12px;
    font-size: 0.95rem;
    width: 100%;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    background: #fafbfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.442.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 14px center;
}

.admin-search:focus {
    outline: none;
    border-color: var(--accent);
    background-color: white;
}

.product-item-admin {
    background: white;
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.8rem;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-item-admin:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.product-item-admin.inactive {
    opacity: 0.55;
    border-left: 4px solid #d1d5db;
}

.admin-product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.admin-product-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    overflow: hidden;
    flex-shrink: 0;
}

.admin-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-product-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.edit-btn {
    background: var(--light);
    color: var(--secondary);
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.edit-btn:hover {
    background: var(--secondary);
    color: white;
}

.duplicate-btn {
    background: var(--gold-light);
    color: #92650a;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.duplicate-btn:hover {
    background: var(--gold);
    color: var(--primary);
}

.delete-btn {
    background: #fee2e2;
    color: var(--danger);
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.delete-btn:hover {
    background: var(--danger);
    color: white;
}

/* ===== MESSAGES ===== */
.success-message,
.error-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: none;
    animation: slideDown 0.3s ease;
    font-size: 0.95rem;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.success-message.show,
.error-message.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== UPLOAD PROGRESS ===== */
.upload-progress {
    width: 100%;
    height: 6px;
    background: var(--gray);
    border-radius: 3px;
    margin-top: 10px;
    display: none;
    overflow: hidden;
}

.upload-progress.show {
    display: block;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 3px;
    transition: width 0.3s;
    width: 0%;
}

/* ===== LOADING ===== */
.loading-spinner {
    text-align: center;
    padding: 4rem;
    color: #9ca3af;
    font-size: 1.1rem;
}

.loading-spinner::before {
    content: '';
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 auto 1rem;
    border: 3px solid var(--gray);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.no-products .emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-products p {
    font-size: 1.2rem;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, #022c22 100%);
    color: white;
    padding: 5rem 2rem 2rem;
    margin-top: 5rem;
    border-top: 3px solid var(--gold);
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    height: 50px;
    border-radius: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.1rem;
    }

    .hero {
        padding: 3rem 1rem 2.5rem;
    }

    .hero-logo-img {
        width: 160px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    nav {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        gap: 0.3rem;
        font-size: 0.85rem;
        justify-content: center;
    }

    .nav-links a {
        padding: 0.5rem 0.8rem;
    }

    .container {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .product-detail-image {
        height: 280px;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
        border-radius: 16px;
    }

    .cart-icon {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .admin-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .admin-form {
        padding: 1.5rem;
    }

    .login-form {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }

    .cart-item {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        padding: 2rem;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }

    .admin-product-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .admin-product-actions {
        width: 100%;
    }

    .admin-product-actions button {
        flex: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        padding: 0.8rem;
    }

    .search-input {
        min-width: unset;
        width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }

    .feature-text {
        text-align: center;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-main {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .product-name {
        font-size: 1.15rem;
    }

    .product-detail-info h2 {
        font-size: 1.6rem;
    }

    .product-detail-price {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
        border-radius: 16px;
    }

    .product-detail {
        padding: 1rem;
    }

    .main-image-container {
        height: 250px;
    }

    .thumbnail-row {
        gap: 0.5rem;
    }

    .thumb {
        width: 60px;
        height: 60px;
    }

    .product-detail-image {
        height: 250px;
        font-size: 6rem;
    }

    .product-detail-info h2 {
        font-size: 1.8rem;
    }

    .cta-button,
    .cta-secondary {
        width: 100%;
        padding: 14px;
    }
}