/* ── Global Styles ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f5f7fa;
  --card: #fff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --accent: #0e4d64;
  --accent2: #137a63;
  --accent-light: #e0f2f1;
  --gold: #c8963e;
  --danger: #dc2626;
  --shadow: 0 2px 16px rgba(0, 0, 0, .08);
  --radius: 12px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Header & Navigation ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #0e4d64, #137a63);
  padding: .7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .15);
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}

.logo span {
  color: var(--gold);
}

nav {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  flex: 1;
  margin: 0 2rem;
}

nav button {
  background: rgba(255, 255, 255, .1);
  border: none;
  color: #fff;
  padding: .4rem .9rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: .82rem;
  transition: .3s;
  white-space: nowrap;
}

nav button:hover,
nav button.active {
  background: #fff;
  color: var(--accent);
}

.cart-btn {
  background: rgba(255, 255, 255, .15);
  border: 2px solid rgba(255, 255, 255, .3);
  color: #fff;
  padding: .5rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: .3s;
  white-space: nowrap;
}

.cart-btn:hover {
  background: #fff;
  color: var(--accent);
}

.admin-btn {
  background: rgba(200, 150, 62, .25);
  border: 2px solid rgba(200, 150, 62, .5);
  color: #fff;
  padding: .45rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: .3s;
  white-space: nowrap;
  font-weight: 600;
}

.admin-btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.cart-count {
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
}

/* ── Hero Section ── */
.hero {
  background: linear-gradient(160deg, rgba(14,77,100,.92) 0%, rgba(19,122,99,.88) 50%, rgba(26,156,120,.85) 100%),
              url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=1600&h=600&fit=crop&auto=format&q=80') center/cover no-repeat;
  padding: 5rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  font-weight: 800;
  margin-bottom: .5rem;
  position: relative;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  color: rgba(255, 255, 255, .85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-box {
  max-width: 550px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  outline: none;
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  z-index: 1;
}

/* ── Page States ── */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* ── Main Content ── */
main {
  padding: 1rem 2rem 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.product-count {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 400;
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ── Product Cards ── */
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}

.product-img {
  height: 300px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f0f2f5 0%, #e8ecef 50%, #dfe3e8 100%);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.1,.25,1), filter .4s;
  filter: brightness(1.02) contrast(1.03);
}

.product-card:hover .product-img img {
  transform: scale(1.08);
  filter: brightness(1.06) contrast(1.05);
}

/* Professional image loading animation */
.product-img img[loading="lazy"] {
  animation: imgFadeIn .6s ease-out;
}

@keyframes imgFadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: #fff;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: .7rem;
  font-weight: 600;
}

.product-info {
  padding: 1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .3rem;
}

.product-info .desc {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-info .specs-preview {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}

.spec-tag {
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: .7rem;
  font-weight: 500;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid #f0f0f0;
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.price small {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 400;
}

.add-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .5rem .8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  transition: .3s;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.add-btn:hover {
  background: var(--accent2);
  transform: scale(1.05);
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.qs-btn {
  background: #e0f2f1;
  color: var(--accent);
  border: 1.5px solid #cde8e5;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.qs-btn:hover {
  background: var(--accent);
  color: #fff;
}

.qs-input {
  width: 45px;
  height: 32px;
  text-align: center;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qs-input::-webkit-outer-spin-button,
.qs-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.product-footer {
  flex-direction: column;
  gap: .5rem;
}

.product-footer .price {
  font-size: 1.1rem;
}

.img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8ecef, #d1d5db);
  font-size: 4rem;
}

/* ── Modal (Product Details) ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.modal-img {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 2rem;
}

.modal-body h2 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

.modal-body .cat-label {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

.modal-body .description {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-bottom: 1.5rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: .5rem .8rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.spec-row .label {
  font-size: .85rem;
  color: var(--muted);
}

.spec-row .value {
  font-size: .85rem;
  font-weight: 600;
}

.modal-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #f3f4f6;
  border-radius: 8px;
  padding: .3rem;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control input {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
}

.modal-add-btn {
  flex: 1;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: .3s;
}

.modal-add-btn:hover {
  background: var(--accent2);
}

.modal-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Cart Drawer ── */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 300;
}

.cart-overlay.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  right: -460px;
  top: 0;
  width: 450px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 301;
  transition: right .4s;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 30px rgba(0, 0, 0, .15);
}

.cart-drawer.open {
  right: 0;
}

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

.cart-header h2 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  padding: .3rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}

.cart-empty .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.cart-item img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: .9rem;
  margin-bottom: .2rem;
}

.cart-item-info .ci-specs {
  font-size: .75rem;
  color: var(--muted);
}

.cart-item-info .ci-price {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: .3rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.cart-item-actions button {
  width: 26px;
  height: 26px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-actions span {
  width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: .85rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 1.1rem;
  padding: .3rem;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.cart-totals {
  margin-bottom: 1rem;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: .4rem;
  font-size: .9rem;
}

.cart-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  border-top: 2px solid var(--accent);
  padding-top: .5rem;
  margin-top: .5rem;
}

.checkout-btn {
  width: 100%;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: .9rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: .3s;
}

.checkout-btn:hover {
  background: #b8862e;
  transform: scale(1.02);
}

/* ── Checkout Page ── */
.checkout-page {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.checkout-page h1 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--accent);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
}

.checkout-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.checkout-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--accent-light);
  color: var(--accent);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}

