/* ============================================================
   Atipdesign — Premium RTL Farsi Casual Clothing
   Design System — style.css
   ============================================================ */

/* ----------------------------------------------------------
   1. FONTS
   ---------------------------------------------------------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ----------------------------------------------------------
   2. CSS VARIABLES
   ---------------------------------------------------------- */
:root {
  --navy: #000000;
  --navy-light: #000000;
  --navy-faint: #ffffff;
  --green: #ffffff;
  --green-dark: #000000;
  --green-glow: #000000;
  --white: #ffffff;
  --gray-50: #ffffff;
  --gray-100: #ffffff;
  --gray-200: #000000;
  --gray-500: #000000;
  --gray-600: #000000;
  --gray-800: #000000;
  --text: #000000;
  --text-muted: #000000;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-green: none;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 100px;
  --transition: 0.22s ease;
  --header-h: 68px;
}

/* ----------------------------------------------------------
   3. BASE RESET & BODY
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  color: var(--text);
  background: var(--white);
  direction: rtl;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

button {
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  direction: rtl;
}

ul, ol {
  list-style: none;
}

/* ----------------------------------------------------------
   4. LAYOUT UTILITIES
   ---------------------------------------------------------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-light {
  background: var(--gray-50);
}

.section-header {
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: gap var(--transition);
}

.section-link:hover {
  gap: 8px;
}

/* ----------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 24px;
  font-size: 14px;
}

.btn-sm {
  padding: 7px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 32px;
  font-size: 15px;
}

.btn-primary {
  background: var(--green);
  color: var(--navy);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}

.btn-ghost-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ----------------------------------------------------------
   6. HEADER
   ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  height: var(--header-h);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  gap: 18px;
  min-width: 0;
}

/* Logo + Actions centered */
.header-brand-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.site-logo {
  width: 248px;
  height: 99px;
  padding: 0;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.68);
  transform-origin: center;
  filter: brightness(0) invert(1);
}

/* Nav */
.site-header nav {
  grid-column: 1;
  justify-self: start;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.site-nav a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  min-width: 0;
}

.cart-btn {
  position: relative;
  color: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
  padding: 4px;
}

.cart-btn:hover {
  color: var(--green);
}

.cart-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--green);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-header-login {
  background: var(--green);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-header-login:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
  align-items: center;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--navy);
  z-index: 150;
  padding: 24px;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .site-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  width: 100%;
}

.mobile-nav .site-nav a {
  font-size: 16px;
  padding: 14px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ----------------------------------------------------------
   7. HERO SECTION
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(26,37,47,0.88) 35%, rgba(26,37,47,0.45) 65%, rgba(26,37,47,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 24px;
  width: 100%;
}

.hero-text {
  max-width: 500px;
}

.hero-tag {
  display: inline-block;
  background: var(--green);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 400px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------
   8. CATEGORY STRIP
   ---------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,37,47,0.82) 0%, rgba(26,37,47,0.1) 55%);
}

.category-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 20px 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

/* ----------------------------------------------------------
   9. PRODUCT CARDS
   ---------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 8px;
  flex: 1;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 14px;
  direction: rtl;
}

.product-info .btn {
  width: 100%;
  font-size: 13px;
  padding: 8px 12px;
}

/* Product badge (sale / new) */
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

/* ----------------------------------------------------------
   10. GALLERY GRID
   ---------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}

.gallery-grid-featured {
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.gallery-item-featured {
  grid-row: span 2;
  aspect-ratio: 4/5;
}

.gallery-item.tall {
  aspect-ratio: 3/5;
  grid-row: span 2;
}

.gallery-item.wide {
  aspect-ratio: 8/5;
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,37,47,0);
  transition: background var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(26,37,47,0.15);
}

/* ----------------------------------------------------------
   11. NEWSLETTER
   ---------------------------------------------------------- */
.newsletter {
  background: var(--navy);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(46,204,113,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.newsletter-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.5;
}

.newsletter-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 36px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 8px;
  direction: rtl;
}

.newsletter-input {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.38);
}

.newsletter-input:focus {
  border-color: var(--green);
  background: rgba(255,255,255,0.12);
}

