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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #111;
  line-height: 1.4;
}

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

button {
  cursor: pointer;
}

header {
  background: #111827;
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: wrap;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.brand-logo {
  width: 280px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 800;
  overflow: visible;
  position: relative;
  z-index: 10;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

nav a {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: background 0.15s;
  color: #e5e7eb;
  font-weight: 500;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* Navbar Search */
.nav-icon-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  padding: 0.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: #e5e7eb;
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-search-container {
  position: absolute;
  top: 100%;
  left: 0;
  /* Align to left since it's RTL usually, but let's check direction */
  /* Actually, in RTL, left:0 puts it on the left side. 
     If we want it under the button, we might need to position relative to a wrapper.
     Let's try a simpler approach: fixed width absolute positioning relative to header-right.
  */
  right: auto;
  left: 1rem;
  /* Adjust as needed */
  width: 250px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 50;
}

.nav-search-container.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-search-container input {
  width: 100%;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  outline: none;
  background: #fff;
}

.nav-search-container input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  /* For absolute search positioning */
}

.language-select {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 0.85rem;
}

.cart-button {
  background: #10b981;
  border: none;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-count {
  background: #064e3b;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
}

main {
  max-width: 1200px;
  margin: 1rem auto 2rem;
  padding: 0 1rem;
}

section {
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  padding: 1rem 1.25rem 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.1rem;
}

.section-header small {
  color: #6b7280;
  font-size: 0.8rem;
}

.catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.8rem;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.search-row input {
  flex: 1;
  min-width: 160px;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
}

.search-row select {
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
}

/* Global Color Selector */
.global-color-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #1f2937;
  border-radius: 8px;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.global-color-selector label {
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
}

.global-color-selector select {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #374151;
  background: #111827;
  color: #e5e7eb;
  min-width: 120px;
}

.global-color-selector .custom-color-input {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #374151;
  background: #111827;
  color: #e5e7eb;
  min-width: 150px;
}

.apply-color-btn {
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.apply-color-btn:hover {
  background: #2563eb;
}

.apply-color-btn:active {
  transform: scale(0.98);
}

/* --- New Horizontal Layout --- */
.products-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-card {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  display: flex;
  flex-direction: row;
  /* Horizontal */
  align-items: center;
  gap: 1rem;
  background: #f9fafb;
}

.product-image-container {
  width: 120px;
  height: 90px;
  aspect-ratio: 4/3;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.product-image-container.placeholder {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #4b5563;
  font-size: 0.75rem;
  text-align: center;
  padding: 0.4rem;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.product-info {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-meta {
  font-size: 0.9rem;
  color: #111;
  font-weight: 700;
  text-align: center;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.klil-number {
  font-size: 1.1rem;
  color: #2563eb;
}

.klil-label {
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 400;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
  text-align: left;
  /* Name on the left */
}

.product-controls {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
  min-width: 100px;
}

.product-controls select,
.product-controls input {
  font-size: 0.8rem;
  padding: 0.25rem 0.4rem;
  border-radius: 0.4rem;
  border: 1px solid #d1d5db;
  width: 100%;
}

.product-controls button {
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: none;
  background: #10b981;
  color: #fff;
  white-space: nowrap;
  width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .product-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }

  .product-image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    max-width: 200px;
    /* Limit image size on mobile */
    margin: 0 auto;
  }

  .product-info {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .product-title {
    text-align: center;
    order: -1;
    /* Title first on mobile? Or keep standard? Let's keep standard for now */
  }

  .product-meta {
    width: 100%;
  }

  .product-controls {
    align-items: center;
    width: 100%;
    flex-direction: row;
    justify-content: center;
  }

  .product-controls select,
  .product-controls input,
  .product-controls button {
    width: auto;
    flex: 1;
  }

  /* Global Color Selector Mobile */
  .global-color-selector {
    flex-direction: column;
    align-items: stretch;
  }

  .global-color-selector select,
  .global-color-selector .custom-color-input,
  .apply-color-btn {
    width: 100%;
  }
}

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 100%);
  background: #111827;
  color: #f9fafb;
  transform: translateX(100%);
  transition: transform 0.2s ease-out;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

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

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

.cart-header h3 {
  font-size: 1rem;
}

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

.cart-item {
  border-radius: 0.6rem;
  background: #1f2937;
  padding: 0.6rem 0.7rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item-meta {
  color: #9ca3af;
  font-size: 0.75rem;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-actions input {
  width: 60px;
  padding: 0.1rem 0.25rem;
  border-radius: 0.35rem;
  border: 1px solid #4b5563;
  background: #111827;
  color: #e5e7eb;
  font-size: 0.75rem;
  text-align: center;
}

.cart-item-actions button {
  border: none;
  background: #b91c1c;
  color: #fee2e2;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
}

.cart-footer {
  border-top: 1px solid #374151;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.cart-footer textarea {
  width: 100%;
  min-height: 60px;
  border-radius: 0.5rem;
  border: 1px solid #4b5563;
  background: #111827;
  color: #f9fafb;
  font-size: 0.78rem;
  padding: 0.4rem;
  resize: vertical;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.checkout-btn {
  margin-top: 0.25rem;
  width: 100%;
  border-radius: 999px;
  border: none;
  background: #10b981;
  color: #022c22;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem;
}

.checkout-grid {
  display: block;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand-logo {
    width: 180px;
    /* Slightly smaller */
  }

  nav {
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
  }

  nav a,
  .dropdown-btn {
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
  }

  .header-right {
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
  }

  /* Fix Search Container on Mobile */
  .nav-search-container {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 90%;
    max-width: 350px;
    top: 100%;
    /* Below the header-right row */
    z-index: 60;
  }

  .nav-search-container.open {
    transform: translateX(-50%) translateY(5px);
  }

  /* Fix Dropdown on Mobile */
  .dropdown-content {
    position: fixed;
    /* Fixed to viewport on mobile to avoid overflow issues */
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 1rem 1rem 0 0;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: block;
    /* Always block, controlled by transform */
    visibility: hidden;
    /* Hide when not active */
  }

  /* We need a class to toggle mobile dropdown, or use hover with media query? 
     Hover doesn't work well on touch. 
     Let's keep it simple for now: Center it relative to nav if possible, 
     or just make it absolute but centered.
  */
  .dropdown:hover .dropdown-content {
    /* Reset hover behavior for mobile if we want click only, but for now let's just style it better */
    transform: translateY(0);
    visibility: visible;
  }

  /* Better Mobile Dropdown (Absolute relative to Nav) */
  .dropdown {
    position: static;
    /* Allow content to be relative to nav or header */
  }

  .dropdown-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 90%;
    max-width: 300px;
    border-radius: 0.5rem;
    bottom: auto;
    /* Reset fixed bottom */
    display: none;
    /* Reset display */
    visibility: visible;
  }

  .dropdown:hover .dropdown-content {
    display: block;
    transform: translateX(-50%);
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }

  .product-image-container {
    width: 100%;
    max-width: 240px;
    /* Allow slightly larger */
    height: auto;
    aspect-ratio: 4/3;
    margin: 0 auto;
  }

  .product-info {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .product-controls {
    width: 100%;
    flex-direction: column;
    /* Stack controls on very small screens */
    gap: 0.5rem;
  }

  .product-controls select,
  .product-controls input,
  .product-controls button {
    width: 100%;
  }

  /* Global Color Selector Mobile */
  .global-color-selector {
    flex-direction: column;
    align-items: stretch;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

.form-field input,
.form-field textarea {
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
}

.form-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.form-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.checkout-primary-btn {
  margin-top: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.order-preview {
  background: #f9fafb;
  border-radius: 0.75rem;
  border: 1px dashed #d1d5db;
  padding: 0.6rem 0.7rem;
  font-size: 0.78rem;
  max-height: 260px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.contact-list {
  list-style: none;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-list a {
  color: #2563eb;
  font-weight: 500;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

/* Dropdown Container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Button (styled like a nav link) */
.dropdown-btn {
  background: transparent;
  color: #e5e7eb;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 500;
}

.dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Dropdown Content (Hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1f2937;
  min-width: 200px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  z-index: 100;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  top: 100%;
  right: 0;
  border: 1px solid #374151;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #e5e7eb;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  border-radius: 0;
  text-align: right;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #374151;
  color: #fff;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Cart Fix - Milestone 3 */
.cart-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 360px;
  height: 100vh;
  background: #111827;
  color: #f9fafb;
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  transform: none;
}

.cart-panel.open {
  right: 0;
  transform: none;
}

#main-content {
  transition: margin-right 0.3s ease;
}

body.cart-open #main-content {
  margin-right: 360px;
}

@media (max-width: 768px) {
  .cart-panel {
    width: 100%;
    right: -100%;
  }

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

  body.cart-open #main-content {
    margin-right: 0;
  }
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  /* Allow clicks through container */
}

.toast {
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
}

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

.toast-success {
  background: #10b981;
}

.toast-error {
  background: #ef4444;
}

.toast-info {
  background: #3b82f6;
}

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.lightbox-overlay.open {
  opacity: 1;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.open .lightbox-image {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

/* --- Floating Cart Button (Mobile) --- */
.fab-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  display: none;
  /* Hidden on desktop */
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  border: none;
  z-index: 990;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fab-cart:active {
  transform: scale(0.95);
}

.fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: bold;
  border: 2px solid #fff;
}

@media (max-width: 768px) {
  .fab-cart {
    display: flex;
  }

  /* Adjust toast position on mobile to avoid FAB */
  .toast-container {
    bottom: 90px;
  }
}

/* --- Skeleton Loading --- */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: #e5e7eb;
  background-image: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-card {
  display: flex;
  flex-direction: row;
  padding: 0.75rem;
  gap: 1rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  align-items: center;
}

.skeleton-img {
  width: 120px;
  height: 90px;
  border-radius: 0.5rem;
}

.skeleton-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-text {
  height: 1rem;
  width: 80%;
}

.skeleton-text-sm {
  height: 0.8rem;
  width: 50%;
}

@media (max-width: 640px) {
  .skeleton-card {
    flex-direction: column;
  }

  .skeleton-img {
    width: 100%;
    height: 150px;
  }

  .skeleton-text {
    width: 100%;
  }
}

/* --- Fade-in Animation --- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fade-in-up 0.5s ease-out forwards;
}

/* --- Checkout Page Specific Styles --- */
.checkout-page header {
  padding: 0.25rem 1rem;
  /* Reduced padding */
}

.checkout-page .brand-logo {
  width: 180px;
  /* Smaller logo */
  height: auto;
}

/* Delivery Selection Styles */
.delivery-selection {
  margin-top: 1.5rem;
  background: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.delivery-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #374151;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  transition: all 0.2s;
  flex: 1;
}

.radio-option:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.radio-option input[type="radio"] {
  accent-color: #2563eb;
  width: 1.2rem;
  height: 1.2rem;
}

.radio-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.radio-text .he {
  font-weight: 700;
  font-size: 0.95rem;
}

.radio-text .ar {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Highlight selected option */
.radio-option:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px #2563eb;
}

@media (max-width: 640px) {
  .radio-group {
    flex-direction: column;
    gap: 0.75rem;
  }
}