/* ==========================================================================
   E-MART HOME ESSENTIALS — shop-specific styles
   Extends ../css/style.css. Same design tokens, storefront-specific layout.
   ========================================================================== */

.shop-topbar{
  background: var(--navy-950); color:#B9C6DC; font-size:12.5px; font-family: var(--font-mono);
}
.shop-topbar .container{ display:flex; justify-content:space-between; align-items:center; height:34px; }
.shop-topbar a{ color:#8FC1FF; }

/* ---- Category filter chips ---- */
.filter-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 34px; }
.chip{
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line-200); background:#fff;
  font-size: 13.5px; font-weight:600; color: var(--slate-600); transition: all .2s;
}
.chip:hover{ border-color: var(--blue-400); color: var(--blue-600); }
.chip.active{ background: var(--grad-brand); border-color: transparent; color:#fff; }

/* ---- Product grid ---- */
.shop-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1080px){ .shop-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 780px){ .shop-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .shop-grid{ grid-template-columns: 1fr; } }

.product-card{
  background:#fff; border:1px solid var(--line-200); border-radius: var(--radius-md); overflow:hidden;
  display:flex; flex-direction:column; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.product-thumb{
  aspect-ratio: 1/1; background: var(--mist-100); position:relative; display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.product-thumb svg{ width:58%; height:58%; }
.product-badge{
  position:absolute; top:10px; left:10px; background: var(--navy-900); color:#fff; font-size:10.5px;
  font-family: var(--font-mono); letter-spacing:.05em; padding: 4px 10px; border-radius:999px; text-transform:uppercase;
}
.product-cat{ font-size: 11px; color: var(--blue-600); font-family: var(--font-mono); text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px; }
.product-body{ padding: 16px 16px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-body h4{ font-size: 15px; font-family: var(--font-display); margin:0; line-height:1.3; color:var(--navy-900); }
.product-meta{ font-size:12.5px; color: var(--slate-500); }
.product-price-row{ display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:10px; }
.product-price{ font-family: var(--font-mono); font-weight:700; font-size:17px; color: var(--navy-900); }
.product-price .old{ font-size:12px; color: var(--slate-400); text-decoration: line-through; font-weight:500; margin-right:6px; }
.add-cart-btn{
  width:36px; height:36px; border-radius:10px; background: var(--grad-brand); color:#fff; border:none;
  display:flex; align-items:center; justify-content:center; transition: transform .2s, box-shadow .2s;
}
.add-cart-btn:hover{ transform: scale(1.08); box-shadow: 0 8px 16px -4px rgba(34,85,232,0.5); }
.add-cart-btn.added{ background: #16A365; }

/* ---- Cart icon button (header) ---- */
.cart-btn{
  position: relative; width:42px; height:42px; border-radius:11px; background: var(--mist-100); color: var(--navy-900);
  display:flex; align-items:center; justify-content:center; transition: background .2s, color .2s; border:none;
}
.cart-btn:hover{ background: var(--grad-brand); color:#fff; }
.cart-count{
  position:absolute; top:-6px; right:-6px; background: var(--blue-600); color:#fff; font-family: var(--font-mono);
  font-size: 10.5px; font-weight:700; min-width:18px; height:18px; border-radius:999px; display:flex; align-items:center; justify-content:center;
  padding: 0 4px; border: 2px solid #fff;
}

/* ---- Cart drawer ---- */
.cart-overlay{
  position: fixed; inset:0; background: rgba(7,18,37,0.5); backdrop-filter: blur(2px); z-index: 400;
  opacity:0; visibility:hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.cart-overlay.open{ opacity:1; visibility:visible; }
.cart-drawer{
  position: fixed; top:0; right:0; bottom:0; width: min(420px, 100%); background:#fff; z-index:401;
  box-shadow: -20px 0 50px rgba(7,18,37,0.25); transform: translateX(100%); transition: transform .35s var(--ease);
  display:flex; flex-direction:column;
}
.cart-drawer.open{ transform: translateX(0); }
.cart-head{ display:flex; align-items:center; justify-content:space-between; padding: 22px 24px; border-bottom:1px solid var(--line-200); }
.cart-head h3{ margin:0; font-size:18px; }
.cart-close{ width:34px; height:34px; border-radius:9px; background: var(--mist-100); border:none; display:flex; align-items:center; justify-content:center; color:var(--navy-900); }
.cart-items{ flex:1; overflow-y:auto; padding: 10px 24px; }
.cart-empty{ text-align:center; padding: 60px 20px; color: var(--slate-500); }
.cart-empty svg{ color: var(--line-200); margin-bottom:14px; }
.cart-item{ display:flex; gap:14px; padding: 16px 0; border-bottom: 1px solid var(--line-200); }
.cart-item-thumb{ width:56px; height:56px; border-radius:10px; background: var(--mist-100); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.cart-item-thumb svg{ width:60%; height:60%; }
.cart-item-body{ flex:1; min-width:0; }
.cart-item-body h5{ font-size:13.5px; margin:0 0 4px; font-family: var(--font-body); font-weight:600; color: var(--navy-900); }
.cart-item-price{ font-family: var(--font-mono); font-size:13px; color: var(--blue-600); font-weight:600; }
.qty-row{ display:flex; align-items:center; gap:10px; margin-top:8px; }
.qty-btn{ width:24px; height:24px; border-radius:6px; border:1px solid var(--line-200); background:#fff; display:flex; align-items:center; justify-content:center; font-size:14px; color: var(--navy-900); }
.qty-val{ font-family: var(--font-mono); font-size:13px; min-width:16px; text-align:center; }
.remove-item{ font-size:11.5px; color: var(--slate-500); text-decoration: underline; margin-left:auto; }
.cart-footer{ padding: 20px 24px 24px; border-top:1px solid var(--line-200); }
.cart-subtotal-row{ display:flex; justify-content:space-between; font-size:15px; font-weight:600; margin-bottom:6px; }
.cart-note{ font-size:12px; color: var(--slate-500); margin-bottom:16px; }

/* ---- Hero for shop ---- */
.shop-hero{ background: var(--grad-dark); color:#fff; padding: 60px 0 54px; position:relative; overflow:hidden; }
.shop-hero .container{ position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.shop-hero h1{ color:#fff; font-size: clamp(26px,3.4vw,38px); max-width:520px; margin-bottom:10px; }
.shop-hero p{ color:#B9C6DC; max-width:480px; margin:0; }
.shop-hero-badges{ display:flex; gap:20px; flex-wrap:wrap; margin-top:20px; }
.shop-hero-badges .item{ display:flex; align-items:center; gap:8px; font-size:13px; color:#9FB0C8; }
.shop-hero-badges svg{ color: var(--sky-300); }

/* ---- Trust strip ---- */
.trust-strip{ display:grid; grid-template-columns: repeat(4,1fr); gap:1px; background: var(--line-200); border:1px solid var(--line-200); border-radius: var(--radius-md); overflow:hidden; margin-bottom: 60px; }
.trust-cell{ background:#fff; padding: 22px; text-align:center; }
.trust-cell svg{ color: var(--blue-600); margin-bottom:8px; }
.trust-cell .t{ font-size:13.5px; font-weight:600; color: var(--navy-900); }
.trust-cell .s{ font-size:11.5px; color: var(--slate-500); margin-top:2px; }
@media (max-width:680px){ .trust-strip{ grid-template-columns: repeat(2,1fr); } }
