/* Store template: MODERN — clean and soft. Thin borders, 10–12px corners, centred headings,
   quiet shadows. Loaded after global_new.css on every page when this layout is active.

   Brand colours are NOT set here: they come from the store's colour theme (CSS variables).
   This file only changes shape, spacing and typography, and every rule is scoped to
   body.store-modern so it outranks the page-level <style> blocks without !important. */

body.store-modern {
  --tpl-radius: 12px;
  --tpl-radius-sm: 10px;
  --tpl-line: #ececec;
}

/* ---- top bar: hairline instead of a heavy drop shadow ---- */
body.store-modern .navbar.fixed-top {
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08) !important;
}

/* ---- page titles: sentence case, centred, calmer ---- */
body.store-modern .cart-title,
body.store-modern .checkout-title {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  text-align: center;
  font-size: clamp(26px, 3.4vw, 34px);
}
body.store-modern .cart-section-title,
body.store-modern .checkout-section-title,
body.store-modern .checkout-order-title,
body.store-modern .cart-summary-title {
  font-weight: 700;
}

/* ---- cards and panels ---- */
body.store-modern .cart-summary-card,
body.store-modern .checkout-panel,
body.store-modern .checkout-order-card,
body.store-modern .account-section-card,
body.store-modern .login-card,
body.store-modern .register-card,
body.store-modern .payment-success-card,
body.store-modern .review-panel,
body.store-modern .review-card,
body.store-modern .product-box {
  background: #fff;
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  box-shadow: none;
}
body.store-modern .cart-item-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--tpl-line);
}
body.store-modern .cart-item-row:last-child { border-bottom: 0; }

/* product cards (related rows, listings) */
body.store-modern .similar-product-card,
body.store-modern .home-collection-card {
  border: 1px solid var(--tpl-line) !important;
  border-radius: var(--tpl-radius) !important;
  box-shadow: none !important;
  transition: box-shadow .15s ease, transform .15s ease;
}
body.store-modern .similar-product-card:hover,
body.store-modern .home-collection-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08) !important;
  transform: translateY(-2px);
}

/* ---- buttons and fields ---- */
body.store-modern .cart-primary-btn,
body.store-modern .cart-secondary-btn,
body.store-modern .checkout-submit-btn,
body.store-modern .account-btn,
body.store-modern .btn-login,
body.store-modern .review-submit-btn,
body.store-modern .payment-success-btn,
body.store-modern .order-action-btn,
body.store-modern .btn {
  border-radius: var(--tpl-radius-sm);
}
body.store-modern .form-control,
body.store-modern .form-select,
body.store-modern .account-form-control,
body.store-modern .account-form-select {
  border-radius: var(--tpl-radius-sm);
}
body.store-modern .cart-qty-group,
body.store-modern .checkout-order-qty-group,
body.store-modern .qty-controls {
  border-radius: var(--tpl-radius-sm);
}

/* ---- account area: tidy sidebar + content ---- */
body.store-modern .account-link { border-radius: 8px; }
body.store-modern .orders-table-wrap { border: 1px solid var(--tpl-line); border-radius: var(--tpl-radius); overflow: hidden; }

/* ---- footer: unchanged layout, hairline above the copyright bar ---- */
body.store-modern .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }

/* boxed checkout panels need inner padding (the unboxed layout has none) */
body.store-modern .checkout-panel,
body.store-modern .checkout-order-card,
body.store-modern .cart-summary-card { padding: 24px; }

/* account pages: the page title shouldn't dwarf the sidebar heading next to it */
body.store-modern .account-content-title { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; }

