/* ==========================================================================
   MALIK HARDWARE — Stylesheet
   Design language: industrial signage. Hazard-orange on ink navy, condensed
   display type for nameplates, diagonal hazard-stripe motif used sparingly
   as a structural device (sale badges, section dividers) rather than
   decoration.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* Color */
  --ink: #10161D;
  --ink-soft: #1B242F;
  --steel: #3E4C5A;
  --steel-light: #647485;
  --paper: #EEF0F2;
  --paper-alt: #E3E7EB;
  --white: #FFFFFF;
  --orange: #E35205;
  --orange-dark: #B84203;
  --orange-light: #FFEBDD;
  --line: #D6DBE0;
  --success: #1E7A3D;
  --success-bg: #E6F4EA;
  --danger: #C81E3A;
  --danger-bg: #FCE8EA;
  --gold: #C99A2E;

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1280px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(16,22,29,0.06), 0 2px 8px rgba(16,22,29,0.06);
  --shadow-lift: 0 4px 16px rgba(16,22,29,0.14);
  --header-h: 64px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family: inherit; cursor:pointer; }
input, select, textarea{ font-family: inherit; font-size: 1rem; }
:focus-visible{ outline: 3px solid var(--orange); outline-offset: 2px; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .2px;
}
h1{ font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 700; }
h2{ font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3{ font-size: 1.2rem; }
p{ margin: 0 0 1em; color: var(--steel); }

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section{ padding: 64px 0; }
.section--tight{ padding: 40px 0; }
.section--dark{ background: var(--ink); color: var(--white); }
.section--dark p{ color: #AEB9C4; }
.section--alt{ background: var(--white); }

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 28px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 14px;
}
.section-head h2{ margin:0; }
.section-head .see-all{
  font-weight:600;
  color: var(--orange-dark);
  white-space:nowrap;
  border-bottom: 2px solid transparent;
}
.section-head .see-all:hover{ border-color: var(--orange-dark); }

/* Hazard stripe divider - used once per page, sparingly */
.hazard-rule{
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink), var(--ink) 12px,
    var(--orange) 12px, var(--orange) 24px
  );
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--orange); color: var(--white); }
.btn-primary:hover{ background: var(--orange-dark); }
.btn-dark{ background: var(--ink); color: var(--white); }
.btn-dark:hover{ background: var(--ink-soft); }
.btn-outline{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--white); }
.btn-outline-light{ background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline-light:hover{ background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover{ background: var(--paper-alt); }
.btn-block{ width:100%; }
.btn-sm{ padding: 9px 16px; font-size: .85rem; }
.btn-icon{ padding: 10px; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: sticky; top:0; z-index: 200;
  background: var(--ink);
  color: var(--white);
}
.topbar{
  background: var(--ink-soft);
  font-size: .8rem;
  color: #AEB9C4;
}
.topbar .container{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:6px; padding-bottom:6px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a{ color: #D8DEE4; }
.topbar a:hover{ color: var(--orange); }
.topbar-links{ display:flex; gap:18px; }

.navbar{
  display:flex;
  align-items:center;
  gap: 24px;
  height: var(--header-h);
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight:700;
  color: var(--white);
  flex-shrink:0;
}
.logo-mark{
  width:38px; height:38px; border-radius:3px;
  background: var(--orange);
  display:flex; align-items:center; justify-content:center;
  color: var(--ink);
  font-weight:700;
  font-size:1.1rem;
  transform: skewX(-6deg);
}
.logo-text{ display:flex; flex-direction:column; line-height:1; }
.logo-text small{
  font-family: var(--font-body);
  font-size:.6rem;
  font-weight:600;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-top:3px;
}

.nav-links{
  display:flex;
  gap: 28px;
  margin-left: 8px;
}
.nav-links a{
  font-weight:500;
  font-size:.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: #D8DEE4;
}
.nav-links a:hover, .nav-links a.active{ color: var(--white); border-color: var(--orange); }

.nav-actions{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-left:auto;
}
.icon-btn{
  position:relative;
  width:42px; height:42px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--white);
}
.icon-btn:hover{ background: rgba(255,255,255,.08); }
.icon-btn svg{ width:21px; height:21px; }
.cart-count{
  position:absolute; top:1px; right:1px;
  background: var(--orange);
  color: var(--white);
  font-size: .65rem;
  font-weight:700;
  min-width:17px; height:17px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  padding: 0 3px;
  border: 2px solid var(--ink);
}

.search-form{
  display:flex;
  align-items:center;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.15);
  overflow:hidden;
  flex: 1 1 320px;
  max-width: 420px;
}
.search-form input{
  flex:1;
  background: transparent;
  border:none;
  color: var(--white);
  padding: 10px 12px;
  font-size: .9rem;
}
.search-form input::placeholder{ color: #8C99A6; }
.search-form input:focus{ outline:none; }
.search-form button{
  background: var(--orange);
  border:none;
  width:42px; height:40px;
  display:flex; align-items:center; justify-content:center;
  color: var(--white);
}
.search-form button:hover{ background: var(--orange-dark); }
.search-form button svg{ width:18px; height:18px; }

.hamburger{
  display:none;
  width:42px; height:42px;
  border:none; background:transparent;
  color: var(--white);
  align-items:center; justify-content:center;
}
.hamburger svg{ width:24px; height:24px; }

.mobile-panel{
  display:none;
  position:fixed; inset:0;
  background: var(--ink);
  z-index: 300;
  padding: 18px 20px 30px;
  overflow-y:auto;
}
.mobile-panel.open{ display:block; }
.mobile-panel-head{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom: 20px;
}
.mobile-panel .search-form{ max-width:none; margin-bottom: 22px; }
.mobile-panel-links a{
  display:block;
  padding: 15px 4px;
  font-size: 1.1rem;
  font-weight:600;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-panel-links a:hover{ color: var(--orange); }
.mobile-panel-foot{ margin-top:24px; display:flex; flex-direction:column; gap:10px; }

@media (max-width: 980px){
  .nav-links, .search-form.desktop-search{ display:none; }
  .hamburger{ display:flex; }
  .topbar .topbar-links{ display:none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position:relative;
  background: linear-gradient(105deg, var(--ink) 42%, var(--ink-soft) 42%);
  color: var(--white);
  overflow:hidden;
}
.hero .container{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  align-items:center;
  gap: 40px;
  min-height: 520px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: var(--orange);
  font-weight:700;
  font-size:.85rem;
  margin-bottom: 14px;
}
.hero-eyebrow .dot{ width:8px; height:8px; background:var(--orange); border-radius:50%; }
.hero h1{ margin-bottom: .35em; }
.hero h1 .accent{ color: var(--orange); }
.hero p.lead{
  color: #C3CBD3;
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 1.6em;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-stats{
  display:flex;
  gap: 32px;
  margin-top: 44px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 22px;
}
.hero-stat strong{ display:block; font-family: var(--font-display); font-size:1.6rem; color:var(--white); }
.hero-stat span{ font-size:.8rem; color:#9AA6B2; }

.hero-visual{
  position:relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow:hidden;
  border: 6px solid var(--orange);
}
.hero-visual img{ width:100%; height:100%; object-fit:cover; }
.hero-visual-tag{
  position:absolute; left:16px; bottom:16px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight:700;
  font-size:.85rem;
  box-shadow: var(--shadow-lift);
  display:flex; align-items:center; gap:8px;
}
.hero-visual-tag .swatch{ width:10px; height:10px; background:var(--success); border-radius:50%; }

@media (max-width: 860px){
  .hero .container{ grid-template-columns: 1fr; min-height:auto; padding-top:32px; }
  .hero{ background: var(--ink); }
  .hero-visual{ order:-1; aspect-ratio: 16/10; }
}

/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */
.category-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.category-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  transition: box-shadow .15s ease, transform .15s ease;
  display:flex;
  flex-direction:column;
}
.category-card:hover{ box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.category-card .cat-img{
  height: 130px;
  background-size: cover;
  background-position:center;
  position:relative;
}
.category-card .cat-img::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(16,22,29,0) 40%, rgba(16,22,29,.55));
}
.category-card .cat-count{
  position:absolute; top:10px; right:10px;
  background: rgba(16,22,29,.75);
  color: var(--white);
  font-size:.7rem;
  font-weight:700;
  padding: 3px 8px;
  border-radius: 20px;
}
.category-card .cat-body{ padding: 16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.category-card h3{ margin:0; font-size:1.05rem; }
.category-card p{ font-size:.85rem; margin:0; flex:1; }
.category-card .cat-link{
  font-weight:700; font-size:.82rem; color: var(--orange-dark);
  display:flex; align-items:center; gap:6px;
}

/* ==========================================================================
   PRODUCT CARDS / GRID
   ========================================================================== */
.toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px; flex-wrap:wrap;
  margin-bottom: 20px;
}
.toolbar-left{ color: var(--steel); font-size:.9rem; }
.toolbar-right{ display:flex; align-items:center; gap:10px; }
.select{
  border:1px solid var(--line);
  background: var(--white);
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size:.88rem;
  color: var(--ink);
}
.view-toggle{ display:flex; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.view-toggle button{ background:var(--white); border:none; padding:9px 11px; }
.view-toggle button.active{ background: var(--ink); color:var(--white); }

.shop-layout{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items:start;
}
@media (max-width: 860px){
  .shop-layout{ grid-template-columns: 1fr; }
}

.filters-panel{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position:sticky;
  top: calc(var(--header-h) + 16px);
}
.filter-group{ border-bottom: 1px solid var(--line); padding-bottom:16px; margin-bottom:16px; }
.filter-group:last-child{ border:none; margin:0; padding:0; }
.filter-group h4{
  font-family: var(--font-body);
  font-weight:700;
  font-size:.82rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--steel);
  margin-bottom:10px;
}
.filter-option{
  display:flex; align-items:center; gap:8px;
  font-size:.9rem;
  padding: 5px 0;
  cursor:pointer;
  color: var(--ink);
}
.filter-option input{ accent-color: var(--orange); width:16px; height:16px; }
.range-row{ display:flex; align-items:center; gap:8px; }
.range-row input[type=number]{
  width: 100%;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 8px;
  font-size:.85rem;
}
.filters-panel .btn{ margin-top: 6px; }

.mobile-filter-toggle{ display:none; }
@media (max-width: 860px){
  .mobile-filter-toggle{ display:inline-flex; }
  .filters-panel{ display:none; position:fixed; inset:0; z-index:320; border-radius:0; overflow-y:auto; top:0; }
  .filters-panel.open{ display:block; }
}

.product-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.product-grid.list-view{ grid-template-columns: 1fr; }
.product-grid.list-view .product-card{ flex-direction:row; }
.product-grid.list-view .product-card .p-img{ width:200px; flex-shrink:0; aspect-ratio:1; }

.product-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transition: box-shadow .15s ease, transform .15s ease;
  position:relative;
}
.product-card:hover{ box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.product-card .p-img{
  position:relative;
  aspect-ratio: 1;
  overflow:hidden;
  background: var(--paper);
}
.product-card .p-img img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .35s ease;
}
.product-card:hover .p-img img{ transform: scale(1.06); }
.badge{
  position:absolute; top:10px; left:10px;
  font-size:.68rem;
  font-weight:700;
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing:.4px;
  z-index:2;
}
.badge-sale{ background: var(--danger); color: var(--white); }
.badge-new{ background: var(--success); color: var(--white); }
.badge-out{ background: var(--steel); color: var(--white); }
.p-quickview{
  position:absolute; bottom:-46px; left:0; right:0;
  background: rgba(16,22,29,.92);
  color: var(--white);
  text-align:center;
  padding: 10px;
  font-size:.8rem;
  font-weight:600;
  border:none; width:100%;
  transition: bottom .2s ease;
}
.product-card:hover .p-quickview{ bottom:0; }

.p-body{ padding: 14px; display:flex; flex-direction:column; gap:6px; flex:1; }
.p-cat{ font-size:.72rem; font-weight:700; color: var(--orange-dark); text-transform:uppercase; letter-spacing:.5px; }
.p-name{ font-size:.95rem; font-weight:600; margin:0; line-height:1.35; }
.p-name a:hover{ color: var(--orange-dark); }
.p-stock{ font-size:.78rem; font-weight:600; }
.p-stock.in{ color: var(--success); }
.p-stock.out{ color: var(--danger); }
.p-stock.low{ color: var(--gold); }
.p-price-row{ display:flex; align-items:baseline; gap:8px; margin-top:2px; }
.p-price{ font-family: var(--font-display); font-size:1.15rem; font-weight:600; color:var(--ink); }
.p-price-old{ font-size:.82rem; color:#9AA6B2; text-decoration:line-through; }
.p-actions{ display:flex; gap:8px; margin-top:auto; padding-top:8px; }
.p-actions .btn{ flex:1; padding: 10px 10px; font-size:.82rem; }

.empty-state{
  text-align:center;
  padding: 60px 20px;
  color: var(--steel);
}
.empty-state h3{ margin-bottom:8px; }

/* ==========================================================================
   TRUST / WHY CHOOSE / OFFERS
   ========================================================================== */
.trust-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 22px;
}
.trust-item{ display:flex; gap:12px; align-items:flex-start; }
.trust-icon{
  width:40px; height:40px; flex-shrink:0;
  background: var(--orange);
  color: var(--white);
  border-radius:3px;
  display:flex; align-items:center; justify-content:center;
  transform: skewX(-6deg);
}
.trust-icon svg{ width:20px; height:20px; transform: skewX(6deg); }
.trust-item h4{ margin:0 0 3px; font-family:var(--font-body); font-size:.95rem; font-weight:700; }
.trust-item p{ margin:0; font-size:.85rem; }

.why-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 20px;
}
.why-card{
  background: var(--ink-soft);
  border-radius: var(--radius);
  padding: 22px;
  border-left: 4px solid var(--orange);
}
.why-card h4{ color: var(--white); font-family: var(--font-body); font-size:1.02rem; margin-bottom:6px; }
.why-card p{ margin:0; font-size:.88rem; }

.offer-strip{
  background: var(--orange);
  color: var(--white);
  padding: 10px 0;
  text-align:center;
  font-weight:700;
  font-size:.9rem;
  letter-spacing:.3px;
}

/* ==========================================================================
   ABOUT / CONTACT
   ========================================================================== */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items:center;
}
@media (max-width: 860px){ .about-grid{ grid-template-columns:1fr; } }
.about-img{ border-radius: var(--radius); overflow:hidden; border: 6px solid var(--ink); }
.stat-row{ display:flex; gap:28px; margin-top:22px; flex-wrap:wrap; }
.stat-row div strong{ display:block; font-family:var(--font-display); font-size:1.6rem; }
.stat-row div span{ font-size:.8rem; color:var(--steel-light); }

.contact-grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
}
@media (max-width: 860px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.contact-card h4{ font-size:.95rem; margin-bottom:6px; }
.contact-row{ display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; }
.contact-row .ic{
  width:34px;height:34px; border-radius:50%;
  background: var(--orange-light); color: var(--orange-dark);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-row .ic svg{ width:17px; height:17px; }
.map-placeholder{
  background: repeating-linear-gradient(45deg, var(--paper-alt), var(--paper-alt) 10px, var(--paper) 10px, var(--paper) 20px);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  height: 220px;
  display:flex; align-items:center; justify-content:center;
  color: var(--steel);
  font-size:.85rem;
  font-weight:600;
  margin-top: 16px;
}

.form-field{ margin-bottom: 16px; }
.form-field label{ display:block; font-size:.85rem; font-weight:600; margin-bottom:6px; }
.form-field .req{ color: var(--danger); }
.form-field input, .form-field select, .form-field textarea{
  width:100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  border-color: var(--orange);
}
.form-field.error input, .form-field.error textarea{ border-color: var(--danger); }
.field-error{ color: var(--danger); font-size:.78rem; margin-top:4px; display:none; }
.form-field.error .field-error{ display:block; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }

/* ==========================================================================
   CART / CHECKOUT
   ========================================================================== */
.page-header{
  background: var(--ink);
  color: var(--white);
  padding: 34px 0;
}
.breadcrumb{ font-size:.82rem; color:#9AA6B2; margin-bottom:6px; }
.breadcrumb a:hover{ color: var(--orange); }
.page-header h1{ margin:0; font-size: clamp(1.6rem, 3vw, 2.2rem); }

.cart-layout{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items:start;
}
@media (max-width: 860px){ .cart-layout{ grid-template-columns:1fr; } }

.cart-table{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-row{
  display:grid;
  grid-template-columns: 68px 1fr auto auto auto;
  align-items:center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child{ border-bottom:none; }
.cart-row img{ width:68px; height:68px; object-fit:cover; border-radius:3px; background:var(--paper); }
.cart-item-name{ font-weight:600; font-size:.92rem; }
.cart-item-cat{ font-size:.75rem; color: var(--steel-light); }
.qty-control{
  display:flex; align-items:center; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden;
}
.qty-control button{ background: var(--paper); border:none; width:30px; height:30px; font-weight:700; }
.qty-control button:hover{ background: var(--paper-alt); }
.qty-control input{ width:38px; text-align:center; border:none; padding:0; -moz-appearance:textfield; }
.cart-item-price{ font-weight:700; font-family: var(--font-display); white-space:nowrap; }
.remove-btn{ color: var(--danger); background:none; border:none; font-size:.8rem; font-weight:600; }
.remove-btn:hover{ text-decoration:underline; }

@media (max-width:640px){
  .cart-row{ grid-template-columns: 56px 1fr; row-gap:8px; }
  .cart-row .qty-control, .cart-row .cart-item-price, .cart-row .remove-btn{ grid-column: 2; justify-self:start; }
}

.summary-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.summary-row{ display:flex; justify-content:space-between; font-size:.92rem; padding: 8px 0; color: var(--steel); }
.summary-row.total{ border-top: 2px solid var(--ink); margin-top:8px; padding-top:14px; font-weight:700; font-size:1.1rem; color: var(--ink); }
.summary-row.total .val{ font-family: var(--font-display); }

.cart-empty{ text-align:center; padding: 70px 20px; }
.cart-empty svg{ width:64px; height:64px; color: var(--line); margin-bottom:14px; }

.checkout-notes-box{
  background: var(--orange-light);
  border: 1px solid #F5C9A3;
  border-radius: var(--radius);
  padding: 14px;
  font-size:.85rem;
  color: var(--orange-dark);
  display:flex; gap:10px; margin-bottom:18px;
}
.checkout-notes-box svg{ width:20px; height:20px; flex-shrink:0; }

.order-summary-mini{ border:1px solid var(--line); border-radius:var(--radius); padding:16px; margin-bottom:16px; }
.order-summary-mini .mini-row{ display:flex; justify-content:space-between; font-size:.85rem; padding:6px 0; border-bottom:1px dashed var(--line); }
.order-summary-mini .mini-row:last-of-type{ border-bottom:none; }

/* Success screen */
.success-screen{ text-align:center; padding: 70px 20px; max-width: 520px; margin:0 auto; }
.success-icon{
  width:76px; height:76px; border-radius:50%;
  background: var(--success-bg); color: var(--success);
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 20px;
}
.success-icon svg{ width:38px; height:38px; }
.order-id-pill{
  display:inline-block; background: var(--ink); color:var(--white);
  padding: 8px 16px; border-radius: 20px; font-family: var(--font-display);
  font-weight:600; letter-spacing:1px; margin: 14px 0 22px;
}

/* Cart drawer */
.drawer-overlay{
  position:fixed; inset:0; background: rgba(16,22,29,.5);
  z-index: 400; opacity:0; pointer-events:none; transition: opacity .2s ease;
}
.drawer-overlay.open{ opacity:1; pointer-events:auto; }
.cart-drawer{
  position:fixed; top:0; right:0; bottom:0;
  width: 100%; max-width: 400px;
  background: var(--white);
  z-index: 410;
  transform: translateX(100%);
  transition: transform .25s ease;
  display:flex; flex-direction:column;
}
.cart-drawer.open{ transform: translateX(0); }
.drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px; border-bottom: 1px solid var(--line);
}
.drawer-head h3{ margin:0; }
.drawer-close{ background:none; border:none; width:32px; height:32px; }
.drawer-body{ flex:1; overflow-y:auto; padding: 12px 18px; }
.drawer-foot{ padding: 16px 18px 20px; border-top: 1px solid var(--line); }
.drawer-cart-row{ display:flex; gap:10px; padding: 12px 0; border-bottom:1px solid var(--paper-alt); }
.drawer-cart-row img{ width:56px; height:56px; object-fit:cover; border-radius:3px; flex-shrink:0; background:var(--paper); }
.drawer-cart-row .dc-info{ flex:1; }
.drawer-cart-row .dc-name{ font-size:.85rem; font-weight:600; margin-bottom:3px; }
.drawer-cart-row .dc-row2{ display:flex; justify-content:space-between; align-items:center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background: var(--ink); color: #AEB9C4; }
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 52px 0 32px;
}
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{ color: var(--white); font-family: var(--font-body); font-size:.9rem; letter-spacing:.4px; margin-bottom:16px; }
.footer-grid ul li{ margin-bottom: 10px; }
.footer-grid a{ font-size:.88rem; }
.footer-grid a:hover{ color: var(--orange); }
.footer-about p{ font-size:.88rem; max-width:32ch; }
.social-row{ display:flex; gap:10px; margin-top:14px; }
.social-row a{
  width:36px;height:36px; border-radius:50%;
  border: 1px solid rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{ background: var(--orange); border-color: var(--orange); color:var(--white); }
.social-row svg{ width:16px; height:16px; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  font-size: .8rem;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
}

/* WhatsApp floating button */
.whatsapp-float{
  position:fixed; bottom:22px; right:22px; z-index:250;
  width:58px; height:58px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.whatsapp-float svg{ width:28px; height:28px; }
.whatsapp-float:hover .wa-tooltip{ opacity:1; transform: translateX(0); }
.wa-tooltip{
  position:absolute; right:68px; top:50%; transform: translateY(-50%) translateX(6px);
  background: var(--ink); color:var(--white);
  padding: 7px 12px; border-radius: 4px; font-size:.78rem; font-weight:600;
  white-space:nowrap; opacity:0; transition: all .18s ease; pointer-events:none;
}

/* Sticky mobile cart bar (shop pages) */
.sticky-mobile-cart{
  display:none;
  position:fixed; left:0; right:0; bottom:0; z-index: 240;
  background: var(--ink); color: var(--white);
  padding: 12px 16px;
  align-items:center; justify-content:space-between;
  box-shadow: 0 -2px 10px rgba(0,0,0,.2);
}
@media (max-width: 640px){ .sticky-mobile-cart.active{ display:flex; } }

/* Toasts */
.toast-container{
  position:fixed; top: 84px; right: 18px; z-index: 500;
  display:flex; flex-direction:column; gap:10px;
}
.toast{
  background: var(--ink);
  color: var(--white);
  padding: 13px 18px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight:600;
  box-shadow: var(--shadow-lift);
  display:flex; align-items:center; gap:10px;
  border-left: 4px solid var(--orange);
  animation: toast-in .2s ease;
  max-width: 320px;
}
.toast.success{ border-left-color: var(--success); }
.toast.error{ border-left-color: var(--danger); }
@keyframes toast-in{ from{ opacity:0; transform: translateX(20px);} to{opacity:1; transform:translateX(0);} }

@media (max-width: 480px){
  .toast-container{ left:12px; right:12px; top:auto; bottom:90px; }
  .toast{ max-width:none; }
}

/* Utility */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.hidden{ display:none !important; }
.skip-link{
  position:absolute; left:-999px; top:auto;
  background: var(--orange); color:white; padding:10px 16px; z-index:1000;
}
.skip-link:focus{ left:10px; top:10px; }

/* Breadcrumb page top spacing when used without page-header */
.pd-section{ padding: 40px 0 70px; }
.pd-layout{ display:grid; grid-template-columns: 1fr 1fr; gap: 46px; }
@media (max-width:860px){ .pd-layout{ grid-template-columns:1fr; } }
.pd-gallery-main{ border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; aspect-ratio:1; background:var(--white); margin-bottom:10px; }
.pd-thumbs{ display:flex; gap:8px; }
.pd-thumbs button{ width:64px; height:64px; border-radius:var(--radius); border:2px solid var(--line); overflow:hidden; padding:0; background:var(--white); }
.pd-thumbs button.active{ border-color: var(--orange); }
.pd-thumbs img{ width:100%; height:100%; object-fit:cover; }
.pd-title{ margin-bottom:6px; }
.pd-meta{ display:flex; gap:14px; align-items:center; font-size:.85rem; color:var(--steel); margin-bottom:14px; }
.pd-price-block{ display:flex; align-items:baseline; gap:12px; margin-bottom:16px; }
.pd-price-block .p-price{ font-size:1.8rem; }
.pd-desc{ font-size:.95rem; margin-bottom:20px; }
.pd-qty-row{ display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.pd-actions{ display:flex; gap:12px; margin-bottom:24px; flex-wrap:wrap; }
.pd-actions .btn{ flex:1; min-width:160px; }
.pd-specs{ border-top:1px solid var(--line); padding-top:18px; }
.pd-specs table{ width:100%; border-collapse:collapse; font-size:.88rem; }
.pd-specs td{ padding: 8px 0; border-bottom:1px solid var(--paper-alt); }
.pd-specs td:first-child{ color: var(--steel-light); width:40%; }

.related-strip{ margin-top: 60px; }

/* Pagination */
.pagination{ display:flex; justify-content:center; gap:8px; margin-top: 32px; }
.pagination button{
  width:38px; height:38px; border-radius:var(--radius);
  border:1px solid var(--line); background:var(--white); font-weight:600;
}
.pagination button.active{ background:var(--ink); color:var(--white); border-color:var(--ink); }
.pagination button:hover:not(.active){ background: var(--paper-alt); }