/* ----------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  border-top: 2px solid var(--green);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  width: 126px;
  height: 58px;
  padding: 0;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  max-width: 260px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: all var(--transition);
}

.footer-social-link:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(46,204,113,0.08);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 2px;
  background: var(--green);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--green);
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  flex-wrap: wrap;
  gap: 8px;
}

/* ----------------------------------------------------------
   13. FLASH MESSAGES
   ---------------------------------------------------------- */
.flash {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.flash-success {
  background: rgba(46,204,113,0.12);
  color: var(--green-dark);
  border: 1px solid rgba(46,204,113,0.25);
}

.flash-error {
  background: rgba(231,76,60,0.1);
  color: #c0392b;
  border: 1px solid rgba(231,76,60,0.2);
}

.flash-info {
  background: rgba(52,152,219,0.1);
  color: #2980b9;
  border: 1px solid rgba(52,152,219,0.2);
}

/* ----------------------------------------------------------
   14. PAGE STUB LAYOUTS
   ---------------------------------------------------------- */
.page-hero {
  background: var(--gray-50);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--gray-200);
}

.page-hero-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.page-hero-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-hero-breadcrumb a {
  color: var(--text-muted);
}

.page-hero-breadcrumb a:hover {
  color: var(--navy);
}

/* ----------------------------------------------------------
   15. FORM ELEMENTS
   ---------------------------------------------------------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  direction: rtl;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ----------------------------------------------------------
   16. BADGES
   ---------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.badge-green {
  background: rgba(46,204,113,0.15);
  color: var(--green-dark);
}

.badge-navy {
  background: var(--navy);
  color: var(--white);
}

/* ----------------------------------------------------------
   17. EMPTY STATE
   ---------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

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

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

/* ----------------------------------------------------------
   18. UTILITY CLASSES
   ---------------------------------------------------------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.w-full { width: 100%; }

.ltr {
  direction: ltr;
  unicode-bidi: embed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.d-flex   { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* ----------------------------------------------------------
   19. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .site-nav     { display: none; }
  .mobile-nav .site-nav { display: flex; }
  .menu-toggle  { display: flex; }
  .header-inner { gap: 10px; }
  .header-brand-actions { gap: 10px; }
  .site-logo { width: 198px; height: 81px; }
  .header-actions { gap: 10px; }
  .btn-header-login { padding: 7px 15px; font-size: 12px; }

  .category-grid { grid-template-columns: 1fr; }
  .category-card { aspect-ratio: 16/9; }

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

  .hero          { min-height: 460px; }
  .hero-content  { padding: 64px 24px; }
  .hero-title    { font-size: 26px; }

  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid-featured { gap: 12px; }
  .gallery-item-featured { aspect-ratio: 4/3; grid-row: auto; }
  .gallery-item.tall  { aspect-ratio: 4/3; grid-row: auto; }
  .gallery-item.wide  { grid-column: auto; aspect-ratio: 4/3; }

  .newsletter-form { flex-direction: column; }

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

  .section { padding: 56px 0; }
}

@media (max-width: 390px) {
  .container     { padding: 0 16px; }
  .header-inner  { padding: 0 16px; }
  .site-logo { width: 168px; height: 68px; }
  .header-brand-actions { gap: 8px; }
  .header-actions { gap: 8px; }
  .btn-header-login { padding: 7px 12px; }
  .cart-btn { padding: 2px; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-info  { padding: 12px; }
  .product-name  { font-size: 13px; }
  .product-price { font-size: 13px; }

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

  .hero-content  { padding: 48px 16px; }
  .hero-title    { font-size: 23px; }

  .section       { padding: 48px 0; }
  .newsletter    { padding: 56px 0; }
}

/* ===== HAMBURGER MENU TOGGLE ===== */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  pointer-events: none;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 6px 4px;
  align-items: center;
  justify-content: center;
}
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
}

/* ----------------------------------------------------------
   20. BUTTON EXTRAS
   ---------------------------------------------------------- */
.btn-block  { width: 100%; justify-content: center; }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

/* ----------------------------------------------------------
   21. FORM INPUT ALIAS + EXTRAS
   ---------------------------------------------------------- */