/* shared product card (.pl-card): thin border, soft corners, gentle hover */
body.store-modern .pl-card { border-radius: var(--tpl-radius); box-shadow: none; }
body.store-modern .pl-card:hover { border-color: transparent; box-shadow: 0 10px 28px rgba(0, 0, 0, .09); }
body.store-modern .pl-media { background: #f7f5f3; }
body.store-modern .pl-add, body.store-modern .pl-stepper { border-radius: var(--tpl-radius-sm); }

/* ====================================================================================================
   PRODUCT PAGE + CART (modern/productdetail.html, modern/cart.html)
   Colours come from the store's theme (--btn-bg-color / --btn-txt-color); these are the neutrals around them.
   ==================================================================================================== */
body.store-modern {
  --md-ink: #1d1d1f;
  --md-muted: #6a6a70;
  --md-line: #e6e4e0;
  --md-soft: #f5f3f0;
  --md-card: 16px;
  --md-star: #f5a524;
  --md-good: #18794e;
  --md-bad: #c62828;
}
body.store-modern .md-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px 72px; box-sizing: border-box; }
body.store-modern .md-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px 0 18px; font-size: 14px; color: var(--md-muted); }
body.store-modern .md-crumbs a { color: var(--md-muted); text-decoration: none; }
body.store-modern .md-crumbs a:hover { color: var(--md-ink); text-decoration: underline; }
body.store-modern .md-crumbs [aria-current] { color: var(--md-ink); }
body.store-modern .md-title { text-align: left; font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; margin: 0 0 24px; }

