:root {
  --black: #000000;
  --black-dark: #111111;
  --accent: #6b1212;
  --accent-light: #8a1a1a;
  --cream: #fafafa;
  --white: #ffffff;
  --gray: #777777;
  --gray-light: #f5f5f5;
  --title: #242424;
  --red: #6b1212;
  --sale: #142046;
  --btn: #000000;
  --footer-bg: #000000;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  --radius: 0;
  --font: "Vazirmatn", Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: #111;
  direction: rtl;
  line-height: 1.7;
}

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

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

.container { width: min(1200px, 92%); margin: 0 auto; }

/* Top bar */
.top-bar {
  background: var(--black-dark);
  color: var(--white);
  font-size: 0.82rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.top-links { display: flex; gap: 20px; flex-wrap: wrap; }

.top-bar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-tool,
.top-bar-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  padding: 0;
  margin: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0;
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent !important;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.top-bar-cart {
  font-size: 0.92rem;
  gap: 10px;
}

.top-bar-tool:hover,
.top-bar-cart:hover,
.top-bar-tool:focus,
.top-bar-cart:focus,
.top-bar-tool:focus-visible,
.top-bar-cart:focus-visible {
  opacity: 0.85;
  color: var(--white);
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.top-bar-tool__icon,
.top-bar-cart__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0;
  background: transparent !important;
}

.top-bar-tool__icon svg,
.top-bar-cart__icon svg {
  display: block;
  border: none;
}

.top-bar-tool__icon .aj-svg-search,
.top-bar-tool__icon .aj-svg-user {
  width: 24px;
  height: 24px;
}

.top-bar-cart__icon .aj-svg-cart {
  display: block;
  width: 26px;
  height: 26px;
}

.top-bar-cart__badge {
  position: absolute;
  top: -2px;
  left: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  border: 2px solid var(--black-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.top-bar-cart__text {
  letter-spacing: 0.02em;
}

.top-links a:hover { color: var(--accent); }

.top-bar-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.top-bar-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.top-bar-logo__en {
  font-family: "Playfair Display", "Didot", "Bodoni MT", Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1.2;
  white-space: nowrap;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
}

.header-main--logo-only {
  display: flex;
  justify-content: center;
  padding: 20px 0 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
}

.header-actions.right { justify-content: flex-end; }

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  cursor: pointer;
  transition: 0.2s;
}

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

.badge-count {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  display: grid;
  place-items: center;
}

.logo {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.logo img,
.logo__img {
  height: 88px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.logo-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--title);
  letter-spacing: 0.5px;
}

.logo-sub { font-size: 0.72rem; color: var(--gray); }

/* Navigation */
.main-nav {
  border-top: 1px solid #f0f0f0;
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--black);
  padding: 8px 0;
}

.nav-link:hover { color: var(--accent); }

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
  z-index: 50;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.dropdown a:hover { background: var(--cream); color: var(--black); }

.menu-toggle { display: none; }

/* Hero slider */
.hero {
  padding: 24px 0;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: min(420px, 55vw);
  background: var(--cream);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s;
}

.hero-slide.active { opacity: 1; z-index: 1; pointer-events: auto; }

.hero-content {
  background: var(--cream);
  padding: 48px 56px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--black);
  margin-bottom: 8px;
}

.hero-content .en {
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--gray);
  margin-bottom: 16px;
}

.hero-image {
  display: block;
  background: var(--cream);
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  min-height: 0;
}

.hero-image__banner {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-image img:not(.hero-image__banner) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 24px;
  background: var(--btn);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  width: fit-content;
}

.hero-btn:hover { background: var(--accent); color: var(--white); }

.hero-slider--image-only .hero-slide { grid-template-columns: 1fr; }
.hero-slider--image-only .hero-content { display: none; }

