/* ELECTRONICS COMPONENTS GUIDE — SHOP STYLES
   ============================================ */

/* ── SHOP HERO ── */
.shop-hero {
  padding: 8rem 2.5rem 3rem;
  background: url("./imgs/bg.jpg") center/cover no-repeat;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  display: none;
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.shop-hero center {
  filter: contrast(1) brightness(1.2);
}
.shop-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
}

.shop-hero h1 span {
  color: white;
}

.shop-hero p {
  color: white;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  max-width: 480px;
}

/* ── SHOP LAYOUT ── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: 70vh;
}

/* ── SIDEBAR ── */
.shop-sidebar {
  background: url(./imgs/bg.jpg);
  background-image: blur(1px);
  filter: brightness(0.95);
  border-right: 0.5px solid cyan;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 2.5rem;
}

.sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-title::before {
  content: "//";
  opacity: 0.5;
}

/* Search input */
.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.5px;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-glow);
}

/* Category list */
.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.category-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.category-list li a:hover,
.category-list li a.active {
  color: var(--white);
  background: var(--bg-card);
  border-left-color: var(--cyan);
}

.category-list li a .count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  background: var(--bg-dark);
  padding: 0.1rem 0.4rem;
}

/* Price range */
.price-range-wrap {
  padding: 0.5rem 0;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.price-labels span {
  color: var(--white);
}

input[type="range"] {
  width: 100%;
  height: 2px;
  background: var(--border);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--cyan);
  cursor: pointer;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Checkboxes */
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checkbox {
  width: 14px;
  height: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}

.checkbox-item input[type="checkbox"]:checked {
  background: var(--cyan);
  border-color: var(--cyan);
}

.checkbox-item input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg-dark);
  font-size: 0.65rem;
  font-weight: 700;
}

.checkbox-item label {
  font-size: 0.83rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}

.checkbox-item:hover label {
  color: var(--white);
}

/* Rating stars filter */
.rating-filter {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.3rem 0;
}

.stars {
  display: flex;
  gap: 2px;
  font-size: 0.75rem;
  color: #ffb700;
}

.rating-row span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── SHOP MAIN ── */
.shop-main {
  background: url(./imgs/bg.jpg);
  filter: blur(2);
}

/* Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--border);
  background: transparent;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #e6e6e6;
  border-radius: 30px;
  padding: 10px 15px;
  width: 100%;
  max-width: 900px;
  font-size: 0.8rem;
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.5px;
}

.search-bar input {
  all: unset;
  flex: 1;
  font-size: 14px;
  color: #060606;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sort-select {
  background: transparent;
  border: 1px black;
  color: black;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  padding: 0.45rem 0.8rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  padding-right: 2rem;
  border: 1px solid black;
}

.sort-select option {
  background: white;
  border: rgb(9, 8, 8);
  border-radius: 5px;
  font-family: Arial, sans-serif;
}
.view-toggle {
  display: flex;
  border: 1px solid black;
  overflow: hidden;
}

.view-btn {
  width: 34px;
  height: 34px;
  background: white;
  border: none;
  border-color: #060606;
  color: black;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.view-btn.active,
.view-btn:hover {
  background: rgb(9, 8, 8);
  color: white;
}

/* ── PRODUCT GRID ── */
.products-area {
  padding: 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.products-grid.list-view {
  grid-template-columns: 1fr;
}

/* Product Card */
.product-card {
  background: transparent;
  border: 1px solid brown;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s;
  overflow: hidden;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Corner accent */
.product-card::after {
  display: none;
}

/* Badge */
.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  z-index: 2;
}

.badge-new {
  background: greenyellow;
  color: var(--bg-dark);
}
.badge-sale {
  background: var(--danger);
  color: white;
}
.badge-hot {
  background: #ff6b00;
  color: white;
}

/* Wishlist btn */
.wishlist-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 30px;
  height: 30px;
  background: rgba(10, 12, 15, 0.8);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.2s;
  z-index: 2;
  opacity: 0;
}

.wishlist-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
  opacity: 1;
}

/* Product image */
.product-img {
  position: relative;
  aspect-ratio: 1;
  margin: 2px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  overflow: hidden;
}

.product-img img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  filter: brightness(0.95);
  transition: transform 0.2s;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

/* Quick add overlay */
.quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 200, 255, 0.95);
  padding: 0.65rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg-dark);
  transform: translateY(100%);
  transition: transform 0.2s;
}

.product-card:hover .quick-add {
  transform: translateY(0);
}

