@font-face {
  font-family: 'Far_Yekan';
  src: url('../Assets/fonts/Far_Yekan.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --store-primary: #1b4332;
  --store-accent: #95d5b2;
  --store-lime: #b7e4c7;
  --store-price: #2d6a4f;
  --store-bg: #f7f8f5;
  --store-card: #ffffff;
  --store-ink: #1b4332;
  --store-muted: #6c757d;
  --store-border: #e8ece8;
  --store-radius: 12px;
  --store-font: 'Far_Yekan', Tahoma, sans-serif;
}

* { box-sizing: border-box; }

body.store-body {
  margin: 0;
  font-family: var(--store-font);
  color: var(--store-ink);
  background: #fff;
  min-height: 100vh;
}

body.store-body h1,
body.store-body h2,
body.store-body h3,
body.store-body h4,
body.store-body h5,
body.store-body h6,
body.store-body button,
body.store-body input,
body.store-body textarea,
body.store-body select {
  font-family: var(--store-font);
}

a { color: inherit; }

/* ========== TOP BAR ========== */
.wm-topbar {
  background: var(--store-accent);
  color: var(--store-primary);
  font-size: .85rem;
  font-weight: 600;
  padding: .45rem 0;
}
.wm-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== MAIN HEADER ========== */
.wm-header {
  background: var(--store-primary);
  color: #fff;
  padding: 1rem 0;
}
.wm-header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}
.wm-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: #fff;
}
.wm-brand img { width: 44px; height: 44px; object-fit: contain; filter: brightness(0) invert(1); }
.wm-brand strong {
  font-family: var(--store-font);
  font-size: 1.55rem;
  letter-spacing: 0;
  display: block;
  line-height: 1;
}
.wm-brand small { opacity: .75; font-size: .72rem; display: block; margin-top: .2rem; }

.wm-search {
  position: relative;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
.wm-search input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: .85rem 3.2rem .85rem 1.2rem;
  font-size: .95rem;
  outline: none;
}
.wm-search button {
  position: absolute;
  left: .35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--store-primary);
  color: #fff;
  display: grid;
  place-items: center;
}

.wm-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.wm-action {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #fff;
  text-decoration: none;
  font-size: .82rem;
  line-height: 1.2;
}
.wm-action i {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.wm-action strong { display: block; font-weight: 700; }
.wm-action span { opacity: .8; font-size: .75rem; }

/* ========== NAV ========== */
.wm-nav {
  background: #fff;
  border-bottom: 1px solid var(--store-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.wm-nav-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 58px;
}
.wm-cats-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--store-primary);
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
}
.wm-menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  flex: 1;
}
.wm-menu > a, .wm-drop > a {
  text-decoration: none;
  color: var(--store-ink);
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.wm-menu > a:hover, .wm-drop > a:hover { color: var(--store-price); }
.wm-drop { position: relative; }
.wm-drop-menu {
  display: none;
  position: absolute;
  top: 115%;
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
  padding: .45rem;
  z-index: 20;
}
.wm-drop:hover .wm-drop-menu { display: block; }
.wm-drop-menu a {
  display: block;
  padding: .55rem .75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--store-ink);
  font-weight: 600;
  font-size: .9rem;
  text-transform: none;
}
.wm-drop-menu a:hover { background: #f1f7f3; }
.wm-nav-right {
  display: flex;
  gap: 1rem;
  margin-right: auto;
  font-size: .88rem;
  font-weight: 700;
}
.wm-nav-right a {
  text-decoration: none;
  color: var(--store-price);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

/* ========== HERO ========== */
.wm-hero {
  background: linear-gradient(180deg, #eef5ef 0%, #f7f8f5 100%);
  padding: 2.5rem 0 1.5rem;
}
.wm-hero-card {
  background: #eef2ed;
  border-radius: 18px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.wm-hero-kicker {
  color: var(--store-muted);
  font-weight: 600;
  margin-bottom: .75rem;
}
.wm-hero h1 {
  font-family: var(--store-font);
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  line-height: 1.45;
  color: var(--store-primary);
  margin: 0 0 1rem;
  font-weight: normal;
  max-width: none;
}
.wm-hero p {
  color: #4b5563;
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
}
.wm-hero-visual {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px rgba(27,67,50,.12);
}
.wm-hero-visual img { width: 100%; display: block; object-fit: cover; max-height: 360px; }

/* ========== BUTTONS ========== */
.btn-store, .btn-wm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  background: var(--store-primary);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  padding: .85rem 1.4rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  line-height: 1.2;
}
.btn-store:hover, .btn-wm:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  color: #fff !important;
}
.btn-store-sm {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #fff;
  color: var(--store-primary) !important;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.btn-outline-store, .btn-wm-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 1.5px solid var(--store-primary);
  background: #fff;
  color: var(--store-primary) !important;
  border-radius: 12px;
  padding: .7rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  transition: .15s ease;
  cursor: pointer;
}
.btn-outline-store:hover, .btn-wm-outline:hover {
  background: var(--store-primary);
  color: #fff !important;
}
.btn-wm-cart {
  width: 100%;
  border: 1.5px solid var(--store-primary);
  background: #fff;
  color: var(--store-primary);
  border-radius: 8px;
  padding: .7rem;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .02em;
}
.btn-wm-cart:hover { background: var(--store-primary); color: #fff; }

/* ========== SECTIONS ========== */
.wm-section { padding: 3rem 0; }
.wm-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--store-primary);
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: 1.5rem;
  margin-bottom: .35rem;
  color: var(--store-primary);
  font-weight: 800;
}
.section-sub { color: var(--store-muted); margin-bottom: 1.5rem; }

.wm-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
  margin-bottom: 1.75rem;
}
.wm-tabs a {
  text-decoration: none;
  color: var(--store-muted);
  font-weight: 700;
  font-size: .92rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid transparent;
}
.wm-tabs a.active, .wm-tabs a:hover {
  color: var(--store-primary);
  border-bottom-color: var(--store-primary);
}

