:root {
    --primary-color: #2c3639; /* Deep charcoal */
    --accent-color: #a27b5c; /* Warm earthy terra */
    --bg-color: #f7f5f0; /* Soft cream/stone */
    --text-color: #3f4e4f;
    --text-light: #7b8a8b;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

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

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: absolute;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(247, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.navbar.scrolled .logo, .navbar.scrolled .nav-links a, .navbar.scrolled .cart-icon {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    color: var(--primary-color);
}

/* In hero section, nav items might be white depending on image, but we'll use a semi-transparent overlay on hero image to ensure contrast, so primary-color is fine */

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

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

.cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-count {
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    animation: zoomInOut 20s infinite alternate linear;
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(247, 245, 240, 0.4), rgba(44, 54, 57, 0.7));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

/* Fade Up Animation */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s all ease;
}

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

/* Section Shared */
.section {
    padding: 8rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.product-card {
    group: product;
    cursor: pointer;
}

.product-img-wrapper {
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
    background: var(--white);
    border-radius: 4px;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding-top: 1.5rem;
    text-align: center;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.product-price {
    color: var(--accent-color);
    font-weight: 500;
}

/* Meet the Maker */
.maker-section {
    background-color: var(--white);
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 0; /* Reset for flex children to fill */
}

.maker-img {
    flex: 1;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
}

.maker-content {
    flex: 1;
    padding: 5rem 5rem 5rem 0;
}

.maker-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.maker-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Shopping Cart Slide-out */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--bg-color);
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.8, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.close-cart {
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.cart-item-price {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1.5rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.btn-checkout {
    width: 100%;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 5% 2rem;
    text-align: center;
}

/* Product Page Styles */
.product-detail-section {
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background-color: var(--white);
    min-height: 100vh;
}

.product-gallery img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.product-detail-info {
    padding-top: 2rem;
}

.product-detail-info h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.product-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.add-to-cart-widget {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #ccc;
    font-family: var(--font-body);
}

.add-to-cart-btn {
    flex: 1;
}

/* Shop Page Filters */
.shop-header {
    padding: 8rem 5% 2rem;
    text-align: center;
}

.shop-header h1 {
    font-size: 3.5rem;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 5%;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--primary-color);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
}

/* Admin Dashboard */
.admin-container {
    display: flex;
    min-height: 100vh;
    background-color: #f1f5f9;
}

.sidebar {
    width: 250px;
    background: var(--white);
    padding: 2rem;
    border-right: 1px solid #e2e8f0;
}

.sidebar .logo {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    display: block;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 1rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    color: var(--text-color);
}

.sidebar-nav a.active, .sidebar-nav a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.main-content {
    flex: 1;
    padding: 3rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.summary-title {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.recent-orders {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.recent-orders table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.recent-orders th, .recent-orders td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pending { background: #fef08a; color: #854d0e; }
.status-shipped { background: #bbf7d0; color: #166534; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3rem; }
    .maker-section { flex-direction: column; padding: 2rem 5%; }
    .maker-content { padding: 2rem 0; }
    .product-detail-section { grid-template-columns: 1fr; padding-top: 6rem; }
    .admin-container { flex-direction: column; }
    .sidebar { width: 100%; padding: 1rem; border-right: none; border-bottom: 1px solid #e2e8f0; }
    .dashboard-cards { grid-template-columns: 1fr; }
}
