/* =========================================================
   Kobezan — Premium RTL Design System
   ========================================================= */

/* ---------- Font-face ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --navy:         #0d47a1;
  --navy-dk:      #083080;
  --navy-lt:      #1565c0;
  --orange:       #e65100;
  --orange-hv:    #bf360c;
  --white:        #ffffff;
  --off-white:    #f5f7fa;
  --dark:         #1a1a2e;
  --text:         #4a4a6a;
  --muted:        #8a8aaa;
  --border:       #e2e8f0;
  --shadow-xs:    0 1px 4px rgba(13,71,161,.07);
  --shadow-sm:    0 2px 10px rgba(13,71,161,.10);
  --shadow-md:    0 6px 24px rgba(13,71,161,.13);
  --shadow-lg:    0 12px 48px rgba(13,71,161,.18);
  --radius:       14px;
  --radius-sm:    8px;
  --radius-xl:    24px;
  --transition:   .3s ease;
  --section-pad:  88px;
}

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

html {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-size: 16px;
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: var(--section-pad) 0;
}

.section-pad-sm {
  padding: 56px 0;
}

/* ---------- Section title ---------- */
.section-title {
  text-align: right;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.section-title .accent-line {
  width: 52px;
  height: 4px;
  background: var(--orange);
  border-radius: 4px;
  margin-top: 10px;
}

.section-title p {
  margin-top: 12px;
  color: var(--text);
  font-size: 15px;
  max-width: 540px;
}

.section-title.centered {
  text-align: center;
}

.section-title.centered .accent-line {
  margin: 10px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-orange:hover {
  background: var(--orange-hv);
  border-color: var(--orange-hv);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,81,0,.35);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dk);
  border-color: var(--navy-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,71,161,.35);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-ghost-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost-navy:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 14px;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 20px;
}

.site-logo {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-logo .logo-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.14);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-phone {
  font-size: 13.5px;
  color: rgba(255,255,255,.75);
  direction: ltr;
  display: none;
}

@media (min-width: 900px) {
  .header-phone { display: block; }
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 50%;
  color: #fff;
  transition: all var(--transition);
}
.cart-link:hover {
  background: var(--orange-hv);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(230,81,0,.4);
}

.cart-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #fff;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
  display: none;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 6px;
  color: #fff;
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,.12); }
.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all .25s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 70px 0 0;
  background: var(--navy-dk);
  z-index: 999;
  overflow-y: auto;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 14px 16px;
  color: rgba(255,255,255,.85);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  transition: all var(--transition);
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.mobile-menu .mobile-phone {
  margin-top: 16px;
  padding: 14px 16px;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  direction: ltr;
  text-align: right;
  border-top: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: clamp(480px, 88vh, 760px);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-slide.active { opacity: 1; }

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(10,20,50,.88) 0%,
    rgba(10,20,50,.55) 45%,
    rgba(10,20,50,.15) 75%,
    transparent 100%
  );
}

.hero-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 560px;
  text-align: right;
}

.hero-tag {
  display: inline-block;
  background: rgba(230,81,0,.85);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
  letter-spacing: .5px;
}

.hero-content h1 {
  font-size: clamp(26px, 4.5vw, 46px);
  font-weight: 900;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.hero-content p {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-controls {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active {
  background: var(--orange);
  width: 28px;
  border-radius: 5px;
}

/* ---------- PRODUCTS SECTION ---------- */
.products-section {
  background: var(--off-white);
}

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

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

@media (max-width: 520px) {
  .products-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card-cat {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy-lt);
  background: rgba(21,101,192,.1);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  align-self: flex-start;
}

.product-card-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.55;
}

.product-card-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  margin-top: auto;
  padding-top: 8px;
}
.product-card-price .unit {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  margin-right: 4px;
}

.product-card-footer {
  padding: 0 20px 20px;
}

.btn-add-cart {
  width: 100%;
  text-align: center;
}

/* ---------- SERVICES SECTION ---------- */
.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: right;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  background: var(--white);
}
.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

/* ---------- ABOUT SPLIT ---------- */
.about-section {
  overflow: hidden;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

@media (max-width: 768px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-img-col { order: -1; min-height: 280px; }
}

.about-text-col {
  background: var(--navy-dk);
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .about-text-col { padding: 48px 32px; }
}

.about-text-col .about-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.about-text-col h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 20px;
}

.about-text-col p {
  font-size: 15px;
  color: rgba(255,255,255,.78);
  line-height: 1.85;
  margin-bottom: 32px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.about-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}

.about-stat span {
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

.about-img-col {
  position: relative;
  overflow: hidden;
}

.about-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-section {
  background: var(--off-white);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform .5s ease;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  text-align: right;
  border-top: 3px solid var(--orange);
}

@media (max-width: 900px) {
  .testimonial-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 580px) {
  .testimonial-card { flex: 0 0 100%; }
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--orange);
}

.testimonial-quote {
  font-size: 15px;
  color: var(--text);
  font-style: italic;
  line-height: 1.85;
  margin-bottom: 20px;
  position: relative;
  padding-right: 20px;
}
.testimonial-quote::before {
  content: '"';
  position: absolute;
  right: 0;
  top: -8px;
  font-size: 48px;
  color: var(--orange);
  font-style: normal;
  line-height: 1;
  opacity: .35;
}

.testimonial-author strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark);
}
.testimonial-author span {
  font-size: 13px;
  color: var(--muted);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.slider-dot.active {
  background: var(--orange);
  width: 26px;
  border-radius: 5px;
}

/* ---------- TRUST BADGES ---------- */
.trust-section {
  background: var(--white);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  opacity: .75;
  transition: opacity var(--transition);
}
.trust-badge:hover { opacity: 1; }
.trust-badge svg { color: var(--navy); }
.trust-badge span { font-size: 12px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,.8);
}

