/* =====================================================
   Shaker's Dishdasha — Public Site Styles
   RTL Arabic, Deep Navy + Gold + Cream palette
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:  #0B1C3D;
  --gold:  #C9A84C;
  --gold-light: #e2c47a;
  --cream: #F5F0E8;
  --cream-dark: #ede6d6;
  --text-dark: #1a1a2e;
  --text-light: #f0ece3;
  --shadow: 0 4px 24px rgba(11, 28, 61, 0.15);
  --radius: 12px;
  --transition: 0.25s ease;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ---- Header / Nav ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-brand img {
  height: 44px;
  width: 44px;
  object-fit: contain;
}

.header-brand .brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.header-brand .brand-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: -4px;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---- Hero ---- */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, #142550 60%, #1a3068 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(201,168,76,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 1rem;
}

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

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Cairo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ---- Gallery Section ---- */
#gallery {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

#gallery h2 {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2rem;
}

/* Category Toggle */
.category-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  background: var(--cream-dark);
  border-radius: 50px;
  padding: 6px;
  width: fit-content;
  margin-inline: auto;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.08);
}

.toggle-btn {
  background: transparent;
  border: none;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.55rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  opacity: 0.6;
}

.toggle-btn.active {
  background: var(--navy);
  color: var(--gold);
  opacity: 1;
  box-shadow: 0 2px 12px rgba(11,28,61,0.25);
}

.toggle-btn:hover:not(.active) {
  opacity: 0.9;
  background: rgba(11,28,61,0.08);
}

.toggle-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Gallery Sections */
.gallery-category {
  display: none;
}
.gallery-category.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.gallery-section {
  margin-bottom: 1.75rem;
}

.gallery-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  letter-spacing: 0.01em;
}

/* Image Grid — 3 per row (Instagram-style) */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.image-grid .gallery-card {
  display: block;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream-dark);
  transition: opacity var(--transition);
}

.image-grid .gallery-card:hover {
  opacity: 0.85;
}

.image-grid .gallery-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.image-grid img.loading {
  opacity: 0;
}

/* Empty state */
.gallery-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #999;
  font-size: 1.1rem;
}

/* Loading spinner */
.spinner {
  display: flex;
  justify-content: center;
  padding: 3rem;
}

.spinner::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid var(--cream-dark);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ---- Contact Section ---- */
#contact {
  background: var(--navy);
  padding: 3.5rem 2rem;
  text-align: center;
}

#contact h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

#contact .contact-sub {
  color: rgba(245,240,232,0.45);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.contact-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform var(--transition);
}

.contact-icon-link:hover {
  transform: translateY(-3px);
}

.contact-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(245,240,232,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.contact-icon-link:hover .contact-icon-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.contact-icon-link span {
  font-family: 'Cairo', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(245,240,232,0.5);
  transition: color var(--transition);
}

.contact-icon-link:hover span {
  color: var(--gold);
}

/* ---- Image Preview Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 28, 61, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 90vh;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.open .modal-content {
  transform: scale(1) translateY(0);
}

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

.modal-close:hover {
  background: rgba(0,0,0,0.75);
}

.modal-image {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: var(--cream-dark);
}

.modal-desc {
  padding: 1rem 1.25rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem 1.25rem;
  justify-content: center;
  align-items: center;
}

.modal-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}

.modal-btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

.modal-btn-cancel {
  background: transparent;
  color: #888;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1.5px solid #ddd;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.modal-btn-cancel:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* =====================
   Fabric Order Form
   ===================== */

.fabric-gallery-label {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  width: 100%;
}

#fabric-form {
  margin-top: 3rem;
  background: #fff;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 860px;
  margin-inline: auto;
  box-shadow: 0 8px 40px rgba(11,28,61,0.1);
}

.fabric-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  text-align: center;
}

.fabric-form-sub {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

/* Selected fabric strip */
#selected-fabric-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
}

#selected-fabric-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gold);
}

#selected-fabric-label {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

#clear-fabric-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0 0.25rem;
  transition: color var(--transition);
}

#clear-fabric-btn:hover { color: #e53935; }

/* Two-column layout: SVG + inputs */
.fabric-form-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2rem;
  align-items: start;
}

.dishdasha-svg-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.dishdasha-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(11,28,61,0.1));
}

/* Watch Video Button */
.watch-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.watch-video-btn svg {
  fill: currentColor;
  stroke: none;
}

.watch-video-btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-1px);
}

/* Video Overlay */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(11, 28, 61, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.video-overlay-content {
  position: relative;
  width: 100%;
  max-width: 720px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.3s ease;
}

.video-overlay.open .video-overlay-content {
  transform: scale(1) translateY(0);
}

.video-overlay-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.video-overlay-close:hover {
  background: rgba(0,0,0,0.8);
}

.measure-video {
  width: 100%;
  display: block;
  max-height: 80vh;
}

/* Measurement rows */
.measure-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 440px;
  margin: 0 auto;
}