/* ========== PRODUCT GRID/CARD ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.product-card, .wm-product {
  background: var(--store-card);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
  position: relative;
}
.product-card:hover, .wm-product:hover {
  box-shadow: 0 14px 30px rgba(27,67,50,.1);
  transform: translateY(-3px);
}
.product-card .thumb, .wm-product .thumb {
  aspect-ratio: 1;
  background: #fafafa;
  overflow: hidden;
  display: block;
  position: relative;
}
.product-card .thumb img, .wm-product .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wm-badge {
  position: absolute;
  top: .7rem;
  right: .7rem;
  background: #e63946;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: .25rem .45rem;
  border-radius: 6px;
}
.product-card .body, .wm-product .body {
  padding: .9rem 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card h3, .wm-product h3 {
  font-size: .95rem;
  margin: 0 0 .25rem;
  font-weight: 700;
  line-height: 1.35;
}
.product-card h3 a, .wm-product h3 a { color: inherit; text-decoration: none; }
.product-card .desc, .wm-meta {
  color: var(--store-muted);
  font-size: .8rem;
}
.wm-rating {
  color: #f4a261;
  font-size: .82rem;
  font-weight: 700;
  margin: .35rem 0;
}
.product-card .price, .wm-price, .price {
  font-weight: 800;
  color: var(--store-price);
  margin-top: .35rem;
  font-size: 1.05rem;
}
.wm-price del {
  color: var(--store-muted);
  font-weight: 500;
  font-size: .85rem;
  margin-right: .35rem;
}
.wm-product .body .btn-wm-cart { margin-top: auto; }

/* ========== LIFESTYLE / CATEGORY CIRCLES ========== */
.wm-lifestyle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.wm-life-item {
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
}
.wm-life-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--store-primary);
  background: #e9f5ee;
}
.wm-life-item:nth-child(2) .wm-life-icon { background: #f5efe6; }
.wm-life-item:nth-child(3) .wm-life-icon { background: #e8f4f4; }
.wm-life-item:nth-child(4) .wm-life-icon { background: #f8eef0; }
.wm-life-item h4 { margin: 0 0 .35rem; font-weight: 800; color: var(--store-primary); }
.wm-life-item p { margin: 0; color: var(--store-muted); font-size: .88rem; }

/* ========== OFFER BANNERS ========== */
.wm-offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.wm-offer {
  border-radius: 14px;
  padding: 1.75rem 1.4rem;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.wm-offer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,67,50,.15), rgba(27,67,50,.85));
}
.wm-offer > * { position: relative; z-index: 1; }
.wm-offer small { opacity: .9; font-weight: 600; }
.wm-offer h3 { margin: .35rem 0 0; font-size: 1.35rem; font-weight: 800; }
.wm-offer:nth-child(1) { background-color: #40916c; }
.wm-offer:nth-child(2) { background-color: #2d6a4f; }
.wm-offer:nth-child(3) { background-color: #1b4332; }

/* ========== FEATURE STRIP ========== */
.wm-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--store-border);
  border-bottom: 1px solid var(--store-border);
  margin: 1rem 0 0;
}
.wm-feature {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.wm-feature i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e9f5ee;
  color: var(--store-primary);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}
.wm-feature strong { display: block; font-size: .95rem; }
.wm-feature span { color: var(--store-muted); font-size: .8rem; }

/* ========== GALLERY / MISC ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #ddd;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.cat-chip {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--store-border);
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  margin: .25rem;
}
.cat-chip.active, .cat-chip:hover {
  background: var(--store-primary);
  color: #fff;
  border-color: transparent;
}

.panel-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--store-border);
  padding: 1.25rem;
}

.icon-btn {
  width: 42px; height: 42px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff;
  text-decoration: none; position: relative;
}
.icon-btn .badge {
  position: absolute; top: -4px; left: -4px;
  background: var(--store-accent); color: var(--store-primary);
  border-radius: 999px; font-size: .65rem; padding: .15rem .35rem; font-weight: 800;
}

/* ========== FOOTER ========== */
.store-footer, .wm-footer {
  margin-top: 3rem;
  background: var(--store-primary);
  color: #f1f7f3;
}
.store-footer a, .wm-footer a { color: #d8f3dc; text-decoration: none; }
.wm-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.wm-socials a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.wm-socials a:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-2px);
}
.wm-enamad {
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  padding: .65rem;
  display: inline-block;
  max-width: 100%;
}
.wm-enamad img,
.wm-enamad a img {
  max-width: 100px;
  height: auto;
  display: block;
}

.store-powered {
  white-space: nowrap;
  margin-inline-start: .75rem;
}
.store-powered a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

/* ========== ADMIN SHELL (keep working) ========== */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
  background: #111827; color: #fff; padding: 1.25rem .85rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #374151 transparent;
}
.admin-side a, .side-group > summary {
  display: block; color: #e5e7eb; text-decoration: none;
  padding: .55rem .8rem; border-radius: 10px; margin-bottom: .15rem; font-size: .92rem;
}
.admin-side a:hover, .admin-side a.active, .side-group > summary:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-side a.active { box-shadow: inset -3px 0 0 #818cf8; }
.side-head { display: flex; align-items: center; gap: .5rem; padding: 0 .4rem; margin-bottom: 1rem; }
.side-store { flex: 1; min-width: 0; }
.side-store strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-toggle {
  display: none; position: relative; border: 0; border-radius: 10px; padding: .35rem .6rem;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.35rem; line-height: 1;
}
.side-toggle .side-badge { position: absolute; top: -.35rem; left: -.35rem; float: none; }
.side-group > summary { display: flex; align-items: center; gap: .35rem; cursor: pointer; list-style: none; user-select: none; }
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary .grow { flex: 1; }
.side-group > summary.has-active { color: #fff; }
.side-caret { font-size: .75rem; opacity: .6; transition: transform .2s; }
.side-group[open] > summary .side-caret { transform: rotate(180deg); }
.side-group[open] > summary .side-badge { display: none; }
.side-sub { margin: 0 .9rem .35rem 0; padding-right: .5rem; border-right: 1px solid rgba(255,255,255,.12); }
.side-sub a { padding: .42rem .7rem; font-size: .87rem; color: #cbd5e1; }
.side-badge {
  float: left; min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px;
  background: #ef4444; color: #fff; font-size: .75rem; line-height: 1.4rem; text-align: center;
}
.side-group > summary .side-badge { float: none; }
@media (min-width: 992px) {
  .side-nav.collapse, .side-nav.collapsing { display: block !important; height: auto !important; }
}
@media (max-width: 991.98px) {
  .admin-side { position: sticky; top: 0; z-index: 1030; height: auto; max-height: 100vh; padding: .65rem .85rem; }
  .side-head { margin-bottom: 0; }
  .side-toggle { display: block; }
  .side-nav { padding-top: .75rem; }
}
.admin-main { padding: 1.5rem; background: #f3f4f6; }
.admin-side, .admin-main { min-width: 0; }

.page-hero-lite {
  background: #eef5ef;
  padding: 1.75rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--store-border);
}

@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .wm-header-row, .wm-hero-card, .wm-lifestyle, .wm-offers, .wm-features, .admin-shell {
    grid-template-columns: 1fr;
  }
  .wm-actions { justify-content: flex-start; flex-wrap: wrap; }
  .wm-nav-row { flex-wrap: wrap; padding: .75rem 0; }
  .product-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .wm-action span, .wm-action strong { display: none; }
}
@media (max-width: 576px) {
  .product-grid, .gallery-grid, .wm-lifestyle { grid-template-columns: 1fr; }
  .wm-offers { grid-template-columns: 1fr; }
}

/* ========== CART PAGE ========== */
.cart-page {
  padding: 2.5rem 0 4rem;
}
.cart-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.cart-head-sub {
  margin: 0;
  color: #64748b;
  font-size: .95rem;
}
.cart-link-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--store-primary);
  font-weight: 700;
  text-decoration: none;
}
.cart-link-back:hover { opacity: .85; }

