/* ══════════════════════════════════════════════════════════════
   NEX CABLES — SHOP CSS
   Styling for the elements the database-driven storefront added on
   top of the original static design: the promo strip, account icon,
   search suggestions, real product photography, price rows, order
   pages and shared empty/pagination states.

   Loaded last, after style.css and product-cards.css.
   ══════════════════════════════════════════════════════════════ */

:root {
  --shop-success: #22c55e;
  --shop-danger:  #ef4444;
  --shop-warn:    #f59e0b;
}

/* ── Promo strip (admin-managed banner above the topbar) ─────── */

.promo-strip {
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 9px 0;
}
.promo-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}
.promo-strip strong { font-weight: 700; }
.promo-strip .ps-sub { opacity: .85; margin-left: 8px; font-weight: 500; }
.promo-strip a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  white-space: nowrap;
  transition: opacity .2s;
}
.promo-strip a:hover { opacity: .8; }

@media (max-width: 575px) {
  .promo-strip { font-size: 12px; padding: 8px 0; }
  .promo-strip .ps-sub { display: none; }
}

/* ── Account icon in the navbar ──────────────────────────────── */

.nav-acct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--navy);
  text-decoration: none;
  transition: all .25s;
  flex-shrink: 0;
}
.nav-acct:hover,
.nav-acct.active { background: var(--teal-soft); color: var(--teal-dark); }
.nav-acct i { font-size: 16px; }

.nav-logo-img { max-height: 46px; width: auto; display: block; }

/* ── Search suggestions dropdown ─────────────────────────────── */

.nav-search { position: relative; }

.nav-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(13, 35, 81, .16);
  overflow: hidden;
  z-index: 1200;
  max-height: 420px;
  overflow-y: auto;
}
.nav-suggest[hidden] { display: none; }

.ns-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--bg2);
  transition: background .18s;
}
.ns-item:last-child { border-bottom: 0; }
.ns-item:hover { background: var(--bg); }

.ns-item img,
.ns-item .ns-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 16px;
}
.ns-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ns-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ns-meta { font-size: 11px; color: var(--text-muted); }
.ns-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark);
  white-space: nowrap;
}
.ns-empty {
  padding: 18px 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Flash messages ──────────────────────────────────────────── */

.site-flash {
  margin: 16px 0 0;
  padding: 13px 18px;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  border-left: 4px solid var(--teal);
  background: var(--teal-soft);
  color: var(--navy);
}
.site-flash-error   { border-left-color: var(--shop-danger);  background: #fff5f5; }
.site-flash-info    { border-left-color: var(--navy-mid);     background: #eef4ff; }
.site-flash-warning { border-left-color: var(--shop-warn);    background: #fffbeb; }

/* ── Product cards: real photography + price row ─────────────── */

.prod-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
}

.prod-card-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.prod-card:hover .prod-card-photo { transform: scale(1.06); }

.prod-card-title a { color: inherit; text-decoration: none; }
.prod-card-title a:hover { color: var(--teal-dark); }

.prod-card-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-top: 4px;
}
.pc-now {
  font-family: 'Orbitron', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.3px;
}
.pc-mrp { font-size: 13px; color: var(--text-muted); }
.pc-off {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--shop-success);
  background: rgba(34, 197, 94, .12);
  padding: 2px 8px;
  border-radius: 20px;
}

.card-oos {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 35, 81, .55);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Anchors styled as the card's cart button need the button's look. */
a.btn-card-cart {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-card-cart[disabled] {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.4);
}
.btn-card-cart.is-busy { opacity: .7; pointer-events: none; }

/* Category dividers hide with their section when filtering. */
.cat-divider-wrap.hidden { display: none; }

/* ── Shared empty state ──────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}
.empty-state i { font-size: 44px; color: var(--border); display: block; margin-bottom: 16px; }
.empty-state p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .4px;
  margin: 0;
}

/* ── Pagination ──────────────────────────────────────────────── */

.pager { margin: 36px 0 8px; }
.pager ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}
.pager a:hover { border-color: var(--teal); color: var(--teal-dark); }
.pager .active a { background: var(--teal); border-color: var(--teal); color: #fff; }
.pager .disabled span { opacity: .4; }

/* ── Product detail: gallery photography ─────────────────────── */

.gallery-photo {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 260px;
  border-radius: 14px;
  color: rgba(255, 255, 255, .85);
}
.gallery-placeholder i { font-size: 68px; opacity: .55; }
.gallery-placeholder span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: .8;
}

