/* ============================================================
   BLOSSOM HONEY & ORGANICS - Commerce pages (shop / product / checkout)
   ============================================================ */

/* ---------- page hero strip ---------- */
.page-head {
  padding: calc(var(--header-h) + 54px) 0 46px; background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-head.dark { background: var(--espresso); border-bottom: 0; color: rgba(251,247,239,.8); }
.page-head.dark h1 { color: var(--ivory); }
.page-head .crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.page-head .crumbs a:hover { color: var(--honey-2); }
.page-head .crumbs svg { width: 13px; height: 13px; color: var(--soft); }
.page-head h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }

/* ---------- shop toolbar ---------- */
.shop-wrap { padding: 34px 0 100px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 10px 20px; border-radius: var(--r-full); border: 1.5px solid var(--line);
  background: var(--white); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: all .3s;
}
.filter-btn:hover { border-color: var(--beige); color: var(--honey-2); }
.filter-btn.on { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.sort-select {
  border: 1.5px solid var(--line); background: var(--white); border-radius: var(--r-full);
  padding: 10px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238C7F6B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer;
}
.result-count { font-size: 13px; color: var(--muted); width: 100%; }
@media (min-width: 640px) { .result-count { width: auto; order: 3; } }
.search-inline { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--white); border-radius: var(--r-full); padding: 8px 18px; width: 100%; }
.search-inline svg { width: 16px; height: 16px; color: var(--soft); flex: none; }
.search-inline input { border: 0; background: none; flex: 1; min-width: 60px; font-size: 14px; }
.search-inline input:focus { outline: none; }
@media (min-width: 640px) { .search-inline { width: 240px; } }

/* ---------- product detail ---------- */
.pd-wrap { padding: 30px 0 110px; }
.pd-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .pd-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.pd-main { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--cream); box-shadow: var(--shadow-sm); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; cursor: zoom-in; }
.pd-main:hover img { transform: scale(1.04); }
.pd-main .p-badge { position: absolute; top: 16px; left: 16px; z-index: 3; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumb {
  width: 84px; height: 84px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent;
  background: var(--cream); transition: border-color .3s, transform .3s; cursor: pointer; flex: none;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.on { border-color: var(--honey); }
.pd-thumb:hover { transform: translateY(-2px); }

.pd-info { display: grid; gap: 18px; align-content: start; }
.pd-info .pd-cat { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--honey-2); }
.pd-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.05; }
.pd-rate-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-price-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pd-price-row .price { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--ink); }
.pd-price-row .mrp { color: var(--soft); text-decoration: line-through; font-size: 16px; }
.pd-price-row .save { background: rgba(110,108,77,.12); color: var(--olive-2); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-full); }
.pd-desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.pd-feats { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .pd-feats { grid-template-columns: 1fr 1fr; } }
.pd-feat { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.pd-feat svg { width: 17px; height: 17px; color: var(--olive); flex: none; }
.label-cap { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.pd-actions .btn { flex: 1; min-width: 170px; }
.pd-wish-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 20px;
  border: 1.5px solid var(--line); border-radius: var(--r-full); font-weight: 600; font-size: 14.5px;
  color: var(--ink-2); transition: all .3s;
}
.pd-wish-btn:hover { border-color: var(--honey); color: var(--honey-2); }
.pd-wish-btn.on { background: var(--honey); border-color: var(--honey); color: #fff; }
.pd-wish-btn svg { width: 18px; height: 18px; }
.pd-wish-btn .fill { display: none; }
.pd-wish-btn.on .fill { display: block; }
.pd-wish-btn.on .stroke { display: none; }
.pd-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 0; border-block: 1px solid var(--line); }
.pd-trust .t-item { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pd-trust .t-item svg { width: 20px; height: 20px; color: var(--honey-2); }

.pd-acc { border-top: 1.5px solid var(--line); }
.pd-acc .acc-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px; font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--ink);
}
.pd-acc .acc-q svg { width: 16px; height: 16px; color: var(--honey-2); transition: transform .4s var(--ease); }
.pd-acc.open .acc-q svg { transform: rotate(45deg); }
.pd-acc .acc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.pd-acc .acc-b > div { overflow: hidden; }
.pd-acc.open .acc-b { grid-template-rows: 1fr; }
.pd-acc .acc-b p { padding: 0 2px 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.pd-acc .acc-b ul { padding: 0 2px 18px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.pd-acc .acc-b li { display: flex; gap: 10px; align-items: baseline; }
.pd-acc .acc-b li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--honey); flex: none; transform: translateY(-2px); }

