:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;

  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.10);
  --accent-text: #111111;

  --success: #16a34a;
  --danger: #dc2626;

  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

body.dark {
  --bg: #070707;
  --surface: #111111;
  --surface-soft: #1a1a1a;
  --text: #fafafa;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, 0.09);

  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-soft: rgba(249, 115, 22, 0.16);
  --accent-text: #111111;

  --success: #22c55e;
  --danger: #fb7185;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Tahoma, Arial, sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
}

.app {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

body.dark .topbar {
  background: var(--surface);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-box {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  color: #111111;
  font-weight: 900;
  letter-spacing: -0.5px;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.22);
}

.store-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  background: var(--surface-soft);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.22);
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.side-toggle,
.theme-toggle,
.cart-button {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  transition: 0.15s ease;
}

.side-toggle:hover,
.theme-toggle:hover,
.cart-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.side-toggle {
  padding: 0 14px;
}

.theme-toggle {
  width: 42px;
  font-size: 17px;
}

.cart-button {
  position: relative;
  padding: 0 18px;
}

.cart-button span {
  position: absolute;
  top: -8px;
  left: -8px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #111111;
  font-size: 11px;
  border: 2px solid var(--surface);
}

/* Main Layout */
.main-layout {
  max-width: none;
  margin: 0;
  padding: 0 0 24px 32px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 360px;
  gap: 22px;
}

.main-layout.categories-hidden {
  grid-template-columns: minmax(0, 1fr) 360px;
  padding-right: 32px;
}

.store-content {
  min-width: 0;
}

/* Category Sidebar */
.category-sidebar {
  position: sticky;
  top: 78px;
  height: calc(100vh - 78px);
  background: #ffffff;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

body.dark .category-sidebar {
  background: var(--surface);
}

.category-sidebar.hidden-sidebar {
  display: none;
}

.category-sidebar-header {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.category-sidebar-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.category-sidebar-header p {
  display: none;
}

.close-category {
  display: none;
}

.category-list {
  padding: 8px 0;
  height: calc(100vh - 78px - 60px);
  overflow-y: auto;
}

.category-list::-webkit-scrollbar {
  width: 6px;
}

.category-list::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 999px;
}

.category-btn {
  width: 100%;
  height: 44px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 16px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.12s ease;
}

.category-btn:hover {
  background: #f8fafc;
  color: var(--accent);
}

body.dark .category-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.category-btn.active {
  background: #fff7ed;
  color: var(--accent);
  border-right: 3px solid var(--accent);
  font-weight: 900;
}

body.dark .category-btn.active {
  background: var(--accent);
  color: #111111;
  border-right: 0;
}

.category-btn span {
  font-size: 14px;
}

.category-btn small {
  opacity: 0.55;
  font-size: 11px;
}

.category-overlay {
  display: none;
}

/* Hero */
.hero {
  display: block;
  margin: 24px 0 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 55%, #fff7ed 100%);
  box-shadow: var(--shadow);
}

body.dark .hero {
  background: var(--surface);
}

.hero h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: -0.7px;
}

.hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
}

/* Search */
.search-box {
  margin-bottom: 16px;
}

.search-input-wrap {
  position: relative;
}

.search-box input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 18px;
  padding: 0 18px;
  padding-left: 52px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 15px;
  transition: 0.15s ease;
}

body.dark .search-box input {
  background: var(--surface);
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-box input::placeholder {
  color: var(--muted);
}

.clear-search {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.clear-search:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* Status */
.status-box {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.status-box.error {
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.25);
}

.sidebar-loading {
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.45);
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: grid;
  place-items: center;
  background: #f8fafc;
  font-size: 58px;
  overflow: hidden;
}

body.dark .product-img {
  background: var(--surface-soft);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.product-img.placeholder,
.modal-main-image.placeholder {
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.10), transparent 58%),
    var(--surface-soft);
  color: var(--muted);
}

.product-img.placeholder {
  font-size: 54px;
}

.product-body {
  padding: 15px;
}

.product-category {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

/* نخفي اسم القسم داخل كارت المنتج فقط، ونبقيه داخل نافذة التفاصيل */
.product-body > .product-category {
  display: none;
}

.product-name {
  min-height: unset;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.5;
}

.product-desc {
  min-height: unset;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.stock {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
}

.stock.ok {
  color: var(--success);
}

.stock.out {
  color: var(--danger);
}

.price {
  margin: 9px 0 13px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--accent);
}

.add-btn {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #111111;
  font-weight: 900;
  cursor: pointer;
  transition: 0.15s ease;
}

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

.add-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.details-btn {
  width: 100%;
  height: 38px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.details-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: 0.15s ease;
}

.pagination button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination button.active {
  background: var(--accent);
  color: #111111;
  border-color: var(--accent);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination .dots {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 900;
}

/* Cart */
.cart-panel {
  position: sticky;
  top: 96px;
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 24px;
  margin-left: 22px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header h3 {
  margin: 0;
  font-size: 22px;
}

.cart-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.close-cart {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  font-size: 22px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 14px;
}

.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 999px;
}

.empty-cart {
  height: 170px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
}

.cart-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
  margin-bottom: 10px;
}

body.dark .cart-item {
  background: var(--surface-soft);
}

.cart-item-title {
  font-weight: 850;
  line-height: 1.6;
  font-size: 14px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button,
.remove-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.qty-controls button {
  width: 30px;
  height: 30px;
}

.qty-controls button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.remove-btn {
  color: var(--danger);
  padding: 7px 10px;
}

.checkout {
  padding: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
}

.total-row strong {
  font-weight: 900;
  color: var(--accent);
}

.checkout input,
.checkout textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 14px;
  padding: 12px;
  color: var(--text);
  background: #ffffff;
  transition: 0.15s ease;
}

body.dark .checkout input,
body.dark .checkout textarea {
  background: var(--surface-soft);
}

.checkout input:focus,
.checkout textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.checkout textarea {
  min-height: 70px;
  resize: vertical;
}

.submit-btn {
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #111111;
  font-weight: 900;
  cursor: pointer;
  transition: 0.15s ease;
}

.submit-btn:hover {
  background: var(--accent-hover);
}

.share-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-options button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface-soft);
  cursor: pointer;
  font-weight: 700;
  transition: 0.15s ease;
}

.share-options button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-cart,
.mobile-theme-toggle {
  display: none;
}

/* Store Footer */
.store-footer {
  margin: 20px 32px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.store-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.store-footer strong {
  font-size: 16px;
  font-weight: 900;
}

.store-footer p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  transition: 0.15s ease;
}

.footer-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.footer-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

#footerWhatsapp {
  color: #16a34a;
}

#footerInstagram:hover {
  color: #e1306c;
}

#footerFacebook:hover {
  color: #1877f2;
}

#footerTiktok:hover {
  color: #111111;
}

body.dark #footerTiktok:hover {
  color: #ffffff;
}

#footerMaps:hover {
  color: #dc2626;
}

