/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Light Vintage Colors */
    --bg-color: #F7F5F0; /* Warm off-white */
    --bg-card: #FFFFFF;
    --text-main: #2D3748; /* Slate dark */
    --text-muted: #718096;
    
    /* Vivid Vintage Accents */
    --accent-primary: #E26D5C; /* Vivid Terracotta / Rust */
    --accent-primary-hover: #C55343;
    --accent-secondary: #2A9D8F; /* Vivid Teal */
    
    --border-color: #E2E8F0;
    --danger: #E53E3E;
    --success: #38A169;
    
    /* Stripe-like Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1A202C;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

a:hover {
    color: var(--text-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.grid { display: grid; gap: 24px; }

/* Buttons - Stripe Premium Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background-color: var(--accent-primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: var(--accent-primary-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: #F7FAFC;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-danger { background-color: var(--danger); color: white; }
.btn-danger:hover { background-color: #C53030; color: white; }

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.brand-logo {
    font-size: 1.6rem;
    color: var(--accent-primary);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Header/Hero */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(226,109,92,0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 30px auto;
}

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

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(226, 109, 92, 0.3); /* Subtle primary border */
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-info {
    padding: 24px;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

/* Product Detail Page */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.product-gallery img {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.gallery-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
}

.gallery-thumbnails img:hover, .gallery-thumbnails img.active {
    opacity: 1;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(226, 109, 92, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(226, 109, 92, 0.15);
}

/* Admin Dashboard - Premium Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.admin-sidebar {
    width: 260px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 30px 0;
    box-shadow: var(--shadow-sm);
}

.admin-sidebar a {
    display: block;
    padding: 12px 24px;
    color: var(--text-muted);
    border-left: 3px solid transparent;
    font-weight: 500;
    margin-bottom: 5px;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background-color: rgba(42, 157, 143, 0.05); /* Soft secondary tint */
    color: var(--accent-secondary);
    border-left-color: var(--accent-secondary);
}

.admin-content {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
}

/* Premium Cards */
.card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Tables - Clean & Modern */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

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

table th, table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    background-color: #F8FAFC;
}

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

table tr:hover td {
    background-color: #F8FAFC;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-success {
    background-color: #F0FFF4;
    border: 1px solid #C6F6D5;
    color: var(--success);
}

.alert-danger {
    background-color: #FFF5F5;
    border: 1px solid #FED7D7;
    color: var(--danger);
}

/* Rating Stars */
.rating {
    color: #F6AD55; /* Vibrant Orange/Gold */
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        flex-wrap: wrap;
        padding: 15px 0;
    }
    
    .admin-sidebar a {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 0.9rem;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    
    .admin-sidebar a.active {
        border-left: none;
        border-bottom-color: var(--accent-secondary);
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

