/* style.css - Modern International E-Commerce Theme */
/* Inspired by: Amazon, Shopify, Etsy modern designs */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    /* Premium Gold Palette */
    --gold: #F59E0B;
    --gold-light: #FCD34D;
    --gold-dark: #B45309;
    --honey: #D97706;

    /* Neutral Palette */
    --black: #0F172A;
    --gray-900: #1E293B;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748B;
    --gray-500: #94A3B8;
    --gray-400: #CBD5E1;
    --gray-300: #E2E8F0;
    --gray-200: #F1F5F9;
    --gray-100: #F8FAFC;
    --white: #FFFFFF;

    /* Accent Colors */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;

    /* Background */
    --bg-primary: #FEFEFE;
    --bg-secondary: #F8FAFC;
    --bg-accent: #FFFBEB;

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    /* Shadows - Modern Depth */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-gold: 0 10px 40px rgba(245, 158, 11, 0.3);

    /* Borders */
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-2xl: 32px;
    --border-radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Typography Scale */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* --- Modern Premium Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-logo img {
    height: 50px;
    transition: var(--transition-base);
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-700);
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--honey));
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hide hamburger button on desktop */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 8px;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--black);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-overlay,
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.mobile-nav-overlay.active,
.mobile-overlay.active {
    display: block;
}

/* --- Hero Section --- */
.hero {
    /* Dark overlay ensures text pop */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 160px 20px;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    color: var(--white) !important;
    font-size: 3.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    margin-bottom: 15px;
}