.footer-copy {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Product Modal */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.product-modal.hidden {
  display: none !important;
}

.product-modal-card {
  position: relative;
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
}

.modal-gallery {
  min-width: 0;
}

.modal-main-image {
  height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.modal-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.modal-main-image.placeholder {
  font-size: 76px;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.modal-thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: var(--surface-soft);
  cursor: pointer;
  overflow: hidden;
}

.modal-thumb.active {
  border-color: var(--accent);
}

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

.modal-info {
  padding-top: 28px;
}

.modal-info h2 {
  margin: 8px 0 10px;
  font-size: 26px;
  line-height: 1.5;
}

.modal-short {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.modal-description {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
  line-height: 1.9;
  white-space: pre-line;
}

/* Tablet / Mobile */
@media (max-width: 980px) {
  .topbar {
    height: auto;
    padding: 14px 16px;
    gap: 12px;
  }

  .brand p {
    display: none;
  }

  .brand h1 {
    font-size: 18px;
  }

  .top-actions {
    gap: 7px;
  }

  .side-toggle {
    padding: 0 12px;
    font-size: 13px;
  }

  .cart-button {
    padding: 0 14px;
  }

  .main-layout,
  .main-layout.categories-hidden {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .hero {
    padding: 22px;
    margin: 0 0 18px;
  }

  .hero h2 {
    font-size: 27px;
  }

  .category-sidebar {
    position: fixed;
    top: 88px;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(290px, 82vw);
    height: auto;
    display: none;
    border-left: 1px solid var(--line);
    border-right: 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 0;
    box-shadow: var(--shadow);
  }

  .category-sidebar.open {
    display: block;
  }

  .category-sidebar.hidden-sidebar {
    display: none;
  }

  .category-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .close-category {
    display: block;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface);
    font-size: 20px;
    cursor: pointer;
  }

  .category-list {
    height: calc(100vh - 88px - 58px);
  }

  .category-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(0, 0, 0, 0.28);
  }

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

  .cart-panel {
    position: fixed;
    inset: 88px 12px 12px;
    z-index: 80;
    display: none;
    height: auto;
    margin: 0;
  }

  .cart-panel.open {
    display: flex;
  }

  .close-cart {
    display: block;
  }

  .mobile-cart,
  .mobile-theme-toggle {
    position: fixed;
    bottom: 18px;
    z-index: 60;
    border: 0;
    box-shadow: var(--shadow);
  }

  .mobile-cart {
    left: 18px;
    border-radius: 16px;
    padding: 13px 18px;
    background: var(--accent);
    color: #111111;
    font-weight: 900;
  }

  .mobile-theme-toggle {
    right: 18px;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 21px;
    cursor: pointer;
  }

  .theme-toggle {
    display: none;
  }

  .store-footer {
    margin: 8px 16px 80px;
  }

  .store-footer-inner {
    align-items: flex-start;
  }
}

/* Product Modal Mobile */
@media (max-width: 780px) {
  .product-modal-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-main-image {
    height: 260px;
  }

  .modal-info {
    padding-top: 0;
  }
}

/* Small Mobile */
@media (max-width: 520px) {
  .main-layout,
  .main-layout.categories-hidden {
    padding: 14px;
  }

  .hero {
    display: none;
  }

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

  .product-card {
    border-radius: 18px;
  }

  .product-img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .product-img img {
    padding: 8px;
  }

  .product-img.placeholder {
    font-size: 40px;
  }

  .product-body {
    padding: 10px;
  }

  .product-name {
    min-height: unset;
    margin: 0 0 7px;
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-desc {
    min-height: unset;
    margin: 0 0 10px;
    font-size: 11px;
    line-height: 1.55;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .stock {
    margin-top: 0;
    font-size: 12px;
  }

  .price {
    margin: 6px 0 10px;
    font-size: 17px;
  }

  .add-btn {
    height: 38px;
    border-radius: 13px;
    font-size: 12px;
  }

  .details-btn {
    height: 34px;
    border-radius: 12px;
    font-size: 12px;
  }

  .search-box input {
    height: 50px;
  }

  .store-footer {
    margin: 8px 14px 80px;
    padding: 14px;
    border-radius: 18px;
  }

  .footer-link {
    width: 36px;
    height: 36px;
  }
}.delivery-options {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.delivery-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

.delivery-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
}

.delivery-option input {
  width: auto;
}

.delivery-option strong {
  color: var(--accent);
  font-size: 12px;
}

.submit-btn.sent {
  background: #16a34a;
  color: #ffffff;
}/* Fix mobile cart layout after adding delivery options */
@media (max-width: 980px) {
  .cart-panel {
    position: fixed;
    inset: 88px 12px 12px;
    z-index: 80;
    display: none;
    height: auto;
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex-direction: initial;
  }

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

  .cart-header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--surface);
    flex: none;
  }

  .cart-items {
    flex: none;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding: 14px;
  }

  .checkout {
    flex: none;
    padding: 14px;
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
  }

  .cart-item {
    margin-bottom: 10px;
  }

  .cart-item-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cart-item-row > span {
    flex: 1 1 100%;
    text-align: right;
  }

  .qty-controls {
    flex: 0 0 auto;
  }

  .remove-btn {
    margin-inline-start: auto;
  }

  .delivery-options {
    padding: 10px;
    gap: 8px;
  }

  .delivery-option {
    min-height: 48px;
    padding: 10px 12px;
    gap: 10px;
  }

  .delivery-option span {
    flex: 1;
  }

  .delivery-option strong {
    white-space: nowrap;
  }

  .total-row {
    align-items: center;
    gap: 12px;
    font-size: 15px;
  }

  .total-row strong {
    text-align: left;
    overflow-wrap: anywhere;
  }

  .checkout input,
  .checkout textarea {
    min-height: 46px;
    font-size: 14px;
  }

  .checkout textarea {
    min-height: 74px;
    max-height: 120px;
  }

  .submit-btn {
    min-height: 50px;
  }
}

@media (max-width: 520px) {
  .cart-panel {
    inset: 78px 8px 8px;
    max-height: calc(100vh - 86px);
    max-height: calc(100dvh - 86px);
    border-radius: 20px;
  }

  .cart-header {
    padding: 16px;
  }

  .cart-header h3 {
    font-size: 22px;
  }

  .cart-items {
    padding: 12px;
  }

  .checkout {
    padding: 12px;
  }

  .delivery-title {
    font-size: 14px;
  }

  .delivery-option {
    border-radius: 12px;
  }

  .delivery-option strong {
    font-size: 13px;
  }

  .total-row {
    font-size: 15px;
  }

  .total-row strong {
    font-size: 17px;
  }

  .share-options {
    grid-template-columns: 1fr;
  }
}
/* Product full page view */
.product-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px;
}

.product-page-container {
  min-height: 420px;
}

.product-page-loading,
.product-not-found {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--muted);
  text-align: center;
}

.product-page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.back-btn,
.secondary-action-btn {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
}

.back-btn:hover,
.secondary-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-detail-gallery {
  min-width: 0;
}

.product-detail-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-soft);
}

.product-detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.product-page-placeholder {
  font-size: 90px;
  color: var(--muted);
}

.product-detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-detail-thumb {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-soft);
  cursor: pointer;
}