.g-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.zoom-photo { width: 100%; height: auto; display: block; border-radius: 12px; }

/* Variant option that has no stock anywhere. */
.var-btn.out,
.color-dot.out { opacity: .4; cursor: not-allowed; position: relative; }
.var-btn.out::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.variant-sku {
  margin-top: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .6px;
  color: var(--text-muted);
}
.variant-sku[hidden] { display: none; }

.stock-status.out .stock-dot { background: var(--shop-danger); box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
.stock-status.out { color: var(--shop-danger); }

.btn-add-cart[disabled],
.btn-buy-now[disabled] { opacity: .5; cursor: not-allowed; }

/* Quick-buy modal additions */
.buy-modal-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.buy-modal-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .8);
  font-size: 22px;
}
.buy-modal-error,
.checkout-alert,
.coupon-error {
  background: #fff5f5;
  border: 1px solid rgba(239, 68, 68, .3);
  border-left: 4px solid var(--shop-danger);
  color: #b91c1c;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.buy-modal-error[hidden],
.checkout-alert[hidden],
.coupon-error[hidden] { display: none; }

/* Related product cards on the detail page */
.prod-card-name a { color: inherit; text-decoration: none; }
.prod-card-name a:hover { color: var(--teal-dark); }
a.btn-card-buy { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* ── Cart page additions ─────────────────────────────────────── */

.cart-img { overflow: hidden; text-decoration: none; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.cart-item-details h5 a { color: inherit; text-decoration: none; }
.cart-item-details h5 a:hover { color: var(--teal-dark); }

.cart-variant-label {
  font-size: 12px;
  color: var(--teal-dark);
  font-weight: 600;
  margin-top: 4px;
}
.cart-stock-warn {
  font-size: 12px;
  font-weight: 600;
  color: var(--shop-danger);
  margin-top: 5px;
}
.cart-stock-warn.low { color: var(--shop-warn); }

.coupon-success { position: relative; padding-right: 34px; }
.coupon-remove {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: inherit;
  opacity: .6;
  cursor: pointer;
  font-size: 12px;
}
.coupon-remove:hover { opacity: 1; }

.btn-checkout.disabled {
  opacity: .5;
  pointer-events: none;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Checkout page additions ─────────────────────────────────── */

.checkout-signin-note .checkout-card-body {
  font-size: 13px;
  color: var(--text-muted);
  padding: 15px 20px;
}
.checkout-signin-note a { color: var(--teal-dark); font-weight: 700; }

.checkout-inline-note {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pay-choice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all .25s;
  background: #fff;
}
.pay-choice:hover { border-color: rgba(13, 184, 200, .45); }
.pay-choice.selected { border-color: var(--teal); background: rgba(13, 184, 200, .05); }

.pay-choice-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  transition: all .2s;
}
.pay-choice.selected .pay-choice-radio { border-color: var(--teal); }
.pay-choice.selected .pay-choice-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--teal);
}
.pay-choice-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.pay-choice-info { flex: 1; min-width: 0; }
.pay-choice-info h6 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  letter-spacing: .3px;
}
.pay-choice-info p { font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.65; }