.hero-slider-controls,
.slider-btn {
  display: none !important;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.slider-dot.active { background: var(--accent); }

/* Section titles */
.section-head {
  text-align: center;
  margin: 48px 0 28px;
}

.section-head h2 {
  font-size: 1.5rem;
  color: var(--black);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Category cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.category-grid--all {
  grid-template-columns: repeat(5, 1fr);
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--black);
  border: 2px solid var(--cat-border, var(--accent));
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.85;
}

.category-card .label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(transparent, var(--cat-overlay, rgba(0,0,0,0.65)));
  color: var(--cat-title, var(--white));
  text-align: center;
}

.category-card .label .en {
  font-size: 0.75rem;
  letter-spacing: 2px;
  opacity: 0.85;
  color: var(--cat-en, var(--white));
}

.category-card .label h3 {
  font-size: var(--cat-title-size, 1.2rem);
  margin-top: 4px;
  color: var(--cat-title, var(--white));
}

.aj-home-cats .section-head h2 { color: var(--cat-heading, var(--title)); }

/* Homepage category cards — luxury style (navy panel, gold frame, serif English title) */.aj-home-cats .category-grid--all {
  grid-template-columns: repeat(var(--cat-cols, 3), 1fr);
  gap: 20px;
}

.category-card--lux {
  background: var(--cat-bg, #142046);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(10, 16, 40, 0.18);
  isolation: isolate;
}

.category-card--lux img {
  position: absolute;
  inset: 0;
  opacity: 1;
  object-position: 70% top;
  transition: transform 0.6s ease;
  z-index: 0;
}

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

.category-card--lux::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--cat-border, #b8925f);
  pointer-events: none;
  z-index: 3;
}

.category-card--lux .label {
  z-index: 1;
  direction: ltr;
  align-items: flex-start;
  justify-content: center;
  padding: 0 0 0 11%;
  text-align: left;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--cat-bg, #142046) var(--cat-shade, 92%), transparent) 0%,
    color-mix(in srgb, var(--cat-bg, #142046) var(--cat-shade-mid, 60%), transparent) 42%,
    transparent 78%
  );
}

.category-card--lux .label .en {
  max-width: 62%;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.3vw, 2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--cat-en, #d6b98c);
  opacity: 1;
}

.category-card--lux .label h3 {
  direction: rtl;
  margin-top: 10px;
  font-size: var(--cat-title-size, 1.05rem);
  font-weight: 500;
  color: var(--cat-title, #ffffff);
}

.category-card__line {
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 16px;
  background: var(--cat-border, #b8925f);
}

.category-card__brand {
  position: absolute;
  left: 11%;
  bottom: 13%;
  z-index: 2;
  direction: ltr;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
  .aj-home-cats .category-grid--all { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .aj-home-cats .category-grid--all { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card--lux::after { inset: 6px; }
  .category-card--lux .label { padding-left: 10%; }
  .category-card--lux .label .en { max-width: 70%; font-size: 1rem; }
  .category-card--lux .label h3 { font-size: 0.85rem; margin-top: 6px; }
  .category-card__line { margin-top: 8px; width: 20px; }
  .category-card__brand { font-size: 0.5rem; letter-spacing: 1px; bottom: 11%; }
}

.category-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

.category-sidebar {
  position: sticky;
  top: 140px;
  border: 1px solid #eee;
  padding: 20px 16px;
  background: var(--white);
}

.category-sidebar h3 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--black);
}

.category-nav,
.category-subnav {
  list-style: none;
}

.category-nav > li > a,
.category-subnav a {
  display: block;
  padding: 10px 8px;
  font-size: 0.88rem;
  color: var(--gray);
  border-bottom: 1px solid #f0f0f0;
  transition: 0.2s;
}

.category-nav > li > a:hover,
.category-subnav a:hover,
.category-nav a.active,
.category-subnav a.active {
  color: var(--black);
  font-weight: 700;
  padding-right: 12px;
  border-right: 3px solid var(--accent);
}

.category-subnav {
  margin: 0 0 8px;
  padding-right: 12px;
}

.category-subnav a {
  font-size: 0.82rem;
  padding: 8px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.category-pills .pill {
  padding: 8px 16px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  transition: 0.2s;
}

.category-pills .pill.active,
.category-pills .pill:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.category-count {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.mobile-menu .submenu-title {
  padding: 12px 0 4px;
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 400;
}

.mobile-menu .submenu-item a {
  padding-right: 16px;
  font-size: 0.92rem;
  font-weight: 500;
}

/* Product sections */
.product-section { margin-bottom: 48px; }

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title-row__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.section-sale-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gray);
  width: 100%;
}

.product-section--sale .section-title-row__main h3 {
  width: 100%;
}

/* Flash sale block — 360store-style panel + brand logo */
.product-section--sale {
  margin-bottom: 56px;
}

.sale-flash-panel {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: var(--sale);
  background: linear-gradient(135deg, color-mix(in srgb, var(--sale) 82%, white) 0%, var(--sale) 50%, color-mix(in srgb, var(--sale) 60%, black) 100%);
  border-radius: 16px;
  padding: 14px 12px;
  box-shadow: 0 6px 20px rgba(11, 20, 48, 0.3);
}

.sale-flash-panel__head {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 4px;
  text-align: center;
}

.sale-flash-panel__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sale-flash-panel__logo {
  display: block;
  width: 110px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.sale-flash-panel__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--white);
  font-weight: 800;
}

.sale-flash-panel__timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sale-flash-panel__timer .section-sale-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
}

.sale-flash-panel .sale-flash-panel__more {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
}

.sale-flash-panel .sale-flash-panel__more:hover {
  background: var(--white);
  color: var(--sale);
  text-decoration: none;
}

.product-section--sale .product-carousel {
  flex: 1 1 auto;
  min-width: 0;
}

.product-section--sale .product-track {
  gap: 8px;
  padding: 0;
}

.product-section--sale .carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: 0;
  transform: translateY(-50%);
  justify-content: space-between;
  pointer-events: none;
}