/* shared buttons */
body.store-modern .md-add, body.store-modern .md-buynow, body.store-modern .md-outline, body.store-modern .md-write {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: var(--tpl-radius-sm); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
}
body.store-modern .md-add { background: var(--btn-bg-color, #1d1d1f); color: var(--btn-txt-color, #fff); border: 1px solid var(--btn-bg-color, #1d1d1f); }
body.store-modern .md-add:hover { opacity: .88; color: var(--btn-txt-color, #fff); }
body.store-modern .md-buynow, body.store-modern .md-outline, body.store-modern .md-write { background: #fff; color: var(--md-ink); border: 1px solid var(--md-ink); }
body.store-modern .md-buynow:hover, body.store-modern .md-outline:hover, body.store-modern .md-write:hover { background: var(--md-soft); color: var(--md-ink); }
body.store-modern .md-add:focus-visible, body.store-modern .md-buynow:focus-visible, body.store-modern .md-outline:focus-visible,
body.store-modern .md-write:focus-visible, body.store-modern .md-opt:has(input:focus-visible), body.store-modern .md-thumb:focus-visible,
body.store-modern .md-tabs .tab-link:focus-visible, body.store-modern .md-cart-remove:focus-visible { outline: 2px solid var(--md-ink); outline-offset: 2px; }

/* ---- product page: gallery + sticky buy card ---- */
body.store-modern .md-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
body.store-modern .md-gallery { display: grid; gap: 14px; }
body.store-modern .md-main { aspect-ratio: 1 / 1; border-radius: var(--md-card); background: var(--md-soft); overflow: hidden; border: 1px solid var(--md-line); }
body.store-modern .md-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.store-modern .md-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
body.store-modern .md-thumbs:not(:has(.md-thumb:nth-child(2))) { display: none; }
body.store-modern .md-thumb { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: var(--md-soft); overflow: hidden; cursor: pointer; opacity: .75; transition: opacity .15s ease, border-color .15s ease; }
body.store-modern .md-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.store-modern .md-thumb:hover { opacity: 1; }
body.store-modern .md-thumb.is-active { opacity: 1; border-color: var(--btn-bg-color, var(--md-ink)); }

body.store-modern .md-card { position: sticky; top: 120px; background: #fff; border: 1px solid var(--md-line); border-radius: var(--md-card); padding: 28px; box-shadow: 0 6px 24px rgba(20, 20, 30, .05); }
body.store-modern .md-titlerow { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
body.store-modern .md-name { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.25; margin: 0 0 10px; letter-spacing: 0; text-transform: none; }
body.store-modern .md-share { flex: none; width: 40px; height: 40px; border: 1px solid var(--md-line); background: #fff; border-radius: 50%; color: var(--md-ink); cursor: pointer; }
body.store-modern .md-share:hover { background: var(--md-soft); }
body.store-modern .md-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 14px; }
body.store-modern .md-stars { color: var(--md-star); display: inline-flex; gap: 2px; font-size: 14px; }
body.store-modern .md-stars .fa-regular { color: #cfcdc8; }
body.store-modern .md-score { font-weight: 700; }
body.store-modern .md-rating-link { color: var(--md-muted); text-decoration: underline; text-underline-offset: 3px; }
body.store-modern .md-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
body.store-modern .md-now { font-size: 30px; font-weight: 700; line-height: 1.1; }
body.store-modern .md-was { font-size: 18px; color: var(--md-muted); text-decoration: line-through; }
body.store-modern .md-off { font-size: 13px; font-weight: 700; color: var(--md-good); background: #e8f5ee; padding: 3px 10px; border-radius: 999px; }
body.store-modern .md-tax { margin: 6px 0 0; font-size: 13px; color: var(--md-muted); }
body.store-modern .md-volume { margin: 14px 0 0; padding: 10px 14px; background: var(--md-soft); border-radius: var(--tpl-radius-sm); font-size: 14px; font-weight: 600; }
body.store-modern .md-short { margin: 16px 0 0; color: var(--md-muted); line-height: 1.6; font-size: 15px; }
body.store-modern .md-unit { margin: 6px 0 0; font-size: 13px; color: var(--md-muted); }
body.store-modern .md-rule { border: 0; border-top: 1px solid var(--md-line); margin: 22px 0; opacity: 1; }

body.store-modern .md-options { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
body.store-modern .md-options legend { float: none; width: auto; padding: 0; margin: 0 0 10px; font-size: 14px; font-weight: 600; }
body.store-modern .md-opt-row { display: flex; flex-wrap: wrap; gap: 10px; }
body.store-modern .md-opt { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--md-line); border-radius: var(--tpl-radius-sm); background: #fff; cursor: pointer; font-size: 15px; transition: border-color .15s ease, background .15s ease; }
body.store-modern .md-opt input { position: absolute; opacity: 0; pointer-events: none; }
body.store-modern .md-opt:hover { border-color: var(--md-ink); }
body.store-modern .md-opt:has(input:checked) { border-color: var(--btn-bg-color, var(--md-ink)); box-shadow: inset 0 0 0 1px var(--btn-bg-color, var(--md-ink)); font-weight: 600; }
body.store-modern .md-opt.is-off { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
body.store-modern .md-opt small { font-size: 12px; }

body.store-modern .md-stock { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 12px; border: 1px solid #badbcc; border-radius: 999px; background: #eef9f1; color: #198754; font-size: 13px; font-weight: 600; }
body.store-modern .md-stock:has(#stockInfoText:empty) { display: none; }
body.store-modern .md-buy { display: block !important; margin: 0; }
body.store-modern .md-qtyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
body.store-modern .md-qtyrow label { font-size: 14px; font-weight: 600; margin: 0; }
body.store-modern .md-stepper { display: inline-flex; align-items: center; height: 46px; border: 1px solid var(--md-line); border-radius: var(--tpl-radius-sm); overflow: hidden; background: #fff; }
body.store-modern .md-stepper .btn { width: 44px; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--md-ink); font-size: 20px; line-height: 1; }
body.store-modern .md-stepper .btn:hover { background: var(--md-soft); }
body.store-modern .md-stepper input { width: 52px; height: 100%; border: 0; border-left: 1px solid var(--md-line); border-right: 1px solid var(--md-line); border-radius: 0; text-align: center; font-weight: 600; background: #fff !important; padding: 0; box-shadow: none; -moz-appearance: textfield; }
body.store-modern .md-stepper input.qty-limit-flash { background: #fdecec !important; }
body.store-modern .md-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.store-modern #addToCartForm .pd-go-cart, body.store-modern #addToCartForm .pd-incart-note { display: none !important; }
body.store-modern #addToCartForm.pd-in-cart .pd-go-cart { display: inline-flex !important; }
body.store-modern #addToCartForm.pd-in-cart .pd-add-btn { display: none !important; }
body.store-modern #addToCartForm.pd-in-cart .pd-incart-note { display: block !important; margin: 10px 0 0; color: var(--md-good); font-size: 14px; font-weight: 600; }
body.store-modern .md-oos { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--md-soft); border-radius: var(--tpl-radius-sm); color: var(--md-muted); }
body.store-modern .md-oos strong { color: var(--md-ink); }

body.store-modern .md-extras { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--md-line); display: grid; gap: 14px; }
body.store-modern .md-zip summary { cursor: pointer; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; list-style: none; }
body.store-modern .md-zip summary::-webkit-details-marker { display: none; }
body.store-modern .md-zip summary::after { content: '+'; margin-left: auto; font-size: 18px; color: var(--md-muted); }
body.store-modern .md-zip[open] summary::after { content: '−'; }
body.store-modern .md-zip .zip-checker-row { display: flex; gap: 8px; margin-top: 12px; }
body.store-modern .md-zip .zip-checker-input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--md-line); border-radius: var(--tpl-radius-sm); background: #fff; }
body.store-modern .md-zip .zip-checker-btn { flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: var(--tpl-radius-sm); background: var(--btn-bg-color, #1d1d1f); color: var(--btn-txt-color, #fff); font-weight: 600; }
body.store-modern .md-zip .zip-checker-result { margin-top: 10px; font-size: 14px; font-weight: 500; }
body.store-modern .md-zip .zip-checker-result.success { color: var(--md-good); }
body.store-modern .md-wishform { display: block !important; margin: 0; }
body.store-modern .md-wish { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0; font-size: 14px; font-weight: 600; color: var(--md-ink); cursor: pointer; }
body.store-modern .md-wish i { color: var(--md-bad); }

/* ---- segmented tabs ---- */
body.store-modern .md-tabs { display: inline-flex; gap: 4px; margin: 56px 0 24px; padding: 4px; background: var(--md-soft); border-radius: 12px; max-width: 100%; overflow-x: auto; }
body.store-modern .md-tabs .tab-link { flex: none; min-height: 40px; padding: 0 20px; border: 0; border-radius: 9px !important; background: transparent; color: var(--md-muted); font-size: 15px; font-weight: 600; width: auto; cursor: pointer; }
body.store-modern .md-tabs .tab-link:hover { color: var(--md-ink); }
body.store-modern .md-tabs .tab-link.active-tab { background: #fff; color: var(--md-ink); box-shadow: 0 1px 4px rgba(20, 20, 30, .12); border: 0; }
body.store-modern .md-pane.d-none { display: none !important; }
body.store-modern .md-muted { color: var(--md-muted); }

/* ---- reviews: score panel beside the list ---- */
body.store-modern .md-rev-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: start; }
body.store-modern .md-rev-side { position: sticky; top: 120px; display: grid; gap: 20px; padding: 24px; background: var(--md-soft); border-radius: var(--md-card); }
body.store-modern .md-rev-score { display: grid; gap: 6px; }
body.store-modern .md-rev-score strong { font-size: 52px; line-height: 1; font-weight: 700; }
body.store-modern .md-rev-score small { color: var(--md-muted); font-size: 13px; }
body.store-modern .md-rev-bars { display: grid; gap: 8px; }
body.store-modern .rating-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: 13px; color: var(--md-muted); }
body.store-modern .rating-track { height: 8px; background: #e2dfda; border-radius: 99px; overflow: hidden; }
body.store-modern .rating-fill { height: 100%; background: var(--md-star); border-radius: 99px; }
body.store-modern .md-rev-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
body.store-modern .md-rev-title { font-size: 22px; font-weight: 700; margin: 0; text-transform: none; letter-spacing: 0; }
body.store-modern .md-sort { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--md-muted); }
body.store-modern .md-sort select { height: 42px; padding: 0 34px 0 14px; border: 1px solid var(--md-line); border-radius: var(--tpl-radius-sm); background-color: #fff; color: var(--md-ink); font-size: 14px; font-weight: 600; cursor: pointer; }
body.store-modern .md-rev-form { margin-bottom: 18px; padding: 22px; border: 1px solid var(--md-line); border-radius: var(--md-card); }
body.store-modern .md-rev-form form { display: grid !important; gap: 8px; margin: 0; }
body.store-modern .md-rev-form label { font-size: 14px; font-weight: 600; margin-top: 6px; }
body.store-modern .md-rev-form textarea { min-height: 110px; }
body.store-modern .md-rev-form .md-add { justify-self: start; margin-top: 8px; }
body.store-modern .md-rev-list { display: grid; gap: 14px; }
body.store-modern .md-rev-list .review-card { display: grid; gap: 12px; padding: 22px 24px; background: #fff; border: 1px solid var(--md-line); border-radius: var(--md-card); box-shadow: none; }
body.store-modern .md-rev-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
body.store-modern .md-rev-list .review-author { display: flex; align-items: center; gap: 12px; }
body.store-modern .md-rev-list .review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--md-soft); color: var(--md-ink); display: grid; place-items: center; font-weight: 700; flex: none; }
body.store-modern .md-rev-list .review-name { display: flex; flex-direction: column; font-weight: 700; font-size: 15px; line-height: 1.25; }
body.store-modern .md-rev-list .verified-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--md-good); font-size: 12px; font-weight: 600; background: transparent !important; padding: 0 !important; border: 0 !important; }
body.store-modern .md-rev-list .verified-badge small { font-size: 12px; }
body.store-modern .review-card-stars { color: var(--md-star); display: inline-flex; gap: 2px; font-size: 14px; white-space: nowrap; }
body.store-modern .review-card-stars i.bi-star { color: #cfcdc8; }
body.store-modern .md-rev-list .review-comment { margin: 0; line-height: 1.6; font-size: 15px; }
body.store-modern .md-rev-list .review-reply { background: var(--md-soft); border-radius: var(--tpl-radius-sm); padding: 12px 14px; font-size: 14px; }
body.store-modern .md-rev-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
body.store-modern .md-rev-list .review-date { color: var(--md-muted); font-size: 13px; }
body.store-modern .review-helpful { border: 1px solid var(--md-line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
body.store-modern .review-helpful:disabled { opacity: .6; cursor: default; }
body.store-modern .review-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 16px; color: var(--md-muted); text-align: center; border: 1px dashed var(--md-line); border-radius: var(--md-card); }
body.store-modern .review-empty i { font-size: 26px; } body.store-modern .review-empty strong { color: var(--md-ink); }
body.store-modern .md-more { margin-top: 18px; text-align: center; }

/* ---- recommendations ---- */
body.store-modern .md-reco { margin-top: 72px; }
body.store-modern .md-heading { font-size: 24px; font-weight: 700; margin: 0 0 20px; text-align: left; text-transform: none; letter-spacing: 0; }
body.store-modern .md-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.store-modern .md-choose { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
body.store-modern .md-choose-card { display: grid; gap: 8px; color: var(--md-ink); text-decoration: none; }
body.store-modern .md-choose-img { aspect-ratio: 1 / 1; border-radius: var(--md-card); background: var(--md-soft); overflow: hidden; border: 1px solid var(--md-line); }
body.store-modern .md-choose-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.store-modern .md-choose-name { font-weight: 600; }
body.store-modern .md-choose-price { font-weight: 700; } body.store-modern .md-choose-price small { color: var(--md-muted); font-weight: 400; }

/* ---- cart ---- */
body.store-modern .md-cart-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: start; }
body.store-modern .md-cart-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--md-line); }
body.store-modern .md-cart-row:first-child { padding-top: 4px; }
body.store-modern .md-cart-row.is-out-of-stock { opacity: .6; }
body.store-modern .md-cart-img { display: block; width: 104px; height: 104px; border-radius: 12px; background: var(--md-soft); overflow: hidden; border: 1px solid var(--md-line); }
body.store-modern .md-cart-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.store-modern .md-cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.store-modern .md-cart-name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0; }
body.store-modern .md-cart-name a { color: var(--md-ink); text-decoration: none; }
body.store-modern .md-cart-name a:hover { text-decoration: underline; }
body.store-modern .md-cart-opt, body.store-modern .md-cart-each { margin: 0; font-size: 14px; color: var(--md-muted); }
body.store-modern .md-cart-vol { align-self: flex-start; background: var(--md-soft); font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
body.store-modern .md-cart-note { font-size: 13px; font-weight: 600; }
body.store-modern .md-cart-note.is-low { color: #b45309; } body.store-modern .md-cart-note.is-adjusted { color: #1d4ed8; } body.store-modern .md-cart-note.is-out { color: var(--md-bad); }
body.store-modern .md-cart-controls { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
body.store-modern .md-cart-qty { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--md-line); border-radius: var(--tpl-radius-sm); overflow: hidden; background: #fff; }
body.store-modern .md-cart-qty button { width: 38px; height: 100%; padding: 0 !important; border: 0; border-radius: 0 !important; background: transparent; color: var(--md-ink); font-size: 18px; line-height: 1; min-height: 0; min-width: 0 !important; cursor: pointer; }
body.store-modern .md-cart-qty button:hover:not(:disabled) { background: var(--md-soft); }
body.store-modern .md-cart-qty button:disabled { opacity: .3; cursor: not-allowed; }
body.store-modern .md-cart-qty span { min-width: 36px; text-align: center; font-weight: 600; font-size: 15px; border-left: 1px solid var(--md-line); border-right: 1px solid var(--md-line); line-height: 38px; }
body.store-modern .md-cart-remove { border: 0; background: transparent; padding: 4px 0; width: auto !important; min-height: 0; color: var(--md-muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body.store-modern .md-cart-remove:hover { color: var(--md-bad); }
body.store-modern .md-cart-line { margin: 0; font-size: 18px; font-weight: 700; white-space: nowrap; font-family: inherit; }

body.store-modern .md-summary { position: sticky; top: 120px; padding: 26px; background: var(--md-soft); border-radius: var(--md-card); }
body.store-modern .md-summary h2 { margin: 0 0 18px; font-size: 20px; font-weight: 700; text-transform: none; letter-spacing: 0; }
body.store-modern .md-sum { margin: 0 0 14px; display: grid; gap: 12px; }
body.store-modern .md-sum div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
body.store-modern .md-sum dt { font-weight: 400; color: var(--md-muted); } body.store-modern .md-sum dt small { font-size: 13px; }
body.store-modern .md-sum dd { margin: 0; font-weight: 600; }
body.store-modern .md-sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; margin-bottom: 18px; border-top: 1px solid var(--md-line); font-size: 17px; font-weight: 600; }
body.store-modern .md-sum-total strong { font-size: 26px; font-family: inherit; }
body.store-modern .md-promo { display: block !important; margin: 0 0 18px; }
body.store-modern .md-promo label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
body.store-modern .md-promo-row { display: flex; gap: 8px; }
body.store-modern .md-promo input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--md-line); border-radius: var(--tpl-radius-sm); background: #fff; font-size: 15px; }
body.store-modern .md-promo .md-outline { flex: none; min-height: 46px; padding: 0 20px; }
body.store-modern .md-promo p { margin: 8px 0 0; font-size: 12px; color: var(--md-muted); }
body.store-modern .md-checkout { display: flex; width: 100%; min-height: 52px; }
body.store-modern .md-continue { display: block; margin-top: 14px; text-align: center; font-size: 14px; color: var(--md-muted); }
body.store-modern .md-cart-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 72px 16px; text-align: center; }
body.store-modern .md-cart-empty i { font-size: 40px; color: #cfcdc8; }
body.store-modern .md-cart-empty h2 { margin: 6px 0 0; font-size: 24px; font-weight: 700; text-transform: none; letter-spacing: 0; }
body.store-modern .md-cart-empty p { margin-bottom: 12px; color: var(--md-muted); }

@media (max-width: 991.98px) {
  body.store-modern .md-top, body.store-modern .md-cart-grid, body.store-modern .md-rev-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.store-modern .md-card, body.store-modern .md-summary, body.store-modern .md-rev-side { position: static; }
  body.store-modern .md-grid, body.store-modern .md-choose { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  body.store-modern .md-wrap { padding: 0 16px 56px; }
  body.store-modern .md-card { padding: 20px; }
  body.store-modern .md-now { font-size: 26px; }
  body.store-modern .md-actions { grid-template-columns: 1fr; }
  body.store-modern .md-tabs { display: flex; }
  body.store-modern .md-tabs .tab-link { flex: 1; padding: 0 10px; font-size: 14px; }
  body.store-modern .md-cart-row { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
  body.store-modern .md-cart-img { width: 80px; height: 80px; }
  body.store-modern .md-cart-line { grid-column: 2; font-size: 17px; }
  body.store-modern .md-rev-list .review-card { padding: 18px; }
  body.store-modern .md-rev-top { flex-direction: column; align-items: flex-start; }
  body.store-modern .md-reco { margin-top: 48px; }
}
@media (prefers-reduced-motion: no-preference) {
  body.store-modern .md-stepper input.qty-limit-flash { animation: md-nudge .35s ease; }
  @keyframes md-nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
}