.pay-logos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pay-logos .pay-badge {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.delivery-note { font-size: 12.5px; color: var(--text-muted); margin: 12px 0 0; }

.qty-static {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .5px;
  margin-top: 4px;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.summary-edit-link {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--teal-dark);
  text-decoration: none;
}
.summary-edit-link:hover { text-decoration: underline; }

.form-error { display: none; }
.form-error.show {
  display: block;
  color: var(--shop-danger);
  font-size: 12px;
  margin-top: 5px;
}

/* ── Order confirmation & history ────────────────────────────── */

.order-confirm-hero {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 44px 24px 36px;
  margin-bottom: 28px;
  box-shadow: 0 12px 40px rgba(13, 35, 81, .06);
}
.order-confirm-hero .success-check {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--shop-success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 0 10px rgba(34, 197, 94, .12);
}
.order-confirm-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.order-confirm-hero > p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 18px; }
.order-confirm-hero .order-id {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 10px;
  padding: 10px 22px;
}
.order-unpaid-note { color: var(--shop-warn); font-size: 13px; margin: 16px 0 0; }
.order-cod-note    { color: var(--text-muted); font-size: 13px; margin: 16px 0 0; }

.order-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--bg2);
}
.order-line:last-child { border-bottom: 0; }
.order-line-img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}
.order-line-img img { width: 100%; height: 100%; object-fit: cover; }
.order-line-info { flex: 1; min-width: 0; }
.order-line-info h6 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 3px;
}
.order-line-info p { font-size: 12.5px; color: var(--teal-dark); margin: 0 0 3px; }
.order-line-info .sku { font-size: 11.5px; color: var(--text-muted); }
.order-line-qty { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.order-line-total {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  min-width: 90px;
  text-align: right;
}

.order-timeline { padding: 22px 26px 26px; }
.otl-step { display: flex; gap: 16px; position: relative; padding-bottom: 22px; }
.otl-step:last-child { padding-bottom: 0; }
.otl-step::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.otl-step:last-child::before { display: none; }
.otl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(13, 184, 200, .15);
}
.otl-step.tone-ok   .otl-dot { background: var(--shop-success); box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.otl-step.tone-bad  .otl-dot { background: var(--shop-danger);  box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
.otl-step.tone-warn .otl-dot { background: var(--shop-warn);    box-shadow: 0 0 0 4px rgba(245, 158, 11, .15); }
.otl-body h6 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 3px;
  letter-spacing: .3px;
}
.otl-body p { font-size: 13px; color: var(--text-muted); margin: 0 0 3px; line-height: 1.6; }
.otl-body span { font-size: 11.5px; color: var(--text-muted); opacity: .8; }

.order-status-badge {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  white-space: nowrap;
}
.order-status-badge.tone-ok   { background: rgba(34, 197, 94, .13);  color: #15803d; }
.order-status-badge.tone-bad  { background: rgba(239, 68, 68, .12);  color: #b91c1c; }
.order-status-badge.tone-warn { background: rgba(245, 158, 11, .14); color: #b45309; }

.order-pay-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--bg2);
  flex-wrap: wrap;
}
.order-pay-method { font-size: 12.5px; color: var(--text-muted); }
.order-address { font-size: 13px; color: var(--text-muted); line-height: 1.9; margin: 0; }
.order-address strong { color: var(--navy); }

/* ── Order list rows (account + orders pages) ────────────────── */

.order-list { display: flex; flex-direction: column; }
.order-list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--bg2);
  text-decoration: none;
  transition: background .2s;
}
.order-list-row:last-child { border-bottom: 0; }
.order-list-row:hover { background: var(--bg); }
.olr-main { flex: 1; min-width: 0; }
.olr-main h6 {
  font-family: 'Orbitron', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 3px;
}
.olr-main p { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.olr-total {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.olr-arrow { color: var(--border); font-size: 13px; }

.btn-inline-link {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--teal-dark);
  text-decoration: none;
  white-space: nowrap;
}
.btn-inline-link:hover { text-decoration: underline; }

@media (max-width: 575px) {
  .order-list-row { flex-wrap: wrap; }
  .olr-arrow { display: none; }
}

/* ── Home page showcase panel ────────────────────────────────── */

.prod-panel-photo {
  position: relative;
  z-index: 1;
  max-width: 78%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 12px;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.prod-price-line {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin: 4px 0 18px;
}
a.btn-buynow { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.btn-cart[disabled] { opacity: .5; cursor: not-allowed; }
