/*============================================================
   SHOP.HTML - PAGE STYLES
   ------------------------------------------------------------
   Change styles for ONLY this page here.
   Shared header/footer/navigation styles live in common.css.
   ============================================================*/

.select-control {
  border: 1px solid #dce6f0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  font: inherit;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.cart-fab {
  position: fixed;
  right: 24px;
  top: 150px;
  z-index: 50;
  background: #071d35;
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 12px 15px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  font-weight: 850;
  cursor: pointer;
}

.cart-fab b {
  background: #9ed300;
  color: #04182e;
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 5px;
}

.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(440px,94vw);
  background: #fff;
  z-index: 110;
  box-shadow: -20px 0 60px rgba(0,0,0,.2);
  transform: translateX(105%);
  transition: .25s;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: none;
}

.drawer-head {
  padding: 20px;
  border-bottom: 1px solid #e3eaf2;
  display: flex;
  justify-content: space-between;
}

.drawer-head button {
  border: 0;
  background: #edf2f7;
  border-radius: 50%;
  width: 34px;
  height: 34px;
}

.drawer-body {
  padding: 18px;
  overflow: auto;
  flex: 1;
}

.drawer-foot {
  padding: 18px;
  border-top: 1px solid #e3eaf2;
}

.drawer-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 13px;
}

@media (max-width:900px) {
  .store-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:600px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}

/*============================================================
   SAFE CUSTOM OVERRIDES
   Add future page-only edits below this line.
   ============================================================*/

/*============================================================
   TRENDING PRODUCTS - EMPTY STATE
   ============================================================*/

#shopHotSection[hidden] {
  display: none !important;
}

/*============================================================
   TRENDING PRODUCTS CAROUSEL
   ------------------------------------------------------------
   Shop-only carousel slide styles. These are intentionally kept
   in shop.css so this page can be edited without touching the
   Products page stylesheet.
   ============================================================*/

.industrial-category-btn {
  border: 1px solid #d8e5f1;
  background: #fff;
  color: #526981;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: .2s;
}

.industrial-category-btn:hover,
.industrial-category-btn.active {
  border-color: #1689ee;
  background: #1689ee;
  color: #fff;
}

.industrial-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(320px,46%) minmax(0,1fr);
  min-height: 330px;
  background: linear-gradient(115deg,#071d36 0%,#0a315a 62%,#0d4773 100%);
  color: #fff;
}

.industrial-slide-media {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  background: linear-gradient(135deg,#f6f9fc,#edf3f8);
  overflow: hidden;
}

.industrial-slide-media:after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset -28px 0 45px rgba(4,27,50,.08);
  pointer-events: none;
}

.industrial-slide-media img {
  width: 100%;
  height: 100%;
  max-height: 330px;
  object-fit: contain;
  padding: 22px;
  transition: transform .6s cubic-bezier(.22,.72,.18,1);
}

.industrial-slide:hover .industrial-slide-media img {
  transform: scale(1.025);
}

.industrial-badge {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 18px;
  background: #e3222c;
  color: #fff;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
  box-shadow: 0 6px 14px rgba(170,15,22,.22);
}

.industrial-slide-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 42px;
}

.industrial-category-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #6ec5ff;
}

.industrial-slide-content h3 {
  margin: 9px 0 12px;
  color: #fff;
  font-size: clamp(25px,3vw,38px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.industrial-slide-content > p {
  margin: 0 0 22px;
  max-width: 620px;
  color: #c7d6e6;
  line-height: 1.6;
}

.industrial-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.13);
}

.industrial-meta-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.industrial-meta-row small {
  color: #8eb1cf;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.industrial-meta-row strong {
  color: #fff;
  font-size: 26px;
}

.industrial-stock {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 850;
}

.industrial-stock.in {
  border: 1px solid rgba(81,214,143,.22);
  background: rgba(41,185,110,.15);
  color: #86ebb5;
}

.industrial-stock.out {
  border: 1px solid rgba(255,112,112,.2);
  background: rgba(239,78,78,.12);
  color: #ff9a9a;
}

.industrial-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.industrial-actions a,
.industrial-actions button {
  min-width: 140px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: .2s;
}

.industrial-secondary {
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  color: #fff !important;
}

.industrial-secondary:hover {
  background: rgba(255,255,255,.08);
}

.industrial-primary {
  border: 1px solid #fff;
  background: #fff;
  color: #082544;
}

.industrial-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.industrial-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.industrial-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c6d5e4;
  cursor: pointer;
  transition: width .25s ease,background .25s ease;
}

.industrial-dot.active {
  width: 28px;
  background: #1689ee;
}

@media (max-width:840px) {
  .industrial-slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .industrial-slide-media {
    height: 260px;
  }

  .industrial-slide-content {
    padding: 25px;
  }

  .industrial-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .industrial-actions {
    width: 100%;
  }

  .industrial-actions a,
  .industrial-actions button {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width:560px) {
  .industrial-slide-media {
    height: 220px;
  }

  .industrial-slide-content {
    padding: 22px 20px;
  }

  .industrial-slide-content h3 {
    font-size: 24px;
  }

  .industrial-actions {
    flex-direction: column;
  }
}

/* FINAL V9 - cart drawer must remain closable on every viewport */
.drawer {
  top: 0;
  bottom: auto;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  z-index: 12050;
  overflow: hidden;
  overscroll-behavior: contain;
}
.drawer-head {
  position: sticky;
  top: 0;
  z-index: 3;
  flex: 0 0 auto;
  min-height: 68px;
  align-items: center;
  background: #fff;
}
.drawer-head button {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  cursor: pointer;
}
.drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer-body .empty-state {
  min-height: 150px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 28px 18px;
}
.drawer-foot {
  position: sticky;
  bottom: 0;
  z-index: 3;
  flex: 0 0 auto;
  background: #fff;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}
@media (max-width: 760px) {
  .cart-fab {
    top: auto !important;
    right: 12px !important;
    bottom: 94px !important;
    width: auto !important;
    height: auto !important;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 999px;
    line-height: 1.2;
  }
  .drawer {
    width: min(100%, 430px);
  }
  .drawer-head { padding: 14px 16px; }
  .drawer-body { padding: 14px 16px; }
  .drawer-foot { padding: 14px 16px max(14px, env(safe-area-inset-bottom)); }
}
