/* -----------------------------------------
   CUSTOMER PAGES — SHARED STYLES
   Cart, Checkout, Address, Orders,
   Tracking, Wishlist, Account, Product Detail
----------------------------------------- */

/* === PAGE WRAPPER === */
.page-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 100px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .page-wrapper {
    max-width: 900px;
    padding: 24px;
    padding-bottom: 120px;
  }
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.page-subtitle {
  font-size: 14px;
  color: var(--text);
  opacity: 0.6;
  margin-top: -12px;
  margin-bottom: 16px;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text);
  opacity: 0.5;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 16px;
}

.empty-state a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* === BACK BUTTON === */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 12px;
  padding: 4px 0;
  opacity: 0.7;
}

.back-btn:hover { opacity: 1; }

/* === PRODUCT LIST ITEM === */
.product-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(128,128,128,0.15);
  align-items: flex-start;
}

.product-item img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.product-item-info {
  flex: 1;
  min-width: 0;
}

.product-item-info .name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-item-info .price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.product-item-info .price-old {
  text-decoration: line-through;
  opacity: 0.5;
  font-size: 12px;
  margin-left: 6px;
}

/* === QUANTITY CONTROL === */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(128,128,128,0.25);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6px;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(128,128,128,0.08);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.qty-control button:hover { background: rgba(128,128,128,0.15); }