.hero .tagline {
    color: var(--gold) !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero p {
    color: #f0f0f0 !important;
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* --- Layout --- */
.container {
    padding: 80px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

/* The Grid - Automatically adjusts columns based on screen size */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* --- THE PREMIUM CARD --- */
.premium-card {
    background: var(--white);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
    border-color: var(--gold);
}

/* --- Founder Image Styling (The Fix) --- */
.founder-img-box {
    width: 100%;
    height: 320px;
    /* Big, Impressive Height */
    border-radius: 20px;
    margin-bottom: 25px;
    background: #ffffff;
    /* Seamless white background */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Shows FULL image, no cropping */
    object-position: bottom;
    /* Aligns person to bottom */
    transition: transform 0.6s ease;
}

.premium-card:hover .founder-img {
    transform: scale(1.08);
}

/* --- Badges & Elements --- */
.role-badge {
    background: var(--gold);
    color: var(--black);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* --- Contact & Legacy Specifics --- */
.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.year-badge {
    background: var(--black);
    color: var(--gold);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 1.2rem;
    display: inline-block;
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
    background: var(--gold);
    color: var(--black);
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-3px);
}

/* --- Footer --- */
footer {
    background: var(--black);
    color: #888;
    padding: 60px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

/* --- User Menu --- */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-admin {
    background: var(--gold-dark);
}

/* --- Section Titles --- */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.featured-section {
    padding: 40px 0;
}

.home-products {
    margin-top: 30px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .founder-img-box {
        height: 280px;
    }
}

/* =====================================================
   E-COMMERCE STYLES
   ===================================================== */

/* --- Nav Actions (Cart, Login) --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    padding: 8px;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 10px 25px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    color: var(--gold-dark);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-full {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-pay {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    font-size: 1.1rem;
    padding: 18px;
}

/* --- Page Titles --- */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

/* --- Shop Controls --- */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-input,
.filter-select {
    padding: 14px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s;
}

.search-input:focus,
.filter-select:focus {
    border-color: var(--gold);
    outline: none;
}

.filter-box {
    display: flex;
    gap: 15px;
}

.filter-select {
    min-width: 180px;
    cursor: pointer;
}

/* --- Shop Hero --- */
.shop-hero {
    padding: 100px 20px;
}

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* --- Product Card --- */
.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-info {
    padding: 25px;
}

.product-category {
    color: var(--gold-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--black);
}

.product-desc {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--black);
}

.product-compare-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    cursor: pointer;
}

/* --- Loading Spinner --- */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Empty State --- */
.empty-state,
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-state h3,
.empty-cart h2 {
    margin-top: 20px;
}

/* --- Cart Page --- */
.cart-page {
    padding-top: 40px;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-details h4 {
    margin: 0 0 5px;
    color: var(--black);
}

.cart-item-price {
    color: #666;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e5e5e5;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    border-color: var(--gold);
    background: var(--gold);
}

.qty-value {
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.cart-item-total {
    font-weight: 800;
    font-size: 1.1rem;
    min-width: 100px;
    text-align: right;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #ef4444;
}

/* --- Cart Summary --- */
.cart-summary-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 100px;
}

.cart-summary-card h3 {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--black);
}

.summary-divider {
    height: 1px;
    background: #eee;
    margin: 15px 0;
}

.shipping-note {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

/* --- Checkout Page --- */
.checkout-page {
    padding-top: 40px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
}

.checkout-form-section,
.checkout-summary {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--card-shadow);
}

.checkout-form-section h2,
.checkout-summary h2 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    outline: none;
}

.form-error {
    background: #fef2f2;
    color: #ef4444;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-success {
    background: #f0fdf4;
    color: #22c55e;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input {
    width: auto;
}

/* --- Checkout Summary Items --- */
.summary-items {
    max-height: 300px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.summary-item-info {
    flex: 1;
}

.summary-item-name {
    font-weight: 600;
    display: block;
}

.summary-item-qty {
    font-size: 0.85rem;
    color: #666;
}

.summary-item-price {
    font-weight: 700;
}

.secure-note {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
}

/* --- Saved Addresses --- */
.saved-addresses {
    margin-bottom: 25px;
}

.saved-addresses h4 {
    margin-bottom: 15px;
}

.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.address-card {
    padding: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.address-card:hover,
.address-card.selected {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

.address-card.default {
    border-color: var(--gold-dark);
}

.address-card p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.address-label {
    font-weight: 700;
    color: var(--gold-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

/* --- Order Success Page --- */
.success-page {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
}

.success-card {
    text-align: center;
    max-width: 500px;
    background: var(--white);
    border-radius: 25px;
    padding: 60px 40px;
    box-shadow: var(--card-shadow);
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.success-message {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.order-details {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.order-number span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.order-number strong {
    font-size: 1.4rem;
    color: var(--black);
}

.info-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- Orders Page --- */
.orders-page {
    padding-top: 40px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.order-card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.order-number {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--black);
}

.order-date {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 5px;
}

.order-statuses {
    display: flex;
    gap: 10px;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    display: block;
}

.item-qty {
    font-size: 0.85rem;
    color: #666;
}

.item-price {
    font-weight: 700;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.order-total span {
    color: #666;
}

.order-total strong {
    font-size: 1.2rem;
    color: var(--black);
}

.tracking-info {
    font-size: 0.9rem;
    color: var(--gold-dark);
}

/* --- Auth Pages --- */
.auth-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
}

.auth-body .navbar {
    background: transparent;
    box-shadow: none;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--white);
    border-radius: 25px;
    padding: 50px 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    margin: 0;
}

.auth-form {
    margin-bottom: 25px;
}

.auth-links {
    text-align: center;
    margin-bottom: 20px;
}

.auth-links a {
    color: var(--gold-dark);
    font-weight: 600;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e5e5e5;
}

.auth-divider span {
    background: var(--white);
    padding: 0 20px;
    position: relative;
    color: #999;
}

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

.auth-footer a {
    color: var(--gold-dark);
    font-weight: 600;
}

/* --- Password Strength --- */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    transition: all 0.3s;
}

.strength-text {
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

/* --- Profile Page --- */
.profile-page {
    padding-top: 40px;
}

.profile-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-section {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.profile-section h2 {
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.account-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 15px;
    transition: all 0.3s;
}

.action-card:hover {
    background: rgba(255, 215, 0, 0.1);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-large {
    max-width: 700px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: var(--black);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--black);
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

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

/* =====================================================
   ADMIN PANEL STYLES
   ===================================================== */
.admin-body {
    background: #f4f6f9;
}

.admin-nav {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    background: var(--black);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-logo img {
    height: 45px;
}

.admin-badge {
    background: var(--gold);
    color: var(--black);
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 800;
}

.admin-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0 0 0 50px;
    padding: 0;
}

.admin-menu a {
    color: #aaa;
    font-weight: 600;
    transition: color 0.3s;
}

.admin-menu a:hover,
.admin-menu a.active {
    color: var(--gold);
}

.admin-actions {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.admin-main {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    margin: 0;
}

.admin-header p {
    color: #666;
    margin: 5px 0 0;
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--black);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* --- Quick Stats --- */
.quick-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.quick-stat {
    background: var(--white);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.quick-label {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.quick-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
}

.quick-value.warning {
    color: #f59e0b;
}

/* --- Admin Section --- */
.admin-section {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

/* --- Admin Table --- */
.admin-table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.admin-table th {
    background: #f9f9f9;
    font-weight: 700;
    color: var(--black);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: rgba(255, 215, 0, 0.03);
}

.admin-table .loading-cell,
.admin-table .empty-cell {
    text-align: center;
    padding: 40px;
    color: #666;
}

.product-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.featured-badge {
    background: var(--gold);
    color: var(--black);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 10px;
}

.inactive-row {
    opacity: 0.5;
}

.status-badge.active {
    background: #dcfce7;
    color: #22c55e;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #ef4444;
}

/* --- Order Detail Modal --- */
.order-detail-content {
    margin-bottom: 30px;
}

.order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.order-badges {
    display: flex;
    gap: 10px;
}

.order-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.order-section h5 {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
}

.order-section p {
    margin: 5px 0;
}

.order-items-table h5 {
    margin-bottom: 15px;
}

.order-items-table table {
    width: 100%;
    border-collapse: collapse;
}

.order-items-table th,
.order-items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.order-items-table th {
    background: #f9f9f9;
    font-size: 0.8rem;
}

.order-totals {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.total-row.grand {
    font-size: 1.2rem;
    font-weight: 800;
    border-top: 2px solid #ddd;
    margin-top: 10px;
    padding-top: 15px;
}

.order-update-form {
    border-top: 1px solid #f0f0f0;
    padding-top: 25px;
}

.order-update-form h4 {
    margin: 0 0 20px;
}

/* --- Filters --- */
.filters select {
    padding: 10px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* --- Mobile Admin --- */
@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }

    .admin-logo {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .admin-logo img {
        height: 35px;
    }

    /* Admin hamburger button */
    .admin-hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }

    .admin-hamburger span {
        width: 22px;
        height: 2px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* Admin menu - hidden by default on mobile */
    .admin-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 70px 20px 20px;
        gap: 5px;
        z-index: 9999;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .admin-menu.mobile-open {
        left: 0;
    }

    .admin-menu li {
        width: 100%;
    }

    .admin-menu a {
        display: block;
        padding: 12px 15px;
        border-radius: 8px;
        font-size: 0.95rem;
    }

    .admin-menu a:hover,
    .admin-menu a.active {
        background: #FFF8DC;
    }

    .admin-actions {
        position: absolute;
        right: 60px;
        top: 10px;
    }

    .admin-actions .btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* Admin main content */
    .admin-main {
        padding: 15px;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .admin-header h1 {
        font-size: 1.4rem;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    /* Admin tables */
    .admin-table-wrapper {
        overflow-x: auto;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .admin-table {
        min-width: 600px;
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }

    /* Referrals page responsive */
    .referral-steps {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .referral-stats {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Sub-tabs for coupons/flash sales */
    .admin-sub-tabs {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        border-bottom: 2px solid #eee;
        padding-bottom: 10px;
        flex-wrap: wrap;
    }

    .admin-sub-tabs a {
        padding: 10px 20px;
        border-radius: 8px 8px 0 0;
        font-weight: 600;
        color: #666;
        transition: all 0.3s;
    }

    .admin-sub-tabs a:hover {
        background: #f5f5f5;
        color: #333;
    }

    .admin-sub-tabs a.active {
        background: var(--gold);
        color: white;
    }
}

/* Desktop: hide admin hamburger */
.admin-hamburger {
    display: none;
}

/* Sub-tabs styling for desktop */
.admin-sub-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.admin-sub-tabs a {
    padding: 12px 25px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.admin-sub-tabs a:hover {
    background: #f5f5f5;
    color: #333;
}

.admin-sub-tabs a.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.cart-content,
.checkout-content {
    grid-template-columns: 1fr;
}

.cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
}

.cart-item-quantity,
.cart-item-total,
.remove-btn {
    grid-column: 2;
}

.form-row {
    grid-template-columns: 1fr;
}

/* =====================================================
   NAVBAR USER DROPDOWN
   ===================================================== */

.nav-user-dropdown {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: var(--black);
    transition: all 0.3s ease;
}

.nav-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.nav-user-avatar {
    font-size: 1.2rem;
}

.nav-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.nav-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-body);
    font-size: 0.9rem;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: var(--gold-dark);
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

.logout-btn {
    color: #ef4444 !important;
}

.logout-btn:hover {
    background: #fef2f2 !important;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--black);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Mobile navbar dropdown */
@media (max-width: 768px) {
    .nav-user-name {
        display: none;
    }

    .nav-dropdown-menu {
        right: -10px;
    }
}

/* =====================================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ===================================================== */

/* Tablets and smaller */
@media (max-width: 992px) {

    .checkout-content,
    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-summary-card {
        position: static;
    }
}

/* Mobile devices */
@media (max-width: 768px) {

    /* Navbar mobile - hamburger menu */
    .navbar {
        padding: 10px 15px;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .nav-logo img {
        height: 45px;
    }

    /* Hide nav links on mobile - shown in slide menu */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        z-index: 9999;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease;
    }

    .nav-links.mobile-open {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        border-bottom: none;
        color: var(--gold-dark);
        background: #FFF8DC;
        margin: 0 -30px;
        padding: 15px 30px;
    }

    /* Hamburger button */
    .hamburger-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 35px;
        height: 35px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 10001;
        padding: 5px;
    }

    .hamburger-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--black);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Mobile nav overlay */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }

    .mobile-nav-overlay.active {
        display: block;
    }

    /* Nav actions on mobile - stay visible */
    .nav-actions {
        display: flex;
        gap: 10px;
    }

    .nav-actions .btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* Close button in mobile menu */
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        color: #666;
    }

    /* Hero section mobile */
    .hero {
        padding: 80px 15px;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Buttons mobile */
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Page titles */
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Products grid mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .product-desc {
        display: none;
    }

    /* Cart mobile */
    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 10px;
        padding: 12px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-details h4 {
        font-size: 0.9rem;
    }

    .cart-item-quantity {
        margin-top: 8px;
    }

    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .cart-item-total {
        font-size: 0.95rem;
        text-align: left;
        margin-top: 8px;
    }

    .remove-btn {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .cart-item {
        position: relative;
    }

    /* Checkout mobile */
    .checkout-form-section,
    .checkout-summary {
        padding: 20px;
        border-radius: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    /* Shop controls mobile */
    .shop-controls {
        flex-direction: column;
        gap: 12px;
    }

    .search-box {
        width: 100%;
    }

    .filter-box {
        width: 100%;
        flex-direction: column;
    }

    .filter-select {
        min-width: auto;
        width: 100%;
    }

    /* Container padding */
    .container {
        padding: 40px 15px;
    }

    /* Footer mobile */
    footer {
        padding: 40px 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    /* Toast mobile */
    .toast {
        left: 20px;
        right: 20px;
        bottom: 80px;
    }

    /* Checkout summary mobile */
    .summary-items {
        max-height: 200px;
        overflow-y: auto;
    }

    .summary-item {
        padding: 10px 0;
    }

    .summary-item img {
        width: 40px;
        height: 40px;
    }

    /* Blog grid mobile */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Admin tables mobile */
    .admin-table-wrapper {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 700px;
    }

    /* Profile page mobile */
    .profile-grid {
        grid-template-columns: 1fr;
    }

    /* Premium card mobile */
    .premium-card {
        padding: 25px 20px;
    }

    .founder-img-box {
        height: 220px;
    }

    /* Payment options mobile */
    .payment-methods label {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        font-size: 0.65rem;
        padding: 5px;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 1rem;
    }
}

/* =====================================================
   MODERN UI/UX PREMIUM ENHANCEMENTS 2024
   ===================================================== */

/* Enhanced Root Variables */
:root {
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #D4AF37 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-light: linear-gradient(135deg, #FFFDF5 0%, #FFF8E7 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(212, 175, 55, 0.25);
    --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Global Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Animate elements on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Buttons */
.btn {
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translateY(-1px);
}

/* Premium Product Cards */
.product-card {
    transition: var(--transition-smooth);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 215, 0, 0.3);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-image {
    overflow: hidden;
}

.product-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Premium Badge Animation */
.sale-badge,
.new-badge {
    animation: pulse 2s infinite;
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-glow);
    z-index: 999;
    transition: var(--transition-smooth);
    animation: float 3s ease-in-out infinite;
}

.floating-cta:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero>* {
    position: relative;
    z-index: 2;
}

.hero h1 {
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

/* Premium Section Headers */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* Enhanced Footer */
footer {
    background: var(--gradient-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

/* Cart Badge Animation */
.cart-count {
    transition: var(--transition-smooth);
}

.cart-count.updated {
    animation: pulse 0.3s ease;
}

/* Form Inputs Enhanced */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
    transition: var(--transition-smooth);
}

/* Premium Modal */
.modal-content {
    animation: fadeInUp 0.3s ease-out;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

/* Toast Notifications Enhanced */
.toast {
    animation: fadeInUp 0.3s ease-out;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-gold);
    z-index: 10000;
    transition: width 0.1s;
}

/* Modern Navbar Scroll Effect */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Selection Color */
::selection {
    background: var(--gold);
    color: #000;
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* Premium Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 30px;
    background: rgba(255, 215, 0, 0.1);
    color: #666;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.checkout-step.active {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: var(--shadow-glow);
}

.checkout-step.completed {
    background: #22C55E;
    color: white;
}

/* Mobile Touch Optimizations */
@media (hover: none) {
    .btn:hover {
        transform: none;
    }

    .product-card:hover {
        transform: none;
    }
}

/* =====================================================
   TOUCH EFFECTS FOR MOBILE
   ===================================================== */

/* Tap feedback for buttons */
.btn,
.product-card,
.blog-card,
.filter-btn,
.category-btn,
.nav-links a,
.cart-icon,
.hamburger-btn,
.action-card,
.address-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Active/tap state for buttons */
.btn:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* Active state for product cards */
.product-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Active state for blog cards */
.blog-card:active {
    transform: scale(0.98);
}

/* Active state for nav links */
.nav-links a:active {
    background-color: rgba(212, 175, 55, 0.2);
}

/* Active state for hamburger */
.hamburger-btn:active {
    opacity: 0.7;
}

/* Active state for filter buttons */
.filter-btn:active,
.category-btn:active {
    transform: scale(0.95);
}

/* Active state for action cards in profile */
.action-card:active {
    transform: scale(0.97);
    background-color: #f5f5f5;
}

/* Active state for address cards */
.address-card:active {
    border-color: var(--gold);
}

/* Cart icon tap effect */
.cart-icon:active {
    transform: scale(0.9);
}

/* Smooth transitions for touch feedback */
.btn,
.product-card,
.blog-card,
.filter-btn,
.category-btn,
.action-card,
.address-card,
.cart-icon,
.hamburger-btn {
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

/* Remove hover delay on touch devices */
@media (hover: none) and (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }

    a,
    button,
    input,
    select,
    textarea {
        touch-action: manipulation;
    }

    /* Prevent zoom on double-tap */
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .floating-cta,
    footer {
        display: none !important;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   PRODUCT IMAGE GALLERY - Scrollable Thumbnails
   ===================================================== */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}

.gallery-main .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-main:hover .main-image {
    transform: scale(1.05);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    min-width: 70px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    border-color: var(--gray-400);
}

.thumbnail.active {
    border-color: var(--gold);
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.video-thumb {
    position: relative;
}

.video-thumb::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .thumbnail {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
}