.form-input {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  direction: rtl;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}
.required { color: #e74c3c; font-size: 12px; }

/* ----------------------------------------------------------
   22. EMPTY STATE EXTRAS
   ---------------------------------------------------------- */
.empty-state-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.empty-state-sm  { padding: 40px 24px; }
.empty-state-404 { padding: 100px 24px; }
.error-code {
  font-size: clamp(64px, 10vw, 100px);
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -4px;
}

/* ----------------------------------------------------------
   23. SHOP FILTER BAR
   ---------------------------------------------------------- */
.shop-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
  align-items: center;
}
.filter-btn {
  display: inline-block;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--gray-200);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ----------------------------------------------------------
   24. SHOP PRODUCT CARD (inner)
   ---------------------------------------------------------- */
.product-card-img-link { display: block; }
.product-card-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  display: block;
}
.product-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 8px;
  flex: 1;
}
.product-card-name a { color: inherit; }
.product-card-name a:hover { color: var(--green-dark); }
.product-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
  direction: rtl;
}
.product-card-form { margin-top: auto; }

/* ----------------------------------------------------------
   25. PRODUCT DETAIL PAGE
   ---------------------------------------------------------- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.product-detail-image {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

/* Gallery */
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.product-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
}
.product-detail-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
.product-gallery-thumbs {
  display: flex;
  gap: 10px;
}
.thumb-btn {
  width: 72px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--gray-200);
  background: var(--gray-100);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-btn.active,
.thumb-btn:hover { border-color: var(--green); }

/* Info panel */
.product-detail-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 10px 0 8px;
  line-height: 1.4;
}
.product-detail-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 16px;
  direction: rtl;
}
.product-detail-desc {
  font-size: 15px;
  color: var(--gray-800);
  line-height: 2;
  margin-bottom: 24px;
  padding: 18px 20px;
  white-space: pre-line;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-right: 4px solid var(--green);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.product-detail-form { margin-bottom: 0; }

/* Size selector */
.size-selector-row { margin-bottom: 20px; }
.size-selector-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  display: block;
}
.size-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.size-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.size-btn:hover,
.size-btn.selected {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.size-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  text-decoration: line-through;
}
.size-btn:disabled:hover {
  background: var(--white);
  color: var(--text);
  border-color: var(--gray-200);
}

/* Qty selector */
.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.qty-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.qty-control { flex: 1; max-width: 100px; }
.qty-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  outline: none;
  direction: rtl;
  transition: border-color var(--transition);
}
.qty-select:focus { border-color: var(--green); }

/* Meta badges row */
.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.meta-icon { color: var(--green-dark); display: flex; }

/* ----------------------------------------------------------
   26. CART PAGE
   ---------------------------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cart-table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 14px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  text-align: right;
}
.cart-row { border-bottom: 1px solid var(--gray-100); }
.cart-row:last-child { border-bottom: none; }
.cart-row td { padding: 16px; vertical-align: middle; }
.cart-product-link {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cart-product-thumb {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.cart-product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
.cart-price,
.cart-subtotal {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.cart-qty { font-size: 15px; font-weight: 700; text-align: center; }
.cart-remove-cell { text-align: center; }
.btn-remove {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gray-500);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
  font-family: inherit;
  line-height: 1;
}
.btn-remove:hover {
  background: rgba(231,76,60,0.08);
  color: #e74c3c;
}
.cart-summary-box {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.cart-summary-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}
.cart-summary-total {
  font-size: 15px;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid var(--gray-200);
  margin-bottom: 24px;
}

/* ----------------------------------------------------------
   27. CHECKOUT PAGE
   ---------------------------------------------------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.checkout-form-col,
.checkout-summary-col { min-width: 0; }
.checkout-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.checkout-summary-col .checkout-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.checkout-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.checkout-notice {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
  line-height: 1.7;
}
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
}
.checkout-item-name { color: var(--text); line-height: 1.5; }
.checkout-item-price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  font-size: 15px;
}
.checkout-empty { font-size: 14px; color: var(--text-muted); }
.checkout-empty a { color: var(--green-dark); }

/* ----------------------------------------------------------
   28. ABOUT PAGE
   ---------------------------------------------------------- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  display: block;
}
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.about-heading {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.about-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-stats {
  display: flex;
  gap: 32px;
  margin: 32px 0;
  padding: 28px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.about-stat { text-align: center; }
.about-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.about-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}
.about-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.about-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.about-contact-item svg { color: var(--green-dark); flex-shrink: 0; }
.section-alt { background: var(--gray-50); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(46,204,113,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--green-dark);
}
.value-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.value-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   29. CONTACT PAGE
   ---------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.contact-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(46,204,113,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  flex-shrink: 0;
}
.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.contact-info-text span {
  font-size: 13px;
  color: var(--text-muted);
}
.contact-hours {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.contact-hours-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.contact-hours p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.contact-social {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.contact-social .footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13px;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  border: 1.5px solid var(--gray-200);
  width: auto;
  height: auto;
  transition: all var(--transition);
}
.contact-social .footer-social-link:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: rgba(46,204,113,0.05);
}

/* ----------------------------------------------------------
   30. AUTH PAGES (Login / Register)
   ---------------------------------------------------------- */
