/* Whittall Creations - Enhanced Wood-Craft Stylesheet */
/* Version 2.0 - Warm, Classic, Modern Wood Aesthetic */

/* ============================================
   WOOD & GRAIN COLOR PALETTE
   ============================================ */
:root {
    /* Primary Wood Tones */
    --wood-dark: #2a1a0f;
    --wood-medium: #6b4423;
    --wood-light: #d4c4a8;
    --wood-cream: #f5f1eb;
    
    /* Enhanced Primary Colors */
    --primary: #3d2317;
    --primary-dark: #2a1a0f;
    --primary-light: #5d3a2a;
    
    /* Secondary - Saddle Brown */
    --secondary: #8b5a2b;
    --secondary-dark: #6b4423;
    --secondary-light: #a67c52;
    
    /* Accent - Aged Brass/Gold */
    --accent: #c9a227;
    --accent-dark: #a08020;
    --accent-light: #e0c76a;
    
    /* Background - Warm Canvas */
    --background: #f5f1eb;
    --background-light: #faf8f5;
    --background-dark: #e8e0d5;
    
    /* Text Colors */
    --text: #2d2420;
    --text-light: #5a4a42;
    --text-muted: #8b7355;
    
    /* Functional Colors */
    --white: #fff;
    --border: #d4c4a8;
    --border-light: #e8e0d5;
    --success: #4a7c59;
    --error: #c75b39;
    
    /* Enhanced Shadows - Warm Wood Tones */
    --shadow-soft: 0 4px 20px rgba(42, 26, 15, 0.12);
    --shadow-medium: 0 6px 24px rgba(42, 26, 15, 0.15);
    --shadow-deep: 0 12px 40px rgba(42, 26, 15, 0.25);
    --shadow-inner: inset 0 2px 8px rgba(42, 26, 15, 0.1);
    
    /* Grain Effect */
    --grain-opacity: 0.03;
}

/* ============================================
   BASE STYLES & TYPOGRAPHY
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', 'Lato', sans-serif;
    background: var(--background);
    background-image: 
        linear-gradient(135deg, var(--background) 0%, var(--wood-cream) 50%, var(--background) 100%);
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings - Classic Craft Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.4rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.4;
}

/* Special Display Font for Craft Feel */
.craft-heading {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   GRAIN TEXTURE OVERLAY
   ============================================ */
.grain-overlay::before,
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: var(--grain-opacity);
    pointer-events: none;
    z-index: 9999;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-message {
    padding: 18px 30px;
    text-align: center;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.flash-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #1e5630;
    border-bottom: 2px solid #4a7c59;
    box-shadow: var(--shadow-soft);
}

.flash-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-bottom: 2px solid #c75b39;
    box-shadow: var(--shadow-soft);
}

/* ============================================
   NAVIGATION - Warm & Sophisticated
   ============================================ */
.main-nav {
    background: linear-gradient(180deg, var(--white) 0%, var(--wood-cream) 100%);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 70px;
    filter: drop-shadow(0 3px 6px rgba(42, 26, 15, 0.25));
    transition: filter 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 5px 10px rgba(42, 26, 15, 0.35));
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--primary);
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

/* Mobile Menu Toggle - Hidden by default on desktop */
.mobile-menu-toggle {
    display: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Cart Link - Brass Accent */
.cart-link a {
    background: linear-gradient(135deg, var(--accent) 0%, #d4af37 100%);
    color: var(--wood-dark) !important;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--accent-dark);
    transition: all 0.3s ease;
}

.cart-link a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

.cart-link a::after {
    display: none;
}

/* Admin Dashboard Link - Gold Accent */
.nav-menu a[href*="admin"] {
    color: var(--accent) !important;
    font-weight: 600;
    position: relative;
}

.nav-menu a[href*="admin"]::before {
    content: '⚙️';
    margin-right: 5px;
    font-size: 0.9em;
}

.nav-menu a[href*="admin"]:hover {
    color: var(--accent-light) !important;
    text-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.cart-count {
    background: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-left: 8px;
    font-weight: 600;
}

/* ============================================
   HERO SECTION - Wood Craft Aesthetic
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--wood-dark) 50%, #1a0f08 100%);
    color: var(--white);
    padding: 120px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.hero p {
    font-size: 1.35rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto 50px;
    font-weight: 300;
    letter-spacing: 0.02em;
    position: relative;
}

/* CTA Button - Craft Style */
.cta-button {
    display: inline-block;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--wood-dark);
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 35px;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
    border: 2px solid var(--accent-light);
    box-shadow: 
        0 6px 20px rgba(201, 162, 39, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 10px 30px rgba(201, 162, 39, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 100%);
}

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

/* ============================================
   PRODUCT CARDS - Wood Craft Cards
   ============================================ */
.featured-section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: var(--primary);
    font-family: 'Cormorant Garamond', serif;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    margin: 20px auto 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: linear-gradient(180deg, var(--white) 0%, var(--wood-cream) 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep);
    border-color: var(--secondary-light);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--background-dark);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-info {
    padding: 25px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.8) 100%);
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Cinzel', serif;
}

