:root {
    /* Premium Palette */
    --primary-color: #0f172a;
    /* Deep Navy */
    --secondary-color: #1e293b;
    /* Slate 800 */
    --accent-color: #3b82f6;
    /* Bright Blue */
    --accent-hover: #2563eb;

    --background-color: #f8fafc;
    /* Very light slate */
    --surface-color: #ffffff;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-color: #e2e8f0;

    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('hero_bg.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    border-radius: 0 0 50% 50% / 40px;
    /* Subtle curved bottom */
    box-shadow: var(--shadow-xl);
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Featured Section Title Polish */
.section-padding h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-padding h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Form Inputs Polish */
.form-control {
    background-color: #f1f5f9;
    border: 2px solid transparent;
}

.form-control:focus {
    background-color: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Footer Polish */
footer {
    background-color: #0f172a;
    /* Ensure dark navy */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--accent-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-col ul li a {
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
    /* Subtle slide */
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: var(--surface-color);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.98);
    /* Slightly more opaque */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Softer border */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    /* Very subtle shadow */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-color);
}

.logo img {
    height: 44px;
    /* Slightly smaller for elegance */
    width: auto;
}

.logo span {
    font-size: 1.4rem;
    /* Adjusted size */
    font-weight: 700;
    /* refined weight */
    letter-spacing: -0.02em;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    margin-top: auto;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: white;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
    border-color: transparent;
}

.product-image {
    width: 100%;
    height: 200px;
    /* Reduced from 280px */
    object-fit: cover;
    background-color: var(--background-color);
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
    background: white;
    position: relative;
    z-index: 1;
}

.product-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--surface-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Panels (Dashboard/Checkout) */
.panel,
.checkout-form,
.order-summary,
.login-box {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background-color: var(--background-color);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--background-color);
}

/* Layout Grid wrappers */
.contact-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 40px 0;
        box-shadow: var(--shadow-xl);
        border-bottom: 1px solid var(--border-color);
        align-items: center;
        /* Center items horizontally */
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    h1 {
        font-size: 2rem;
    }

    /* Stack grid layouts on mobile */
    .contact-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info,
    .contact-form-container {
        width: 100%;
    }

    /* Mobile Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-image {
        height: 150px;
        object-fit: contain;
        /* Ensure full image is visible */
        padding: 10px;
    }

    .product-info {
        padding: 15px;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Util Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Admin Panel Styles */
.dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar h2 {
    color: white;
    margin-bottom: 50px;
    font-size: 1.8rem;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar a {
    display: flex;
    align-items: center;
    color: #94a3b8;
    padding: 14px 0;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 6px;
}

.sidebar a:hover,
.sidebar a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    /* Subtle hover bg */
    transform: translateX(5px);
    padding-left: 10px;
    /* Slight indent on hover */
}

/* Admin Tables Polish */
.panel table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.panel table td {
    vertical-align: middle;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

/* Dashboard Cards */
.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Admin Login Page */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.login-brand {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: white;
}

.login-brand h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
}

.login-brand p {
    font-size: 1.1rem;
    color: #cbd5e1;
    text-align: center;
    max-width: 400px;
}

.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--background-color);
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    border-left: 4px solid #dc2626;
}

@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-brand {
        display: none;
    }

    /* Admin Panel Mobile */
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sidebar h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .sidebar a {
        padding: 10px 0;
        font-size: 0.9rem;
    }

    .main-content {
        padding: 20px;
    }

    .panel {
        padding: 20px;
    }

    .panel table {
        font-size: 0.85rem;
    }

    .panel table th,
    .panel table td {
        padding: 10px 8px;
    }
}

/* Banner Section Styles */
.banner .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner .btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6), 0 8px 15px rgba(0, 0, 0, 0.4) !important;
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .banner h2 {
        font-size: 2rem !important;
    }

    .banner p {
        font-size: 1rem !important;
    }

    .banner {
        padding: 60px 0 !important;
    }
}