.product-detail-thumb.active {
  border-color: var(--accent);
}

.product-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  min-width: 0;
  padding: 8px 0;
}

.product-detail-category {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.product-detail-info h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.45;
  letter-spacing: -0.6px;
}

.product-detail-short {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
}

.product-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.product-detail-code {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-detail-price {
  margin: 12px 0 18px;
  color: var(--accent);
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.5px;
}

.product-detail-actions {
  margin-bottom: 18px;
}

.product-detail-actions .add-btn {
  max-width: 260px;
  height: 48px;
}

.product-detail-description {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.product-detail-description h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.product-detail-description p {
  margin: 0;
  white-space: pre-line;
  line-height: 1.9;
  color: var(--text);
}

.product-name {
  color: var(--text);
  text-decoration: none;
}

.product-img {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 980px) {
  .product-page {
    padding: 16px;
  }

  .product-detail-card {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
    border-radius: 24px;
  }

  .product-detail-main-image {
    min-height: auto;
  }

  .product-detail-info h1 {
    font-size: 24px;
  }

  .product-detail-price {
    font-size: 26px;
  }

  .product-detail-actions .add-btn {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .product-page {
    padding: 14px;
  }

  .product-page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .back-btn,
  .secondary-action-btn {
    width: 100%;
  }

  .product-detail-card {
    padding: 12px;
    border-radius: 20px;
  }

  .product-detail-info h1 {
    font-size: 21px;
  }

  .product-detail-short {
    font-size: 14px;
  }
}

/* Product card details action - more professional */
.details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 38px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.details-btn::after {
  content: "↗";
  font-size: 12px;
  opacity: 0.75;
}

.details-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Product page with visible cart */
.store-cart-host {
  min-width: 0;
}

.product-page {
  max-width: none;
  margin: 0;
  padding: 24px 32px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.product-page.hidden {
  display: none !important;
}

.product-page-content {
  min-width: 0;
}

.product-page-container {
  width: min(1180px, 100%);
  min-height: 420px;
  margin-inline: auto;
}

.product-cart-host {
  min-width: 0;
}

.product-cart-host .cart-panel {
  margin-top: 24px;
  margin-left: 0;
}

.product-page-loading,
.product-not-found {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--muted);
  text-align: center;
}

.product-page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.back-btn,
.secondary-action-btn {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  transition: 0.15s ease;
}

.back-btn:hover,
.secondary-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 540px);
  gap: 42px;
  align-items: start;
  padding: 12px 0 32px;
  background: transparent;
  border: 0;
  box-shadow: none;
  direction: ltr;
}

.product-detail-gallery {
  grid-column: 2;
  min-width: 0;
  direction: rtl;
}

.product-detail-info {
  grid-column: 1;
  min-width: 0;
  padding-top: 8px;
  direction: rtl;
}

.product-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.product-detail-breadcrumb button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.product-detail-breadcrumb button:hover {
  color: var(--accent);
}

.product-detail-category {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.product-detail-info h1 {
  margin: 0 0 12px;
  max-width: 760px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.38;
  letter-spacing: -0.8px;
}

.product-detail-short {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
}

.product-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 12px;
}

.product-detail-code {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-detail-price {
  margin: 12px 0 18px;
  color: var(--accent);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 950;
  letter-spacing: -0.8px;
}

.product-detail-purchase {
  display: grid;
  grid-template-columns: 138px minmax(220px, 360px);
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}

.detail-qty-picker {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.detail-qty-picker button {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}

.detail-qty-picker button:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.detail-qty-picker button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.detail-qty-picker strong {
  min-width: 36px;
  text-align: center;
  font-size: 16px;
}

.product-detail-add-btn {
  height: 52px;
  max-width: none !important;
}

.product-detail-service-box {
  max-width: 620px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.product-detail-service-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.product-detail-service-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.product-detail-description {
  max-width: 720px;
  margin-top: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.product-detail-description h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.product-detail-description p {
  margin: 0;
  white-space: pre-line;
  line-height: 1.95;
  color: var(--text);
}

.product-detail-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-soft);
  cursor: zoom-in;
}

button.product-detail-main-image {
  padding: 0;
  appearance: none;
}

.product-detail-main-image:disabled {
  cursor: default;
}

.product-detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transform: scale(1);
  opacity: 1;
  transition: opacity 0.18s ease, transform 0.22s ease, filter 0.22s ease;
}

.product-detail-main-image.image-switching img {
  opacity: 0;
  transform: scale(0.985) translateY(6px);
  filter: blur(4px);
}

.product-detail-main-image.image-switched img {
  animation: productImageIn 0.26s ease both;
}

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

.product-page-placeholder {
  font-size: 90px;
  color: var(--muted);
}

.product-detail-thumbs {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 2px 6px;
}

.product-detail-thumb {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-soft);
  cursor: pointer;
  transition: 0.16s ease;
}

.product-detail-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.4);
}

.product-detail-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.product-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.product-image-lightbox.hidden {
  display: none !important;
}

.product-image-lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 18px;
  background: #ffffff;
  animation: zoomImageIn 0.2s ease both;
}

.product-image-lightbox-close {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

@keyframes zoomImageIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.image-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .product-page {
    grid-template-columns: 1fr;
  }

  .product-cart-host .cart-panel {
    position: static;
    height: auto;
    max-height: none;
    margin-top: 18px;
  }
}

@media (max-width: 980px) {
  .product-page {
    display: block;
    padding: 16px;
  }

  .product-detail-shell {
    grid-template-columns: 1fr;
    direction: rtl;
    gap: 18px;
  }

  .product-detail-gallery,
  .product-detail-info {
    grid-column: auto;
  }

  .product-detail-gallery {
    order: 1;
  }

  .product-detail-info {
    order: 2;
  }

  .product-detail-main-image {
    min-height: auto;
  }

  .product-detail-info h1 {
    font-size: 24px;
  }

  .product-detail-price {
    font-size: 28px;
  }

  .product-detail-purchase {
    grid-template-columns: 1fr;
  }

  .product-cart-host .cart-panel {
    position: fixed;
    inset: 88px 12px 12px;
    z-index: 80;
    display: none;
    height: auto;
    max-height: calc(100dvh - 100px);
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .product-cart-host .cart-panel.open {
    display: block;
  }
}

@media (max-width: 520px) {
  .product-page {
    padding: 14px;
  }

  .product-page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .back-btn,
  .secondary-action-btn {
    width: 100%;
  }

  .product-detail-main-image {
    border-radius: 20px;
  }

  .product-detail-info h1 {
    font-size: 22px;
  }

  .product-detail-short {
    font-size: 14px;
  }

  .detail-qty-picker,
  .product-detail-add-btn {
    height: 50px;
  }

  .product-image-lightbox {
    padding: 12px;
  }
}


/* Product page layout hotfix: keep image on the right and information on the left */
@media (min-width: 981px) {
  .product-detail-shell {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: flex-start !important;
    gap: 48px !important;
    width: 100%;
    direction: ltr;
  }

  .product-detail-gallery {
    flex: 0 0 min(45%, 540px) !important;
    max-width: 540px;
    min-width: 390px;
    grid-column: auto !important;
    direction: rtl;
  }

  .product-detail-info {
    flex: 1 1 auto !important;
    max-width: 720px;
    min-width: 0;
    grid-column: auto !important;
    direction: rtl;
    align-self: flex-start;
    padding-top: 22px;
  }

  .product-detail-info h1,
  .product-detail-short,
  .product-detail-meta,
  .product-detail-price,
  .product-detail-purchase,
  .product-detail-service-box,
  .product-detail-description {
    text-align: right;
    margin-inline-start: 0;
    margin-inline-end: 0;
  }
}

/* Product link button polish inside product cards */
.details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.details-btn::after {
  content: "↗";
  font-size: 12px;
  opacity: 0.7;
}

/* Product page refinements: description below images, feedback toast, and CTA states */
.product-detail-description-under-gallery {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: none;
}

.product-detail-description-under-gallery h2 {
  font-size: 24px;
  font-weight: 950;
}

.product-detail-description-under-gallery p {
  color: var(--text);
  font-size: 15px;
  line-height: 2;
}

.product-info-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.product-info-sections section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.product-info-sections h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 950;
}