.auth-section {
  min-height: calc(100vh - var(--header-h) - 80px);
  display: flex;
  align-items: center;
  background: var(--gray-50);
}
.auth-card {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
}
.auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo {
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
  display: block;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}
.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}
.auth-form { margin-top: 4px; }
.auth-card-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  font-size: 14px;
  color: var(--text-muted);
}
.auth-link { color: var(--green-dark); font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

/* ----------------------------------------------------------
   31. ACCOUNT PAGE
   ---------------------------------------------------------- */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.account-sidebar {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.account-avatar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 20px;
  background: var(--navy);
}
.avatar-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.account-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  min-width: 0;
}
.account-username {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.account-email {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.account-nav { display: flex; flex-direction: column; }
.account-nav-link {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.account-nav-link:last-child { border-bottom: none; }
.account-nav-link:hover,
.account-nav-link.active {
  background: var(--gray-50);
  color: var(--navy);
  font-weight: 600;
  padding-right: 26px;
}
.account-nav-logout { color: #c0392b; }
.account-nav-logout:hover {
  background: rgba(231,76,60,0.06);
  color: #c0392b;
}
.account-main { display: flex; flex-direction: column; gap: 24px; }
.account-section-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.account-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
}
.account-info-grid {
  display: flex;
  flex-direction: column;
}
.account-info-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.account-info-item:last-child { border-bottom: none; }
.account-info-label {
  font-size: 13px;
  color: var(--text-muted);
  width: 120px;
  flex-shrink: 0;
}
.account-info-value { font-size: 14px; font-weight: 600; color: var(--navy); }

/* Orders table */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  text-align: right;
}
.orders-table td {
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text);
}
.orders-table tr:last-child td { border-bottom: none; }

/* ----------------------------------------------------------
   32. RESPONSIVE FOR NEW COMPONENTS
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .product-detail-layout { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary-col .checkout-card { position: static; }
  .account-layout { grid-template-columns: 220px 1fr; gap: 24px; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-layout { gap: 40px; }
}

@media (max-width: 768px) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-image { position: static; }
  .about-layout { grid-template-columns: 1fr; }
  .about-image-col { max-width: 400px; margin: 0 auto; }
  .about-stats { gap: 16px; }
  .values-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary-box { position: static; }
  .cart-table th:nth-child(2),
  .cart-table td:nth-child(2) { display: none; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .auth-card { padding: 28px 20px; }
  .shop-filter-bar { gap: 8px; }
  .filter-btn { padding: 7px 16px; font-size: 12px; }
  .orders-table th:nth-child(2),
  .orders-table td:nth-child(2) { display: none; }
}

/* ═══ CR#588 hero slideshow ═══ */
.hero-slider{position:relative;overflow:hidden}
.hero-slider .hero-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .8s ease}
.hero-slider .hero-slide.active{opacity:1}
.hero-slider-dots{position:absolute;bottom:16px;left:0;right:0;display:flex;gap:8px;justify-content:center;z-index:2}
.hero-slider .hero-dot{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.55)}
.hero-slider .hero-dot.active{background:#fff}


/* QA#237: cart table -> card layout on narrow phones (no h-overflow, no shrink) */
@media (max-width: 560px) {
  .cart-table, .cart-table tbody { display: block; width: 100%; box-shadow: none; background: transparent; }
  .cart-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cart-row { display: block; width: 100%; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 12px; padding: 12px 14px; position: relative; }
  .cart-row td { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0 !important; border: none; }
  .cart-row td:not(.cart-product-cell):not(.cart-remove-cell)::before { content: attr(data-label); font-weight: 700; color: var(--text-muted); font-size: 12px; }
  .cart-product-cell { padding-inline-end: 34px !important; }
  .cart-product-link { width: 100%; }
  .cart-product-name { min-width: 0; }
  .cart-remove-cell { position: absolute; top: 8px; inset-inline-start: 8px; padding: 0 !important; width: auto; }
}

/* QA#237b: prevent card/shadow clipping on narrow phones */
@media (max-width: 560px) {
  .cart-table, .cart-items, .cart-layout { overflow: visible !important; }
  .cart-row:last-child { margin-bottom: 4px; }
}

/* #603: hero slider on mobile — match 16:9 image aspect so the sides aren't cropped by object-fit:cover */
@media (max-width: 768px) {
  .hero.hero-slider { min-height: 0; height: 56.25vw; max-height: 440px; }
}

/* ============================================================
   === atipdesign purple/red theme ===
   CR#1289 (colour system + header) · CR#1291 (mobile drawer)
   Replaces the former warm/mauve theme block.
   Brand: purple #6025F5 · red #FF5555 · gradient #FF5555 -> #6025F5
   ============================================================ */
:root {
  /* brand primitives */
  --brand-purple:      #6025F5;
  --brand-purple-dark: #4A17CC;
  --brand-red:         #FF5555;
  --brand-red-dark:    #F03B3B;
  --brand-grad:        linear-gradient(to right, #FF5555, #6025F5);

  /* design-system variables the whole stylesheet consumes */
  --navy:        #1E1140;   /* deep purple ink — dark surfaces + headings   */
  --navy-light:  #33206B;
  --navy-faint:  #F3EFFF;
  --green:       #6025F5;   /* accent / CTA slot                            */
  --green-dark:  #4A17CC;
  --green-glow:  0 6px 18px rgba(96,37,245,.35);
  --white:       #FFFFFF;
  --gray-50:     #FAF9FF;
  --gray-100:    #F2F0FB;
  --gray-200:    #E3DFF3;
  --gray-500:    #8B85A3;
  --gray-600:    #6E6885;
  --gray-800:    #3A3450;
  --text:        #1F1937;
  --text-muted:  #6E6885;
  --shadow-sm:   0 1px 2px rgba(30,17,64,.06);
  --shadow-md:   0 4px 14px rgba(30,17,64,.08);
  --shadow-lg:   0 12px 32px rgba(30,17,64,.12);
  --shadow-green:0 6px 18px rgba(96,37,245,.35);
  --header-h:    72px;
}

/* ------------------------------------------------------------
   Wordmark (text logo replaces the image logo)
   ------------------------------------------------------------ */
.site-logo, .footer-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  width: auto;
  height: auto;
  min-width: 0;
  align-items: flex-start;
  justify-content: center;
}
.logo-word {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .045em;
  color: var(--white);            /* default: dark surfaces (footer) */
  white-space: nowrap;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}
.logo-sub {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: rgba(255,255,255,.74);
  white-space: nowrap;
  margin-top: 3px;
}
.footer-logo .logo-word { font-size: 1.3rem; }
.auth-logo { color: var(--navy); }
@media (max-width: 420px) {
  .logo-word { font-size: 1.18rem; }
  .logo-sub  { font-size: .55rem; }
}

/* ------------------------------------------------------------
   CR#1289 — HEADER
   Bug: .header-inner was a 3-column grid, but <nav> carried an
   explicit grid-column:1 while .site-logo auto-filled that same
   cell — so the nav was pushed onto an implicit SECOND row and
   fell out of the 68px header bar ("دکمه‌ها داخل کادر نیستند").
   Fix: one flex row — logo / nav / actions.
   ------------------------------------------------------------ */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200), 0 8px 24px rgba(30,17,64,.05);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  min-width: 0;
}
.site-header nav {
  grid-column: auto;
  justify-self: auto;
  order: 2;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
/* the inline nav is DESKTOP-ONLY — this selector is more specific than
   the @media(max-width:768px){.site-nav{display:none}} rule above, so it
   must carry its own breakpoint or it resurrects the nav on phones. */
@media (min-width: 769px) {
  .site-header .site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
  }
}
@media (max-width: 768px) {
  .site-header .site-nav { display: none; }
}
.header-actions {
  order: 3;
  flex: 0 0 auto;
}
.site-logo { order: 1; flex: 0 0 auto; }