/* size pills (product page) duplicated pattern */
.size-select { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- related ---------- */
.related-wrap { padding-bottom: 110px; }

/* ---------- checkout ---------- */
.checkout-wrap { padding: 34px 0 110px; }
.co-grid { display: grid; gap: 44px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .co-grid { grid-template-columns: 1.35fr 1fr; gap: 56px; } }
.co-steps { display: flex; gap: 10px; align-items: center; margin-bottom: 34px; flex-wrap: wrap; }
.co-step { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.co-step .n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--beige); font-size: 12.5px; transition: all .3s;
}
.co-step.on { color: var(--ink); }
.co-step.on .n { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.co-step.done { color: var(--olive-2); }
.co-step.done .n { background: var(--olive); border-color: var(--olive); color: var(--ivory); }
.co-step .sep { width: 22px; height: 1px; background: var(--beige); }

.co-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; margin-bottom: 20px; }
.co-card h3 { font-size: 21px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.co-card h3 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--cream); color: var(--honey-2); display: grid; place-items: center; font-size: 13px; font-family: var(--font-body); font-weight: 700; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.pay-opts { display: grid; gap: 10px; }
.pay-opt {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: border-color .3s, background .3s;
}
.pay-opt:hover { border-color: var(--beige); }
.pay-opt.on { border-color: var(--honey); background: rgba(201,154,62,.06); }
.pay-opt .po-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--beige); display: grid; place-items: center; flex: none; transition: border-color .3s; }
.pay-opt.on .po-dot { border-color: var(--honey); }
.pay-opt.on .po-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--honey); }
.pay-opt .po-ic { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--cream); display: grid; place-items: center; color: var(--ink-2); }
.pay-opt .po-ic svg { width: 21px; height: 21px; }
.pay-opt b { display: block; font-size: 14.5px; color: var(--ink); }
.pay-opt span { font-size: 12.5px; color: var(--muted); }

/* order summary */
.co-summary { position: sticky; top: calc(var(--header-h) + 20px); }
.co-summary .cs-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cs-head { padding: 20px 24px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); }
.cs-items { padding: 6px 24px; max-height: 300px; overflow-y: auto; }
.cs-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cs-item:last-child { border-bottom: 0; }
.cs-item img { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; }
.cs-item .cs-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cs-item .cs-meta { font-size: 12px; color: var(--muted); }
.cs-item .cs-price { margin-left: auto; font-weight: 600; font-size: 14px; white-space: nowrap; }
.cs-foot { padding: 18px 24px 24px; background: var(--cream); }
.cs-coupon { display: flex; gap: 8px; margin-bottom: 14px; }
.cs-coupon input { flex: 1; border: 1.5px solid var(--beige); border-radius: var(--r-full); padding: 10px 16px; font-size: 13.5px; background: var(--white); min-width: 0; }
.cs-coupon input:focus { outline: none; border-color: var(--honey); }
.cs-coupon button { padding: 10px 18px; border-radius: var(--r-full); background: var(--ink); color: var(--ivory); font-size: 13px; font-weight: 700; transition: background .3s; }
.cs-coupon button:hover { background: var(--honey-2); }
.cs-note { font-size: 12px; color: var(--muted); margin-top: 12px; display: flex; align-items: center; gap: 7px; }
.cs-note svg { width: 14px; height: 14px; color: var(--olive); flex: none; }

/* success */
.success { text-align: center; max-width: 560px; margin: 0 auto; padding: 40px 10px; }
.success .s-ico { width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 50%; background: linear-gradient(140deg, var(--honey), var(--honey-2)); display: grid; place-items: center; color: var(--ivory); box-shadow: 0 20px 50px rgba(168,126,44,.35); }
.success .s-ico svg { width: 42px; height: 42px; }
.success h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; }
.success .s-id { display: inline-block; margin: 18px 0 4px; padding: 9px 18px; background: var(--cream); border-radius: var(--r-full); font-size: 13.5px; font-weight: 700; letter-spacing: .05em; color: var(--ink-2); }

/* empty states */
.empty-state { text-align: center; padding: 70px 16px; }
.empty-state .es-ic { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; color: var(--soft); }
.empty-state .es-ic svg { width: 36px; height: 36px; }