.product-info-sections p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.product-detail-add-btn.is-loading {
  opacity: 0.82;
  cursor: wait;
  position: relative;
}

.product-detail-add-btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-inline-start: 10px;
  border: 2px solid rgba(17, 17, 17, 0.28);
  border-top-color: #111111;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -3px;
  animation: gxSpin 0.75s linear infinite;
}

.product-detail-add-btn.is-success {
  background: var(--success) !important;
  color: #ffffff !important;
}

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

.cart-feedback-toast {
  position: fixed;
  top: 92px;
  left: 50%;
  z-index: 260;
  transform: translate(-50%, -12px);
  min-width: min(520px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--success);
  color: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cart-feedback-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 981px) {
  .product-detail-gallery .product-detail-description,
  .product-detail-gallery .product-info-sections {
    text-align: right;
  }
}

@media (max-width: 780px) {
  .product-info-sections {
    grid-template-columns: 1fr;
  }

  .cart-feedback-toast {
    top: 82px;
  }
}

/* Final refinements: product layout, card actions, hover image, and cart divider */
.cart-total-divider {
  height: 1px;
  margin: 2px 0 4px;
  background: var(--line);
}

.final-total-row {
  padding-top: 2px;
}

.final-total-row strong {
  font-size: 19px;
}

.product-card-actions {
  direction: ltr;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.product-card-actions .product-card-add-btn {
  direction: rtl;
  height: 46px;
  margin: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.details-icon-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  font-size: 22px;
  font-weight: 950;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.details-icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.product-card-main-img {
  transition: opacity 0.16s ease, transform 0.18s ease, filter 0.18s ease;
}

.product-card-main-img.is-switching {
  opacity: 0.45;
  transform: scale(0.985);
  filter: blur(2px);
}

/* Hide the temporary product info cards */
.product-info-sections {
  display: none !important;
}

/* Desktop product page: image on the right, info on the left, description below image */
@media (min-width: 981px) {
  .product-detail-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 540px) !important;
    grid-template-areas:
      "info gallery"
      ". description" !important;
    align-items: start !important;
    gap: 42px 48px !important;
    width: 100%;
    direction: rtl !important;
  }

  .product-detail-gallery {
    grid-area: gallery !important;
    max-width: 540px;
    min-width: 390px;
    width: 100%;
    direction: rtl;
  }

  .product-detail-info {
    grid-area: info !important;
    max-width: 720px;
    min-width: 0;
    width: 100%;
    direction: rtl;
    padding-top: 22px;
  }

  .product-detail-description-under-gallery {
    grid-area: description !important;
    max-width: 540px;
    margin-top: 8px;
    text-align: right;
  }
}

/* Mobile product page sequence: image, thumbnails, price/cart, then description */
@media (max-width: 980px) {
  .product-detail-shell {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    direction: rtl !important;
  }

  .product-detail-gallery {
    order: 1 !important;
    min-width: 0;
  }

  .product-detail-info {
    order: 2 !important;
    min-width: 0;
  }

  .product-detail-description-under-gallery {
    order: 3 !important;
    margin-top: 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .product-detail-description-under-gallery h2 {
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .product-card-actions {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 7px;
  }

  .product-card-actions .product-card-add-btn,
  .details-icon-btn {
    height: 42px;
  }

  .details-icon-btn {
    width: 42px;
    font-size: 20px;
  }

  .final-total-row strong {
    font-size: 18px;
  }
}

/* Product page final layout fixes requested on May 14 */
.product-detail-breadcrumb,
.product-detail-category {
  display: none !important;
}

@media (min-width: 981px) {
  .product-detail-shell {
    display: grid !important;
    grid-template-columns: minmax(390px, 540px) minmax(0, 1fr) !important;
    grid-template-areas:
      "gallery info"
      "description info" !important;
    gap: 34px 48px !important;
    align-items: start !important;
    direction: rtl !important;
  }

  .product-detail-gallery {
    grid-area: gallery !important;
    width: 100%;
    max-width: 540px;
    min-width: 390px;
    justify-self: end;
  }

  .product-detail-info {
    grid-area: info !important;
    max-width: 680px;
    justify-self: stretch;
    padding-top: 26px;
  }

  .product-detail-description-under-gallery {
    grid-area: description !important;
    max-width: 540px;
    justify-self: end;
    margin-top: 0;
  }
}

.product-detail-price {
  font-size: clamp(24px, 2.4vw, 34px) !important;
  line-height: 1.15;
  margin: 10px 0 16px !important;
}

.product-detail-service-box {
  display: none !important;
}

.product-detail-service-list {
  max-width: 620px;
  margin: 16px 0 0;
  display: grid;
  border-top: 1px solid var(--line);
}

.product-service-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.product-service-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 950;
}

@media (max-width: 980px) {
  .product-detail-service-list {
    max-width: none;
  }

  .product-service-row {
    font-size: 14px;
  }
}

/* Full Cart Page */
.cart-page {
  padding: 24px 32px 32px;
}

.cart-page-shell {
  max-width: 1480px;
  margin: 0 auto;
}

.cart-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.cart-page-eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}

.cart-page-header h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.6px;
}

.cart-page-back {
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}

.cart-page-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
  direction: ltr;
}