.product-section--sale .carousel-nav button {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 1.2rem;
  margin: 0 4px;
}

.sale-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}

.sale-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 6px 8px;
  background: var(--black);
  color: var(--white);
  border-radius: 4px;
}

.sale-countdown--compact .sale-countdown__unit {
  min-width: 40px;
  padding: 4px 6px;
}

.sale-countdown__value {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.sale-countdown--compact .sale-countdown__value {
  font-size: 0.95rem;
}

.sale-countdown__label {
  font-size: 0.65rem;
  opacity: 0.85;
  direction: rtl;
}

.sale-countdown__sep {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.sale-countdown--flash {
  gap: 3px;
}

.sale-countdown--flash .sale-countdown__unit {
  background: var(--white);
  color: var(--black);
  min-width: 34px;
  padding: 3px 2px;
  border-radius: 6px;
}

.sale-countdown--flash .sale-countdown__value {
  color: var(--black);
  font-size: 1rem;
}

.sale-countdown--flash .sale-countdown__label {
  color: var(--gray);
  font-size: 0.58rem;
}

.sale-countdown--flash .sale-countdown__sep {
  color: var(--white);
  font-size: 1rem;
}

.product-section--sale .product-card {
  flex: 0 0 172px;
  border: none;
  border-radius: 10px;
  background: var(--white);
}

.product-section--sale .product-card:hover {
  transform: none;
}

.product-section--sale .product-info {
  padding: 10px;
}

.product-section--sale .product-info h4 {
  font-size: 0.8rem;
}

.product-section--sale .price-current {
  font-size: 0.85rem;
}

.product-section--sale .product-badge {
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  padding: 2px 8px;
}


.footer-brand {
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-logo img {
  height: 90px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.footer-logo__en {
  display: block;
  margin-top: 6px;
  font-family: "Playfair Display", "Didot", "Bodoni MT", Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--white);
}

.footer-enamad-title {
  margin-top: 20px;
}

.footer-enamad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 110px;
  padding: 8px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.footer-grid .footer-enamad a {
  opacity: 1;
}

.footer-enamad img {
  display: block;
  width: 96px;
  height: auto;
}

.footer-social {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  opacity: 1;
  transition: 0.2s;
}

.footer-grid .footer-social a:hover {
  background: var(--white);
  color: var(--black);
}

.section-title-row--legacy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream);
}

.section-title-row h3 {
  font-size: 1.15rem;
  color: var(--black);
}

.view-more {
  color: var(--sale);
  font-weight: 600;
  font-size: 0.9rem;
}

.view-more:hover { text-decoration: underline; }

.product-carousel {
  position: relative;
}

.product-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 12px;
}

