/* Color Palette & Variables */
:root {
    --primary: #4a3728; /* Deep wood brown */
    --accent: #d4a373;  /* Oak/Sand color */
    --light: #fefae0;
    --dark: #283618;
    --white: #ffffff;
    --gray: #f4f4f4;
}

/* Global Styles */
body { 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    margin: 0; 
    color: #333; 
    line-height: 1.6; 
    background-color: var(--white);
}

/* Header & Navigation */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 10px 5%; 
    background: var(--white); 
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 70px; /* Adjust based on your image proportions */
    width: auto;
    display: block;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    margin: 0;
    padding: 0;
}

.nav-links li { 
    margin-left: 30px; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 600; 
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover { 
    color: var(--accent); 
}

/* Hero Section (Home Page) */
.hero { 
    height: 80vh; /* Increased slightly for better visual impact */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content {
    max-width: 850px; /* Wider container to accommodate the new detailed text */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white); 
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Deepened shadow for better legibility */
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--white);
    max-width: 700px;
    margin-bottom: 35px;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero-btns { 
        flex-direction: column; 
        width: 100%;
        max-width: 300px;
    }
}

/* Buttons */
.btn { 
    background: var(--primary); 
    color: white; 
    padding: 14px 35px; 
    text-decoration: none; 
    border-radius: 4px; 
    display: inline-block;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--dark);
}

.btn-sm {
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 3px;
    display: inline-block;
}

/* Product Grid (Shop Page) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 0 0 20px 0; /* No top padding for flush images */
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    overflow: hidden;
}

.product-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-card img { 
    width: 100%; 
    height: 280px; 
    object-fit: cover; 
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.product-card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.price { 
    color: var(--accent); 
    font-weight: bold; 
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .nav-links li { margin-left: 15px; }
    .hero h1 { font-size: 2rem; }
    .site-logo { height: 50px; }
}

/* Features Section */
.features {
    display: flex;
    justify-content: space-around;
    padding: 60px 5%;
    background: var(--light);
    text-align: center;
    gap: 20px;
}

.feature {
    background: white;
    padding: 30px;
    flex: 1;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent);
}

.feature h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Product Detail Layout */
.product-detail-view {
    padding-top: 50px;
    padding-bottom: 50px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Image gets slightly more space */
    gap: 50px;
    align-items: start;
}

.detail-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.breadcrumb {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.detail-info h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0 0 15px 0;
}

.detail-price {
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 30px;
}

.description h3 {
    border-bottom: 2px solid var(--light);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.cta-section {
    margin-top: 40px;
    padding: 25px;
    background: var(--light);
    border-radius: 8px;
}

.note {
    font-size: 0.8rem;
    color: var(--primary);
    font-style: italic;
    margin-top: 15px;
}

/* Responsive for Mobile */
@media (max-width: 850px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-logo {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary); /* Ensure --primary is defined in :root */
    font-weight: 500;
}

/* Cart Specific Styling */
.cart-nav {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent); /* Ensure --accent is defined in :root */
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    min-width: 15px;
    text-align: center;
}

/* Container for the image needs to be relative */
.product-image {
    position: relative;
    overflow: hidden;
}

/* The Out of Stock Banner */
.out-of-stock-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(255, 0, 0, 0.8); /* Semi-transparent red */
    color: white;
    padding: 10px 40px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    width: 120%; /* Makes it span across the image */
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

/* Optional: Fade the image slightly when out of stock */
.out-of-stock .product-image img {
    opacity: 0.6;
    filter: grayscale(40%);
}

.preorder-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 40px;
}

.item-preview img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.form-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
    font-style: italic;
}

.standard-form textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.standard-form .form-group {
    margin-bottom: 20px;
}

.standard-form input, 
.standard-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between Profile and Cart */
}

.nav-icon-link {
    color: #333; /* Or white if on dark background */
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.nav-icon-link:hover {
    color: #27ae60; /* Deluys Green */
}

.cart-count {
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    right: -10px;
}