.cart-page-items-card,
.cart-page-summary {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cart-page-items-card {
  overflow: hidden;
  direction: ltr;
}

.cart-page-table-head {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 150px 150px 160px;
  gap: 14px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cart-page-items {
  min-height: 260px;
}

.cart-page-item {
  display: grid;
  grid-template-columns: 38px minmax(320px, 1fr) 150px 150px 160px;
  gap: 14px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}

.cart-page-item:last-child {
  border-bottom: 0;
}

.cart-page-remove {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}

.cart-page-remove:hover {
  color: var(--danger);
  background: rgba(220, 38, 38, 0.08);
}

.cart-page-product-cell {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  direction: ltr;
}

.cart-page-thumb {
  width: 92px;
  height: 72px;
  flex: 0 0 92px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  display: grid;
  place-items: center;
}

.cart-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.cart-page-thumb-placeholder {
  font-size: 28px;
}

.cart-page-product-info {
  min-width: 0;
  text-align: left;
}

.cart-page-product-info strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 900;
}

.cart-page-product-info small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.cart-page-price-cell,
.cart-page-subtotal-cell {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.cart-page-subtotal-cell {
  color: var(--accent);
  font-weight: 950;
}

.cart-page-qty-cell {
  justify-content: center;
}

.cart-page-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.cart-page-empty h2 {
  margin: 0 0 8px;
  color: var(--text);
}

.cart-page-summary {
  position: sticky;
  top: 96px;
  padding: 18px;
  display: grid;
  gap: 12px;
  direction: rtl;
}

.cart-page-summary h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.cart-page-summary input,
.cart-page-summary textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 14px;
  padding: 13px;
  color: var(--text);
  background: #ffffff;
  transition: 0.15s ease;
}

body.dark .cart-page-summary input,
body.dark .cart-page-summary textarea {
  background: var(--surface-soft);
}

.cart-page-summary input:focus,
.cart-page-summary textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.cart-page-summary textarea {
  min-height: 92px;
  resize: vertical;
}

.cart-page-submit {
  height: 54px;
  border-radius: 16px;
  font-size: 15px;
}

/* Keep product description aligned under the right gallery on desktop */
@media (min-width: 981px) {
  .product-detail-description-under-gallery {
    grid-column: 2;
    width: min(560px, 100%);
    justify-self: end;
    margin-inline: 0;
    text-align: right;
  }

  .product-detail-description-under-gallery h2,
  .product-detail-description-under-gallery p {
    text-align: right;
  }
}

@media (max-width: 1180px) {
  .cart-page-layout {
    grid-template-columns: 1fr;
  }

  .cart-page-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .cart-page {
    padding: 14px;
  }

  .cart-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-page-header h1 {
    font-size: 24px;
  }

  .cart-page-table-head {
    display: none;
  }

  .cart-page-items-card {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .cart-page-items {
    display: grid;
    gap: 12px;
    min-height: auto;
  }

  .cart-page-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .cart-page-product-cell {
    grid-column: 2;
    gap: 12px;
  }

  .cart-page-thumb {
    width: 78px;
    height: 64px;
    flex-basis: 78px;
  }

  .cart-page-price-cell,
  .cart-page-qty-cell,
  .cart-page-subtotal-cell {
    grid-column: 2;
    justify-content: flex-start;
  }

  .cart-page-qty-cell {
    flex-direction: row-reverse;
  }

  .cart-page-price-cell::before {
    content: "السعر: ";
    color: var(--text);
    font-weight: 900;
  }

  .cart-page-subtotal-cell::before {
    content: "المجموع: ";
    color: var(--text);
    font-weight: 900;
  }

  .cart-page-summary {
    padding: 14px;
    border-radius: 20px;
  }
}


/* Full cart page: cleaner delivery choices and clearer totals */
.cart-page-delivery-options {
  padding: 12px;
  gap: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-soft), rgba(241, 245, 249, 0.62));
}

body.dark .cart-page-delivery-options {
  background: var(--surface-soft);
}

.cart-page-delivery-options .delivery-title {
  margin-bottom: 2px;
  font-size: 14px;
  text-align: right;
}

.cart-page-delivery-options .delivery-option {
  min-height: 54px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 10px 12px;
  border-radius: 15px;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cart-page-delivery-options .delivery-option:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.cart-page-delivery-options .delivery-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cart-page-delivery-options .delivery-option input {
  inline-size: 18px;
  block-size: 18px;
  margin: 0;
  justify-self: center;
  accent-color: var(--accent);
}

.cart-page-delivery-options .delivery-option span {
  font-weight: 850;
  color: var(--text);
  text-align: right;
}

.cart-page-delivery-options .delivery-option strong {
  min-width: 92px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.cart-page-summary .total-row {
  min-height: 34px;
  align-items: center;
}

.cart-page-summary .total-row span {
  font-weight: 850;
  color: var(--text);
}

.cart-page-summary .total-row:not(.final-total-row) strong {
  color: #475569;
  font-size: 16px;
  font-weight: 900;
}

body.dark .cart-page-summary .total-row:not(.final-total-row) strong {
  color: #cbd5e1;
}

.cart-page-summary .total-row:not(.final-total-row) #cartPageShippingCostText {
  color: var(--accent);
}

.cart-page-summary .cart-total-divider {
  height: 1px;
  margin: 6px 0 8px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.cart-page-summary .final-total-row {
  padding: 10px 12px;
  border-radius: 15px;
  background: var(--accent-soft);
}

.cart-page-summary .final-total-row span {
  font-size: 16px;
  font-weight: 950;
}

.cart-page-summary .final-total-row strong {
  color: var(--accent);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.4px;
}

@media (max-width: 760px) {
  .cart-page-delivery-options {
    padding: 10px;
  }

  .cart-page-delivery-options .delivery-option {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    column-gap: 8px;
    padding: 9px 10px;
  }

  .cart-page-delivery-options .delivery-option strong {
    min-width: 78px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .cart-page-summary .final-total-row strong {
    font-size: 20px;
  }
}


/* Compact delivery radio style */
.delivery-option input[type="radio"],
.cart-page-delivery-options .delivery-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  inline-size: 16px !important;
  block-size: 16px !important;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-content: center;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.delivery-option input[type="radio"]::before,
.cart-page-delivery-options .delivery-option input[type="radio"]::before {
  content: "";
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.delivery-option input[type="radio"]:checked,
.cart-page-delivery-options .delivery-option input[type="radio"]:checked {
  border-color: var(--accent);
  background: #ffffff;
}

.delivery-option input[type="radio"]:checked::before,
.cart-page-delivery-options .delivery-option input[type="radio"]:checked::before {
  transform: scale(1);
}

.delivery-option:has(input[type="radio"]:checked),
.cart-page-delivery-options .delivery-option:has(input[type="radio"]:checked) {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.12);
}

body.dark .delivery-option input[type="radio"],
body.dark .cart-page-delivery-options .delivery-option input[type="radio"] {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.35);
}

body.dark .delivery-option input[type="radio"]:checked,
body.dark .cart-page-delivery-options .delivery-option input[type="radio"]:checked {
  border-color: var(--accent);
  background: var(--surface);
}

/* Product card add button feedback */
.product-card-add-btn.is-loading {
  opacity: 0.85;
  cursor: wait;
}

.product-card-add-btn.is-loading::after {
  content: "";
  inline-size: 13px;
  block-size: 13px;
  border: 2px solid rgba(17, 17, 17, 0.28);
  border-top-color: #111111;
  border-radius: 50%;
  display: inline-block;
  margin-inline-start: 8px;
  vertical-align: -2px;
  animation: productCardButtonSpin 0.7s linear infinite;
}

.product-card-add-btn.is-success {
  background: #16a34a;
  color: #ffffff;
}

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

/* Mini cart: keep side cart focused on products only */
.mini-cart-footer {
  padding: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  background: var(--surface);
}

.mini-cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-soft);
  font-size: 15px;
  font-weight: 900;
}

