/* Top Store Offer - main stylesheet
   Colors and fonts are set here so they are easy to change. */
:root {
  --sage: #5f7d63;
  --sage-dark: #3e5642;
  --sage-soft: #e7eee6;
  --terra: #b5502f;
  --terra-dark: #933e22;
  --bone: #faf6ef;
  --sand: #f1e9dc;
  --ink: #23201c;
  --muted: #6b655c;
  --line: #e2d9ca;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(35, 32, 28, 0.08);
  --head: "Fraunces", Georgia, serif;
  --body: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
}
img { max-width: 100%; display: block; }
a { color: var(--terra); text-decoration: none; }
a:hover { color: var(--terra-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 12px; color: var(--ink); font-weight: 700; }
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; list-style: none; }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }

/* Icons */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic.sm { width: 17px; height: 17px; }
.ic.star { width: 18px; height: 18px; fill: #e0a43a; stroke: #e0a43a; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 15px; cursor: pointer;
  background: var(--sage-dark); color: var(--white); transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-accent { background: var(--terra); }
.btn-accent:hover { background: var(--terra-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 700; color: var(--terra); white-space: nowrap; }

/* Top bar and header */
.topbar { background: var(--sage-dark); color: #e9efe8; font-size: 13.5px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: #e9efe8; }
.topbar-right { gap: 22px !important; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo img { width: 230px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; }
.main-nav a:hover, .main-nav a.active { background: var(--sage-soft); color: var(--sage-dark); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--terra); color: var(--white); font-weight: 700; }
.cart-link:hover { background: var(--terra-dark); color: var(--white); }
.cart-count { background: var(--white); color: var(--terra); border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 13px; padding: 0 6px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Shared section styles */
.section { padding: 72px 0; }
.section.alt { background: var(--sand); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sec-head h2 { font-size: 36px; }
.sec-head p { color: var(--muted); margin: 0; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; max-width: none; gap: 20px; }
.sec-head.split h2 { margin: 0; }
.sec-head.small { margin-bottom: 24px; }
.sec-head.small h2 { font-size: 26px; }

/* Hero */
.hero { background: linear-gradient(120deg, var(--sage-soft) 0%, var(--bone) 60%); padding: 64px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 52px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--terra); }
.hero-text p { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero-board { background: var(--white); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.board-title { font-family: var(--head); font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-pick { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--ink); background: var(--bone); transition: transform .2s; }
.hero-pick:hover { transform: translateY(-3px); color: var(--ink); }
.hero-pick img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--white); border-radius: 8px; margin-bottom: 10px; }
.hp-name { font-weight: 600; font-size: 14px; line-height: 1.35; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-price { font-weight: 700; color: var(--terra); margin-top: 4px; }

/* Perks */
.perks { background: var(--ink); color: #f1ece4; }
.perk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk .ic { width: 34px; height: 34px; color: #e9b08f; }
.perk h3 { font-family: var(--body); font-size: 16px; color: var(--white); margin: 0 0 2px; }
.perk p { margin: 0; font-size: 14px; color: #c9c2b6; }

/* Departments */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dept { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 30px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .2s, transform .2s; }
.dept:hover { border-color: var(--sage); transform: translateY(-3px); color: var(--ink); }
.dept-ic { width: 66px; height: 66px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-dark); display: grid; place-items: center; margin-bottom: 8px; }
.dept-ic .ic { width: 30px; height: 30px; }
.dept:nth-child(even) .dept-ic { background: #f6e3da; color: var(--terra); }
.dept-name { font-family: var(--head); font-weight: 700; font-size: 19px; }
.dept-count { font-size: 14px; color: var(--muted); }

/* Product cards */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.p-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.p-card:hover { box-shadow: var(--shadow); }
.p-img { display: block; background: var(--white); padding: 16px; border-bottom: 1px solid var(--line); }
.p-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.p-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.p-dept { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sage); margin-bottom: 6px; }
.p-card h3 { font-family: var(--body); font-size: 16px; font-weight: 700; line-height: 1.4; min-height: 45px; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card h3 a { color: var(--ink); }
.p-card h3 a:hover { color: var(--terra); }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 19px; font-weight: 700; color: var(--terra); }

/* Offer band */
.offer-band { background: var(--terra); color: var(--white); padding: 44px 0; }
.offer-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.offer-band h2 { color: var(--white); font-size: 30px; margin-bottom: 6px; }
.offer-band p { margin: 0; color: #fbe5db; }

/* Testimonials */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card { margin: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.t-stars { display: flex; gap: 2px; margin-bottom: 14px; }
.t-card blockquote { margin: 0 0 22px; font-size: 16px; color: var(--ink); flex: 1; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.t-card figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.t-card small { color: var(--muted); }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--sage); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.t-card:nth-child(2) .t-avatar { background: var(--terra); }
.t-card:nth-child(3) .t-avatar { background: var(--ink); }

/* Blog cards */
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.b-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.b-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.b-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.b-body h3 { font-size: 21px; }
.b-body h3 a { color: var(--ink); }
.b-body p { color: var(--muted); flex: 1; }

/* Page heading */
.page-head { background: var(--sage-dark); color: var(--white); padding: 52px 0; }
.page-head h1 { color: var(--white); font-size: 42px; margin: 0; }
.page-head p { margin: 10px 0 0; color: #dfe8de; max-width: 640px; }
.crumbs { font-size: 14px; margin: 0 0 10px !important; color: #c9d6c8 !important; }
.crumbs a { color: var(--white); }
.crumbs span { margin: 0 4px; }

/* Shop */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; font-size: 14px; }
.chip:hover, .chip.active { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); }
.shop-block + .shop-block { margin-top: 56px; }

/* Product page */
.ps { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ps-img { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.ps-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.ps-info h2 { font-size: 34px; }
.ps-price { font-size: 28px; font-weight: 700; color: var(--terra); }
.ps-buy { display: flex; align-items: center; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.ps-buy input { width: 80px; }
.ps-list li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.notice { background: var(--white); border: 1px solid var(--line); padding: 20px; border-radius: var(--radius); }

/* Forms */
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--body); font-size: 15px; background: var(--white); color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--sage); border-color: var(--sage); }
input[type=radio], input[type=checkbox] { width: auto; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.form-card.center { text-align: center; }
.form-card.center .ic { width: 46px; height: 46px; color: var(--terra); margin: 0 auto 12px; }
.form-card.center .field { text-align: left; }
.form-card h3 { font-size: 22px; margin-top: 4px; }
.form-msg { font-weight: 600; color: var(--sage-dark); min-height: 0; margin: 0 0 10px; }
.form-msg:empty { display: none; }
.form-msg.error { color: #b3261e; }
.pay-options { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 18px; }
.pay-options label, .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check { margin-bottom: 16px; }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; }

/* Cart and checkout */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.cart-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-table img { width: 64px; height: 64px; object-fit: contain; }
.cart-table .name { color: var(--ink); font-weight: 600; }
.cart-table input { width: 72px; padding: 8px; }
.remove-btn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--terra); font-weight: 600; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.summary h3 { font-size: 22px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-line.total { font-weight: 700; font-size: 18px; border-bottom: 0; }
#checkout-items .summary-line span:first-child { color: var(--muted); }
.small-note { font-size: 13px; color: var(--muted); }
.empty-box { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 56px 24px; max-width: 620px; margin: 0 auto; }
.empty-box .ic { width: 52px; height: 52px; color: var(--sage); margin: 0 auto 12px; }

/* About */
.about-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about-intro h2 { font-size: 36px; }
.about-intro p { color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 20px; text-align: center; }
.stat:nth-child(1), .stat:nth-child(4) { background: var(--sage-soft); }
.stat b { display: block; font-family: var(--head); font-size: 42px; color: var(--terra); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 600; }
.v-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.v-card { background: var(--white); border-radius: var(--radius); padding: 28px 22px; border: 1px solid var(--line); }
.v-card .ic { width: 36px; height: 36px; color: var(--terra); margin-bottom: 14px; }
.v-card h3 { font-size: 20px; }
.v-card p { color: var(--muted); margin: 0; }

/* Contact */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.info-card .ic { width: 34px; height: 34px; color: var(--terra); margin: 0 auto 10px; }
.info-card h3 { font-size: 19px; margin-bottom: 6px; }
.info-card p { margin: 0; color: var(--muted); word-break: break-word; }
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.help-card { background: var(--sage-soft); border-radius: 18px; padding: 32px; }
.help-card h3 { font-size: 22px; }
details { background: var(--white); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Blog post */
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.post-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 12px; margin-bottom: 26px; }
.post .lead { font-size: 19px; color: var(--ink); }
.post h2 { font-size: 25px; margin-top: 28px; }
.post p { color: #4a453e; }
.post-cta { margin-top: 30px; background: var(--sand); border-radius: 12px; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.post-cta p { margin: 0; font-weight: 700; color: var(--ink); }
.post-side { display: grid; gap: 20px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-card h3 { font-size: 20px; }
.side-card li { padding: 9px 0; border-top: 1px solid var(--line); }
.side-card li a { color: var(--ink); font-weight: 600; }
.side-card li a:hover { color: var(--terra); }

/* Policy */
.policy { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.policy h2 { font-size: 23px; margin-top: 22px; }
.policy h2:first-child { margin-top: 0; }
.policy p { color: #4a453e; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc8bc; }
.f-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 52px; padding-bottom: 36px; border-bottom: 1px solid #3a352f; }
.f-brand img { width: 230px; height: auto; margin-bottom: 14px; }
.f-brand p { margin: 0; max-width: 420px; }
.f-news label { color: var(--white); font-family: var(--head); font-size: 20px; margin-bottom: 10px; }
.f-news input { background: #2e2a25; border-color: #48423a; color: var(--white); }
.f-news .form-msg { color: #b9d1bb; margin-top: 10px; }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.f-col h4 { color: var(--white); font-size: 18px; margin-bottom: 16px; }
.f-col li { margin-bottom: 11px; }
.f-col a { color: #cfc8bc; }
.f-col a:hover { color: var(--white); }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact .ic { margin-top: 4px; color: #e9b08f; }
.f-bottom { background: #1a1815; padding: 18px 0; font-size: 14px; text-align: center; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--white); padding: 14px 20px; border-radius: 12px; box-shadow: var(--shadow); z-index: 100; transition: transform .3s, opacity .3s; opacity: 0; visibility: hidden; max-width: calc(100% - 32px); font-size: 15px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast a { color: #f2b796; font-weight: 700; margin-left: 6px; }

/* Responsive */
@media (max-width: 1024px) {
  .p-grid, .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .perk-row, .v-grid, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 44px; }
  .f-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-in { position: relative; gap: 12px; }
  .cart-link span { display: none; }
  .hero-in, .ps, .about-intro, .cart-layout, .checkout-layout, .contact-layout, .post-layout, .f-top { grid-template-columns: 1fr; }
  .p-grid, .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .t-grid, .b-grid { grid-template-columns: 1fr; }
  .topbar-in > span:first-child { display: none; }
  .topbar-in { justify-content: center; }
  .offer-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 34px; }
  .sec-head h2 { font-size: 28px; }
  .sec-head.split { flex-direction: column; align-items: flex-start; }
  .page-head h1 { font-size: 32px; }
  .logo img { width: 150px; }
  .topbar-right a:last-child { display: none; }
  .p-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-body { padding: 12px; }
  .p-card h3 { font-size: 14px; min-height: 40px; }
  .p-foot { flex-direction: column; align-items: stretch; }
  .p-foot .btn { width: 100%; }
  .price { font-size: 17px; }
  .dept-grid { gap: 12px; }
  .dept { padding: 22px 10px; }
  .dept-name { font-size: 16px; }
  .perk-row, .v-grid, .info-grid, .f-cols, .form-row, .form-row.three { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .form-card, .post, .policy { padding: 22px; }
  .post-cta { flex-direction: column; align-items: flex-start; }
}