.form-group input,
.form-group select {
  padding: .7rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: .9rem;
  transition: .3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.payment-methods {
  display: flex;
  gap: .8rem;
  margin-bottom: 1.2rem;
}

.pay-method {
  flex: 1;
  padding: .8rem;
  border: 2px solid #eee;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: .3s;
  font-size: .85rem;
}

.pay-method:hover,
.pay-method.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.pay-method .icon {
  font-size: 1.5rem;
  margin-bottom: .3rem;
}

.order-summary-item {
  display: flex;
  gap: .8rem;
  padding: .6rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.order-summary-item img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.order-summary-item .osi-info {
  flex: 1;
}

.order-summary-item .osi-name {
  font-size: .85rem;
  font-weight: 600;
}

.order-summary-item .osi-qty {
  font-size: .75rem;
  color: var(--muted);
}

.order-summary-item .osi-price {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
}

.summary-totals {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #eee;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: .4rem;
  font-size: .9rem;
}

.summary-row.grand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 2px solid var(--accent);
}

.place-order-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: .3s;
  letter-spacing: .5px;
}

.place-order-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(14, 77, 100, .3);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: .3s;
}

.back-link:hover {
  gap: .8rem;
}

/* ── Success Page ── */
.success-page {
  text-align: center;
  padding: 4rem 2rem;
}

.success-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.success-page h1 {
  color: var(--accent);
  margin-bottom: .5rem;
}

.success-page p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.success-page button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .8rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

