/* ============================================================
   COMMON STYLESHEET — Everyday Shop Hub
   ============================================================ */

/* 1. CORE ARCHITECTURE & STABLE RESETS */
body { background-color: #FFF9F2; color: #2B1A0F; overflow-x: hidden; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FFF4E6; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C2410C; }

.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* 2. RETAIL INPUTS & STABLE BUTTONS */
.store-input {
    width: 100%; background: #FFF9F2; border: 1px solid #D1D5DB; padding: 1rem 1.25rem;
    color: #2B1A0F; font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 400;
    transition: all 0.2s ease; outline: none; border-radius: 6px;
}
.store-input:focus { border-color: #C2410C; box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.1); }
.store-input::placeholder { color: #9CA3AF; }

.input-label { display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.8rem; color: #374151; margin-bottom: 0.5rem; }

.btn-dark {
    background: #2B1A0F; color: #FFF9F2; font-family: 'Inter', sans-serif; font-weight: 600;
    padding: 1rem 2.5rem; font-size: 0.95rem; display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; border: 1px solid #2B1A0F; border-radius: 6px; cursor: pointer;
}
.btn-dark:hover { background: #C2410C; border-color: #C2410C; }

.btn-emerald {
    background: #C2410C; color: #FFF9F2; font-family: 'Inter', sans-serif; font-weight: 600;
    padding: 1rem 2.5rem; font-size: 0.95rem; display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; border: 1px solid #C2410C; border-radius: 6px; cursor: pointer;
}
.btn-emerald:hover { background: #2B1A0F; border-color: #2B1A0F; }

.btn-outline {
    background: transparent; color: #2B1A0F; font-family: 'Inter', sans-serif; font-weight: 600;
    padding: 1rem 2.5rem; font-size: 0.95rem; display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; border: 1px solid #D1D5DB; border-radius: 6px; cursor: pointer;
}
.btn-outline:hover { background: #FFF4E6; border-color: #2B1A0F; }

/* 3. SIDE-DRAWER CART UI */
#cart-overlay {
    position: fixed; inset: 0; background: rgba(17, 24, 39, 0.6); backdrop-filter: blur(2px);
    z-index: 5000; opacity: 0; visibility: hidden; transition: all 0.3s ease; cursor: pointer;
}
body.cart-open #cart-overlay { opacity: 1; visibility: visible; }
body.cart-open { overflow: hidden; }

#cart-drawer {
    position: fixed; top: 0; right: -100vw; width: 100vw; max-width: 500px;
    height: 100dvh; background: #FFF9F2; z-index: 5100; display: flex; flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
}
body.cart-open #cart-drawer { right: 0; }

/* 4. EDITORIAL HERO SECTION */
.hero-section { width: 100%; min-height: 85vh; display: flex; flex-direction: column; background: #FFF4E6; border-bottom: 1px solid #FCD9A7; }
@media (min-width: 1024px) { .hero-section { flex-direction: row; } }

.hero-text-area { width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 4rem 2rem; }
@media (min-width: 1024px) { .hero-text-area { width: 45%; padding: 6rem 4rem 6rem 8%; } }

.hero-title { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 600; color: #2B1A0F; line-height: 1.1; margin-bottom: 1.5rem; }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }

.hero-image-area { width: 100%; padding: 2rem; display: flex; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .hero-image-area { width: 55%; padding: 4rem 4rem 4rem 0; } }

.hero-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; width: 100%; max-width: 800px; }
.hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px !important; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* 5. CLEAN COLUMN ABOUT US */
.about-section { max-width: 1400px; margin: 0 auto; padding: 8rem 2rem; }
.about-header { text-align: center; margin-bottom: 5rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.about-title { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 600; color: #2B1A0F; margin-bottom: 1.5rem; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .about-grid { grid-template-columns: repeat(3, 1fr); gap: 4rem; } }
.about-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.about-icon-wrapper { width: 64px; height: 64px; background: #F3F4F6; border-radius: 50% !important; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: #C2410C; }
.about-card-title { font-family: 'Inter', sans-serif; font-size: 1.25rem; font-weight: 600; color: #2B1A0F; margin-bottom: 1rem; }
.about-card-text { font-family: 'Inter', sans-serif; font-size: 1rem; color: #4B5563; line-height: 1.7; }

/* 6. ICON-BASED GUARANTEES */
.guarantee-section { background: #C2410C; padding: 8rem 2rem; color: #FFF9F2; }
.guarantee-container { max-width: 1400px; margin: 0 auto; }
.gu-header { text-align: center; margin-bottom: 5rem; }
.gu-title { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 600; margin-bottom: 1rem; }
.gu-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .gu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gu-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.gu-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 2.5rem 2rem; border-radius: 12px !important; transition: all 0.3s ease; }
.gu-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.gu-icon { font-size: 2.5rem; color: #D1D5DB; margin-bottom: 1.5rem; }
.gu-card-title { font-family: 'Inter', sans-serif; font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; }
.gu-card-desc { font-family: 'Inter', sans-serif; font-size: 0.95rem; color: #D1D5DB; line-height: 1.6; }

/* 7. UNIFORM-GRID CATALOG */
.catalog-section { max-width: 1600px; margin: 0 auto; padding: 8rem 2rem; }
.cat-header { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 4rem; }
.cat-title { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 600; color: #2B1A0F; margin-bottom: 2rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.5rem; }
.product-card {
    background: #FFF9F2; border: 1px solid #FCD9A7; border-radius: 12px !important; overflow: hidden;
    display: flex; flex-direction: column; transition: all 0.2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.05); height: 100%;
}
.product-card:hover { border-color: #D1D5DB; box-shadow: 0 10px 20px rgba(0,0,0,0.08); transform: translateY(-3px); }
.pc-img-box { width: 100%; aspect-ratio: 1/1; background: #FFF4E6; display: flex; align-items: center; justify-content: center; padding: 2rem; border-bottom: 1px solid #F3F4F6; }
.pc-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pc-details { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.pc-category { font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.pc-name { font-family: 'Inter', sans-serif; font-size: 1.15rem; font-weight: 600; color: #2B1A0F; line-height: 1.3; margin-bottom: 1rem; flex-grow: 1; }
.pc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.pc-price { font-family: 'Inter', sans-serif; font-size: 1.25rem; font-weight: 700; color: #2B1A0F; }
.pc-btn {
    background: #F3F4F6; color: #2B1A0F; width: 40px; height: 40px; border-radius: 50% !important;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s; cursor: pointer; border: none; outline: none;
}
.pc-btn:hover { background: #C2410C; color: #FFF9F2; }

/* 8. CLEAN-DETAILS FAQS */
.faq-section { background: #FFF4E6; padding: 8rem 2rem; border-top: 1px solid #FCD9A7; border-bottom: 1px solid #FCD9A7; }
.faq-wrap { max-width: 900px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 4rem; }
.faq-title { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 600; color: #2B1A0F; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
details.faq-item { background: #FFF9F2; border: 1px solid #FCD9A7; border-radius: 8px !important; transition: all 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
summary.faq-question {
    padding: 1.5rem; font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 600; color: #2B1A0F;
    cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
summary.faq-question::-webkit-details-marker { display: none; }
.faq-icon { font-size: 1.25rem; color: #8D7763; transition: transform 0.3s ease; }
details.faq-item[open] .faq-icon { transform: rotate(45deg); color: #C2410C; }
details.faq-item[open] { border-color: #D1D5DB; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.faq-answer { padding: 0 1.5rem 1.5rem 1.5rem; color: #4B5563; font-family: 'Inter', sans-serif; font-size: 1rem; line-height: 1.7; }

/* 9. SPLIT-CARD NEWSLETTER */
.newsletter-section { max-width: 1400px; margin: 0 auto; padding: 8rem 2rem; }
.nl-card {
    background: #FFF9F2; border: 1px solid #FCD9A7; border-radius: 16px !important;
    overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
@media (min-width: 1024px) { .nl-card { flex-direction: row; } }
.nl-left { width: 100%; background: #FFF4E6; padding: 4rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .nl-left { width: 50%; padding: 6rem; border-right: 1px solid #FCD9A7; } }
.nl-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 600; color: #2B1A0F; margin-bottom: 1rem; }
.nl-text { font-family: 'Inter', sans-serif; font-size: 1.05rem; color: #4B5563; line-height: 1.6; }
.nl-right { width: 100%; padding: 4rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .nl-right { width: 50%; padding: 6rem; } }

/* 10. SIDE-BY-SIDE CONTACT DESK */
.contact-section { background: #2B1A0F; color: #FFF9F2; padding: 8rem 2rem; }
.contact-wrap { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .contact-wrap { grid-template-columns: 1fr 1fr; gap: 8rem; } }
.cd-left { display: flex; flex-direction: column; justify-content: center; }
.cd-title { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 600; margin-bottom: 3rem; }
.cd-info-box { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2.5rem; }
.cd-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.1); border-radius: 8px !important; display: flex; align-items: center; justify-content: center; color: #D1D5DB; font-size: 1.5rem; flex-shrink: 0; }
.cd-info-title { font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 600; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.cd-info-text { font-family: 'Inter', sans-serif; font-size: 1.15rem; font-weight: 500; color: #FFF9F2; }
.cd-right { background: #FFF9F2; border-radius: 16px !important; padding: 3rem; color: #2B1A0F; }

/* 11. GLOBAL MODALS & TOASTS */
.app-modal {
    display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease; pointer-events: none; position: fixed; inset: 0; z-index: 6000;
    background: rgba(17, 24, 39, 0.7); backdrop-filter: blur(4px);
}
.app-modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-box { transform: scale(0.95); opacity: 0; transition: all 0.3s ease; max-height: 90vh; overflow-y: auto; background: #FFF9F2; width: 100%; max-width: 500px; border-radius: 16px !important; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.app-modal.active .modal-box { transform: scale(1); opacity: 1; }

#toast {
    position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%);
    background: #C2410C; color: #FFF9F2; padding: 1rem 2rem; border-radius: 100px !important;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
    transition: bottom 0.4s ease; z-index: 99999; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 10px 25px rgba(6, 95, 70, 0.3);
}
#toast.show { bottom: 2rem; }

/* ============================================================
   12. PAGE BANNER (inner pages)
   ============================================================ */
.page-banner-section {
    background: #FFF4E6; padding: 8rem 2rem 5rem; border-bottom: 1px solid #FCD9A7; text-align: center;
}
.page-banner-section .banner-eyebrow {
    font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: #C2410C; display: inline-block; margin-bottom: 1.5rem;
    background: rgba(194, 65, 12, 0.08); padding: 0.5rem 1.25rem; border-radius: 100px;
}
.page-banner-section h1 {
    font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600;
    color: #2B1A0F; line-height: 1.1; margin-bottom: 1.5rem;
}
.page-banner-section .banner-desc {
    font-family: 'Inter', sans-serif; font-size: 1.1rem; color: #4B5563; line-height: 1.7;
    max-width: 700px; margin: 0 auto 2rem;
}
.page-banner-section .breadcrumb-trail {
    font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: #8D7763;
}
.page-banner-section .breadcrumb-trail a { color: #C2410C; text-decoration: none; transition: color 0.2s; }
.page-banner-section .breadcrumb-trail a:hover { color: #2B1A0F; }

/* ============================================================
   13. LEGAL PAGES (terms / privacy / return)
   ============================================================ */
.legal-content-section { background: #FFF9F2; padding: 5rem 0; }
.legal-content-wrap { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.legal-content-wrap .legal-meta {
    background: #FFF4E6; border: 1px solid #FCD9A7; border-left: 4px solid #C2410C;
    padding: 1.5rem 1.8rem; border-radius: 6px; margin-bottom: 3rem;
}
.legal-content-wrap .legal-meta p { margin: 0; color: #4B5563; font-size: 0.95rem; line-height: 1.7; }
.legal-content-wrap .legal-meta p:last-child { margin-bottom: 0; }
.legal-content-wrap .legal-meta strong { color: #2B1A0F; }

.legal-point-block {
    border-bottom: 1px solid #FCD9A7; padding: 1.75rem 0; display: grid;
    grid-template-columns: 48px 1fr; gap: 1.5rem;
}
.legal-point-block:last-child { border-bottom: none; }
.legal-point-num {
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.8rem;
    color: #FCD9A7; line-height: 1;
}
.legal-point-heading {
    font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 600; color: #2B1A0F;
    margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid #FCD9A7;
}
.legal-point-body { font-family: 'Inter', sans-serif; font-size: 0.98rem; color: #4B5563; line-height: 1.8; margin: 0; }
.legal-back-link {
    display: inline-flex; align-items: center; gap: 0.5rem; color: #C2410C; text-decoration: none;
    font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; margin-bottom: 2.5rem; transition: all 0.2s;
}
.legal-back-link:hover { color: #2B1A0F; transform: translateX(-4px); }

/* ============================================================
   14. CHECKOUT PAGE
   ============================================================ */
.checkout-section { background: #FFF4E6; padding: 4rem 0 6rem; }
.checkout-wrap { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .checkout-wrap { grid-template-columns: 1.3fr 1fr; gap: 3rem; } }

.checkout-cart-card {
    background: #FFF9F2; border: 1px solid #FCD9A7; border-radius: 12px; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.checkout-cart-card h2 {
    font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 600; color: #2B1A0F;
    margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #FCD9A7;
}
.checkout-item {
    display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; align-items: center;
    padding: 1rem 0; border-bottom: 1px solid #FCD9A7;
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-img { width: 80px; height: 80px; background: #FFF4E6; border: 1px solid #FCD9A7; border-radius: 8px; padding: 0.5rem; }
.checkout-item-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.checkout-item-name { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; color: #2B1A0F; line-height: 1.3; margin-bottom: 0.25rem; }
.checkout-item-sku { font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 600; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.05em; }
.checkout-item-price { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700; color: #2B1A0F; margin-top: 0.5rem; }
.checkout-qty-controls { display: flex; align-items: center; border: 1px solid #FCD9A7; border-radius: 6px; overflow: hidden; margin-top: 0.5rem; width: fit-content; }
.checkout-qty-controls button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: #FFF9F2; border: none; color: #8D7763; cursor: pointer; font-weight: 600; transition: background 0.2s; }
.checkout-qty-controls button:hover { background: #FFF4E6; color: #C2410C; }
.checkout-qty-controls span { width: 40px; text-align: center; font-family: 'Inter', sans-serif; font-weight: 600; color: #2B1A0F; font-size: 0.9rem; background: #FFF9F2; }
.checkout-item-remove { background: none; border: none; color: #8D7763; cursor: pointer; font-size: 1.2rem; transition: color 0.2s; padding: 0.5rem; }
.checkout-item-remove:hover { color: #DC2626; }
.checkout-totals { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px solid #FCD9A7; }
.checkout-totals-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; font-family: 'Inter', sans-serif; }
.checkout-totals-row .label { font-size: 0.95rem; color: #8D7763; font-weight: 500; }
.checkout-totals-row .value { font-size: 1rem; color: #2B1A0F; font-weight: 600; }
.checkout-totals-row.grand { padding-top: 0.75rem; border-top: 1px solid #FCD9A7; margin-top: 0.5rem; }
.checkout-totals-row.grand .label { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: #2B1A0F; font-weight: 600; }
.checkout-totals-row.grand .value { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #C2410C; font-weight: 700; }

.checkout-empty { text-align: center; padding: 4rem 2rem; }
.checkout-empty i { font-size: 4rem; color: #FCD9A7; margin-bottom: 1.5rem; }
.checkout-empty h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #2B1A0F; margin-bottom: 1rem; }
.checkout-empty p { font-family: 'Inter', sans-serif; color: #8D7763; margin-bottom: 2rem; }

.checkout-form-card {
    background: #FFF9F2; border: 1px solid #FCD9A7; border-radius: 12px; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.checkout-form-card h3 {
    font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 600; color: #2B1A0F;
    margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid #FCD9A7;
}
.checkout-form-section { margin-bottom: 2rem; }
.checkout-form-section:last-of-type { margin-bottom: 0; }

@media (max-width: 1023px) {
    .checkout-wrap { grid-template-columns: 1fr; }
    .checkout-item { grid-template-columns: 70px 1fr; }
    .checkout-item > div:last-child { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
}