/* header ink on the new light surface */
.site-header .logo-word { color: var(--navy); }
.site-header .logo-sub  { color: var(--gray-500); }
.site-header .site-nav a {
  color: #4A4360;
  font-weight: 600;
  font-size: 14.5px;
}
.site-header .site-nav a:hover,
.site-header .site-nav a.active { color: var(--brand-purple); }
.site-header .site-nav a::after { background: var(--brand-grad); height: 2px; }
.cart-btn { color: var(--gray-600); }
.cart-btn:hover { color: var(--brand-purple); }
.cart-badge { background: var(--brand-red); color: var(--white); }
.menu-toggle { color: var(--navy); }
.btn-header-login {
  background: var(--brand-grad);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(96,37,245,.28);
}
.btn-header-login:hover {
  background: linear-gradient(to right, #F03B3B, #4A17CC);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(96,37,245,.35);
}

/* ------------------------------------------------------------
   CR#1289 — accent slots that carried dark ink on the accent
   colour. With --green now = purple, "color: var(--navy)" would
   be purple-on-purple, so these four are pinned to white.
   ------------------------------------------------------------ */
.btn-primary {
  background: var(--brand-grad);
  color: var(--white);
  border-color: transparent;
}
.btn-primary:hover {
  background: linear-gradient(to right, #F03B3B, #4A17CC);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(96,37,245,.35);
}
.btn-ghost-dark { color: var(--navy); border-color: var(--gray-200); }
.btn-ghost-dark:hover { background: var(--brand-purple); border-color: var(--brand-purple); color: var(--white); }

/* ------------------------------------------------------------
   CR#1289 — HERO (exact gradient requested by the customer)
   ------------------------------------------------------------ */
.hero-overlay {
  background: #6025F5;
  background: -webkit-linear-gradient(to right, #FF5555, #6025F5);
  background: linear-gradient(to right, #FF5555, #6025F5);
}
/* the tag chip used to be accent-on-accent -> invisible on the new hero */
.hero-tag {
  background: rgba(255,255,255,.18);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.42);
  letter-spacing: .06em;
  backdrop-filter: blur(2px);
}
/* the hero CTA sits ON the purple end of the gradient — invert it */
.hero .btn-primary {
  background: var(--white);
  color: var(--brand-purple);
  border-color: var(--white);
}
.hero .btn-primary:hover {
  background: var(--white);
  color: var(--brand-purple-dark);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

/* ------------------------------------------------------------
   CR#1289 — remaining colour surfaces
   ------------------------------------------------------------ */
.category-card { background: var(--gray-100); }
.category-overlay { background: linear-gradient(to top, rgba(30,17,64,.86) 0%, rgba(30,17,64,.12) 58%); }
.gallery-item-overlay { background: rgba(30,17,64,0); }
.gallery-item:hover .gallery-item-overlay { background: rgba(30,17,64,.18); }
.newsletter::before { background: radial-gradient(circle, rgba(96,37,245,.22) 0%, transparent 65%); }
.footer-social-link:hover,
.contact-social .footer-social-link:hover {
  border-color: var(--brand-purple);
  color: var(--white);
  background: var(--brand-grad);
}
.value-icon,
.contact-info-icon { background: rgba(96,37,245,.10); color: var(--brand-purple); }
.badge-green { background: rgba(96,37,245,.14); color: var(--brand-purple-dark); }
.section-link { color: var(--brand-purple); }
.required { color: var(--brand-red-dark); }

/* status colours keep their meaning — success stays green, not purple */
.flash-success { background: rgba(22,163,74,.10); color: #15803D; border: 1px solid rgba(22,163,74,.24); }
.flash-error   { background: rgba(255,85,85,.12); color: #C62828; border: 1px solid rgba(255,85,85,.28); }
.flash-info    { background: rgba(96,37,245,.09);  color: var(--brand-purple-dark); border: 1px solid rgba(96,37,245,.22); }

/* footer keeps the dark surface, topped by the brand gradient rule */
.site-footer {
  background: linear-gradient(to right, #FF5555, #6025F5) top left / 100% 3px no-repeat, var(--navy);
  border-top: 0;
}

/* ------------------------------------------------------------
   CR#1290 — category strip as icon tiles
   The panel already supports an image per category
   (admin/categories/form.php -> photo_file); when one is set it
   replaces the fallback mark below.
   ------------------------------------------------------------ */
.cat-tiles-head { text-align: center; margin-bottom: 34px; }
.cat-tiles-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
}
.cat-tiles-rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 12px auto 10px;
  border-radius: 3px;
  background: var(--brand-grad);
}
.cat-tiles-sub { font-size: 14px; color: var(--text-muted); }

.cat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}
.cat-tile {
  background: #F3F0FD;
  border: 1px solid #E7E1FB;
  border-radius: 16px;
  padding: 26px 14px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.cat-tile:hover {
  transform: translateY(-4px);
  background: var(--white);
  border-color: var(--brand-purple);
  box-shadow: 0 14px 30px rgba(96,37,245,.14);
}
.cat-tile-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(96,37,245,.10);
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: background var(--transition);
}
.cat-tile:hover .cat-tile-icon { background: rgba(96,37,245,.18); }
.cat-tile-icon svg { width: 26px; height: 26px; display: block; }
.cat-tile-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cat-tile-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.4;
}
.cat-tiles-more { text-align: center; margin-top: 26px; }
.cat-tiles-more .section-link { display: inline-flex; justify-content: center; }

@media (max-width: 560px) {
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-tile  { padding: 20px 10px 18px; gap: 11px; }
  .cat-tile-icon { width: 50px; height: 50px; }
  .cat-tiles-title { font-size: 21px; }
}

/* ------------------------------------------------------------
   CR#1291 — MOBILE MENU as an off-canvas drawer
   RTL: the drawer opens from the visual RIGHT, so it is pinned
   with inset-inline-START (= right under dir=rtl) and parked
   with translateX(100%) — a PHYSICAL transform, it does not flip.
   ------------------------------------------------------------ */
.mobile-nav {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 400;
  visibility: hidden;
  padding: 0;
  background: none;
  border-top: 0;
  overflow: visible;
}
.mobile-nav.open { display: block; visibility: visible; }

.mobile-nav-scrim {
  position: absolute;
  inset: 0;
  background: rgba(30,17,64,.45);
  opacity: 0;
  transition: opacity .26s ease;
}
.mobile-nav.open .mobile-nav-scrim { opacity: 1; }
/* the header toggle morphs into an X; behind the scrim that reads as a
   second close button, so it is muted while the drawer is open */
body.menu-open .menu-toggle { opacity: 0; pointer-events: none; }

.mobile-nav-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;      /* RTL -> right edge */
  width: min(86vw, 340px);
  background: var(--white);
  box-shadow: -12px 0 40px rgba(30,17,64,.22);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-panel > nav { flex: 1 1 auto; display: flex; }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;   /* logo to the right, close button to the left */
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-200);
}
.mobile-nav-brand { display: inline-flex; flex-direction: column; line-height: 1.05; }
.mobile-nav-brand .logo-word { color: var(--navy); font-size: 1.28rem; }
.mobile-nav-brand .logo-sub  { color: var(--gray-500); }

.mobile-nav-close {
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav-close:hover { color: var(--brand-purple); background: var(--gray-100); }

.mobile-nav .site-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  width: 100%;
  flex: 1 1 auto;
}
.mobile-nav .site-nav a {
  display: block;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav .site-nav a::after { display: none; }
.mobile-nav .site-nav a:hover { background: var(--gray-100); color: var(--brand-purple); }
.mobile-nav .site-nav a.active { color: var(--brand-purple); }

.mobile-nav-foot {
  padding: 18px 20px;
  border-top: 1px solid var(--gray-200);
  color: var(--brand-purple);
  font-weight: 700;
  font-size: 14px;
  margin-top: auto;
}
.mobile-nav-foot a { color: inherit; }

@media (min-width: 769px) {
  .mobile-nav,
  .mobile-nav.open { display: none; }
}

/* CR#1302: Navigationsknoepfe des Hero-Sliders. RTL - der rechte Pfeil fuehrt
   zum vorherigen, der linke zum naechsten Bild. */
.hero-slider .hero-slide-link{position:absolute;inset:0;display:block;opacity:0;transition:opacity .8s ease}
.hero-slider .hero-slide-link.active{opacity:1}
.hero-slider .hero-slide-img{width:100%;height:100%;object-fit:cover;display:block}
.hero-slider .hero-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:44px;height:44px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(0,0,0,.38);color:#fff;font-size:20px;line-height:44px;text-align:center;
  display:flex;align-items:center;justify-content:center;transition:background .2s ease}
.hero-slider .hero-nav:hover{background:rgba(0,0,0,.62)}
.hero-slider .hero-prev{right:14px}
.hero-slider .hero-next{left:14px}
.hero-slider .hero-dot{cursor:pointer}
@media (max-width:600px){
  .hero-slider .hero-nav{width:38px;height:38px;font-size:17px}
  .hero-slider .hero-prev{right:8px}
  .hero-slider .hero-next{left:8px}
}


/* ============================================================
   CR#1307 — Knoepfe: EINE durchgehende Farbe statt Farbverlauf.
   Der Verlauf lief an den beiden Enden nach Rot bzw. Violett aus —
   genau die beiden Kanten hatte der Kunde im Screenshot eingekreist.
   Dazu etwas schmaler (links/rechts) wie gewuenscht.
   Der HERO-Verlauf aus CR#1289 bleibt bewusst unangetastet.
   ============================================================ */
:root {
  --brand-pink:      #CE2F7B;
  --brand-pink-dark: #B32569;
}
.btn-primary,
.btn-header-login {
  background: var(--brand-pink);
  background-image: none;
  color: var(--white);
  border-color: var(--brand-pink);
  box-shadow: 0 4px 12px rgba(206,47,123,.24);
}
.btn-primary:hover,
.btn-header-login:hover {
  background: var(--brand-pink-dark);
  background-image: none;
  border-color: var(--brand-pink-dark);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(206,47,123,.32);
}
.btn-primary            { padding: 9px 18px; font-size: 13.5px; }
.btn-primary.btn-lg     { padding: 12px 26px; font-size: 14.5px; }
.btn-primary.btn-sm     { padding: 7px 14px; }
.btn-header-login       { padding: 7px 16px; }
/* Karten-Knoepfe liefen von Kante zu Kante — jetzt beidseitig eingerueckt. */
.product-card .btn-block { width: calc(100% - 22px); margin-inline: auto; }
@media (max-width: 480px) {
  .product-card .btn-block { width: calc(100% - 14px); }
}
/* ═══ CR#1375/CR#1376 ═══ */
/* CR#1375: kompakter Karten-Knopf in einer Zeile mit dem Preis. */
.product-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}
.product-card .product-foot .product-price,.product-card .product-foot .product-card-price{margin-bottom:0}
.product-card .btn-compact{width:auto;flex:0 0 auto;padding:7px 16px;font-size:13px;line-height:1.6;border-radius:999px;white-space:nowrap}
@media (max-width:480px){.product-card .btn-compact{padding:6px 13px;font-size:12px}}
/* CR#1376: Slider zeigt das Bild in Originalgröße, mittig, ohne Verzerrung/Hochskalierung. */
.hero.hero-slider{min-height:0;height:auto;aspect-ratio:var(--slide-ar,16/9);max-height:var(--slide-maxh,none);background:#fff;margin-inline:auto}
.hero-slider .hero-slide,.hero-slider .hero-slide-img{object-fit:contain;object-position:center}
@media (max-width:768px){.hero.hero-slider{height:auto;max-height:var(--slide-maxh,none)}}