/* ── Footer ── */
footer {
  background: linear-gradient(135deg, #0e4d64, #137a63);
  color: rgba(255, 255, 255, .8);
  text-align: center;
  padding: 2rem;
  font-size: .85rem;
  margin-top: 2rem;
}

footer strong {
  color: #fff;
}

/* ── Toast Notifications ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: #fff;
  padding: .8rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
  z-index: 400;
  transform: translateY(100px);
  opacity: 0;
  transition: .4s;
  font-weight: 500;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── Admin Pages ── */
.admin-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-header h1 {
  font-size: 1.8rem;
  margin: .3rem 0 .2rem;
}

.admin-subtitle {
  color: var(--muted);
  font-size: .9rem;
}

.admin-actions {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-search {
  padding: .55rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: .9rem;
  min-width: 200px;
}

.admin-action-btn {
  background: #fff;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: .5rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: .85rem;
  transition: .3s;
  white-space: nowrap;
}

.admin-action-btn:hover {
  background: var(--accent);
  color: #fff;
}

.admin-action-btn.green {
  border-color: var(--accent2);
  color: var(--accent2);
}

.admin-action-btn.green:hover {
  background: var(--accent2);
  color: #fff;
}

/* ── Admin Stats ── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}

.stat-card.warn {
  border-top-color: #f59e0b;
}

.stat-card.danger {
  border-top-color: var(--danger);
}

.stat-card.green {
  border-top-color: var(--accent2);
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: .3rem;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .2rem;
}

/* ── Admin Table ── */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table thead {
  background: linear-gradient(135deg, #0e4d64, #137a63);
}

.admin-table th {
  color: #fff;
  padding: .8rem .7rem;
  text-align: left;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

.admin-table td {
  padding: .7rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: .85rem;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #f8fffe;
}

.admin-table img {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  object-fit: cover;
}

/* ── Stock Badge ── */
.stock-badge {
  padding: .25rem .6rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.stock-badge.ok {
  background: #dcfce7;
  color: #16a34a;
}

.stock-badge.low {
  background: #fef3c7;
  color: #d97706;
}

.stock-badge.out {
  background: #fee2e2;
  color: #dc2626;
}

.stock-input {
  width: 70px;
  padding: .3rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
}

.tbl-btn {
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: .3rem .6rem;
  cursor: pointer;
  font-size: .78rem;
  transition: .2s;
  white-space: nowrap;
}

.tbl-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.tbl-btn.danger {
  border-color: #fca5a5;
  color: var(--danger);
}

.tbl-btn.danger:hover {
  background: #fee2e2;
}

/* ── Admin Modal ── */
.admin-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.admin-modal {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 550px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.admin-modal h2 {
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
}

/* ── Shipping Tabs ── */
.ship-tabs {
  display: flex;
  gap: .4rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ship-tab {
  background: #fff;
  border: 2px solid #eee;
  padding: .5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  transition: .3s;
}

.ship-tab:hover,
.ship-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tracking-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  font-size: .82rem;
}

.dhl-badge {
  background: #fc0;
  color: #000;
  padding: .2rem .5rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
}

/* ── Stepper ── */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.5rem 0 2rem;
  padding: 1rem 0;
}

.step {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem;
  border-radius: 20px;
  transition: .3s;
  opacity: .5;
}

.step.active {
  opacity: 1;
  background: var(--accent-light);
}

.step.done {
  opacity: 1;
}

.step.done .step-num {
  background: var(--accent2);
  color: #fff;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  transition: .3s;
}

.step.active .step-num {
  background: var(--accent);
  color: #fff;
}

.step-label {
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

.step-line {
  width: 30px;
  height: 2px;
  background: #ddd;
  transition: .3s;
}

.step-line.done {
  background: var(--accent2);
}

.co-step {
  display: none;
}

.co-step.active {
  display: block;
}

.sticky-summary {
  position: sticky;
  top: 5rem;
}

.step-buttons {
  display: flex;
  gap: .8rem;
  margin-top: 1rem;
}

.step-back-btn {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: .7rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  transition: .3s;
  white-space: nowrap;
}

.step-back-btn:hover {
  background: var(--accent-light);
}

/* ── Coupon ── */
.coupon-row {
  display: flex;
  gap: .5rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.coupon-row input {
  flex: 1;
  padding: .6rem .8rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: .9rem;
}

.coupon-row button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
}

/* ── Cart in Checkout ── */
.co-cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}

.co-cart-item img {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  object-fit: cover;
}

.co-cart-item .cci-info {
  flex: 1;
}

.co-cart-item .cci-info h4 {
  font-size: .9rem;
  margin-bottom: .15rem;
}

.co-cart-item .cci-info .cci-specs {
  font-size: .75rem;
  color: var(--muted);
}

.co-cart-item .cci-qty {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.co-cart-item .cci-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-cart-item .cci-qty span {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
}

.co-cart-item .cci-price {
  min-width: 80px;
  text-align: right;
  font-weight: 700;
  color: var(--accent);
}

.co-cart-item .cci-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 1.1rem;
  padding: .3rem;
}

/* ── Shipping Options ── */
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.ship-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: .3s;
}

.ship-option:hover,
.ship-option.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.ship-option input {
  display: none;
}

.ship-icon {
  font-size: 1.8rem;
}

.ship-info {
  flex: 1;
}

.ship-info strong {
  display: block;
  font-size: .95rem;
}

.ship-info span {
  font-size: .8rem;
  color: var(--muted);
}

.ship-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* ── Payment V2 ── */
.payment-methods-v2 {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.pay-opt {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.2rem;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: .3s;
}

.pay-opt:hover,
.pay-opt.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.pay-opt input {
  display: none;
}

.pay-opt-icon {
  font-size: 1.5rem;
}

.pay-opt-info {
  flex: 1;
}

.pay-opt-info strong {
  display: block;
  font-size: .9rem;
}

.pay-opt-info span {
  font-size: .78rem;
  color: var(--muted);
}

/* ── Review Blocks ── */
