/* ==========================================================
   CARTIT - Amazon-Inspired Design System (HTML / CSS / JS)
   ========================================================== */

:root {
  --navy: #131921;
  --slate: #232f3e;
  --slate-hover: #37475a;
  --gray-bg: #eaeded;
  --card-white: #ffffff;
  --amber: #febd69;
  --amber-hover: #f3a847;
  --yellow-btn: #ffd814;
  --yellow-hover: #f7ca00;
  --orange-btn: #ffa41c;
  --orange-hover: #fa8900;
  --link-blue: #007185;
  --link-hover: #c7511f;
  --price-red: #cc0c39;
  --stock-green: #007600;
  --border-gray: #d5d9d9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--gray-bg);
  color: #0f1111;
  font-size: 13px;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--link-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none !important;
}

/* ================= 1. TOP HEADER ================= */
.top-header {
  background-color: var(--navy);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  display: flex;
  flex-direction: column;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.logo-box:hover {
  border-color: #ffffff;
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1;
}
.logo-accent {
  color: var(--amber);
}
.logo-domain {
  font-size: 11px;
  font-weight: 600;
  color: #cccccc;
  margin-left: 2px;
}

.logo-smile {
  width: 48px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  margin-top: 1px;
  position: relative;
}
.logo-smile::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  transform: rotate(45deg);
}

.nav-btn {
  color: #ffffff;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}
.nav-btn:hover {
  border-color: #ffffff;
}

.nav-text {
  display: flex;
  flex-direction: column;
}
.text-light {
  font-size: 11px;
  color: #cccccc;
}
.text-bold {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

/* Search Bar */
.search-bar {
  flex: 1;
  display: flex;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 8px;
}
.search-bar:focus-within {
  box-shadow: 0 0 0 2px var(--amber-hover);
}

.search-select-wrapper {
  position: relative;
  background: #e6e6e6;
  border-right: 1px solid #cdcdcd;
  display: flex;
  align-items: center;
  padding: 0 8px;
}
.search-select-wrapper select {
  appearance: none;
  background: transparent;
  border: none;
  font-size: 12px;
  color: #333333;
  padding-right: 16px;
  cursor: pointer;
  outline: none;
}
.select-arrow {
  position: absolute;
  right: 6px;
  font-size: 10px;
  color: #666666;
  pointer-events: none;
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 0 12px;
  font-size: 14px;
  color: #0f1111;
  outline: none;
}

.search-submit-btn {
  width: 45px;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #111111;
  transition: background 0.15s;
}
.search-submit-btn:hover {
  background: var(--amber-hover);
}

/* Account dropdown */
.account-menu-wrapper {
  position: relative;
}
.account-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  width: 220px;
  background: #ffffff;
  color: #0f1111;
  padding: 14px;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid #dddddd;
  z-index: 200;
}
.dropdown-title {
  font-size: 12px;
  color: #555555;
}
.dropdown-email {
  font-size: 11px;
  color: #888888;
  margin-bottom: 8px;
}
.role-switch-btns {
  display: flex;
  gap: 6px;
}
.btn-role {
  flex: 1;
  padding: 5px;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background: #f7f7f7;
}
.btn-role:hover {
  background: #ebebeb;
}

/* Cart Button */
.cart-icon-wrapper {
  position: relative;
  font-size: 22px;
}
.cart-badge {
  position: absolute;
  top: -6px;
  left: 12px;
  background: var(--navy);
  color: var(--orange-btn);
  font-size: 13px;
  font-weight: 900;
  padding: 0 3px;
}

/* ================= 2. SUB NAVIGATION ================= */
.sub-nav {
  background-color: var(--slate);
  color: #ffffff;
  font-size: 12px;
}
.sub-nav-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
}
.sub-link {
  color: #ffffff;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sub-link:hover {
  border-color: #ffffff;
}
.active-link {
  color: var(--amber);
  font-weight: bold;
}

/* ================= 3. MAIN CONTENT ================= */
.main-content {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  flex: 1;
}