.measure-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.measure-row label {
  width: 95px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  flex-shrink: 0;
}

.measure-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
}

.measure-input {
  flex: 1;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color var(--transition);
  text-align: center;
  direction: ltr;
  max-width: 110px;
}

.measure-input:focus {
  outline: none;
  border-color: var(--gold);
}

.measure-input.input-error {
  border-color: #e53935;
  animation: shake 0.3s ease;
}

.measure-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: #999;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* =====================
   Style Selectors (Collar / Pocket)
   ===================== */
.style-selector {
  margin-top: 1.75rem;
}

.style-selector-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.style-options-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 6px 4px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.style-options-scroll::-webkit-scrollbar {
  height: 4px;
}
.style-options-scroll::-webkit-scrollbar-track {
  background: var(--cream-dark);
  border-radius: 4px;
}
.style-options-scroll::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

.style-option {
  flex-shrink: 0;
  width: 100px;
  background: #fff;
  border: 2px solid var(--cream-dark);
  position: relative;
  overflow: visible;
  border-radius: var(--radius);
  padding: 0.6rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  scroll-snap-align: start;
  font-family: 'Cairo', sans-serif;
}

.style-option img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.style-option span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}

.style-option:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.2);
}

.style-option.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  box-shadow: 0 2px 12px rgba(201,168,76,0.25);
}

.style-option.selected::after {
  content: '✓';
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--gold);
  color: var(--navy);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
}

.style-option-text {
  width: auto;
  min-width: 90px;
  padding: 10px 20px;
}
.style-option-text span {
  font-size: 0.9rem;
}

.style-selector.input-error .style-options-scroll {
  border: 2px solid #e74c3c;
  border-radius: 10px;
  padding: 4px;
}

.customer-input.input-error {
  border-color: #e74c3c;
  background: #fff8f8;
}

/* Notes */
.measure-notes-wrap {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.measure-notes-wrap label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.measure-notes {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  resize: vertical;
  transition: border-color var(--transition);
}

.measure-notes:focus {
  outline: none;
  border-color: var(--gold);
}

/* Submit button */
#place-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 2rem auto 0;
  max-width: 480px;
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  transition: background var(--transition), transform var(--transition);
}

#place-order-btn:hover {
  background: #b8953e;
  transform: translateY(-2px);
}

/* Order validation error */
.order-error {
  background: #fff0f0;
  border: 1px solid #e74c3c;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1rem auto 0;
  max-width: 480px;
  color: #c0392b;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.8;
  text-align: right;
}

/* Fabric selected highlight on gallery card */
.image-grid .gallery-card.fabric-selected-card {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Price badge on fabric cards */
.gallery-card {
  position: relative;
}

.price-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11,28,61,0.75);
  color: var(--gold);
  font-family: 'Cairo', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  direction: rtl;
}

/* Fabric strip info */
.fabric-strip-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.fabric-strip-price {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}

/* Out of stock badge */
.out-of-stock-badge {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.out-of-stock-badge span {
  background: #e53935;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

/* Stock count badge */
.stock-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(46,125,50,0.88);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 3;
}

/* Ready-Made Modal Order Form */
#modal-readymade-order {
  padding: 0 1.25rem 1rem;
  direction: rtl;
}

.rm-price-display {
  text-align: center;
  font-family: 'Cairo', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--navy);
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.rm-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.rm-field label {
  display: block;
  font-family: 'Cairo', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.2rem;
}

.rm-field select,
.rm-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s;
}

.rm-field select:focus,
.rm-field input:focus {
  border-color: var(--gold);
}

.rm-field.input-error select,
.rm-field.input-error input {
  border-color: #e53935;
}

.rm-submit-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}

.rm-submit-btn:active {
  opacity: 0.8;
}

/* Modal: select fabric button */
.modal-btn-select-fabric {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}

.modal-btn-select-fabric:hover {
  background: #b8953e;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 860px) {
  .fabric-form-layout {
    grid-template-columns: 1fr;
  }

  .dishdasha-svg-wrap {
    order: -1;
  }

  .dishdasha-svg {
    max-width: 320px;
  }

  .measure-row label {
    width: 75px;
    font-size: 0.8rem;
  }
}

/* =====================
   Order Tracking
   ===================== */
#my-orders {
  padding: 3rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

#my-orders h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.track-hint {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.track-input-row {
  display: flex;
  gap: 0.6rem;
  max-width: 400px;
  margin: 0 auto;
}

.track-phone-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 2px solid var(--cream-dark);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  color: var(--navy);
  background: #fff;
  outline: none;
  text-align: center;
  transition: border-color 0.2s;
}