.mini-cart-total-row strong {
  color: var(--accent);
  font-size: 18px;
  white-space: nowrap;
}

.mini-cart-view-btn {
  width: 100%;
  min-height: 46px;
}

.mini-cart-product-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mini-cart-thumb {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
}

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

.mini-cart-thumb-placeholder {
  font-size: 22px;
}

.mini-cart-title-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.mini-cart-title-link:hover,
.cart-page-product-info a:hover {
  color: var(--accent);
}

.cart-page-thumb {
  text-decoration: none;
}

.cart-page-product-info a {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 900;
  text-decoration: none;
  transition: color 0.15s ease;
}

@media (max-width: 980px) {
  .mini-cart-footer {
    padding: 12px;
  }

  .mini-cart-total-row {
    font-size: 14px;
  }

  .mini-cart-total-row strong {
    font-size: 16px;
  }
}

/* Store controls: search + sorting */
.store-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 12px;
  align-items: center;
}

.sort-control {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sort-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.sort-control select {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

body.dark .sort-control select option {
  background: #0f172a;
  color: #f8fafc;
}

@media (max-width: 760px) {
  .store-controls {
    grid-template-columns: 1fr;
  }

  .sort-control {
    min-height: 50px;
  }
}

/* Cart warranty note */
.cart-warranty-note {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 16px;
  background: var(--accent-soft);
  line-height: 1.8;
}

.cart-warranty-note strong {
  color: var(--accent);
  font-size: 14px;
  font-weight: 950;
}

.cart-warranty-note span {
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

/* Similar products on product page */
.similar-products-section {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.similar-products-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.similar-products-head p {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.similar-products-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.4px;
}

.similar-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.similar-product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  transition: 0.16s ease;
}

.similar-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.45);
}

.similar-product-img {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
}

body.dark .similar-product-img {
  background: #111827;
}

.similar-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.similar-product-placeholder {
  font-size: 42px;
}

.similar-product-body {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.similar-product-name {
  min-height: 42px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.similar-product-name:hover {
  color: var(--accent);
}

.similar-product-price {
  color: var(--accent);
  font-size: 15px;
  font-weight: 950;
}

.similar-product-add {
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  background: var(--accent);
  color: #111111;
  font-weight: 950;
  cursor: pointer;
}

.similar-product-add:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.similar-products-loading,
.similar-products-empty {
  grid-column: 1 / -1;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.similar-products-empty.error {
  color: var(--danger);
}

@media (max-width: 980px) {
  .similar-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .similar-products-section {
    padding: 16px;
    border-radius: 20px;
  }

  .similar-products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .similar-products-head h2 {
    font-size: 21px;
  }
}

/* Order success page */
.order-success-page {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: start center;
  padding: 48px 16px 64px;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.11), transparent 34%), var(--bg);
}

.order-success-card {
  width: min(720px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  text-align: center;
}

.success-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.13);
  color: var(--success);
  font-size: 34px;
  font-weight: 950;
}

.success-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 950;
}

.order-success-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.9px;
}

.success-subtitle {
  margin: 14px auto 22px;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 750;
}

.success-order-number {
  display: grid;
  gap: 8px;
  margin: 0 auto 16px;
  padding: 18px;
  border-radius: 18px;
  background: #fff1e8;
}

body.dark .success-order-number {
  background: rgba(249, 115, 22, 0.13);
}

.success-order-number span,
.success-customer-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.success-order-number strong {
  color: var(--accent);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.success-customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.success-customer-grid > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.success-customer-grid strong {
  color: var(--text);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.success-followup-details {
  margin: 8px 0 16px;
  padding: 14px;
  border: 1px dashed rgba(249, 115, 22, 0.36);
  border-radius: 16px;
  background: var(--surface-soft);
  text-align: right;
}

.success-followup-details pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  font-family: inherit;
  line-height: 1.9;
  font-weight: 800;
}

.success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.success-primary-btn,
.success-secondary-btn {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 950;
  cursor: pointer;
  transition: 0.15s ease;
}

.success-primary-btn {
  border: 0;
  background: var(--accent);
  color: #111111;
}

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

.success-secondary-btn.wide {
  grid-column: 1 / -1;
}

.success-primary-btn:hover,
.success-secondary-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

@media (max-width: 560px) {
  .order-success-page {
    padding: 28px 12px 48px;
  }

  .order-success-card {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .success-customer-grid,
  .success-actions {
    grid-template-columns: 1fr;
  }

  .success-secondary-btn.wide {
    grid-column: auto;
  }
}

/* May 15 refinements: header phone, search icon, cleaner categories, success card, and product text sizing */
.topbar-phone {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.topbar-phone:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.topbar-phone-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.search-input-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 1;
  color: var(--muted);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.search-box input {
  padding-right: 50px;
  padding-left: 52px;
  font-size: 16px;
  font-weight: 700;
}

.search-box input::placeholder {
  font-size: 16px;
  font-weight: 750;
}

.category-list {
  padding: 10px;
}

.category-btn {
  height: 48px;
  margin-bottom: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--text);
}

.category-btn:hover {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--line);
}

body.dark .category-btn:hover {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--line);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.72));
  color: var(--text);
  border: 1px solid rgba(249, 115, 22, 0.30);
  border-right: 1px solid rgba(249, 115, 22, 0.30);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.06), 0 10px 22px rgba(15, 23, 42, 0.05);
  font-weight: 950;
}

body.dark .category-btn.active {
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid rgba(249, 115, 22, 0.38);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.08);
}

.category-btn.active span {
  color: var(--accent);
}

.category-btn small {
  min-width: 30px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  opacity: 1;
  font-size: 12px;
  font-weight: 950;
}

.category-btn.active small {
  background: var(--surface);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.18);
}

.price {
  font-size: 18px;
}

.product-card-actions .product-card-add-btn {
  font-size: 14px;
  letter-spacing: -0.1px;
}

.mini-cart-view-btn {
  font-size: 15px;
  font-weight: 950;
}

.order-success-page {
  background:
    radial-gradient(circle at top center, rgba(22, 163, 74, 0.09), transparent 34%),
    radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.08), transparent 32%),
    var(--bg);
}

.order-success-card {
  width: min(760px, 100%);
  padding: clamp(22px, 4vw, 36px);
}

.success-customer-grid {
  margin-top: 22px;
}

.success-customer-grid > div,
.success-address-card {
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-soft), rgba(241, 245, 249, 0.62));
}

body.dark .success-customer-grid > div,
body.dark .success-address-card {
  background: var(--surface-soft);
}

.success-address-card {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  text-align: center;
}

