:root {
    --primary: #8b5e34; /* Warm brown/terracotta */
    --accent: #d4a373;  /* Soft tan */
    --bg: #fdfaf5;      /* Creamy white */
    --text: #332d29;    /* Dark espresso */
}

img { max-width: 100%; height: auto; }



main.container {
    padding-top: clamp(110px, 15vh, 150px);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arapey', serif;          /* ← Change here if you want body in Arapey */
    /* OR keep: font-family: 'Inter', sans-serif; */
    background-color: var(--bg);
    color: var(--text);
    line-height: 2.2;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    /* The Sticky Magic */
    position: sticky;
    top: 0;
    z-index: 100;
    
    /* The "Boutique" Polish */
    background-color: rgba(253, 250, 245, 0.9); /* Warm cream with slight transparency */
    backdrop-filter: blur(10px); /* Modern frosted-glass effect */
    padding: 15px 0;
    border-bottom: 1px solid rgba(238, 229, 216, 0.5); /* Very faint line when sticky */
    transition: all 0.3s ease;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Arapey', Georgia, Cambria, 'Times New Roman', Times, serif;    
    font-weight: 400;
    font-size: 1.4rem;
}

.logo img {
    height: 75px;
    border-radius: 75%; /* Makes Milo's pic a circle */
    margin-right: 12px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 400;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background-color: #f5ece0; /* Fallback cozy color */
    border-radius: 40px; /* Soft modern corners */
    margin: 0 20px;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.0rem;
    color: var(--primary);
    font-weight: 700;
}

h1, h2, h3, h4 {
    font-family: 'Arapey', serif;
}

h1 {
    font-family: 'Arapey', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 20px 0;
    line-height: 1.1;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    display: inline-block;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
     border: 1px solid transparent;
    background-color: var(--primary);
    color: white;
}

.btn-secondary {
    border: 1px solid /*var(--primary)*/;
    color: var(--primary);
    margin-left: 15px;
}
/* Cart Specific Styles */
/*.cart-container {
    padding: 100px 0;
    min-height: 60vh;
}

.cart-header {
    text-align: center;
    margin-bottom: 50px;
}

.cart-header h1 {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Items Area */
#cart-items {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
}

/* Summary Box */
.cart-summary {
    display: flex;
    justify-content: flex-end;
}

.summary-box {
    background: #fdfaf5;
    border: 1px solid #eee5d8;
    padding: 30px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.total-price {
    color: var(--primary);
}

.full-width {
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

.shipping-note {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 15px;
    color: #888;
}

/* Reusable link style for Logo */
.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}
/* About Section Styles */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Image styling with a soft "cozy" frame effect */
.about-image-wrapper {
    position: relative;
    padding: 10px;
}

.about-img {
    width: 100%;
    border-radius: 30px; /* Modern rounded look */
    display: block;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background-color: var(--accent);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 1;
}

/* Typography for the Story */
.about-text h1 {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    margin: 15px 0 25px;
    color: var(--text);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

.signature {
    margin-top: 40px;
}

.handwriting {
    font-family: 'Fraunces', serif; /* Or a cursive font if you prefer */
    font-style: italic;
    font-size: 1.4rem;
    color: var(--primary);
}

/* Responsive fix for smaller screens */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image-wrapper {
        order: 2;
    }
}
/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    padding: 80px 0;
    align-items: start;
}

.contact-info h1 {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    margin: 15px 0;
}

.contact-details {
    margin-top: 40px;
}

.detail-item {
    margin-bottom: 25px;
}

.detail-item strong {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Form Card Styling */
.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid #f0e6d8;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0d7cc;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    background-color: #fcfbf9;
    box-sizing: border-box; /* Ensures padding doesn't break width */
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(139, 94, 52, 0.1);
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }
}
/* Shop Section */
.shop-section {
    padding: 130px 0;
}

.shop-header {
    text-align: center;
    margin-bottom: 60px;
}

