/* =====================================================================
   TASHA NEST — STOREFRONT STYLES
   Palette is taken from the logo: indigo wordmark, tomato-orange pot,
   sky-blue towels, peach linen — plus marigold for warmth.
   Type: DM Serif Display (headlines, echoes the logo wordmark),
         Nunito Sans (body), Caveat (tagline, echoes the logo script).
   ===================================================================== */

:root {
    --indigo: #2A3490;
    --indigo-deep: #1B2368;
    --royal: #3D52C4;
    --sky: #6EC1D8;
    --sky-tint: #E6F4F9;
    --tomato: #D6431A;
    --tomato-dark: #B53612;
    --marigold: #FFB627;
    --peach: #F6DDBE;
    --paper: #F6FAFD;
    --card: #FFFFFF;
    --line: #DCE6F0;
    --ink: #1C2150;
    --muted: #5B6285;
    --success: #14733E;
    --success-bg: #E4F6EB;
    --error: #A32117;
    --error-bg: #FDEBE9;
    --radius: 14px;
    --display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --script: 'Caveat', 'Segoe Script', 'Brush Script MT', cursive;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0 0 .4em; color: var(--indigo-deep); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--marigold);
    outline-offset: 2px;
}

/* ---- Logo strip (white bar with the brand image + tagline) ---- */
.logo-strip { background: #fff; border-bottom: 1px solid var(--line); text-align: center; padding: 8px 0; }
.logo-strip-inner { display: inline-flex; flex-direction: column; align-items: center; gap: 0; }
.site-logo { height: 58px; width: auto; display: block; }
.tagline { font-family: var(--script); font-size: 1.3rem; line-height: 1.1; color: var(--tomato); }

/* ---- Header ---- */
.site-header { background: linear-gradient(90deg, var(--indigo-deep), var(--indigo)); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 13px 24px; }
.logo-small { font-family: var(--display); font-size: 1.25rem; color: #fff; }
.logo-small span { color: var(--marigold); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #fff; font-weight: 700; font-size: .95rem; position: relative; padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--marigold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-nav a:hover::after { transform: scaleX(1); }
.cart-badge { background: var(--tomato); color: #fff; font-size: .7rem; font-weight: 800; padding: 1px 7px; border-radius: 20px; margin-left: 5px; }
.delivery-strip { background: var(--marigold); color: var(--indigo-deep); text-align: center; font-size: .86rem; font-weight: 800; padding: 6px 12px; }

/* ---- Flash messages ---- */
.flash { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; font-size: .92rem; font-weight: 600; }
.flash-success { background: var(--success-bg); color: var(--success); }
.flash-error { background: var(--error-bg); color: var(--error); }

/* ---- Hero: curtain photo running edge to edge ---- */
.hero { position: relative; overflow: hidden; background: #3b3f4a; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #4a4d58 url('/assets/images/curtains-hero.jpg') center top / cover no-repeat; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(20,25,70,.82) 0%, rgba(20,25,70,.55) 45%, rgba(20,25,70,.12) 100%);
}
.hero-inner { position: relative; z-index: 2; min-height: 560px; display: flex; flex-direction: column; justify-content: center; padding-top: 56px; padding-bottom: 56px; }
.hero-copy { max-width: 540px; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.04; margin: 0 0 .35em; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero h1 em { color: var(--marigold); font-style: italic; }
.hero-sub { font-size: 1.1rem; max-width: 470px; margin: 0 0 26px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-secondary:hover { background: #fff; color: var(--indigo-deep); }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; font-weight: 800; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero-points li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--marigold); margin-right: 8px; }

/* ---- Promise band ---- */
.promise { background: var(--sky-tint); border-bottom: 1px solid var(--line); }
.promise-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 28px; padding-top: 22px; padding-bottom: 22px; }
.promise-item strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--indigo-deep); margin-bottom: 2px; }
.promise-item span { font-size: .9rem; color: var(--muted); }

/* ---- Shop section ---- */
.shop-head { padding: 44px 0 18px; }
.shop-head h2 { font-size: 1.9rem; margin-bottom: 14px; }

.cat-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-filters a { padding: 9px 20px; border-radius: 30px; border: 2px solid var(--line); background: #fff; font-size: .92rem; font-weight: 800; color: var(--indigo); transition: background .15s ease, border-color .15s ease; }
.cat-filters a:hover { border-color: var(--sky); background: var(--sky-tint); }
.cat-filters a.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* ---- Product grid ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 18px; padding-bottom: 70px; }
.product-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(42,52,144,.16); }
.product-card.out-of-stock { opacity: .62; }
.product-image { position: relative; aspect-ratio: 1/1; background: var(--sky-tint); }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-image { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: .85rem; }
.no-image.large { aspect-ratio: 1/1; background: var(--sky-tint); border-radius: var(--radius); }
.badge { position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 800; padding: 4px 11px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.badge-out { background: var(--ink); color: #fff; }
.badge-low { background: var(--marigold); color: var(--indigo-deep); }
.badge-in { background: var(--success-bg); color: var(--success); position: static; display: inline-block; }
.product-info { padding: 11px 13px 14px; }
.product-info h3 { font-family: var(--body); font-size: .92rem; font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 6px; }
.price { font-weight: 800; color: var(--tomato); }
.price.large { font-size: 1.7rem; margin: 8px 0; }

/* ---- Product detail ---- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 24px 80px; }
.product-detail-image img { width: 100%; border-radius: var(--radius); }
.product-detail h1 { font-size: 2.2rem; }
.description { color: var(--muted); margin: 16px 0; }
.add-to-cart-form { display: flex; gap: 12px; align-items: end; margin: 20px 0; }
.add-to-cart-form label { display: block; font-size: .82rem; font-weight: 800; margin-bottom: 6px; }
.add-to-cart-form input { width: 80px; padding: 11px; border: 2px solid var(--line); border-radius: 10px; font-family: inherit; }
.delivery-note { color: var(--muted); font-size: .88rem; margin-top: 20px; }

/* ---- Buttons ---- */
.btn { display: inline-block; padding: 13px 28px; border-radius: 10px; font-weight: 800; border: 2px solid transparent; cursor: pointer; font-size: .98rem; font-family: inherit; text-align: center; transition: background .15s ease, color .15s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--tomato); color: #fff; box-shadow: 0 6px 16px rgba(214,67,26,.28); }
.btn-primary:hover { background: var(--tomato-dark); }
.btn-secondary { background: #fff; color: var(--indigo); border-color: var(--indigo); }
.btn-secondary:hover { background: var(--indigo); color: #fff; }
.btn-disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-block { display: block; width: 100%; margin-top: 16px; }
.link-btn { background: none; border: none; color: var(--error); cursor: pointer; font-size: .85rem; font-weight: 700; text-decoration: underline; padding: 0; font-family: inherit; }

/* ---- Cart & checkout ---- */
.cart-page, .checkout-page { padding: 40px 24px 80px; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.cart-table th { background: var(--sky-tint); color: var(--indigo-deep); font-weight: 800; }
.qty-input { width: 64px; padding: 7px; border: 2px solid var(--line); border-radius: 8px; font-family: inherit; }
.cart-actions { margin-bottom: 30px; }
.cart-summary, .order-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 380px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .92rem; }
.summary-row.total { font-weight: 800; font-size: 1.12rem; color: var(--indigo-deep); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.summary-line { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); padding: 4px 0; }

.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.checkout-form label { font-size: .85rem; font-weight: 800; margin-top: 14px; }
.checkout-form input, .checkout-form select, .checkout-form textarea { padding: 12px; border: 2px solid var(--line); border-radius: 10px; font-family: inherit; font-size: .95rem; margin-top: 4px; }

/* ---- Order status ---- */
.order-status-page { padding: 50px 24px 90px; max-width: 560px; margin: 0 auto; text-align: center; }
.order-code { color: var(--muted); }
.status-box { border-radius: var(--radius); padding: 28px; margin: 24px 0; }
.status-pending { background: var(--sky-tint); }
.status-paid { background: var(--success-bg); color: var(--success); }
.status-failed { background: var(--error-bg); color: var(--error); }
.muted { color: var(--muted); font-size: .85rem; }
.pay-instructions { width: 100%; border-collapse: collapse; margin: 16px 0; text-align: left; }
.pay-instructions td { padding: 9px 4px; border-bottom: 1px solid rgba(0,0,0,.08); font-size: .95rem; }
.pay-instructions td:first-child { color: var(--muted); }

.empty-state { text-align: center; color: var(--muted); padding: 60px 0; grid-column: 1 / -1; }

/* ---- Related products ("You may also like") ---- */
.related-section { padding: 10px 24px 70px; border-top: 1px solid var(--line); margin-top: 20px; }
.related-heading { font-size: 1.6rem; margin: 30px 0 22px; text-align: center; }
.related-section .product-grid { padding-bottom: 0; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ---- About page ---- */
.about-page { max-width: 700px; margin: 0 auto; padding: 50px 24px 80px; }
.about-page h1 { text-align: center; margin-bottom: 24px; font-size: 2.4rem; }
.about-lead { font-family: var(--display); font-size: 1.35rem; color: var(--indigo); margin-bottom: 20px; }
.about-page p { margin-bottom: 18px; line-height: 1.75; }
.about-signoff { font-style: italic; color: var(--muted); margin-top: 30px; }
.about-photo { text-align: center; margin-top: 30px; }
.about-photo img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; margin-bottom: 12px; border: 4px solid var(--marigold); }

/* ---- Footer ---- */
.site-footer { background: var(--indigo-deep); color: #d8dcf2; margin-top: 40px; padding-top: 44px; border-top: 6px solid var(--marigold); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 30px; padding-bottom: 30px; }
.footer-logo-badge { background: #fff; display: inline-block; padding: 8px 14px; border-radius: 10px; }
.footer-logo-badge img { height: 44px; width: auto; display: block; }
.footer-tagline { font-family: var(--script); font-size: 1.35rem; color: var(--marigold); margin: 10px 0 6px; }
.footer-inner h4 { color: #fff; font-family: var(--body); font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.footer-inner a, .footer-inner p { color: #c4caea; font-size: .92rem; margin: 0 0 8px; }
.footer-inner a:hover { color: var(--marigold); }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0; font-size: .8rem; color: #9aa2d0; }

@media (max-width: 900px) {
    .promise-inner { grid-template-columns: 1fr; padding-top: 16px; padding-bottom: 16px; gap: 14px; }
}
@media (max-width: 760px) {
    .product-detail, .checkout-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .main-nav { gap: 18px; }

    .hero-inner { min-height: 0; padding-top: 44px; padding-bottom: 40px; }
    .hero::after { background: linear-gradient(180deg, rgba(20,25,70,.7), rgba(20,25,70,.55)); }
    .hero-sub { font-size: 1rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