.qty-control .qty-val {
  width: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--tc-btn-pad-y, 12px) var(--tc-btn-pad-x, 20px);
  border: none;
  border-radius: var(--tc-btn-radius, var(--radius));
  font-size: var(--tc-btn-fs, 15px);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  opacity: var(--tc-btn-opacity, 1);
  background: var(--tc-btn-bg, linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%));
  border: var(--tc-btn-bw, 1.5px) solid var(--tc-btn-bc, rgba(var(--primary-rgb), 0.9));
  color: var(--tc-btn-text, #ffffff);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.15), var(--primary-glow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  background: var(--tc-btn-hover-bg, var(--primary-dark));
  color: var(--tc-btn-hover-text, #ffffff);
  transform: translateY(-1.5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.15), 0 6px 16px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
  opacity: var(--tc-btn-opacity, 1);
  background: var(--tc-btn-bg, linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%));
  border: var(--tc-btn-bw, 1.5px) solid var(--tc-btn-bc, rgba(var(--primary-rgb), 0.9));
  color: var(--tc-btn-text, #ffffff);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.15), var(--primary-glow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: var(--tc-btn-hover-bg, var(--primary-dark));
  color: var(--tc-btn-hover-text, #ffffff);
  transform: translateY(-1.5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.15), 0 6px 16px rgba(30, 58, 138, 0.3);
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
}

.btn-outline {
  opacity: var(--tc-btn-opacity, 1);
  background: transparent;
  border: var(--tc-btn-bw, 1.5px) solid var(--tc-btn-bc, rgba(var(--primary-rgb), 0.9));
  color: var(--tc-btn-bc, var(--primary));
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background: var(--tc-btn-bg, var(--primary));
  color: var(--tc-btn-text, #ffffff);
  transform: translateY(-1.5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.15), var(--primary-glow);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  width: auto;
}

/* === CARD === */
.card {
  background: var(--bg);
  border: 1px solid rgba(128,128,128,0.12);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

/* === FORM === */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
  opacity: 0.7;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(128,128,128,0.25);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* === BADGE === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-pending { background: #fff3cd; color: #856404; }
/* Refunded family — matches the order-status "refunded" palette so a
   cancelled COD order's auto-marked payment badge renders styled instead
   of unstyled text. Partial variants get an amber tone. */
.badge-refunded { background: #fee2e2; color: #dc2626; }
.badge-partially_refunded { background: #ffedd5; color: #ea580c; }
.badge-partial { background: #ffedd5; color: #ea580c; }
.badge-processing { background: #cce5ff; color: #004085; }
.badge-shipped { background: #d4edda; color: #155724; }
.badge-delivered { background: #d1e7dd; color: #0f5132; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-paid { background: #d1e7dd; color: #0f5132; }
.badge-failed { background: #f8d7da; color: #721c24; }

/* === SUMMARY ROW === */
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  border-top: 2px solid var(--primary);
  padding-top: 10px;
  margin-top: 6px;
}

/* === DIVIDER === */
.divider {
  border: none;
  border-top: 1px solid rgba(128,128,128,0.15);
  margin: 16px 0;
}

/* === MAP CONTAINER === */
.map-container {
  width: 100%;
  height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(128,128,128,0.15);
  margin-bottom: 14px;
}

.map-container iframe,
.map-container #map {
  width: 100%;
  height: 100%;
  border: none;
}

/* === TRACKING TIMELINE === */
.tracking-timeline {
  position: relative;
  padding-left: 24px;
}

.tracking-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(128,128,128,0.2);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(128,128,128,0.2);
  border: 2px solid var(--bg);
}

.timeline-dot.active {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.35);
}

.timeline-item .timeline-status {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.timeline-item .timeline-note {
  font-size: 12px;
  color: var(--text);
  opacity: 0.6;
  margin-top: 2px;
}

.timeline-item .timeline-time {
  font-size: 11px;
  color: var(--text);
  opacity: 0.4;
  margin-top: 2px;
}

/* === ADDRESS CARD === */
.address-card {
  background: var(--bg);
  border: 1.5px solid rgba(128,128,128,0.12);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s;
}

.address-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.3);
}

.address-card .address-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.address-card .address-label.home { background: #e8f0fe; color: #1a73e8; }
.address-card .address-label.work { background: #fce8e6; color: #d93025; }
.address-card .address-label.other { background: #e6f4ea; color: #137333; }

.address-card .address-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.address-card .address-phone {
  font-size: 12px;
  opacity: 0.6;
}

.address-card .address-text {
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.4;
  opacity: 0.8;
}

.address-card .default-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.address-card .address-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.address-card .address-actions button {
  font-size: 12px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text);
  opacity: 0.6;
}

.address-card .address-actions button:hover { opacity: 1; }

/* === PAYMENT METHOD SELECTOR === */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid rgba(128,128,128,0.12);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
}

.payment-option.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.3);
}

.payment-option .payment-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.payment-option .payment-info {
  flex: 1;
}

.payment-option .payment-name {
  font-weight: 600;
  font-size: 14px;
}

.payment-option .payment-desc {
  font-size: 12px;
  opacity: 0.5;
}

.payment-option .payment-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(128,128,128,0.3);
  flex-shrink: 0;
}

.payment-option.selected .payment-radio {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--bg);
}

/* === LOADING === */
.page-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(128,128,128,0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === ORDER CARD === */
.order-card {
  background: var(--bg);
  border: 1px solid rgba(128,128,128,0.12);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.order-card:hover {
  box-shadow: var(--shadow);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-id {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.6;
}

.order-date {
  font-size: 12px;
  opacity: 0.4;
}

.order-card-items {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.order-card-items img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total {
  font-size: 16px;
  font-weight: 700;
}

/* === PRODUCT DETAIL === */
.product-detail-images {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: rgba(128,128,128,0.05);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

/* --- Slider Track --- */
.product-detail-images .slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.product-detail-images .slider-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* --- Slider Arrows --- */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: #333;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: background 0.2s, transform 0.2s;
}

.slider-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-arrow-left {
  left: 8px;
}

.slider-arrow-right {
  right: 8px;
}

.slider-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  transform: translateY(-50%);
}

.slider-arrow:disabled:hover {
  background: rgba(255,255,255,0.85);
  transform: translateY(-50%);
}

/* --- Dot Navigation --- */
.product-detail-images .img-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.product-detail-images .img-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.product-detail-images .img-dot:hover {
  transform: scale(1.3);
}

.product-detail-images .img-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* --- Slide Counter --- */
.slide-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 10px;
  z-index: 5;
}

.product-detail-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-detail-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.product-detail-price-old {
  font-size: 16px;
  text-decoration: line-through;
  opacity: 0.4;
  margin-left: 8px;
}

.product-detail-desc {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.7;
  margin: 12px 0;
}

.product-detail-stock {
  font-size: 13px;
  margin-bottom: 16px;
}

.stock-in { color: #137333; font-weight: 600; }
.stock-out { color: #d93025; font-weight: 600; }

.product-detail-actions {
  display: flex;
  gap: 10px;
  position: fixed;
  bottom: 100px;
  left: 16px;
  right: 16px;
  max-width: 568px;
  margin: 0 auto;
  z-index: 50;
}

.product-detail-actions .btn {
  flex: 1;
}

/* === TAB BAR === */
.tab-bar {
  display: flex;
  border-bottom: 2px solid rgba(128,128,128,0.1);
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.5;
  cursor: pointer;
  position: relative;
}

.tab-btn.active {
  opacity: 1;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* === ACCOUNT PAGE === */
.account-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.account-name {
  font-size: 18px;
  font-weight: 700;
}

.account-email {
  font-size: 13px;
  opacity: 0.5;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  border-bottom: 1px solid rgba(128,128,128,0.08);
}

.menu-list a,
.menu-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-list a .menu-icon,
.menu-list button .menu-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(128,128,128,0.06);
  font-size: 18px;
}

.menu-list a .menu-arrow,
.menu-list button .menu-arrow {
  margin-left: auto;
  opacity: 0.3;
}

/* === CATEGORY / SEARCH GRID OVERRIDE ===
   homepage-modules.css sets .product-card { flex: 0 0 168px }
   for horizontal scroll rows. On the category/search page,
   cards are inside a CSS Grid (#productGrid) and need to
   fill their grid cell instead of forcing a fixed width.
====================================================== */
#productGrid .product-card {
  flex: none;
  width: 100%;
  min-width: 0;
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
  .page-wrapper {
    padding: 24px;
  }
}

/* ============================================================
   GLASS EFFECT — buttons, product cards, address buttons, etc.
   White glass transparent in light mode, dark in dark mode
============================================================ */

/* ── All buttons: glass + glowing border ── */
.btn, .btn-primary, .btn-secondary, .btn-danger, .btn-outline {
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 8px rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.btn:hover, .btn-primary:hover, .btn-secondary:hover {
  box-shadow: 0 0 16px rgba(255,255,255,0.15), 0 4px 12px rgba(0,0,0,0.06);
  border-color: rgba(255,255,255,0.35);
}

.dark .btn, .dark .btn-primary, .dark .btn-secondary, .dark .btn-danger, .dark .btn-outline {
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 8px rgba(255,255,255,0.03), 0 2px 8px rgba(0,0,0,0.2);
}

.dark .btn:hover, .dark .btn-primary:hover, .dark .btn-secondary:hover {
  box-shadow: 0 0 16px rgba(255,255,255,0.06), 0 4px 12px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.15);
}

/* ── Product cards: glass ── */
.product-card, .product-grid > div {
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.dark .product-card, .dark .product-grid > div {
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* ── Address buttons/cards: glass ── */
.address-card {
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.15);
}

.dark .address-card {
  border: 1px solid rgba(255,255,255,0.05);
}

.address-card .address-actions button {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.06);
}

.dark .address-card .address-actions button {
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Search bar: glass ── */
.search-wrapper input {
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.2);
}

.dark .search-wrapper input {
  border: 1px solid rgba(255,255,255,0.08);
}

.search-btn {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ── Icon buttons (cart, theme, etc.): glass ── */
.icon-btn {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
}

.dark .icon-btn {
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Qty control buttons: glass ── */
.qty-control button {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
}

.dark .qty-control button {
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Cart page buttons ── */
.cart-item, .cart-summary {
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.12);
}

.dark .cart-item, .dark .cart-summary {
  border: 1px solid rgba(255,255,255,0.05);
}

/* ── Account page cards ── */
.account-card, .order-card, .info-card {
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.12);
}

.dark .account-card, .dark .order-card, .dark .info-card {
  border: 1px solid rgba(255,255,255,0.05);
}

/* ── Checkout elements ── */
.checkout-section, .payment-method-card {
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.12);
}

.dark .checkout-section, .dark .payment-method-card {
  border: 1px solid rgba(255,255,255,0.05);
}

/* ── Subscription cards ── */
.subscription-card {
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.12);
}

.dark .subscription-card {
  border: 1px solid rgba(255,255,255,0.05);
}

/* ── Wishlist items ── */
.wishlist-item {
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.12);
}

.dark .wishlist-item {
  border: 1px solid rgba(255,255,255,0.05);
}

/* ── Bottom nav glass ── */
.bottom-nav {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.dark .bottom-nav {
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Language menu glass ── */
.lang-menu {
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.15);
}

.dark .lang-menu {
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Search dropdown glass ── */
.search-dropdown {
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.15);
}

.dark .search-dropdown {
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Product detail actions ── */
.product-detail-actions .btn {
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

/* ── Filter sidebar / sort buttons ── */
.filter-sidebar, .sort-bar {
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.12);
}

.dark .filter-sidebar, .dark .sort-bar {
  border: 1px solid rgba(255,255,255,0.05);
}

/* ── Modal glass ── */
.modal-content {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.15);
}

.dark .modal-content {
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Cart Page Styles ── */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.cart-item-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
  padding-right: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.cart-item-price {
  font-weight: 800;
  font-size: 16px;
  color: var(--primary);
}

.dark .cart-item-price {
  color: var(--accent);
}

.cart-item-price-old {
  text-decoration: line-through;
  opacity: 0.5;
  font-size: 12px;
  color: var(--text-muted);
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
  background: rgba(128,128,128,0.04);
}

.cart-item-qty .qty-btn {
  width: 28.5px;
  height: 28.5px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s;
}

.cart-item-qty .qty-btn:hover {
  background: rgba(128,128,128,0.12);
}

/* [+] button — 1.5px smaller than [-] and slightly blurred */
.cart-item-qty .qty-btn-plus {
  width: 28.5px;
  height: 28.5px;
  filter: blur(0.4px);
}

.cart-item-qty .qty-val {
  font-weight: 700;
  font-size: 14px;
  min-width: 28px;
  text-align: center;
  color: var(--text);
}

.cart-item-remove {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-muted);
  opacity: 0.6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-item-remove:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  opacity: 1;
}

.cart-item-remove svg {
  width: 18px;
  height: 18px;
}

/* ── Cart Summary Panel ── */
.cart-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.summary-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

.summary-row .subtotal-val {
  font-weight: 700;
  color: var(--text);
}

.summary-row .delivery-val {
  font-weight: 700;
  color: #10b981;
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.summary-row.total-row {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.summary-row .total-val {
  font-size: 19px;
  font-weight: 900;
  color: var(--primary);
}

.dark .summary-row .total-val {
  color: var(--accent);
}

.checkout-btn {
  margin-top: 20px;
  width: 100%;
}

/* ── Empty State Styles ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.empty-icon-wrapper {
  width: 72px;
  height: 72px;
  background: rgba(128,128,128,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-muted);
}

.empty-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.browse-btn {
  width: auto !important;
  display: inline-flex !important;
  padding: 10px 24px !important;
}


/* === ORDERS PAGE V2 === */
.orders-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 10px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.orders-filter-bar::-webkit-scrollbar { display: none; }

.orders-tab {
  white-space: nowrap;
  padding: 7px 16px;
  border: 1.5px solid rgba(128,128,128,0.15);
  border-radius: 20px;
  background: transparent;
  color: var(--text-muted, #6b7280);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.orders-tab.active {
  background: var(--primary, #2563eb);
  color: #fff;
  border-color: var(--primary, #2563eb);
}

.orders-search-wrap {
  margin-bottom: 14px;
}
.orders-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(128,128,128,0.15);
  border-radius: 10px;
  font-size: 14px;
  background: var(--bg-input, #f9fafb);
  color: var(--text, #1f2937);
  box-sizing: border-box;
}
.orders-search-input:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
}

/* Order card v2 */
.order-card-v2 {
  background: var(--bg-card, #fff);
  border: 1px solid rgba(128,128,128,0.12);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.1s;
}
.order-card-v2:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.order-card-v2:active {
  transform: scale(0.99);
}

.order-v2-header {
  margin-bottom: 12px;
}
.order-v2-id-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-v2-id {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #1f2937);
}
.order-v2-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: capitalize;
}
.order-v2-date {
  font-size: 12px;
  color: var(--text-muted, #9ca3af);
  margin-top: 4px;
  display: block;
}

.order-v2-items {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}
.order-v2-thumb {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.06);
}
.order-v2-thumb-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--bg-muted, #f3f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted, #9ca3af);
}
.order-v2-more {
  font-size: 12px;
  color: var(--text-muted, #9ca3af);
  font-weight: 600;
}

.order-v2-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.order-v2-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.order-v2-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #1f2937);
}
.order-v2-count {
  font-size: 12px;
  color: var(--text-muted, #9ca3af);
}
.order-v2-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.order-action-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.order-action-btn:hover { opacity: 0.85; }
.order-action-btn.track { background: #2563eb; color: #fff; }
.order-action-btn.return { background: #f59e0b; color: #fff; }
.order-action-btn.return-status { background: #ef4444; color: #fff; }

/* === ORDER DETAIL V2 === */
.order-detail-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.order-detail-status-pill {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 14px;
  text-transform: capitalize;
}

/* Progress stepper */
.order-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 20px 0 24px;
  padding: 0 4px;
}
.order-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}
.order-progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(128,128,128,0.15);
  z-index: 0;
}
.order-progress-step.completed:not(:last-child)::after {
  background: var(--primary, #2563eb);
}
.order-progress-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  z-index: 1;
  background: var(--bg-muted, #f3f4f6);
  color: var(--text-muted, #9ca3af);
  border: 2px solid rgba(128,128,128,0.15);
  transition: all 0.2s;
}
.order-progress-step.completed .order-progress-dot {
  background: var(--primary, #2563eb);
  color: #fff;
  border-color: var(--primary, #2563eb);
}
.order-progress-step.current .order-progress-dot {
  background: #fff;
  color: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}
.order-progress-dot.has-custom-icon {
  background: var(--bg-card, #ffffff);
  border-color: rgba(128,128,128,0.25);
  position: relative;
  overflow: visible;
}
.order-progress-step.completed .order-progress-dot.has-custom-icon {
  border-color: var(--primary, #2563eb);
  background: rgba(37, 99, 235, 0.05);
}
.order-progress-step.current .order-progress-dot.has-custom-icon {
  border-color: var(--primary, #2563eb);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.18);
}
.order-progress-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
.order-progress-mini-check {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 13px;
  height: 13px;
  background: var(--primary, #2563eb);
  color: #fff;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  line-height: 1;
}
.dark .order-progress-dot.has-custom-icon {
  background: #1e293b;
  border-color: rgba(255,255,255,0.2);
}
.dark .order-progress-step.completed .order-progress-dot.has-custom-icon {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--primary, #2563eb);
}
.dark .order-progress-step.current .order-progress-dot.has-custom-icon {
  background: #1e293b;
}
.dark .order-progress-mini-check {
  border-color: #1e293b;
}

/* Timeline custom icon */
.timeline-dot.has-step-icon {
  width: 22px;
  height: 22px;
  left: -24px;
  top: 0px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid rgba(128,128,128,0.25);
  border-radius: 50%;
}
.timeline-dot.has-step-icon.active {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}
.timeline-dot-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
}
.timeline-step-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}
.order-progress-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #9ca3af);
  text-align: center;
  white-space: nowrap;
}
.order-progress-step.completed .order-progress-label,
.order-progress-step.current .order-progress-label {
  color: var(--text, #1f2937);
}

/* Order detail sections */
.order-section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 10px;
  color: var(--text, #1f2937);
}

.order-item-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(128,128,128,0.08);
}
.order-item-row:last-child { border-bottom: none; }
.order-item-row img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.order-item-info {
  flex: 1;
  min-width: 0;
}
.order-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1f2937);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-item-variant {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  margin-top: 2px;
}
.order-item-tryon-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  margin-top: 4px;
}
.order-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1f2937);
  white-space: nowrap;
}
.order-item-qty {
  font-size: 12px;
  color: var(--text-muted, #9ca3af);
}

/* Price summary */
.order-price-summary {
  background: var(--bg-card, #fff);
  border: 1px solid rgba(128,128,128,0.12);
  border-radius: 12px;
  padding: 16px;
}
.price-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-muted, #6b7280);
}
.price-summary-row.total {
  border-top: 1px solid rgba(128,128,128,0.12);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #1f2937);
}
.price-summary-row .value {
  font-weight: 600;
  color: var(--text, #1f2937);
}

/* Payment card */
.order-payment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card, #fff);
  border: 1px solid rgba(128,128,128,0.12);
  border-radius: 12px;
}
.order-payment-method {
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-payment-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--bg-muted, #f3f4f6);
}
.order-payment-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1f2937);
}

/* Address card */
.order-address-card {
  padding: 14px 16px;
  background: var(--bg-card, #fff);
  border: 1px solid rgba(128,128,128,0.12);
  border-radius: 12px;
}
.order-address-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1f2937);
  margin-bottom: 4px;
}
.order-address-text {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  line-height: 1.5;
}

/* Help section */
.order-help-section {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.order-help-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid rgba(128,128,128,0.15);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #1f2937);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.order-help-btn:hover {
  background: var(--bg-muted, #f3f4f6);
}

/* Bottom action bar for order detail */
.order-bottom-bar {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-bottom: 20px;
}
.order-bottom-btn {
  flex: 1;
  padding: 14px;
  border: 1.5px solid;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  transition: all 0.15s;
  text-align: center;
}
.order-bottom-btn.cancel { color: #ef4444; border-color: #ef4444; }
.order-bottom-btn.cancel:hover { background: #ef4444; color: #fff; }
.order-bottom-btn.return { color: #f59e0b; border-color: #f59e0b; }
.order-bottom-btn.return:hover { background: #f59e0b; color: #fff; }
.order-bottom-btn.invoice { color: var(--primary, #2563eb); border-color: var(--primary, #2563eb); }
.order-bottom-btn.invoice:hover { background: var(--primary, #2563eb); color: #fff; }
.order-bottom-btn.withdraw { color: #6b7280; border-color: #6b7280; }
.order-bottom-btn.withdraw:hover { background: #6b7280; color: #fff; }

/* Invoice modal */
.invoice-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.invoice-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 95%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
}
.invoice-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.invoice-modal-body {
  padding: 20px;
}

/* Dark mode */
.dark .order-card-v2,
.dark .order-price-summary,
.dark .order-payment-card,
.dark .order-address-card {
  background: var(--bg-card, #1e293b);
  border-color: rgba(255,255,255,0.08);
}
.dark .order-progress-step:not(:last-child)::after {
  background: rgba(255,255,255,0.1);
}
.dark .order-progress-dot {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.1);
}

/* === CATEGORY DIRECTORY & CATEGORY PAGE === */
.category-page-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 120px;
}

@media (min-width: 768px) {
  .category-page-container {
    padding: 24px;
    padding-bottom: 130px;
  }
}

.category-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text, #334155);
  opacity: 0.8;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.category-breadcrumbs a {
  color: var(--primary, #0284c7);
  text-decoration: none;
  font-weight: 500;
}

.category-breadcrumbs a:hover {
  text-decoration: underline;
}

.category-breadcrumbs .breadcrumb-sep {
  opacity: 0.4;
  font-size: 12px;
}

.category-view-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(128,128,128,0.18);
  padding-bottom: 10px;
}

.cat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(128,128,128,0.22);
  background: var(--bg-card, #ffffff);
  color: var(--text, #1e293b);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-tab-btn:hover {
  border-color: var(--primary, #0284c7);
  color: var(--primary, #0284c7);
}

.cat-tab-btn.active {
  background: var(--primary, #0284c7);
  color: #ffffff;
  border-color: var(--primary, #0284c7);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.28);
}

.category-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.category-search-input {
  flex: 1;
  max-width: 480px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(128,128,128,0.25);
  background: var(--bg, #f8fafc);
  color: var(--text, #0f172a);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.category-search-input:focus {
  border-color: var(--primary, #0284c7);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.category-directory-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

@media (min-width: 540px) {
  .category-directory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 900px) {
  .category-directory-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1140px) {
  .category-directory-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.category-dir-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(128,128,128,0.18);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.category-dir-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary, #0284c7);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.cat-dir-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cat-dir-media {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(128,128,128,0.12);
}

.cat-dir-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-dir-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.cat-dir-title-wrap {
  flex: 1;
  min-width: 0;
}

.cat-dir-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0;
  line-height: 1.3;
}

.cat-dir-count {
  font-size: 12px;
  color: var(--text, #64748b);
  opacity: 0.75;
  margin-top: 2px;
}

.cat-dir-desc {
  font-size: 13px;
  color: var(--text, #475569);
  opacity: 0.85;
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-dir-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(128,128,128,0.16);
}

.cat-sub-pill {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(128,128,128,0.08);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text, #334155);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.cat-sub-pill:hover {
  background: var(--primary, #0284c7);
  color: #ffffff;
}

.cat-dir-footer-btn {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary, #0284c7);
  padding-top: 8px;
}

/* Category Detail Header */
.category-detail-header {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(128,128,128,0.16);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.category-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.category-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-detail-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(2, 132, 199, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(128,128,128,0.12);
  position: relative;
}

.category-detail-icon img,
.cat-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.cat-detail-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}

.cat-sub-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.cat-sub-chip {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(128,128,128,0.22);
  background: var(--bg, #f8fafc);
  color: var(--text, #334155);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-sub-chip:hover,
.cat-sub-chip.active {
  background: var(--primary, #0284c7);
  border-color: var(--primary, #0284c7);
  color: #ffffff;
}

/* Dark mode overrides */
.dark .category-dir-card,
.dark .category-detail-header {
  background: var(--bg-card, #1e293b);
  border-color: rgba(255,255,255,0.08);
}

.dark .cat-dir-icon,
.dark .category-detail-icon {
  background: rgba(56, 189, 248, 0.12);
}

.dark .category-search-input {
  background: #0f172a;
  border-color: rgba(255,255,255,0.12);
  color: #f1f5f9;
}

.dark .cat-sub-pill,
.dark .cat-sub-chip {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #cbd5e1;
}

.dark .cat-sub-chip.active,
.dark .cat-sub-chip:hover {
  background: var(--primary, #38bdf8);
  border-color: var(--primary, #38bdf8);
  color: #0f172a;
}

/* === STOREFRONT ABOUT US PAGE === */
.about-page-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px 120px 16px;
}

@media (min-width: 768px) {
  .about-page-wrap {
    padding: 32px 24px 130px 24px;
  }
}

.about-badge-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary, #0284c7);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.about-hero-header {
  text-align: center;
  margin-bottom: 32px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.about-hero-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text, #0f172a);
  line-height: 1.25;
  margin: 0 0 12px 0;
}

@media (min-width: 768px) {
  .about-hero-header h1 {
    font-size: 36px;
  }
}

.about-hero-header p {
  font-size: 16px;
  color: var(--text, #475569);
  line-height: 1.6;
  margin: 0;
  opacity: 0.88;
}

.about-hero-banner {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.about-hero-banner img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.about-section {
  margin-bottom: 48px;
}

.about-section-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 16px 0;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 800px) {
  .about-story-grid.has-image {
    grid-template-columns: 1.2fr 1fr;
  }
}

.about-story-content {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text, #334155);
}

.about-story-content p {
  margin-bottom: 14px;
}

.about-story-img {
  border-radius: 14px;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Mission & Vision */
.about-mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .about-mv-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-mv-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(128,128,128,0.18);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.about-mv-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-mv-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text, #475569);
  margin: 0;
}

/* Core Values */
.about-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .about-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .about-values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-value-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(128,128,128,0.16);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.about-value-icon {
  font-size: 26px;
  margin-bottom: 4px;
}

.about-value-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0;
}

.about-value-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text, #64748b);
  margin: 0;
}

/* Stats Bar */
.about-stats-bar {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(128,128,128,0.18);
  border-radius: 16px;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .about-stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.about-stat-item .stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary, #0284c7);
  line-height: 1.1;
  margin-bottom: 6px;
}

.about-stat-item .stat-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #475569);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Team Grid */
.about-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .about-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .about-team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-team-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(128,128,128,0.16);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.about-team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px auto;
  background: rgba(2, 132, 199, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.about-team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 4px 0;
}

.about-team-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary, #0284c7);
  margin-bottom: 8px;
}

.about-team-bio {
  font-size: 13px;
  color: var(--text, #64748b);
  line-height: 1.45;
  margin: 0;
}

/* Contact Card */
.about-contact-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(128,128,128,0.18);
  border-radius: 16px;
  padding: 28px 24px;
}

.about-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .about-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.about-contact-info label {
  display: block;
  font-size: 12px;
  color: var(--cat-text-muted, #64748b);
  margin-bottom: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

.about-contact-info span,
.about-contact-info a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1e293b);
  text-decoration: none;
}

.about-contact-info a:hover {
  color: var(--primary, #0284c7);
  text-decoration: underline;
}

/* Blank / Ready State */
.about-blank-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(128,128,128,0.18);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
}

.about-blank-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.about-blank-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 10px 0;
}

.about-blank-card p {
  font-size: 15px;
  color: var(--text, #64748b);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

/* Dark mode overrides for About Us */
.dark .about-mv-card,
.dark .about-value-card,
.dark .about-stats-bar,
.dark .about-team-card,
.dark .about-contact-card,
.dark .about-blank-card {
  background: var(--bg-card, #1e293b);
  border-color: rgba(255,255,255,0.08);
}

.dark .about-story-content {
  color: #cbd5e1;
}

.dark .about-contact-info span,
.dark .about-contact-info a {
  color: #f1f5f9;
}

/* ============================================================
   CAREERS STOREFRONT PAGE STYLES
============================================================ */
.careers-page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 80px 20px;
  box-sizing: border-box;
}

/* Hero Section */
.careers-hero-card {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%), var(--bg-card, #ffffff);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: 20px;
  padding: 40px 32px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
  overflow: hidden;
}

.careers-hero-content {
  flex: 1;
}

.careers-hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text, #0f172a);
  margin: 12px 0 16px 0;
  letter-spacing: -0.5px;
}

.careers-hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text, #475569);
  margin: 0 0 24px 0;
  max-width: 600px;
}

.careers-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.careers-hero-media {
  flex: 0 0 320px;
  max-width: 320px;
}

.careers-hero-media img {
  width: 100%;
  height: auto;
  max-height: 240px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .careers-hero-card {
    flex-direction: column;
    padding: 28px 20px;
  }
  .careers-hero-title {
    font-size: 24px;
  }
  .careers-hero-media {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

/* Buttons */
.careers-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--primary, #0284c7);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.careers-btn-primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
  color: #ffffff;
}

.careers-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--bg-card, #ffffff);
  color: var(--text, #1e293b);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(128, 128, 128, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.careers-btn-secondary:hover {
  background: rgba(128, 128, 128, 0.06);
  border-color: rgba(128, 128, 128, 0.4);
}

/* Sections */
.careers-section {
  margin-bottom: 48px;
}

.careers-section-header {
  margin-bottom: 24px;
}

.careers-section-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.careers-section-sub {
  font-size: 14.5px;
  color: var(--cat-text-muted, #64748b);
  margin: 0;
  line-height: 1.5;
}

/* Perks Grid */
.careers-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.careers-perk-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(128, 128, 128, 0.16);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s ease;
}

.careers-perk-card:hover {
  border-color: rgba(2, 132, 199, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.careers-perk-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.careers-perk-icon svg {
  width: 22px;
  height: 22px;
}

.careers-perk-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 8px 0;
}

.careers-perk-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text, #64748b);
  margin: 0;
}

/* Culture Section */
.careers-culture-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(128, 128, 128, 0.16);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  gap: 32px;
  align-items: center;
}

.careers-culture-text {
  flex: 1;
}

.careers-culture-p p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text, #475569);
  margin: 0 0 14px 0;
}

.careers-culture-media {
  flex: 0 0 320px;
  max-width: 320px;
}

.careers-culture-media img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .careers-culture-card {
    flex-direction: column;
    padding: 24px;
  }
  .careers-culture-media {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

/* Open Positions Filter Bar */
.careers-openings-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.careers-openings-count-badge {
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary, #0284c7);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.careers-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.careers-dept-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.careers-dept-tab {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #475569);
  cursor: pointer;
  transition: all 0.15s ease;
}

.careers-dept-tab:hover {
  background: rgba(128, 128, 128, 0.08);
  color: var(--text, #0f172a);
}

.careers-dept-tab.active {
  background: var(--primary, #0284c7);
  color: #ffffff;
  border-color: var(--primary, #0284c7);
}

.careers-search-wrap {
  position: relative;
  min-width: 260px;
  flex: 0 1 300px;
}

.careers-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.careers-search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border-radius: 10px;
  border: 1px solid rgba(128, 128, 128, 0.25);
  background: var(--bg-card, #ffffff);
  color: var(--text, #0f172a);
  font-size: 13.5px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.careers-search-input:focus {
  border-color: var(--primary, #0284c7);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Job Cards */
.careers-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.careers-job-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(128, 128, 128, 0.16);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s ease;
}

.careers-job-card:hover {
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.careers-job-card.is-featured {
  border-left: 4px solid var(--primary, #0284c7);
}

.careers-job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.careers-job-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.careers-job-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0;
}

.careers-pill-featured {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(234, 179, 8, 0.12);
  color: #ca8a04;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.careers-pill-featured svg {
  width: 12px;
  height: 12px;
}

.careers-job-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.careers-btn-toggle-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text, #475569);
  cursor: pointer;
  transition: all 0.15s ease;
}

.careers-btn-toggle-details:hover {
  background: rgba(128, 128, 128, 0.06);
  color: var(--text, #0f172a);
}

.careers-btn-toggle-details svg {
  width: 14px;
  height: 14px;
}

.careers-btn-apply {
  background: var(--primary, #0284c7);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.careers-btn-apply:hover {
  background: #0369a1;
}

/* Tags */
.careers-job-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.careers-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cat-text-muted, #64748b);
  background: rgba(128, 128, 128, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

.careers-tag svg {
  width: 12px;
  height: 12px;
  opacity: 0.75;
}

.careers-tag.salary {
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
}

.careers-job-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text, #475569);
  margin: 0;
}

/* Expanded Details */
.careers-job-details {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(128, 128, 128, 0.2);
}

.careers-job-detail-block {
  margin-bottom: 16px;
}

.careers-job-detail-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 8px 0;
}

.careers-job-detail-block ul {
  margin: 0;
  padding-left: 20px;
}

.careers-job-detail-block li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text, #475569);
  margin-bottom: 4px;
}

.careers-details-bottom-cta {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* No Match State */
.careers-no-match {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-card, #ffffff);
  border: 1px dashed rgba(128, 128, 128, 0.25);
  border-radius: 16px;
}

.careers-no-match h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 6px 0;
}

.careers-no-match p {
  font-size: 13.5px;
  color: var(--cat-text-muted, #64748b);
  margin: 0 0 16px 0;
}

/* Contact / General Application Box */
.careers-contact-box {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(128, 128, 128, 0.16);
  border-radius: 20px;
  padding: 32px;
}

.careers-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.careers-contact-info {
  flex: 1;
  min-width: 280px;
}

.careers-contact-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 6px 0;
}

.careers-contact-info p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text, #475569);
  margin: 0 0 14px 0;
}

.careers-contact-channels {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.careers-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary, #0284c7);
}

.careers-contact-chip a {
  color: inherit;
  text-decoration: none;
}

.careers-contact-chip a:hover {
  text-decoration: underline;
}

.careers-contact-chip svg {
  width: 14px;
  height: 14px;
}

/* Modal */
.careers-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.careers-modal {
  background: var(--bg-card, #ffffff);
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 28px 24px;
  box-sizing: border-box;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.careers-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.careers-modal-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary, #0284c7);
  margin-bottom: 4px;
}

.careers-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0;
}

.careers-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
}

.careers-modal-close:hover {
  color: #0f172a;
}

.careers-modal-form .careers-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .careers-modal-form .careers-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.careers-form-group {
  margin-bottom: 14px;
}

.careers-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text, #334155);
  margin-bottom: 5px;
}

.careers-form-group label .required {
  color: #ef4444;
}

.careers-input,
.careers-textarea {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.25);
  background: var(--bg-card, #ffffff);
  color: var(--text, #0f172a);
  font-size: 13.5px;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
}

.careers-input:focus,
.careers-textarea:focus {
  border-color: var(--primary, #0284c7);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.careers-form-hint {
  display: block;
  font-size: 11.5px;
  color: var(--cat-text-muted, #64748b);
  margin-top: 4px;
}

.careers-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(128, 128, 128, 0.15);
}

.careers-modal-success {
  text-align: center;
  padding: 32px 16px;
}

.careers-success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.careers-modal-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 8px 0;
}

.careers-modal-success p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text, #475569);
  margin: 0;
}

/* Dark Mode Support for Careers */
.dark .careers-hero-card,
.dark .careers-perk-card,
.dark .careers-culture-card,
.dark .careers-job-card,
.dark .careers-contact-box,
.dark .careers-modal,
.dark .careers-no-match {
  background: var(--bg-card, #1e293b);
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .careers-hero-title,
.dark .careers-section-heading,
.dark .careers-perk-title,
.dark .careers-job-title,
.dark .careers-contact-info h3,
.dark .careers-modal-title,
.dark .careers-modal-success h3,
.dark .careers-no-match h4 {
  color: #f8fafc;
}

.dark .careers-hero-subtitle,
.dark .careers-culture-p p,
.dark .careers-job-desc,
.dark .careers-job-detail-block li,
.dark .careers-contact-info p,
.dark .careers-modal-success p,
.dark .careers-perk-desc {
  color: #cbd5e1;
}

.dark .careers-input,
.dark .careers-textarea,
.dark .careers-search-input,
.dark .careers-dept-tab,
.dark .careers-btn-toggle-details,
.dark .careers-btn-secondary {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}

.dark .careers-modal-close:hover {
  color: #ffffff;
}

/* Custom Order Detail Icons */
.order-payment-custom-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.order-ships-from-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  margin-right: 4px;
}

.order-return-expired-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  margin-right: 6px;
}