.footer-top {
  padding: 72px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-brand .site-logo {
  margin-bottom: 18px;
  font-size: 20px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255,255,255,.6);
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.1);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before {
  content: '←';
  font-size: 12px;
  opacity: 0;
  transition: opacity var(--transition);
}
.footer-links a:hover {
  color: #fff;
  padding-right: 4px;
}
.footer-links a:hover::before { opacity: 1; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact-item .phone-val { direction: ltr; }

.footer-newsletter p {
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
  margin-bottom: 16px;
  line-height: 1.75;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  text-align: right;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { border-color: var(--orange); }

.newsletter-form button {
  width: 100%;
  padding: 12px;
  background: var(--orange);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: all var(--transition);
}
.newsletter-form button:hover {
  background: var(--orange-hv);
  transform: translateY(-1px);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255,255,255,.38);
}

/* ---------- FORMS ---------- */
.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 14.5px;
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-align: right;
}
.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,71,161,.1);
}
.form-control::placeholder { color: var(--muted); }

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

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

/* ---------- PAGE WRAPPER (stub pages) ---------- */
.page-hero {
  background: var(--navy);
  padding: 56px 0 44px;
  text-align: right;
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,.72);
}

.breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .4; font-size: 11px; }

/* ---------- CARDS (generic) ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

/* ---------- ALERTS ---------- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error   { background: #fce4ec; color: #c62828; border: 1px solid #f48fb1; }
.alert-info    { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* ---------- EMPTY STATE ---------- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.empty-state svg { margin: 0 auto 24px; opacity: .4; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; }

/* ---------- GALLERY GRID ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- BLOG CARDS ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-body {
  padding: 20px;
}
.blog-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.5;
}
.blog-card-body p {
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ---------- FAQ ACCORDION ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  background: var(--white);
  transition: background var(--transition);
}
.faq-q:hover { background: var(--off-white); }
.faq-q .faq-icon {
  width: 24px;
  height: 24px;
  background: var(--navy);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
  font-size: 16px;
  line-height: 1;
}
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 20px 20px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.85;
  background: var(--white);
}
.faq-item.open .faq-a { display: block; }

/* ---------- ACCOUNT / AUTH PAGES ---------- */
.auth-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--off-white);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.auth-card h1 {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 6px;
  text-align: center;
}
.auth-card p.sub {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo span {
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
}
.auth-logo span em {
  color: var(--orange);
  font-style: normal;
}
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
}
.auth-footer a { color: var(--navy); font-weight: 600; }
.auth-footer a:hover { color: var(--orange); }

/* ---------- CART / CHECKOUT ---------- */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th,
.cart-table td {
  text-align: right;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.cart-table th {
  font-weight: 700;
  color: var(--dark);
  background: var(--off-white);
}
.cart-table tr:last-child td { border-bottom: none; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 768px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.order-summary {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.order-summary h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-row.total {
  font-weight: 700;
  color: var(--dark);
  font-size: 16px;
  padding-top: 14px;
}

/* ---------- RESPONSIVE OVERRIDES ---------- */
@media (max-width: 390px) {
  .container { padding: 0 16px; }
  .btn { padding: 11px 20px; font-size: 14px; }
  .section-pad { padding: 56px 0; }
  .hero { height: 520px; }
  .hero-content h1 { font-size: 24px; }
}

/* ---------- SHOP FILTER BAR ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-chip {
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ---------- PRODUCT DETAIL ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
}
.product-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.product-detail-img img { width: 100%; }
.product-detail-info h1 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.45;
}
.product-detail-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 20px;
}
.product-detail-price .unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-right: 4px;
}
.product-detail-desc {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 28px;
}

/* ---------- QTY SELECTOR ---------- */
.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 20px;
}
.qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  background: var(--off-white);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--border); }
.qty-val {
  width: 48px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  border: none;
  outline: none;
  background: var(--white);
}

/* ---------- FORM LABEL utility ---------- */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 7px;
}

/* ---------- SCREEN-READER ONLY ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- PRODUCT FEATURES LIST ---------- */
.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.product-features li svg {
  flex-shrink: 0;
  color: var(--orange);
}

/* ---------- PRODUCT DETAIL NAME ---------- */
.product-detail-name {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.45;
}

/* ---------- PRODUCT ADD FORM ---------- */
.product-add-form {
  margin-top: 8px;
}

/* ---------- PRODUCT PHOTO GALLERY ---------- */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1;
  background: var(--off-white);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s ease;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
}

.gallery-thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2.5px solid var(--border);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color var(--transition);
  background: none;
}
.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--orange);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- CART PAGE HELPERS ---------- */
.cart-main {
  min-width: 0;
}

.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cart-product-cell img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.cart-product-cell a {
  font-weight: 600;
  color: var(--dark);
  font-size: 14px;
  line-height: 1.5;
}
.cart-product-cell a:hover { color: var(--orange); }

.cart-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ---------- SUMMARY ROW TOTAL VARIANT ---------- */
.summary-row.summary-total {
  font-weight: 700;
  color: var(--dark);
  font-size: 16px;
  padding-top: 14px;
  border-bottom: none;
}

/* ---------- ORDER STATUS BADGES ---------- */
.order-status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--off-white);
  color: var(--text);
}
.status-pending    { background: #fff8e1; color: #f57f17; }
.status-processing { background: #e3f2fd; color: #1565c0; }
.status-shipped    { background: #e8f5e9; color: #2e7d32; }
.status-delivered  { background: #e8f5e9; color: #1b5e20; }
.status-cancelled  { background: #fce4ec; color: #c62828; }