/* Product info */
.product-info {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.product-category {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: darkcyan;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: black;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.78rem;
  color: black;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.spec-tag {
  font-family: "Times New Roman", Times, serif;
  font-size: 0.6rem;
  color: black;
  background: whitesmoke;
  border: black;
  padding: 0.15rem 0.45rem;
  letter-spacing: 0.5px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-rating .stars {
  font-size: 0.7rem;
  filter: brightness(1.2);
}

.product-rating span {
  font-family: "Times New Roman", Times, serif;
  font-size: 0.65rem;
  color: var(--muted);
}

/* Price row */
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.price-old {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: line-through;
}

.add-to-cart {
  width: 36px;
  height: 36px;
  background: var(--cyan);
  border: none;
  border-radius: 3px;
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.add-to-cart:hover {
  background: #33d4ff;
  opacity: 0.9;
}

/* ── LIST VIEW ── */
.products-grid.list-view .product-card {
  flex-direction: row;
  align-items: stretch;
}

.products-grid.list-view .product-img {
  width: 180px;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.products-grid.list-view .product-info {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
}

.products-grid.list-view .product-name {
  font-size: 1.2rem;
  width: 100%;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 2rem;
}

.page-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.page-btn.active {
  background: var(--cyan);
  color: var(--bg-dark);
  border-color: var(--cyan);
}
.page-btn:hover:not(.active) {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ── CART DRAWER ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cart-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-close:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-items: center;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-item-price {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-top: 0.25rem;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: var(--bg-surface);
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qty-btn:hover {
  background: var(--cyan-glow);
  color: var(--cyan);
}

.qty-num {
  width: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white);
  background: var(--bg-card);
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.25rem 0;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cart-subtotal span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cart-subtotal strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
}

.cart-subtotal .cart-tax {
  font-size: 0.65rem;
  color: var(--muted);
  text-align: right;
}

.checkout-btn {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--cyan);
  color: var(--bg-dark);
  border: none;
  border-radius: 4px;
  padding: 1rem;
  cursor: pointer;
  font-weight: 700;
  margin-top: 1rem;
  transition: all 0.2s;
}

.checkout-btn:hover {
  background: #33d4ff;
  box-shadow: 0 2px 8px rgba(0, 200, 255, 0.3);
}

.continue-shopping {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  margin-top: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}

.continue-shopping:hover {
  color: var(--cyan);
}

/* ── EMPTY CART ── */
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.cart-empty-icon {
  font-size: 3rem;
  opacity: 0.2;
}

.cart-empty p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── PRODUCT DETAIL PAGE ── */
.product-detail {
  padding: 7rem 2.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 4rem;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 80px;
}

.detail-main-img {
  aspect-ratio: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.detail-main-img img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.detail-main-img::before {
  display: none;
}

.detail-thumbs {
  display: flex;
  gap: 0.5rem;
}

.detail-thumb {
  flex: 1;
  aspect-ratio: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0.5rem;
  transition: border-color 0.2s;
}

.detail-thumb:hover,
.detail-thumb.active {
  border-color: var(--cyan);
}

.detail-thumb img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* Detail right */
.detail-info .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-info .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.detail-info .breadcrumb a:hover {
  color: var(--cyan);
}

.detail-info h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.detail-info .sku {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.detail-rating .stars {
  font-size: 0.9rem;
}

.detail-rating span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.detail-price-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.detail-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}

.detail-price-old {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
}

.detail-save {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--success);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 0.2rem 0.6rem;
  letter-spacing: 1px;
}

.detail-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
}

.spec-table td {
  padding: 0.6rem 0;
  font-size: 0.83rem;
}

.spec-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  width: 40%;
}

.spec-table td:last-child {
  color: var(--white);
}

/* Quantity and CTA */
.add-to-cart-block {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
}

.qty-selector button {
  width: 40px;
  height: 48px;
  background: var(--bg-surface);
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.15s;
}

.qty-selector button:hover {
  background: var(--cyan-glow);
  color: var(--cyan);
}

.qty-selector span {
  width: 50px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.5rem 0;
}

.detail-add-btn {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--cyan);
  color: var(--bg-dark);
  border: none;
  border-radius: 4px;
  padding: 0 2rem;
  height: 48px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
}

.detail-add-btn:hover {
  background: #33d4ff;
  box-shadow: 0 2px 8px rgba(0, 200, 255, 0.3);
}

.wishlist-detail-btn {
  width: 48px;
  height: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wishlist-detail-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* Stock indicator */
.stock-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.stock-indicator span {
  color: var(--success);
}

/* Related products */
.related-section {
  padding: 4rem 2.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

/* ── CHECKOUT PAGE ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 2.5rem 4rem;
  align-items: start;
}

.checkout-form-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.order-summary {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

.order-summary h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.order-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.order-line .name {
  color: var(--muted);
}
.order-line .amount {
  color: var(--white);
  font-family: var(--font-mono);
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.order-total span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.order-total strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 220px 1fr;
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .detail-gallery {
    position: static;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .cart-drawer {
    width: 100%;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