.success-address-card span {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.success-address-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.8;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.success-actions {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: min(560px, 100%);
  margin: 0 auto;
}

.success-primary-btn {
  min-height: 58px;
  border-radius: 18px;
  font-size: 16px;
}

.success-secondary-btn {
  min-height: 52px;
  border-radius: 16px;
  font-size: 14px;
}

.success-secondary-btn.wide {
  grid-column: auto;
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
  }

  .topbar-phone {
    order: 3;
    width: 100%;
    min-height: 40px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .search-box input,
  .search-box input::placeholder {
    font-size: 15.5px;
  }

  .product-card-actions .product-card-add-btn {
    font-size: 13.5px;
  }

  .price {
    font-size: 17px;
  }

  .success-address-card span {
    font-size: 20px;
  }

  .success-address-card strong {
    font-size: 16px;
  }
}


/* May 15 follow-up refinements */
:root {
  --category-active-blue: #2563eb;
  --category-active-blue-soft: rgba(37, 99, 235, 0.10);
}

body.dark {
  --category-active-blue: #3b82f6;
  --category-active-blue-soft: rgba(59, 130, 246, 0.18);
}

/* رجعنا شكل القسم المختار للشكل السابق، مع تبديل البرتقالي إلى أزرق */
.category-list {
  padding: 8px 0;
}

.category-btn {
  width: 100%;
  height: 44px;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 16px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.category-btn:hover {
  background: #f8fafc;
  color: var(--category-active-blue);
  border-color: var(--line);
}

body.dark .category-btn:hover {
  background: var(--category-active-blue-soft);
  color: var(--category-active-blue);
  border-color: var(--line);
}

.category-btn.active {
  background: #eff6ff;
  color: var(--category-active-blue);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-right: 3px solid var(--category-active-blue);
  box-shadow: none;
  font-weight: 900;
}

body.dark .category-btn.active {
  background: var(--category-active-blue);
  color: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-right: 0;
  box-shadow: none;
}

.category-btn.active span {
  color: inherit;
}

.category-btn small,
.category-btn.active small {
  min-width: auto;
  height: auto;
  display: inline;
  place-items: initial;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  opacity: 0.55;
  font-size: 11px;
  font-weight: 700;
}

/* السعر أخف وأصغر قليلاً بدون Bold قوي */
.price {
  font-size: 18px;
  font-weight: 500;
}

/* حقل البحث رجع قريب للشكل السابق، مع أيقونة البحث في الجهة المقابلة */
.search-input-icon {
  right: auto;
  left: 16px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0;
}

.search-input-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-box input {
  padding: 0 18px;
  padding-left: 84px;
  font-size: 15px;
  font-weight: 400;
}

.search-box input::placeholder {
  font-size: 15px;
  font-weight: 400;
}

.clear-search {
  left: 46px;
}

/* تم حذف رقم الهاتف من الشريط العلوي */
.topbar-phone {
  display: none !important;
}

/* Skeleton loading بدل عبارة جاري تحميل المنتجات */
.product-skeleton {
  pointer-events: none;
  overflow: hidden;
}

.skeleton-block,
.skeleton-line,
.category-skeleton-line {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--surface-soft), rgba(226, 232, 240, 0.72), var(--surface-soft));
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.15s ease-in-out infinite;
}

body.dark .skeleton-block,
body.dark .skeleton-line,
body.dark .category-skeleton-line {
  background: linear-gradient(90deg, var(--surface-soft), rgba(255, 255, 255, 0.08), var(--surface-soft));
  background-size: 220% 100%;
}

.skeleton-image {
  height: 172px;
  border-radius: 18px 18px 0 0;
}

.skeleton-body {
  gap: 10px;
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
}

.skeleton-category {
  width: 34%;
  height: 12px;
}

.skeleton-title {
  width: 72%;
  height: 18px;
}

.skeleton-desc {
  width: 92%;
}

.skeleton-stock {
  width: 40%;
}

.skeleton-price {
  width: 48%;
  height: 20px;
  margin: 4px 0 8px;
}

.skeleton-button {
  width: 100%;
  height: 42px;
  border-radius: 14px;
}

.category-skeleton-list {
  padding: 12px 16px;
  display: grid;
  gap: 14px;
}

.category-skeleton-line {
  height: 16px;
  border-radius: 999px;
}

.category-skeleton-line.short {
  width: 68%;
}

@keyframes skeleton-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@media (max-width: 520px) {
  .search-box input,
  .search-box input::placeholder {
    font-size: 15px;
  }

  .price {
    font-size: 17px;
    font-weight: 500;
  }

  .skeleton-image {
    height: 150px;
  }
}


/* Mobile floating theme switch */
.mobile-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

body.dark .mobile-theme-toggle {
  background: var(--surface);
  color: var(--text);
}

/* v41 mobile refinements: search action key + centered header + right categories button */
.search-box input[type="search"]::-webkit-search-cancel-button,
.search-box input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 980px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(86px, auto) minmax(0, 1fr) minmax(86px, auto);
    align-items: center;
    direction: ltr;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    justify-content: center;
    text-align: center;
    direction: rtl;
    min-width: 0;
  }

  .brand p {
    display: block;
    max-width: min(320px, 42vw);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-actions {
    display: contents;
  }

  .side-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    direction: rtl;
  }

  .cart-button {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    direction: rtl;
  }

  .theme-toggle {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    grid-column: 1 / -1;
    grid-row: 1;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .brand-logo-box,
  .logo,
  .store-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand h1 {
    font-size: 18px;
    line-height: 1.25;
  }

  .brand p {
    margin-top: 0;
    max-width: calc(100vw - 32px);
    font-size: 12px;
    line-height: 1.4;
  }

  .side-toggle {
    grid-column: 3;
    grid-row: 2;
  }

  .cart-button {
    grid-column: 1;
    grid-row: 2;
  }

  .category-sidebar {
    top: 136px;
  }

  .category-list {
    height: calc(100vh - 136px - 58px);
  }

  .cart-panel {
    inset: 136px 12px 12px;
  }
}


/* v42 header alignment fixes: center brand on desktop, category button on the right, single-row mobile header */
.topbar {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, auto) minmax(150px, 1fr);
  align-items: center;
  justify-content: initial;
  direction: ltr;
}

.topbar .brand,
.topbar .top-actions {
  direction: rtl;
}

.brand {
  grid-column: 2;
  justify-self: center;
  justify-content: center;
  text-align: center;
}

.brand-text {
  min-width: 0;
}

.brand p {
  display: block;
}

.top-actions-left {
  grid-column: 1;
  justify-self: start;
  justify-content: flex-start;
}