/* Button styling with hover effects - Standardized */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: 2px solid;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* PRIMARY BUTTON - Dark Walnut with Gold */
.btn-primary {
    background: #8b5a2b;
    background: linear-gradient(180deg, #a67c52 0%, #8b5a2b 50%, #6b4423 100%);
    color: #ffffff;
    border-color: #5d3a2a;
    box-shadow: 
        0 4px 15px rgba(107, 68, 35, 0.4),
        0 2px 4px rgba(107, 68, 35, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #b88d5f 0%, #a67c52 50%, #8b5a2b 100%);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(107, 68, 35, 0.3);
}

/* SECONDARY BUTTON - Cream with Dark Border */
.btn-secondary {
    background: #f5f1eb;
    background: linear-gradient(180deg, #faf8f5 0%, #e8e0d5 50%, #d4c4a8 100%);
    color: #2a1a0f;
    border-color: #3d2317;
    box-shadow: 
        0 4px 12px rgba(42, 26, 15, 0.3),
        0 2px 4px rgba(42, 26, 15, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f5f1eb 50%, #e8e0d5 100%);
    color: #1a0f08;
    border-color: #2a1a0f;
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(42, 26, 15, 0.25);
}

/* ACCENT BUTTON - Gold/Brass */
.btn-accent {
    background: #c9a227;
    background: linear-gradient(180deg, #e0c76a 0%, #c9a227 50%, #a08020 100%);
    color: #2a1a0f;
    border-color: #8b6914;
    box-shadow: 
        0 4px 15px rgba(201, 162, 39, 0.4),
        0 2px 4px rgba(201, 162, 39, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(180deg, #e8d68a 0%, #d4b035 50%, #c9a227 100%);
    box-shadow: 
        0 10px 30px rgba(201, 162, 39, 0.5),
        0 4px 10px rgba(201, 162, 39, 0.4);
    border-color: var(--wood-dark);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    background: linear-gradient(180deg, #b8a898 0%, #9a8a7a 100%);
    border-color: #8a7a6a;
    color: #5a5048;
}

/* ============================================
   FORMS - Warm & Inviting
   ============================================ */
.form-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 50px;
    background: linear-gradient(180deg, var(--white) 0%, var(--wood-cream) 100%);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
    border-radius: 16px 16px 0 0;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 2.2rem;
    color: var(--primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(139, 90, 43, 0.1);
    background: var(--white);
}

/* ============================================
   FOOTER - Warm & Rich
   ============================================ */
.main-footer {
    background: linear-gradient(180deg, var(--primary) 0%, var(--wood-dark) 100%);
    color: var(--white);
    padding: 80px 40px 40px;
    margin-top: 100px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.05em;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-section a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(201, 162, 39, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--accent);
    background: transparent;
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--wood-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}

/* Footer newsletter heading consistency */
.footer-section .newsletter h5,
.footer-section .newsletter h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.05em;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    /* Mobile: Show hamburger icon */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Mobile: Hide nav menu by default */
    .nav-menu {
        display: none !important;
    }
    
    /* Mobile: Show nav when active class added */
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-container {
        padding: 0 20px;
        height: 75px;
    }
    
    .logo img {
        height: 55px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    /* Mobile Hero - Smaller */
    .hero {
        padding: 60px 20px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .featured-section {
        padding: 60px 25px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .product-grid {
        gap: 25px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--primary);
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Mobile Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, var(--white) 0%, var(--wood-cream) 100%);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-medium);
        border-bottom: 3px solid var(--secondary);
        gap: 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .cart-link a {
        margin-top: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        display: none;
    }
}

/* ============================================
   ADDITIONAL CRAFT AESTHETIC CLASSES
   ============================================ */

/* Wood Border Accent */
.wood-border {
    border: 2px solid var(--border);
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        var(--shadow-soft);
}

/* Warm Glow Effect */
.warm-glow {
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.2);
}

/* Craft Divider */
.craft-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), var(--accent), var(--secondary), transparent);
    margin: 40px 0;
}

/* Text Accent */
.text-accent {
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(201, 162, 39, 0.2);
}

/* Wood Panel Background */
.wood-panel {
    background: linear-gradient(135deg, var(--wood-cream) 0%, var(--background) 50%, var(--wood-cream) 100%);
    border: 1px solid var(--border);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

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

/* ============================================
   ADMIN TABLE STYLES - Global for all admin pages
   ============================================ */

/* Admin Container */
.admin-dashboard,
.admin-page {
    max-width: 100%;
    overflow-x: hidden;
}

.admin-dashboard .container,
.admin-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Admin Navigation */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--wood-cream);
    border-radius: 8px;
}

.admin-nav a {
    padding: 10px 20px;
    background: var(--white);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--border);
}

.admin-nav a.active {
    background: var(--secondary);
    color: var(--white);
}

.admin-nav a:hover {
    background: var(--secondary-light);
    color: var(--white);
}

.admin-nav .badge {
    background: var(--accent);
    color: var(--wood-dark);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 5px;
}

/* Admin Sections */
.admin-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.admin-section {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

.admin-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

/* Admin Tables */
.admin-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 500px;
    background: var(--white);
}

.admin-table th {
    background: linear-gradient(180deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: var(--wood-cream);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: capitalize;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed,
.status-shipped,
.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-refunded {
    background: #e2e3e5;
    color: #383d41;
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
}

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

.stat-card {
    background: linear-gradient(180deg, var(--white) 0%, var(--wood-cream) 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid var(--border);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin: 0 0 10px 0;
}

.stat-card p {
    color: var(--text-light);
    margin: 0 0 15px 0;
}

.stat-card.highlight {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--wood-dark);
}

.stat-card.highlight h3,
.stat-card.highlight p {
    color: var(--wood-dark);
}

/* Responsive Admin */
@media (max-width: 1024px) {
    .admin-dashboard .container,
    .admin-page .container {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-dashboard,
    .admin-page {
        padding: 10px;
    }
    
    .admin-dashboard .container,
    .admin-page .container {
        padding: 10px;
    }
    
    .admin-nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-nav a {
        text-align: center;
        padding: 12px;
    }
    
    .admin-section {
        padding: 15px;
    }
    
    .admin-section h2 {
        font-size: 1.3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .admin-dashboard h1,
    .admin-page h1 {
        font-size: 1.8rem;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 6px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .admin-table td a,
    .btn-small {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }
}

/* ============================================
   END ADMIN STYLES
   ============================================ */

.admin-dashboard .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 2px solid var(--border);
}

.admin-nav a {
    padding: 10px 20px;
    background: var(--wood-cream);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
}

.admin-nav a.active {
    background: var(--secondary);
    color: var(--white);
}

.admin-nav a:hover {
    background: var(--secondary-light);
    color: var(--white);
}

.admin-nav .badge {
    background: var(--accent);
    color: var(--wood-dark);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 5px;
}

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

.stat-card {
    background: linear-gradient(180deg, var(--white) 0%, var(--wood-cream) 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid var(--border);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin: 0 0 10px 0;
}

.stat-card p {
    color: var(--text-light);
    margin: 0 0 15px 0;
}

.stat-card.highlight {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--wood-dark);
}

.stat-card.highlight h3,
.stat-card.highlight p {
    color: var(--wood-dark);
}

/* Responsive Admin */
@media (max-width: 1024px) {
    .admin-dashboard .container {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-dashboard {
        padding: 10px;
    }
    
    .admin-dashboard .container {
        padding: 10px;
    }
    
    .admin-nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-nav a {
        text-align: center;
        padding: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .admin-section {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .admin-dashboard h1 {
        font-size: 1.8rem;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Smooth transitions for all interactive elements */
a, button, .btn, .product-card, .nav-menu a {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: var(--accent);
    color: var(--wood-dark);
}

::-moz-selection {
    background: var(--accent);
    color: var(--wood-dark);
}
/* Domain text in header - Elegant Style */
    font-family: 'Dancing Script', 'Great Vibes', 'Pacifico', cursive;
    font-size: 1.4rem;
    color: #6b4423;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    margin: 0 auto;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
        display: none;
    }
}

/* SITE DOMAIN - Centered Cursive Override */
    font-family: 'Dancing Script', cursive !important;
    font-size: 1.8rem !important;
    color: #6b4423 !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 50% !important;
    margin-top: -15px !important;
    z-index: 100 !important;
    display: block !important;
    visibility: visible !important;
}
/* SITE DOMAIN - Centered between logo and menu */
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: #6b4423;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 20px;
    flex: 0 1 auto;
}

/* Nav container layout for proper spacing */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-container .logo {
    flex: 0 0 auto;
}

    flex: 1 1 auto;
    text-align: center;
}

.nav-container .nav-menu,
.nav-container .mobile-menu-toggle {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
        display: none;
    }
}

/* MOBILE - Hide domain text to prevent overlap */
@media screen and (max-width: 768px) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* MOBILE DOMAIN - Show below nav */
@media screen and (max-width: 768px) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 1rem !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        background: linear-gradient(180deg, #f5f1eb 0%, #e8e0d5 100%) !important;
        border-bottom: 1px solid #d4c4a8 !important;
        order: 99 !important;
    }
    
    .nav-container {
        flex-wrap: wrap !important;
    }
    
        flex: 0 0 100% !important;
        order: 99 !important;
    }
}

/* DESKTOP - Domain centered in nav */
@media screen and (min-width: 769px) {
    .site-domain {
        display: block;
        font-family: 'Dancing Script', cursive;
        font-size: 1.2rem;
        color: #6b4423;
        flex: 1;
        text-align: center;
    }
}

/* MOBILE - Domain below nav bar */
@media screen and (max-width: 768px) {
    .main-nav {
        position: relative;
        flex-wrap: wrap;
    }
    
    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .site-domain {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        width: 100% !important;
        order: 99 !important;
        font-family: 'Dancing Script', cursive !important;
        font-size: 1.1rem !important;
        color: #6b4423 !important;
        text-align: center !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        background: linear-gradient(180deg, #f5f1eb 0%, #e8e0d5 100%) !important;
        border-top: 1px solid #d4c4a8 !important;
        flex: 0 0 100% !important;
    }
}
