/* HapniTuk Shop — public pages. A clean store look (Inter, neutral greys, red accent). */
.shop-page { padding: 100px 0 70px; background: #f7f7f8; font-family: 'Inter', 'Roboto', sans-serif; color: #1f2430; min-height: 70vh; }
.shop-page h1, .shop-page h2, .shop-page h3 { font-family: 'Inter', 'Roboto', sans-serif; }

/* Store header: breadcrumb, title, search, cart */
.shop-head { background: #fff; border: 1px solid #ececf0; border-radius: 18px; padding: 22px 24px; margin-bottom: 24px; }
.shop-crumbs { font-size: .82rem; color: #8a8f9c; margin-bottom: 6px; }
.shop-crumbs a { color: #8a8f9c; text-decoration: none; }
.shop-crumbs a:hover { color: #ce1212; }
.shop-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: 0; color: #1f2430; }
.shop-lead { color: #6b7180; margin: 6px 0 0; max-width: 680px; }
.shop-search { position: relative; flex: 1; min-width: 220px; max-width: 520px; }
.shop-search input { width: 100%; height: 46px; border: 1px solid #e1e2e8; border-radius: 12px; padding: 0 44px 0 42px; background: #fafafb; font-size: .95rem; }
.shop-search input:focus { outline: none; border-color: #ce1212; background: #fff; box-shadow: 0 0 0 3px rgba(206,18,18,.08); }
.shop-search .bi-search { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa0ad; }
.shop-search button { position: absolute; right: 6px; top: 6px; height: 34px; border: 0; border-radius: 9px; background: #1f2430; color: #fff; padding: 0 12px; font-size: .85rem; }
.shop-cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 12px; background: #1f2430; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.shop-cart-btn:hover { background: #ce1212; color: #fff; }
.shop-cart-btn .count { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; border-radius: 11px; background: #ce1212; color: #fff; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; border: 2px solid #fff; }

/* Filters sidebar */
.shop-filters { background: #fff; border: 1px solid #ececf0; border-radius: 18px; padding: 20px; position: sticky; top: 96px; }
.shop-filters h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #8a8f9c; font-weight: 700; margin: 0 0 10px; }
.shop-filters .group + .group { border-top: 1px solid #f0f0f3; margin-top: 18px; padding-top: 18px; }
.shop-cats { list-style: none; padding: 0; margin: 0; }
.shop-cats a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; color: #1f2430; text-decoration: none; font-size: .93rem; }
.shop-cats a:hover { background: #f5f5f7; }
.shop-cats a.active { background: rgba(206,18,18,.08); color: #ce1212; font-weight: 700; }
.shop-cats .n { font-size: .78rem; color: #9aa0ad; background: #f2f2f5; border-radius: 999px; padding: 1px 8px; }
.shop-cats a.active .n { background: #ce1212; color: #fff; }
.shop-range { display: flex; gap: 8px; align-items: center; }
.shop-range input { width: 100%; height: 38px; border: 1px solid #e1e2e8; border-radius: 10px; padding: 0 10px; font-size: .9rem; }
.shop-check { display: flex; align-items: center; gap: 8px; font-size: .93rem; cursor: pointer; }
.shop-check input { width: 18px; height: 18px; accent-color: #ce1212; }
.shop-filters .actions { display: flex; gap: 8px; margin-top: 18px; }
.shop-filters .actions button, .shop-filters .actions a { flex: 1; height: 40px; border-radius: 10px; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.shop-filters .actions button { border: 0; background: #ce1212; color: #fff; }
.shop-filters .actions a { border: 1px solid #e1e2e8; color: #1f2430; background: #fff; }
.shop-filters-toggle { display: none; }
@media (max-width: 991px) {
  .shop-filters { position: static; display: none; margin-bottom: 16px; }
  .shop-filters.open { display: block; }
  .shop-filters-toggle { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid #e1e2e8; border-radius: 10px; background: #fff; font-weight: 600; }
}

/* Results bar */
.shop-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.shop-bar .count { color: #6b7180; font-size: .92rem; }
.shop-bar select { height: 40px; border: 1px solid #e1e2e8; border-radius: 10px; padding: 0 12px; background: #fff; font-size: .9rem; }
.shop-active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.shop-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #e1e2e8; font-size: .82rem; color: #1f2430; text-decoration: none; }
.shop-pill:hover { border-color: #ce1212; color: #ce1212; }

/* Product grid and cards */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.shop-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #ececf0; border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.shop-card:hover { box-shadow: 0 16px 36px rgba(31,36,48,.10); transform: translateY(-2px); border-color: #e1e2e8; }
.shop-card-img { display: block; aspect-ratio: 1; background: #f3f3f5; position: relative; overflow: hidden; }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.shop-card:hover .shop-card-img img { transform: scale(1.04); }
.shop-card-img .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #cfd1d8; }
.shop-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.shop-card-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #9aa0ad; font-weight: 600; margin-bottom: 4px; }
.shop-card-name { font-size: .98rem; font-weight: 700; color: #1f2430; text-decoration: none; line-height: 1.3; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-name:hover { color: #ce1212; }
.shop-card-desc { color: #6b7180; font-size: .84rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.shop-price { font-size: 1.2rem; font-weight: 800; color: #1f2430; line-height: 1.1; }
.shop-price small { display: block; font-size: .72rem; font-weight: 500; color: #9aa0ad; }
.shop-price s { display: block; font-size: .82rem; font-weight: 400; color: #9aa0ad; }
.shop-add { width: 42px; height: 42px; border: 0; border-radius: 12px; background: #ce1212; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; text-decoration: none; }
.shop-add:hover { background: #a90f0f; color: #fff; }
.shop-add.muted { background: #f2f2f5; color: #1f2430; }
.shop-add:disabled { background: #e7e7ea; color: #9aa0ad; }
.shop-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 8px; font-size: .72rem; font-weight: 700; background: #fff; color: #1f2430; }
.shop-badge.sold { background: #1f2430; color: #fff; }
.shop-badge.sale { background: #ce1212; color: #fff; }
.shop-stock { font-size: .78rem; font-weight: 600; color: #198754; }
.shop-stock.out { color: #9aa0ad; }

/* Product page */
.shop-gallery-main { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #ececf0; display: flex; align-items: center; justify-content: center; }
.shop-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.shop-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.shop-thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid #ececf0; border-radius: 12px; overflow: hidden; background: #fff; }
.shop-thumbs button.active { border-color: #ce1212; }
.shop-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.shop-buy { background: #fff; border: 1px solid #ececf0; border-radius: 18px; padding: 24px; }
.shop-price-big { font-size: 2rem; font-weight: 800; color: #1f2430; letter-spacing: -.02em; }
.shop-price-big s { font-size: 1.05rem; color: #9aa0ad; font-weight: 400; margin-left: 10px; }
.shop-options { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-option input { position: absolute; opacity: 0; pointer-events: none; }
.shop-option span { display: inline-block; padding: 9px 14px; border: 1px solid #e1e2e8; border-radius: 10px; cursor: pointer; background: #fff; font-size: .92rem; }
.shop-option input:checked + span { border-color: #ce1212; box-shadow: 0 0 0 1px #ce1212 inset; color: #ce1212; font-weight: 700; }
.shop-option input:disabled + span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.shop-description { color: #4a5060; white-space: pre-line; line-height: 1.7; }

/* Quantity: − [n] + with real buttons, no spinner inside the box */
.shop-qty { display: inline-flex; align-items: center; border: 1px solid #e1e2e8; border-radius: 12px; overflow: hidden; background: #fff; }
.shop-qty button { border: 0; background: #f5f5f7; width: 40px; height: 44px; font-size: 1.15rem; line-height: 1; color: #1f2430; }
.shop-qty button:hover { background: #ececf0; }
.shop-qty input { width: 54px; height: 44px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.shop-qty input::-webkit-outer-spin-button, .shop-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-qty.sm button { width: 34px; height: 36px; font-size: 1rem; }
.shop-qty.sm input { width: 44px; height: 36px; }

.shop-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; border: 0; border-radius: 12px; background: #ce1212; color: #fff; font-weight: 700; text-decoration: none; }
.shop-btn:hover { background: #a90f0f; color: #fff; }
.shop-btn:disabled { background: #c9cbd2; }
.shop-btn.outline { background: #fff; color: #1f2430; border: 1px solid #e1e2e8; }

/* Boxes, cart and checkout */
.shop-box { background: #fff; border: 1px solid #ececf0; border-radius: 18px; padding: 22px; }
.shop-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: #4a5060; }
.shop-summary-row.small { font-size: .85rem; color: #8a8f9c; padding: 2px 0; }
.shop-summary-total { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 8px; border-top: 1px solid #ececf0; font-weight: 800; font-size: 1.2rem; color: #1f2430; }
.shop-summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #ececf0; }
.shop-summary-line .math { color: #8a8f9c; font-size: .85rem; }
.shop-hint { background: #fff4f4; color: #a90f0f; border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.shop-line { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid #f0f0f3; }
.shop-line:last-child { border-bottom: 0; }
.shop-line img, .shop-line .ph { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: #f3f3f5; flex-shrink: 0; }
.shop-line .info { flex: 1; min-width: 0; }
.shop-line .name { font-weight: 700; color: #1f2430; text-decoration: none; }
.shop-line .unit { color: #8a8f9c; font-size: .85rem; }
.shop-line .remove { border: 0; background: none; color: #9aa0ad; padding: 6px; }
.shop-line .remove:hover { color: #ce1212; }
.shop-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-choice label { flex: 1; min-width: 140px; border: 1px solid #e1e2e8; border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; }
.shop-choice input { margin-right: 6px; accent-color: #ce1212; }
.shop-choice label:has(input:checked) { border-color: #ce1212; box-shadow: 0 0 0 1px #ce1212 inset; }
.shop-empty { text-align: center; padding: 60px 20px; color: #8a8f9c; background: #fff; border: 1px solid #ececf0; border-radius: 18px; }
.shop-empty .bi { font-size: 3rem; color: #d4d6dc; }
.shop-toast { position: fixed; right: 20px; bottom: 20px; z-index: 1080; background: #1f2430; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.2); display: flex; gap: 12px; align-items: center; }
.shop-toast a { color: #fff; font-weight: 700; }