.track-phone-input:focus {
  border-color: var(--gold);
}

.track-btn {
  background: var(--gold);
  color: var(--navy);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.track-btn:hover {
  background: var(--gold-light);
}

/* Saved phone bar */
.track-saved-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--navy);
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  margin-bottom: 1.5rem;
}

.track-saved-phone {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  direction: ltr;
}

.track-change-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  font-family: 'Cairo', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.track-change-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Order cards */
.track-orders {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.track-empty {
  text-align: center;
  color: #999;
  padding: 2rem;
  font-size: 0.95rem;
}

.track-card {
  display: flex;
  gap: 0.85rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(11,28,61,0.08);
}

.track-card-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--cream-dark);
  flex-shrink: 0;
}

.track-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

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

.track-card-id {
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #999;
  direction: ltr;
}

.track-card-date {
  font-size: 0.75rem;
  color: #aaa;
}

.track-card-details {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
}

.track-card-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

.track-card-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.track-status-icon {
  font-size: 0.75rem;
}

.track-status-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 600px) {
  #my-orders {
    padding: 2rem 1rem;
  }

  #my-orders h2 {
    font-size: 1.3rem;
  }

  .track-input-row {
    flex-direction: column;
  }

  .track-btn {
    width: 100%;
    min-height: 48px;
  }

  .track-card-thumb {
    width: 50px;
    height: 50px;
  }
}

/* ---- Footer ---- */
footer {
  background: #060e1f;
  color: rgba(245,240,232,0.45);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.85rem;
}

footer span {
  color: var(--gold);
}

/* =====================
   Responsive
   ===================== */
/* grid is already 3-col by default */

@media (max-width: 600px) {
  header {
    padding: 0 1rem;
    height: 60px;
  }

  .header-brand .brand-sub {
    display: none;
  }

  .header-brand img {
    height: 36px;
    width: 36px;
  }

  .header-brand .brand-name {
    font-size: 1.1rem;
  }

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  #hero {
    min-height: 320px;
    padding: 2.5rem 1rem;
  }

  #gallery {
    padding: 2rem 0.75rem;
  }

  #gallery h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .category-toggle {
    padding: 4px;
    margin-bottom: 1.75rem;
  }

  .toggle-btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .image-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .gallery-section h3 {
    font-size: 0.9rem;
  }

  #fabric-form {
    padding: 1.5rem 1rem;
    border-radius: 10px;
  }

  .fabric-form-title {
    font-size: 1.2rem;
  }

  .fabric-form-sub {
    font-size: 0.88rem;
  }

  .measure-row label {
    width: 68px;
    font-size: 0.8rem;
  }

  .measure-input {
    max-width: unset;
    font-size: 0.9rem;
    padding: 0.4rem 0.4rem;
  }

  #place-order-btn {
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
    min-height: 52px;
  }

  .modal-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .modal-btn-whatsapp,
  .modal-btn-select-fabric,
  .modal-btn-cancel {
    text-align: center;
    justify-content: center;
    min-height: 48px;
  }

  #contact {
    padding: 2rem 1rem;
  }

  #contact h2 {
    font-size: 1.3rem;
  }

  .contact-icons {
    gap: 1.25rem;
  }

  .contact-icon-circle {
    width: 42px;
    height: 42px;
  }

  .contact-icon-link span {
    font-size: 0.65rem;
  }
}

/* =====================
   Customer Info Form
   ===================== */
.customer-info-wrap {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
}

.customer-info-hint {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.customer-info-hint span {
  font-weight: 400;
  font-size: 0.8rem;
  color: #888;
}

.customer-info-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.customer-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.customer-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

.customer-input {
  padding: 0.55rem 0.85rem;
  border: 1.5px solid rgba(11,28,61,0.2);
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.customer-input:focus {
  border-color: var(--gold);
}

/* =====================
   Order Confirmation
   ===================== */
#order-confirmation {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(46,125,50,0.08);
  border: 1px solid rgba(46,125,50,0.3);
  border-radius: var(--radius);
  margin-top: 1rem;
}

.order-confirm-check {
  width: 52px;
  height: 52px;
  background: #2e7d32;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.order-confirm-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2e7d32;
}

.order-confirm-sub {
  font-size: 0.9rem;
  color: var(--navy);
}

.order-confirm-sub strong {
  font-weight: 700;
}

.order-confirm-note {
  font-size: 0.8rem;
  color: #666;
}

.new-order-btn {
  margin-top: 0.75rem;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.6rem 1.75rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.new-order-btn:hover {
  background: #142550;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .customer-info-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .dishdasha-svg {
    max-width: 260px;
  }
}

@media (max-width: 380px) {
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
  }

  .toggle-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }

  .dishdasha-svg {
    max-width: 160px;
  }
}