.top-actions-right {
  grid-column: 3;
  justify-self: end;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr) minmax(96px, auto);
    grid-template-rows: auto;
    column-gap: 10px;
    row-gap: 0;
    padding: 12px 14px;
    min-height: 88px;
  }

  .top-actions {
    display: flex;
    align-items: center;
  }

  .top-actions-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
  }

  .top-actions-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .brand-logo-box,
  .logo,
  .store-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand h1 {
    font-size: 18px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand p {
    display: block;
    margin-top: 2px;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-text {
    max-width: 100%;
  }

  .side-toggle,
  .cart-button {
    min-width: 0;
    height: 42px;
    border-radius: 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .side-toggle {
    padding: 0 12px;
  }

  .cart-button {
    padding: 0 15px;
  }

  .theme-toggle {
    display: none !important;
  }

  .category-sidebar {
    top: 88px;
  }

  .category-list {
    height: calc(100vh - 88px - 58px);
  }

  .cart-panel {
    inset: 88px 12px 12px;
  }
}

@media (max-width: 420px) {
  .topbar {
    grid-template-columns: minmax(70px, auto) minmax(0, 1fr) minmax(92px, auto);
    column-gap: 8px;
    padding: 10px 10px;
  }

  .brand-logo-box,
  .logo,
  .store-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  .brand h1 {
    font-size: 16px;
  }

  .brand p {
    font-size: 11px;
  }

  .side-toggle {
    padding: 0 10px;
    font-size: 12px;
  }

  .cart-button {
    padding: 0 12px;
    font-size: 12px;
  }
}


/* v43 cart money and mobile header refinements */
.brand {
  cursor: pointer;
}

.cart-mobile-label {
  display: none;
}

.cart-money {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.cart-currency {
  font-weight: inherit;
}

@media (max-width: 760px) {
  .cart-page-price-cell::before,
  .cart-page-subtotal-cell::before {
    content: none !important;
  }

  .cart-page-price-cell,
  .cart-page-subtotal-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    direction: rtl;
    unicode-bidi: isolate;
  }

  .cart-mobile-label {
    display: inline-block;
    color: var(--text);
    font-weight: 950;
  }

  .cart-page-price-cell .cart-money {
    color: var(--muted);
  }

  .cart-page-subtotal-cell .cart-money {
    color: var(--accent);
  }
}


/* v46: جعل أيقونة البحث داخل حقل البحث زر فعلي قابل للضغط/اللمس */
.search-input-icon {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  z-index: 3;
  pointer-events: auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-input-icon:focus-visible {
  outline: 2px solid rgba(255, 112, 18, 0.35);
  outline-offset: 4px;
  border-radius: 999px;
}


/* v47 refinements: search icon spacing, success page subtitle removal, and address placeholder/details */
.search-input-icon {
  left: 6px;
  width: 38px;
  height: 38px;
}

.clear-search {
  left: 52px;
}

.search-box input {
  padding-left: 104px;
}

.success-subtitle {
  display: none !important;
}

.success-address-card {
  padding: 16px 14px;
}

.success-address-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.success-address-card strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 950;
}

.cart-page-summary textarea::placeholder {
  white-space: pre-line;
  line-height: 1.8;
}

@media (max-width: 760px) {
  .search-input-icon {
    left: 6px;
    width: 38px;
    height: 38px;
  }

  .clear-search {
    left: 52px;
  }

  .search-box input {
    padding-left: 104px;
  }

  .success-address-card span {
    font-size: 13px;
  }

  .success-address-card strong {
    font-size: 15px;
  }
}

/* v48: Product details mobile layout fix - keep desktop unchanged */
@media (max-width: 760px) {
  .product-page {
    padding-inline: 14px;
  }

  .product-detail-shell,
  .product-detail-gallery,
  .product-detail-info,
  .product-detail-description-under-gallery {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .product-detail-info {
    padding-top: 2px !important;
    display: block !important;
    text-align: right;
  }

  .product-detail-info h1,
  .product-detail-meta,
  .product-detail-price,
  .product-detail-purchase,
  .product-detail-service-list {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }

  .product-detail-info h1 {
    margin-top: 2px !important;
    margin-bottom: 12px !important;
    text-align: right;
    font-size: 22px !important;
    line-height: 1.45;
  }

  .product-detail-meta {
    justify-content: flex-start;
    gap: 8px;
    margin: 10px 0 12px !important;
  }

  .product-detail-price {
    text-align: right;
    margin: 8px 0 16px !important;
  }

  .product-detail-purchase {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin: 14px 0 18px !important;
  }

  .detail-qty-picker,
  .product-detail-add-btn {
    width: 100% !important;
    max-width: none !important;
  }

  .product-detail-service-list {
    display: block !important;
    margin-top: 18px !important;
    border-top: 1px solid var(--line);
  }

  .product-service-row {
    width: 100% !important;
    min-height: 50px;
    justify-content: flex-start;
    padding: 0 2px;
    border-bottom: 1px solid var(--line);
  }

  .product-detail-description-under-gallery {
    margin-top: 4px !important;
    padding-top: 22px !important;
  }

  .product-detail-description-under-gallery h2,
  .product-detail-description-under-gallery p {
    text-align: right;
  }

  .similar-products-section {
    margin-top: 24px;
  }

  .similar-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(145px, 170px)) !important;
    justify-content: center;
    gap: 12px !important;
  }
}

@media (max-width: 420px) {
  .product-detail-main-image {
    border-radius: 20px;
  }

  .product-detail-thumbs {
    justify-content: center;
  }

  .product-detail-thumb {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }
}

/* v49: Product preview requested refinements
   - Mobile: keep Back + Copy link buttons side by side.
   - Desktop: smaller product title/price, bigger Add to cart text. */
@media (max-width: 520px) {
  .product-page-toolbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .product-page-toolbar .back-btn,
  .product-page-toolbar .secondary-action-btn {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 8px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
}

@media (min-width: 981px) {
  .product-detail-info h1 {
    font-size: clamp(24px, 2.2vw, 30px) !important;
    line-height: 1.42 !important;
    letter-spacing: -0.35px !important;
    font-weight: 950 !important;
  }

  .product-detail-price {
    font-size: clamp(28px, 2.8vw, 36px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.45px !important;
  }

  .product-detail-add-btn {
    font-size: 16px !important;
    font-weight: 950 !important;
  }
}

/* v50: Product preview barcode/copy layout and requested font refinements */
.product-detail-code-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  margin: 4px 0 12px !important;
}

.product-detail-code-stack .product-detail-code {
  width: fit-content;
  max-width: 100%;
}

.copy-product-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.copy-product-code-btn strong {
  color: var(--muted);
  font-weight: 900;
}

.copy-product-code-btn:hover,
.copy-product-code-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
  outline: none;
}

.copy-product-code-btn:hover strong,
.copy-product-code-btn:focus-visible strong {
  color: var(--accent);
}

.product-detail-stock {
  margin-top: 0 !important;
  display: block;
}

@media (min-width: 981px) {
  .product-detail-price {
    font-size: clamp(24px, 2.2vw, 30px) !important;
    line-height: 1.22 !important;
  }

  .product-detail-add-btn,
  .product-route .mini-cart-view-btn {
    font-size: 16px !important;
    font-weight: 950 !important;
  }
}

@media (max-width: 520px) {
  .product-detail-add-btn {
    font-size: 16px !important;
    font-weight: 950 !important;
  }

  .product-detail-code-stack {
    align-items: flex-start !important;
    margin-top: 2px !important;
  }
}

/* Phone number input must stay left-to-right inside RTL pages */
.phone-number-input {
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: right;
}

.phone-number-input::placeholder {
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;
}


/* Prevent normal visitors from selecting/copying the product description text.
   This is a front-end deterrent only; public page text can still be extracted from DevTools/source. */
.no-copy-description,
.no-copy-description * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.no-copy-description {
  cursor: default;
}