/* Hero 4-Card Split Grid (Screenshot 1) */
.hero-quad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.hero-card {
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 410px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
.pink-card {
  background: linear-gradient(135deg, #ffeef0, #ffdbe0, #f9cbd3);
  border: 1px solid #ffd0d6;
}
.dark-card {
  background: linear-gradient(135deg, #0c1821, #102a3a, #04121b);
  border: 1px solid #1a384e;
}
.beige-card {
  background: linear-gradient(135deg, #fdf6e9, #f7ebd4, #eedbc1);
  border: 1px solid #e7d5b8;
}
.sky-card {
  background: linear-gradient(135deg, #e1f5fe, #b3e5fc, #81d4fa);
  border: 1px solid #90caf9;
}

.hero-price {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  color: #0f1111;
}
.hero-subtitle {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
  color: #333333;
}
.hero-tags {
  font-size: 11px;
  font-weight: 600;
  color: #555555;
  margin-top: 6px;
}
.white-text { color: #ffffff; }
.cyan-text { color: #4dd0e1; }
.sky-text { color: #0277bd; }
.brand-text { font-size: 13px; font-weight: bold; margin-top: 4px; color: #ffffff; }
.terms-text { font-size: 10px; color: #888888; }

.hero-image-box {
  background: #ffffff;
  border-radius: 8px;
  height: 190px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  padding: 10px;
}
.hero-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s;
}
.hero-image-box:hover img {
  transform: scale(1.05);
}

.dark-box {
  background: rgba(0, 20, 30, 0.4);
  border: 1px solid rgba(77, 208, 225, 0.3);
  flex-direction: column;
}
.music-visual-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(77, 208, 225, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
}

.bank-offer-bar {
  background: #ffffff;
  border-radius: 4px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: bold;
}
.bank-tag { padding: 1px 4px; border-radius: 2px; }
.bank-tag.axis { background: #990033; color: white; }
.bank-tag.sbi { background: #0077c8; color: white; }
.brand-icici { color: #b7410e; font-weight: bold; }

/* 2x2 Quad Cards Grid (Screenshot 2) */
.quad-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.quad-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quad-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}
.quad-inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quad-item {
  text-align: center;
  cursor: pointer;
}
.quad-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f9f9f9;
  border-radius: 4px;
  padding: 6px;
  border: 1px solid #f0f0f0;
  transition: transform 0.2s;
}
.quad-item:hover img {
  transform: scale(1.04);
}
.quad-item span {
  display: block;
  font-size: 11px;
  color: #333333;
  margin-top: 4px;
}
.quad-link {
  font-size: 12px;
  color: var(--link-blue);
  font-weight: 600;
  margin-top: 14px;
  display: inline-block;
}

/* Featured row */
.section-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e0e0e0;
}
.section-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
}
.section-link {
  font-size: 12px;
  font-weight: 600;
}
.horizontal-product-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

/* ================= 4. SHOP / CATALOG VIEW (Screenshot 3) ================= */
.prime-top-banner {
  background: linear-gradient(90deg, #ffd814, #f7ca00, #ffa41c);
  padding: 14px 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.prime-top-banner h3 { font-size: 15px; font-weight: 800; }
.prime-top-banner p { font-size: 12px; color: #333333; }
.btn-prime {
  background: var(--link-blue);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: bold;
}

.results-bar {
  background: #ffffff;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sort-wrapper select {
  padding: 4px 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 12px;
  background: #f7f7f7;
}

.shop-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.shop-sidebar {
  width: 220px;
  background: #ffffff;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.shop-sidebar hr {
  margin: 14px 0;
  border: none;
  border-top: 1px solid #eeeeee;
}
.filter-group h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.filter-list {
  list-style: none;
}
.filter-btn {
  display: block;
  text-align: left;
  width: 100%;
  padding: 3px 0;
  color: #444444;
  font-size: 12px;
}
.filter-btn:hover { color: var(--orange-hover); }
.filter-btn.active { color: var(--orange-hover); font-weight: bold; }
.star-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 3px 0;
  color: #444444;
}
.filter-label { font-size: 11px; color: #666666; margin-top: 4px; }

.shop-product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

/* Product Card */
.product-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: box-shadow 0.2s;
}
.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.card-thumb-box {
  width: 100%;
  aspect-ratio: 1;
  background: #fafafa;
  border-radius: 4px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.card-thumb-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.card-brand {
  font-size: 11px;
  font-weight: bold;
  color: var(--link-blue);
  text-transform: uppercase;
  margin-top: 8px;
}
.card-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 3px 0;
  cursor: pointer;
}
.card-title:hover {
  color: var(--orange-hover);
}
.stars-gold {
  color: #ffa41c;
  font-size: 11px;
}
.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}
.price-bold {
  font-size: 16px;
  font-weight: 900;
  color: #0f1111;
}
.price-strike {
  font-size: 11px;
  color: #777777;
  text-decoration: line-through;
}
.delivery-tag {
  font-size: 11px;
  color: #555555;
  margin-top: 4px;
}
.btn-quick-add {
  margin-top: 10px;
  width: 100%;
  background: var(--yellow-btn);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 12px;
  border: 1px solid #a88734;
}
.btn-quick-add:hover {
  background: var(--yellow-hover);
}

/* ================= 5. PRODUCT DETAILS PAGE (Screenshot 4) ================= */
.breadcrumb-bar {
  font-size: 12px;
  color: #666666;
  margin-bottom: 12px;
}
.crumb-title { font-weight: bold; color: #0f1111; }

.pdp-layout {
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  gap: 20px;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.pdp-gallery-col {
  display: flex;
  gap: 12px;
}
.pdp-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-thumb-btn {
  width: 50px;
  height: 50px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 3px;
  background: #f9f9f9;
}
.pdp-thumb-btn.active {
  border-color: var(--orange-btn);
  box-shadow: 0 0 0 1px var(--orange-btn);
}
.pdp-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-main-image-box {
  flex: 1;
  aspect-ratio: 1;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.pdp-main-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.1s;
}
.pdp-main-image-box:hover img {
  transform: scale(1.35);
}

.pdp-heading {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.pdp-brand-link {
  font-size: 12px;
  color: var(--link-blue);
  margin-top: 4px;
}
.pdp-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
}
.choice-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 6px;
}
.pdp-price-box {
  margin-top: 10px;
}
.main-price { font-size: 26px; font-weight: 800; }
.mrp-price { font-size: 13px; color: #777777; text-decoration: line-through; margin-left: 8px; }
.discount-badge { font-size: 14px; font-weight: bold; color: var(--price-red); margin-left: 6px; }
.taxes-text { font-size: 11px; color: #666666; }
.emi-text { font-size: 12px; margin-top: 4px; }

.save-extra-card {
  background: #fffbf0;
  border: 1px solid #ffe199;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 11px;
}
.save-extra-header {
  color: var(--price-red);
  font-weight: bold;
  margin-bottom: 4px;
}

.feature-icon-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  text-align: center;
}
.feature-box {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
}
.feature-box i { font-size: 18px; margin-bottom: 4px; display: block; }

/* Sticky Buy Box (Screenshot 4) */
.buybox-card {
  border: 1px solid #cccccc;
  border-radius: 8px;
  padding: 16px;
  position: sticky;
  top: 70px;
  background: #ffffff;
}
.buybox-price { font-size: 20px; font-weight: 800; }
.delivery-text { font-size: 12px; margin-top: 6px; }
.green-text { color: var(--stock-green); font-weight: bold; }
.location-link {
  font-size: 12px;
  color: var(--link-blue);
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0;
  text-align: left;
}
.stock-text { color: var(--stock-green); font-size: 14px; font-weight: bold; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 12px;
}
.qty-row select {
  padding: 4px 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background: #f7f7f7;
}

.btn-add-cart {
  width: 100%;
  background: var(--yellow-btn);
  padding: 8px;
  border-radius: 20px;
  font-weight: bold;
  border: 1px solid #a88734;
  margin-bottom: 8px;
}
.btn-add-cart:hover { background: var(--yellow-hover); }

.btn-buy-now {
  width: 100%;
  background: var(--orange-btn);
  padding: 8px;
  border-radius: 20px;
  font-weight: bold;
  border: 1px solid #d37700;
}
.btn-buy-now:hover { background: var(--orange-hover); }

.security-info {
  font-size: 11px;
  color: #666666;
  margin: 12px 0;
  padding-top: 8px;
  border-top: 1px solid #eeeeee;
  line-height: 1.5;
}
.btn-wishlist {
  width: 100%;
  padding: 6px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 11px;
}

/* Specs Table */
.specs-section {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin-top: 16px;
}
.specs-section h3 { font-size: 16px; font-weight: bold; margin-bottom: 12px; }
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
}
.specs-table td:first-child {
  font-weight: bold;
  width: 250px;
  color: #555555;
}

/* ================= 6. CART DRAWER & MODALS ================= */
.cart-drawer-overlay, .modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
}
.cart-drawer-backdrop, .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.cart-drawer-panel {
  position: relative;
  margin-left: auto;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  height: 100%;
  z-index: 510;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

.drawer-header {
  padding: 14px 18px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-close-btn { font-size: 18px; color: #666666; }
.free-delivery-banner {
  background: #fff8e6;
  border-bottom: 1px solid #ffe299;
  padding: 10px 18px;
  font-size: 12px;
  color: #007600;
  font-weight: bold;
}

.drawer-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}
.drawer-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
}
.drawer-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}
.drawer-item-info { flex: 1; }
.drawer-item-title { font-size: 12px; font-weight: 600; }
.drawer-item-price { font-size: 14px; font-weight: bold; margin-top: 4px; }
.drawer-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.qty-btn {
  padding: 2px 8px;
  background: #eeeeee;
  border-radius: 3px;
  font-weight: bold;
}
.delete-btn { color: #cc0000; font-size: 11px; }

.drawer-footer {
  padding: 16px;
  border-top: 1px solid #e0e0e0;
  background: #fcfcfc;
}
.coupon-box {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.coupon-box input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
}
.coupon-box button {
  background: #e0e0e0;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
}
.coupon-msg { font-size: 11px; margin-bottom: 8px; }
.subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
}
.bold-price { font-size: 18px; font-weight: 800; }
.btn-checkout {
  width: 100%;
  background: var(--yellow-btn);
  padding: 10px;
  border-radius: 20px;
  font-weight: bold;
  border: 1px solid #a88734;
}
.btn-checkout:hover { background: var(--yellow-hover); }

/* Modals */
.checkout-modal-box, .success-modal-box, .location-modal-box {
  position: relative;
  margin: auto;
  background: #ffffff;
  border-radius: 8px;
  width: 90%;
  max-width: 520px;
  z-index: 520;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.modal-close-btn { font-size: 18px; color: #555555; }
.form-row { display: flex; gap: 8px; margin-bottom: 8px; }
.form-row input, .checkout-form input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}
.payment-options {
  margin: 12px 0;
}
.pay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 6px;
  cursor: pointer;
}
.order-summary-box {
  background: #f8f8f8;
  padding: 12px;
  border-radius: 4px;
  margin: 14px 0;
  font-size: 12px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.total-line {
  font-size: 15px;
  font-weight: 800;
  color: var(--price-red);
}
.btn-place-order {
  width: 100%;
  background: var(--yellow-btn);
  padding: 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid #a88734;
}

/* Success modal */
.success-modal-box { text-align: center; }
.success-icon { font-size: 50px; color: var(--stock-green); margin-bottom: 12px; }
.success-info-banner {
  background: #fff9e6;
  border: 1px solid #ffe082;
  padding: 10px;
  border-radius: 4px;
  margin: 16px 0;
  font-size: 12px;
  font-weight: bold;
}
.btn-continue-shop {
  background: var(--yellow-btn);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  border: 1px solid #a88734;
}

/* Location chips */
.city-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.city-chip {
  padding: 10px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-weight: bold;
  text-align: left;
}
.city-chip:hover { border-color: var(--amber); }

/* Slide out department menu */
.dept-drawer-panel {
  position: relative;
  width: 280px;
  background: #ffffff;
  height: 100%;
  z-index: 510;
  display: flex;
  flex-direction: column;
}
.dept-header {
  background: var(--slate);
  color: #ffffff;
  padding: 16px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-close-btn.white { color: #ffffff; margin-left: auto; }
.dept-list {
  padding: 14px;
  overflow-y: auto;
}
.dept-list h4 { font-size: 14px; font-weight: bold; margin: 10px 0 6px; }
.dept-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 0;
  font-size: 12px;
  color: #333333;
}
.dept-list button:hover { color: var(--link-blue); }
.dept-list hr { margin: 10px 0; border: none; border-top: 1px solid #eeeeee; }

/* ================= 7. FOOTER ================= */
.site-footer {
  margin-top: 40px;
  color: #cccccc;
}
.back-to-top-btn {
  width: 100%;
  background: var(--slate-hover);
  color: #ffffff;
  padding: 14px;
  font-size: 12px;
  font-weight: bold;
}
.back-to-top-btn:hover { background: #485769; }

.footer-columns {
  background: var(--slate);
  padding: 36px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1500px;
  margin: 0 auto;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-col p {
  font-size: 12px;
  margin-bottom: 6px;
  cursor: pointer;
}
.footer-col p:hover { text-decoration: underline; color: #ffffff; }

.footer-bottom {
  background: var(--navy);
  padding: 20px;
  text-align: center;
  font-size: 11px;
  color: #999999;
}

/* Responsive queries */
@media (max-width: 900px) {
  .pdp-layout {
    grid-template-columns: 1fr;
  }
  .hide-mobile {
    display: none !important;
  }
}