.shop-header h1 {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    margin: 10px 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    border-radius: 30px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0e6d8;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 94, 52, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.add-to-cart {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Quantity Buttons */
.quantity-controls {
    display: flex;
    align-items: center;
    background: #fdfaf5;
    border: 1px solid #e0d7cc;
    border-radius: 50px;
    padding: 5px 15px;
    gap: 15px;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary);
    padding: 0 5px;
    transition: transform 0.2s;
}

.qty-btn:hover {
    transform: scale(1.2);
}

.qty-number {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Clear All Button */
.clear-all-btn {
    background: none;
    border: none;
    color: #999;
    text-decoration: underline;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 20px;
}

.clear-all-btn:hover {
    color: #ff4d4d;
}

/* Beautiful Empty State */
.empty-cart-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-cart-state h3 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.empty-cart-state p {
    color: #666;
    margin-bottom: 30px;
}

/* Cart Item Layout Improvement */
.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 40px;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0e6d8;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.item-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.remove-item {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-item:hover {
    color: #ff4d4d;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* Exactly 4 equal-width columns – no auto-wrapping */
    gap: 40px;
    padding: 100px 20px;
    text-align: center;
}

.feature-card {
    padding: 30px;
    transition: transform 0.3s ease;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    font-family: 'Fraunces', serif;
    margin-bottom: 10px;
}

/* Spotlight Section */
.milo-spotlight {
    padding: 80px 20px;
    background-color: #fcfbf9; /* Slightly different cream to break it up */
    border-radius: 60px;
    margin-bottom: 100px;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.spotlight-img {
    width: 100%;
    max-width: 450px;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.spotlight-text h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    margin: 15px 0;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 20px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.text-link:hover {
    border-bottom: 2px solid var(--primary);
}

/* Mobile Fix */
@media (max-width: 768px) {
    .spotlight-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Enable snapping on the whole page */
html {
    margin: 0;
    padding: 0;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* Comment out or set to 0 for now – we'll re-add tuned value later if needed for anchors */
    /* scroll-padding-top: clamp(100px, 14vh, 130px); */
    scroll-padding-top: 0;
}

/* Apply snapping to each main section */
section {
    scroll-snap-align: start;
    min-height: 100vh; /* Each section takes full screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer {
    background-color: #fdfaf5;
    padding: 80px 0 40px;
    border-top: 1px solid #eee5d8;
    scroll-snap-align: end; /* Ensure the footer snaps into place too */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links h4, .footer-newsletter h4 {
    font-family: 'Fraunces', serif;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text);
    opacity: 0.6;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 12px;
    border-radius: 50px;
    border: 1px solid #e0d7cc;
    background: white;
    flex-grow: 1;
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee5d8;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Tablet Styles (Portrait) */
@media (max-width: 768px) {
    .spotlight-grid, .about-grid, .footer-grid {
        grid-template-columns: 1fr; /* Stack columns vertically */
        text-align: center;
    }
    h1 { font-size: 2.5rem; } /* Shrink headers for smaller screens */
}

/* Mobile Styles (Phones) */
@media (max-width: 480px) {
    .nav-links { display: none; } /* Consider adding a hamburger menu here */
    .hero { padding: 25px 20px; }
    .btn { width: 100%; margin-left: 0; margin-bottom: 10px; } /* Stack buttons */
    .product-grid { grid-template-columns: 1fr; }
}

/* 1. Hide Hamburger by default (Desktop) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}

/* 2. Mobile Styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-links {
        display: none; /* Hide links by default on mobile */
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--bg);
        padding: 100px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 999;
    }

    /* Class added by JS when menu is open */
    .nav-links.active {
        display: flex;
    }
}

/* Add this to your existing Hamburger CSS */
.hamburger-menu.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0; /* Hide middle line */
}

.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Ensure links are easy to tap on mobile */
@media (max-width: 768px) {
    .nav-links li {
        margin: 20px 0;
        font-size: 1.5rem; /* Bigger text for thumbs */
        font-family: 'Fraunces', serif;
    }
}

/* Primary fix: Push the entire cart content down */
/*.cart-container {
    padding-top: 100px;   /* Start with 100–120px; adjust to taste */
/*}

/* Alternative / stronger version if the above doesn't fully clear it */
/*main.container {
    padding-top: 120px !important;   /* Use !important temporarily to override any conflicting rule */
/*}

/* Fine-tune just the heading area if you prefer minimal change */
.cart-header {
    padding-top: 80px;   /* Or 90–110px – targets only the h1/p area */
    margin-top: 0;
}

.cart-container {
    padding-top: clamp(40px, 14vh, 80px);
}

main.container {
    padding-top: clamp(55px, 12vh, 120px);
}

.hero-actions {
  display: flex;
  width: 100%;           /* Allow container to fill parent space */
  max-width: 500px;      /* Optional: prevents it from getting too wide */
  margin: 0 auto;        /* Keeps the whole group centered */
  gap: 1rem;             /* Space between buttons */
}

/*Remove or override the old margin on secondary button */
.btn-secondary {
    margin-left: 0 !important;    /* Kill the old offset */
}

@media (max-width: 480px) {
    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;     /* Stack vertically */
        align-items: center;
        gap: 16px;                  /* Vertical spacing between stacked buttons */
        padding: 0 20px; /* Optional: add some safety breathing room */
        box-sizing: border-box;
    }}

.btn {
  flex: 1;               /* Forces both buttons to have identical width */
  justify-content: center; /* Ensures text stays centered inside the button */
  white-space: nowrap;   /* Keeps text on one line (as we did previously) */
}

    .btn-secondary {
        margin-left: 0;             /* No need for left margin anymore */
    }

button, input[type="button"], a.your-button-class { /* Target all relevant elements */
    padding-left: 0;
    padding-right: 0;
    /* This is critical for iOS: */
    -webkit-appearance: none;
    appearance: none;
    /* Optional: Add desired padding back manually */
    padding: 60px 60px; 
}

.btn,
.add-to-cart,
button[type="submit"],  /* catch any form buttons */
input[type="button"],
input[type="submit"] {
    line-height: 1.1;               /* Tight but readable for Arapey — try 1.0–1.15 */
    padding: 14px 32px;             /* Slightly reduce top/bottom if still low (was 16px) */
    box-sizing: border-box;         /* Already likely global, but ensure */
    display: inline-flex;           /* ← Upgrade from inline-block */
    align-items: center;            /* Centers text vertically in flex */
    justify-content: center;        /* Horizontal center */
}