:root {
  --navy: #041D3F;
  --navy-dark: #021227;
  --navy-light: #0A2E63;
  --deep-cyan: #0A7FA0;
  --bright-cyan: #22C3E6;
  --paper: #F5F8FC;
  --mist: #E3E9F1;
  --surface: #FFFFFF;
  --surface-alt: #F8FAFD;
  --text-main: #0B192C;
  --text-muted: #5A6D85;
  --border: #D8E2ED;
  --danger: #D9383A;
  --success: #108A56;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 6px rgba(4, 29, 63, 0.05);
  --shadow-md: 0 8px 24px rgba(4, 29, 63, 0.08);
  --shadow-lg: 0 16px 40px rgba(4, 29, 63, 0.12);
  --font-heading: 'Cairo', system-ui, sans-serif;
  --font-body: 'Changa', system-ui, sans-serif;
  --font-latin: 'Quicksand', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #051326;
    --mist: #0F2542;
    --surface: #091C35;
    --surface-alt: #0D2647;
    --text-main: #EDF3FB;
    --text-muted: #9BB0CC;
    --border: #1B385E;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  font-size: 1rem;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  background-color: var(--paper);
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--bright-cyan);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Header */
.store-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(4, 29, 63, 0.25);
  border-bottom: 1px solid rgba(34, 195, 230, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.track-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s;
}

.track-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--deep-cyan);
  color: #fff;
  transition: transform 0.15s, background 0.2s;
}

.cart-btn:hover {
  background: var(--bright-cyan);
  color: var(--navy);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--bright-cyan);
  color: var(--navy);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.cart-badge.bump {
  transform: scale(1.35);
}

/* Main */
.main-content {
  flex: 1;
  padding-bottom: 48px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, rgba(10, 127, 160, 0.12) 100%), var(--navy);
  color: #fff;
  padding: 28px 0 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.hero p {
  color: #C2D5ED;
  font-size: 1rem;
}

/* Controls */
.catalog-controls {
  margin-top: -16px;
  margin-bottom: 24px;
}

.search-bar {
  position: relative;
  max-width: 580px;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-full);
}

.search-bar input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  outline: none;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: var(--deep-cyan);
}

.search-bar .search-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar .clear-btn {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  padding: 4px;
  border-radius: 50%;
}

.chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s;
}

.category-chip:hover {
  border-color: var(--deep-cyan);
}

.category-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 680px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 980px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--bright-cyan);
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.25s;
}

.product-card:hover .card-thumb {
  transform: scale(1.04);
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: #FAFCFE;
}

.card-placeholder svg {
  stroke-width: 1.25;
}

.card-category {
  font-size: 0.75rem;
  color: var(--deep-cyan);
  font-weight: 600;
  margin-top: 8px;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.card-attributes {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.4em;
  margin-bottom: 8px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

.card-price {
  font-family: var(--font-latin);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .card-price {
    color: var(--bright-cyan);
  }
}

.card-price .prefix {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 2px;
}

.card-action-btn {
  background: var(--navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: background 0.15s;
  flex-shrink: 0;
}

.card-action-btn:hover {
  background: var(--deep-cyan);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 56px 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  grid-column: 1 / -1;
}

.empty-state svg {
  margin: 0 auto 12px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

/* Product Details */
.product-details {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 24px;
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .product-details {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 32px;
  }
}

.gallery-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gallery-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-meta .p-cat {
  color: var(--deep-cyan);
  font-size: 0.875rem;
  font-weight: 600;
}

.product-meta h1 {
  font-size: 1.5rem;
  margin: 6px 0 10px;
}

.product-meta .p-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.option-group {
  margin-bottom: 16px;
}

.option-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt-chip {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s;
}

.opt-chip:hover:not(:disabled) {
  border-color: var(--deep-cyan);
}

.opt-chip.selected {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.opt-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.price-sku-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.price-sku-box .p-price {
  font-family: var(--font-latin);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-cyan);
}

.price-sku-box .p-sku {
  font-family: var(--font-latin);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  overflow: hidden;
}

.qty-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  background: var(--surface-alt);
  color: var(--text-main);
  transition: background 0.15s;
}

.qty-btn:hover {
  background: var(--mist);
}

.qty-input {
  width: 48px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 1rem;
}

.action-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.btn-primary, .btn-secondary, .btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.18s;
  text-align: center;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--navy-light);
}

.btn-primary:disabled {
  background: var(--mist);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-whatsapp {
  background: #25D366;
  color: #064E24;
}

.btn-whatsapp:hover {
  background: #20BD5A;
}

.btn-secondary {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--mist);
}

.btn-block {
  width: 100%;
}

.selection-hint {
  font-size: 0.875rem;
  color: var(--deep-cyan);
  text-align: center;
  margin-top: 6px;
}

/* Cart Page */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}