.product-track::-webkit-scrollbar { display: none; }

.product-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  transition: 0.2s;
  position: relative;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 1;
}

.product-badge.out { background: var(--gray); }

.product-image {
  display: block;
  aspect-ratio: 2 / 3;
  background: #f3f1ec;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.product-info { padding: 14px; }

.product-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.5;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-current {
  font-weight: 800;
  color: var(--black);
  font-size: 0.95rem;
}

.price-old {
  font-size: 0.8rem;
  color: var(--gray);
  text-decoration: line-through;
}

.price-tax {
  font-size: 0.72rem;
  color: var(--gray);
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-sm {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--black);
  background: var(--white);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.78rem;
  cursor: pointer;
  transition: 0.2s;
}

.btn-sm.primary {
  background: var(--btn);
  color: var(--white);
  border-color: var(--btn);
}

.btn-sm:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }

.carousel-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.carousel-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

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

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  margin-top: 60px;
  padding: 48px 0 24px;
}

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

.footer-grid h3 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
  color: var(--white);
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.9;
}

.footer-grid ul { list-style: none; }

.footer-grid a:hover {
  color: var(--white);
  opacity: 1;
}

.footer-brand h3 {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* Floating sidebar */
.float-sidebar {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-btn {
  writing-mode: vertical-rl;
  padding: 12px 8px;
  background: var(--black);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.78rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.float-btn:hover { background: var(--accent); color: var(--black); }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}

.search-overlay.open { display: grid; }

.search-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  width: min(600px, 100%);
}

.search-box input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 1rem;
}

.search-box input:focus { outline: none; border-color: var(--accent); }

.search-results { margin-top: 16px; max-height: 300px; overflow-y: auto; }

.search-result-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.search-result-item:hover { background: var(--cream); }