.cart-empty {
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 3.5rem 1.5rem;
  max-width: 520px;
  margin: 0 auto;
}
.cart-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: #94a3b8;
}
.cart-empty h2 {
  font-size: 1.35rem;
  margin-bottom: .5rem;
}
.cart-empty p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 1.25rem;
  align-items: start;
}
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.cart-item-thumb {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  flex-shrink: 0;
}
.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info h3 {
  font-size: 1.05rem;
  margin: 0 0 .55rem;
  line-height: 1.4;
}
.cart-item-info h3 a {
  color: inherit;
  text-decoration: none;
}
.cart-item-info h3 a:hover { color: var(--store-primary); }
.cart-item-price {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: center;
  font-size: .9rem;
  color: #64748b;
}
.cart-item-price strong {
  color: #0f172a;
  font-size: 1rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .65rem;
  min-width: 200px;
}
.cart-qty-form {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: 0;
}
.cart-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  width: 100%;
}
.cart-qty-btn {
  width: 40px;
  border: none;
  background: #f8fafc;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background .15s ease;
}
.cart-qty-btn:hover { background: #eef2ff; color: var(--store-primary); }
.cart-qty-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-inline: 1px solid #e2e8f0;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding: .55rem .25rem;
  background: #fff;
  -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-cart-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  border: 1.5px solid var(--store-primary);
  background: #fff;
  color: var(--store-primary);
  border-radius: 12px;
  padding: .65rem .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: .15s ease;
}
.btn-cart-secondary:hover {
  background: var(--store-primary);
  color: #fff;
}
.cart-remove-form { margin: 0; }
.btn-cart-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #dc2626;
  border-radius: 12px;
  padding: .55rem .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: .15s ease;
}
.btn-cart-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.cart-summary {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 1rem;
}
.cart-summary h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid #eef2f7;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
  color: #64748b;
  font-size: .95rem;
}
.cart-summary-row strong { color: #0f172a; }
.cart-summary-total {
  margin-top: .85rem;
  padding-top: .95rem;
  border-top: 1px dashed #e2e8f0;
  margin-bottom: 1.15rem;
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 700;
}
.cart-summary-total strong {
  color: var(--store-primary);
  font-size: 1.15rem;
}
.btn-cart-checkout {
  width: 100%;
  margin-bottom: .65rem;
}
.btn-cart-ghost {
  display: block;
  text-align: center;
  color: #64748b;
  font-weight: 600;
  text-decoration: none;
  padding: .45rem;
  border-radius: 10px;
}
.btn-cart-ghost:hover {
  color: var(--store-primary);
  background: #f8fafc;
}

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 72px 1fr;
    gap: .85rem;
  }
  .cart-item-actions {
    grid-column: 1 / -1;
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .cart-qty-form {
    flex: 1 1 160px;
  }
  .cart-remove-form {
    flex: 0 0 auto;
  }
  .btn-cart-danger span { display: none; }
  .btn-cart-danger {
    width: auto;
    min-width: 46px;
    padding: .65rem;
  }
}