@media (min-width: 840px) {
  .cart-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.cart-item-img {
  width: 76px;
  height: 76px;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cart-item-details {
  overflow: hidden;
}

.cart-item-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.cart-item-opt {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-price {
  font-family: var(--font-latin);
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep-cyan);
  margin-top: 4px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.remove-btn {
  color: var(--danger);
  font-size: 0.75rem;
  padding: 4px 6px;
}

.remove-btn:hover {
  text-decoration: underline;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.summary-card h2 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1rem;
}

.summary-total {
  font-weight: 700;
  font-size: 1.125rem;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.summary-total span:last-child {
  font-family: var(--font-latin);
  color: var(--navy);
}

@media (prefers-color-scheme: dark) {
  .summary-total span:last-child {
    color: var(--bright-cyan);
  }
}

.summary-notice {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 14px 0 16px;
  line-height: 1.5;
  background: var(--surface-alt);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

/* Checkout */
.checkout-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

@media (min-width: 600px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  outline: none;
  font-size: 1rem;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--deep-cyan);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 4px;
  padding: 8px 12px;
  background: rgba(217, 56, 58, 0.08);
  border-radius: var(--radius-sm);
  display: none;
}

.form-error.visible {
  display: block;
}

/* Done Page */
.done-card {
  max-width: 580px;
  margin: 32px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.done-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 138, 86, 0.12);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.order-pill {
  display: inline-block;
  padding: 8px 20px;
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--deep-cyan);
  margin: 12px 0;
}

/* Track Page */
.track-box {
  max-width: 640px;
  margin: 24px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 32px 0 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--border);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--border);
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-step.done .step-circle {
  background: var(--deep-cyan);
  border-color: var(--deep-cyan);
  color: #fff;
}

.timeline-step.current .step-circle {
  background: #fff;
  border-color: var(--bright-cyan);
  color: var(--navy);
  box-shadow: 0 0 0 4px rgba(34, 195, 230, 0.25);
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timeline-step.done .step-label,
.timeline-step.current .step-label {
  font-weight: 700;
  color: var(--text-main);
}

.cancel-banner {
  background: rgba(217, 56, 58, 0.1);
  color: var(--danger);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  margin: 16px 0;
}

/* Footer */
.store-footer {
  background: var(--navy);
  color: #C2D5ED;
  padding: 32px 0 20px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.875rem;
}

.badge-item svg {
  color: var(--bright-cyan);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.875rem;
  transition: background 0.15s;
}

.contact-pill:hover {
  background: rgba(255, 255, 255, 0.16);
}

.whatsapp-pill {
  background: rgba(37, 211, 102, 0.2);
  color: #5ef095;
}

.whatsapp-pill:hover {
  background: rgba(37, 211, 102, 0.3);
}

.copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--bright-cyan);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.2s;
  z-index: 100;
  max-width: 90%;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Spinner */
.route-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
  gap: 16px;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--deep-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Payment methods */
.pay-methods { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.pay-methods legend { font-weight: 700; margin-bottom: 8px; }
.pay-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--border, #E3E9F1); border-radius: 16px; cursor: pointer; background: var(--surface, #fff); }
.pay-option:has(input:checked) { border-color: #0A7FA0; box-shadow: 0 0 0 3px rgba(10,127,160,.12); }
.pay-option input { margin-top: 4px; accent-color: #0A7FA0; }
.pay-option span { display: grid; gap: 2px; }
.pay-option small { color: var(--text-muted, #5B6B80); font-size: 0.875rem; }
.pay-note { margin: 12px auto 0; max-width: 420px; padding: 10px 14px; border-radius: 12px; background: #E3F6FB; color: #041D3F; font-size: 0.875rem; }
[hidden] { display: none !important; }

/* Storefront v2.1.0 */
.old-price { color: #8898aa; text-decoration: line-through; font-size: 0.85em; margin-inline-end: 6px; font-weight: normal; }
.countdown { font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; font-weight: 600; }
.discount-ends { font-size: 0.875rem; color: #d93025; margin-top: 4px; }
.card-thumb-wrap { position: relative; }
.card-badges { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 2; pointer-events: none; }
.badge-featured, .badge-custom, .discount-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 9999px; line-height: 1.4; white-space: nowrap; }
.badge-featured { background: #041d3f; color: #22c3e6; border: 1px solid rgba(34, 195, 230, 0.4); }
.badge-custom { background: #f1f3f5; color: #212529; }
.discount-badge { background: #d93025; color: #fff; }
.flash-banner { background: #041d3f; color: #fff; border-radius: 12px; padding: 12px 16px; margin: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.flash-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.flash-title { font-weight: 700; font-size: 1rem; }
.flash-countdown { background: rgba(255, 255, 255, 0.12); padding: 2px 8px; border-radius: 8px; color: #22c3e6; }
.flash-btn { background: #22c3e6; color: #041d3f; font-weight: 700; font-size: 0.875rem; padding: 6px 16px; border-radius: 8px; text-decoration: none; }
@media (min-width: 600px) { .flash-banner { flex-direction: row; justify-content: space-between; text-align: start; } }
.btn-quote-action { text-align: center; width: 100%; }
.quote-form { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.quote-form .form-group { margin-bottom: 10px; }
.quote-form label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; color: #1e293b; }
.quote-form input, .quote-form textarea { width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; font-size: 0.875rem; box-sizing: border-box; }
.quote-form .req { color: #d93025; }
.quote-form .form-error { color: #d93025; font-size: 0.875rem; margin-bottom: 10px; padding: 6px 8px; background: #fef2f2; border-radius: 8px; border: 1px solid #fecaca; }
.quote-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 16px; border-radius: 12px; margin-bottom: 16px; text-align: center; }
.quote-success p { margin: 0 0 12px; font-weight: 600; font-size: 1rem; }
.store-closed { text-align: center; padding: 48px 16px; max-width: 480px; margin: 40px auto; background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; }
.store-closed h2 { font-size: 1.5rem; color: #041d3f; margin-bottom: 10px; }
.store-closed .closed-msg { color: #64748b; margin-bottom: 20px; font-size: 1rem; }
.store-closed .wa-btn { display: inline-flex; text-decoration: none; padding: 10px 24px; }
/* Product photographs lead the page; details stay readable and controls stay reachable. */
.product-thumbnails{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.ss-footer h2,.ss-footer h3,.ss-footer h4{color:inherit}
.products-list{grid-template-columns:1fr}
.products-list .product-card{display:grid;grid-template-columns:180px 1fr}
.product-thumbnails button{background:var(--bg-surface,#fff);border:1px solid var(--border,#E3E9F1);padding:4px;cursor:pointer;border-radius:8px}
.product-thumbnails img{width:64px;height:64px;object-fit:contain}
#productMainImg{cursor:zoom-in}
.product-lightbox{border:0;background:#F5F8FC;max-width:96vw;max-height:94vh;padding:16px;color:#041D3F}
.product-lightbox img{display:block;max-width:86vw;max-height:80vh;object-fit:contain}
.product-lightbox button{font:inherit;padding:10px 24px;cursor:pointer}
.product-specs{display:grid;grid-template-columns:1fr 2fr;gap:8px 18px;margin-block:20px}
.product-specs dd{margin:0}
.related-products{padding-block:36px}
.related-products img{max-width:100%;object-fit:contain;background:#fff}
.catalog-banner{padding:14px 18px;background:#041D3F;color:#fff;border-radius:8px}
.p-desc{white-space:pre-line}
@media(prefers-color-scheme:dark){.product-meta .p-cat{color:#22C3E6}}
.product-editorial{padding-block:24px}
.product-editorial .card{margin-block:20px}
.product-details{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.gallery-box img{max-width:100%;height:auto;max-height:640px;object-fit:contain}
@media(max-width:760px){.product-details{grid-template-columns:minmax(0,1fr)}.gallery-box img{max-height:360px}.product-specs{grid-template-columns:1fr 1fr}.product-details h1{font-size:1.75rem}}
/* Product page on small phones: long names and codes wrap inside the card. */
.product-details > * { min-width: 0; }
.product-meta h1 { overflow-wrap: break-word; }
.p-sku { overflow-wrap: anywhere; }
.ltr-token{direction:ltr;unicode-bidi:isolate;white-space:nowrap}
.p-sku bdi { direction: ltr; unicode-bidi: isolate; }

.quote-form input { min-height: 44px; }

@media (prefers-color-scheme: dark) {
  .quote-form {background:#091C35;border-color:#1B385E}
  .quote-form label{color:#EDF3FB}
  .quote-form input,.quote-form textarea{background:#041D3F;border-color:#1B385E;color:#EDF3FB;min-height:44px}
  .quote-form textarea{min-height:88px}
  .quote-form input::placeholder,.quote-form textarea::placeholder{color:#8FA3BD}
  .quote-form input:focus,.quote-form textarea:focus{outline:2px solid #22C3E6;outline-offset:1px;border-color:#22C3E6}
}
.price-sku-box { flex-wrap: wrap; gap: 8px 12px; }
.price-sku-box > * { min-width: 0; max-width: 100%; }
.product-qty-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.product-qty-row > label { font-weight: 600; font-size: 0.875rem; }
.breadcrumb { flex-wrap: wrap; min-width: 0; }
.breadcrumb [aria-current] { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-secondary { background: transparent; border: 1.5px solid #1E4B78; color: #041D3F; }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: #22C3E6; color: #041D3F; }
  .btn-primary:hover:not(:disabled) { background: #0A7FA0; color: #fff; }
  .btn-secondary { background: transparent; border: 1.5px solid #22C3E6; color: #EDF3FB; }
}
@media (max-width: 420px) {
  .product-details { padding: 16px; gap: 18px; }
  .btn-primary, .btn-secondary, .btn-whatsapp { min-height: 48px; }
}

/* Catalog cards and small controls: solid divider, comfortable tap targets. */
.card-footer { border-top: 1px solid var(--border); }
.card-action-btn { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 16px; }
.qty-btn { width: 44px; height: 44px; }
.breadcrumb a { display: inline-block; padding-block: 10px; }
@media (prefers-color-scheme: dark) {
  .card-category { color: #22C3E6; }
  .card-action-btn { background: #22C3E6; color: #041D3F; }
  .card-action-btn:hover { background: #0A7FA0; color: #fff; }
}

/* Track by phone: list of the customer's orders */
.track-list { border-top: 1px dashed var(--border); padding-top: 16px; display: flex; flex-direction: column; }
.track-list-title { font-weight: 700; margin-bottom: 6px; }
.track-order-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 4px; background: none; border: 0; border-bottom: 1px solid var(--border); color: inherit;
  font: inherit; text-align: start; cursor: pointer; }
.track-order-row:hover { background: var(--surface-alt); }
.tor-main { display: flex; flex-direction: column; gap: 2px; }
.tor-main b { font-family: var(--font-latin); }
.tor-main small { color: var(--text-muted); }
.tor-side { display: flex; align-items: center; gap: 10px; }
.tor-status { padding: 2px 10px; border-radius: var(--radius-full); background: var(--surface-alt); font-size: 0.85rem; }
.track-back { background: none; border: 0; padding: 0; margin-bottom: 12px; color: var(--deep-cyan); font: inherit; cursor: pointer; }

/* The no-JS product page exposes the same approved images to visitors and crawlers. */
.product-thumbnails-ssr a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.product-thumbnails-ssr a:hover,
.product-thumbnails-ssr a:focus-visible { border-color: var(--deep-cyan); }
.product-thumbnails-ssr img { width: 64px; height: 64px; object-fit: contain; }

/* Crawlable, practical product-discovery guidance (SSR and JS keep same text). */
.lighting-guide{margin-block:24px 34px;padding:20px 24px;border:1px solid var(--border);border-radius:16px;background:var(--surface-alt)}
.lighting-guide h2{font-size:clamp(1.15rem,2.8vw,1.5rem);line-height:1.6;margin:0 0 12px;color:var(--text-main)}
.lighting-guide-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}
.lighting-guide-options p{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin:0;line-height:1.85}
.lighting-guide a{color:var(--deep-cyan);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.lighting-guide a:hover,.lighting-guide a:focus-visible{color:var(--bright-cyan)}
.lighting-guide-note{font-size:.92rem;color:var(--text-muted);margin:12px 0 0}
.lighting-alternative{margin-top:20px}
.lighting-alternative p{margin:0 0 8px}
@media(max-width:640px){.lighting-guide{padding:16px;margin-block:18px 24px}}

/* Product-specific decision support, SSR and interactive views use the same FAQ. */
.lighting-faq{margin-block:20px 28px;padding:18px 22px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.lighting-faq h2{font-size:clamp(1.15rem,2.5vw,1.45rem);margin:0 0 10px}
.lighting-faq-intro{color:var(--text-muted);margin:0 0 14px}
.lighting-faq-item{border:1px solid var(--border);border-radius:10px;margin:10px 0;background:var(--surface-alt);overflow:hidden}
.lighting-faq-item summary{cursor:pointer;padding:12px 15px;font-weight:700;line-height:1.7}
.lighting-faq-item summary:focus-visible{outline:3px solid var(--bright-cyan);outline-offset:-3px}
.lighting-faq-item p{margin:0;padding:0 15px 14px;line-height:1.85;color:var(--text-main)}
@media(max-width:640px){.lighting-faq{padding:14px 16px}.lighting-faq-item summary{padding:12px}}