/* Page layouts */
.page-hero {
  background: linear-gradient(135deg, var(--black), var(--black-dark));
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 { font-size: 1.8rem; margin-bottom: 8px; }

.page-content { padding: 40px 0 60px; }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-gallery {
  background: var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.product-gallery img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }

.product-meta h1 { font-size: 1.4rem; color: var(--black); margin-bottom: 16px; }

.product-meta .price-block { margin: 20px 0; }

.product-meta .price-block .price-current { font-size: 1.5rem; }

.product-desc {
  background: var(--cream);
  padding: 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 2;
  margin: 20px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary { background: var(--btn); color: var(--white); }
.btn-primary:hover { background: var(--accent); color: var(--black); }
.btn-outline { background: transparent; border: 2px solid var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* Cart & forms */
.cart-table, .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.cart-table th, .cart-table td,
.data-table th, .data-table td {
  padding: 14px;
  border-bottom: 1px solid #eee;
  text-align: right;
}

.cart-item { display: flex; align-items: center; gap: 12px; }

.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--black);
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.empty-state h3 { margin-bottom: 12px; color: var(--black); }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 999px;
  z-index: 300;
  transition: 0.3s;
  font-size: 0.9rem;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 150;
  padding: 24px;
  transform: translateX(100%);
  transition: 0.3s;
  overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-menu ul { list-style: none; margin-top: 48px; }

.mobile-menu li { border-bottom: 1px solid #eee; }

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-weight: 600;
  color: var(--black);
}

@media (max-width: 900px) {
  .header-main { grid-template-columns: 1fr auto; }
  .header-actions.right { display: none; }
  .nav-menu { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .hero { padding: 12px 0; }

  .hero-slider {
    height: auto;
    display: grid;
  }

  .hero-slide {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
  }

  .hero-image {
    order: -1;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .hero-content {
    padding: 16px 18px 40px;
    text-align: center;
    align-items: center;
  }

  .hero-content h2 { font-size: 1.25rem; margin-bottom: 4px; }
  .hero-content .en { margin-bottom: 6px; font-size: 0.75rem; }
  .hero-content p { font-size: 0.88rem; }
  .hero-btn { margin-top: 12px; padding: 10px 20px; font-size: 0.88rem; }

  .slider-dots { bottom: 12px; }
  .slider-dot { background: rgba(0, 0, 0, 0.2); }
  .slider-dot.active { background: var(--accent); }

  .top-bar-logo img { height: 56px; }
  .top-bar-logo__en { font-size: 0.85rem; letter-spacing: 0.5px; }

  .product-section--sale { margin-bottom: 36px; }

  .sale-flash-panel {
    flex-direction: column;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 12px;
  }

  .sale-flash-panel__head {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px;
  }

  .sale-flash-panel__brand { flex-direction: row; }

  .sale-flash-panel__logo {
    width: 64px;
    max-height: 44px;
  }

  .top-bar-logo { order: -1; }

  .sale-flash-panel__title { font-size: 1rem; }

  .sale-flash-panel__timer .section-sale-note { display: none; }

  .sale-flash-panel .sale-flash-panel__more {
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  .product-section--sale .product-card { flex-basis: 148px; }
  .product-section--sale .carousel-nav { display: none; }

  .product-card { flex-basis: 170px; }

  .hero-slider-controls {
    width: 100%;
    top: auto;
    bottom: 48px;
    height: 44px;
    left: 0;
  }
  .hero-slider-controls .slider-btn {
    top: 0;
    transform: none;
  }
  .hero-slider-controls .slider-btn.prev {
    left: 16px;
    right: auto;
  }
  .hero-slider-controls .slider-btn.next {
    right: 16px;
    left: auto;
  }
  .top-bar-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .top-bar-tools {
    justify-content: center;
    margin-top: 8px;
    width: 100%;
  }

  .top-bar-tool__text,
  .top-bar-cart__text {
    display: none;
  }
  .category-grid,
  .category-grid--all { grid-template-columns: repeat(2, 1fr); }
  .category-layout { grid-template-columns: 1fr; }
  .category-sidebar { position: static; margin-bottom: 20px; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .float-sidebar { display: none; }
}

/* Product shipping info */
.aj-ship-info {
  list-style: none;
  margin: 12px 0 16px;
  padding: 12px 16px;
  border: 1px solid #e6e8f0;
  border-right: 4px solid var(--sale);
  border-radius: 10px;
  background: #f7f8fc;
  font-size: 0.9rem;
}

.aj-ship-info li { padding: 2px 0; }

.aj-ship-info__free {
  color: #1d7a3a;
  font-weight: 700;
}

/* Contact page */
.aj-contact__intro { margin-bottom: 24px; color: var(--gray); }

.aj-contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.aj-contact__card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--sale);
}

.aj-contact__label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 6px;
}

.aj-contact__value {
  font-weight: 700;
  color: var(--black);
  line-height: 1.9;
}

.aj-contact__value a:hover { color: var(--sale); }

.aj-contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.aj-contact__social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sale);
  color: var(--white);
  font-weight: 600;
  transition: 0.2s;
}

.aj-contact__social-link:hover { opacity: 0.88; color: var(--white); }

.aj-contact__map {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
}

.aj-contact__map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.aj-contact__empty {
  padding: 20px;
  background: var(--gray-light);
  border-radius: 12px;
  color: var(--gray);
}

/* WooCommerce inside store layout */
.aj-shop-main-wrap ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.aj-shop-main-wrap ul.products::before,
.aj-shop-main-wrap ul.products::after {
  display: none;
}

.aj-store-empty {
  padding: 24px;
  color: var(--gray);
  text-align: center;
}
