/* ══════════════════════════════════════════════
   LDRC Components CSS — Navbar, Footer, Cards
══════════════════════════════════════════════ */

/* ── Navbar ── */
/* Apple Gadgets style header */
.ag-header,
#ldrc-navbar.ag-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  transform: translateZ(0);
  backface-visibility: hidden;
  padding: 0 !important;
  background: #000000 !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.ag-header__top {
  background: #000000;
  padding: 0.65rem 0;
}

.ag-header__top-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ag-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.ag-header__logo .logo-icon {
  height: 40px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 6px;
}

.ag-header__brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ag-header__brand-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-header__brand-tag {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-header__search {
  flex: 1 1 320px;
  min-width: min(100%, 220px);
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #2a2a2a;
  border-radius: 999px;
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  min-height: 2.75rem;
}

.ag-header__search-icon {
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  flex-shrink: 0;
}

.ag-header__search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.4;
  outline: none;
}

.ag-header__search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.ag-header__search-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: #f37335;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.ag-header__utils {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.ag-header__util-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ag-header__util-link:hover {
  color: #f37335;
}

.ag-header__util-link--accent {
  color: #f37335;
  font-weight: 600;
}

.ag-header__util-link--accent:hover {
  color: #ff8f4d;
}

.ag-header__icon-btn {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
}

.ag-header__icon-btn.dropdown-toggle::after {
  display: none;
}

.ag-header__badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #f37335;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
}

.ag-header__menu-btn {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ag-header__cats {
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  position: relative;
  z-index: 1040;
}

.ag-header__cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
}

@media (min-width: 992px) {
  .ag-header__cat-list {
    overflow: visible;
    flex-wrap: wrap;
  }
}

.ag-header__cat-list::-webkit-scrollbar {
  display: none;
}

.ag-header__cat-item {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}

.ag-header__cat-item--has-sub {
  position: relative;
}

.ag-header__cat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.72rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  background: transparent;
}

.ag-header__cat-link--has-sub {
  padding-right: 0.65rem;
}

.ag-header__cat-chevron {
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ag-header__cat-item--has-sub:hover .ag-header__cat-chevron,
.ag-header__cat-item--has-sub:focus-within .ag-header__cat-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.ag-header__cat-link:hover,
.ag-header__cat-link.is-active {
  color: #f37335;
}

.ag-header__cat-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 13rem;
  max-width: min(18rem, 90vw);
  margin: 0;
  padding: 0.4rem 0;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1060;
  pointer-events: none;
}

.ag-header__cat-item--has-sub:hover .ag-header__cat-submenu,
.ag-header__cat-item--has-sub:focus-within .ag-header__cat-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.ag-header__cat-submenu-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  line-height: 1.35;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ag-header__cat-submenu-link:hover,
.ag-header__cat-submenu-link.is-active {
  background: #fff8f3;
  color: #f37335;
}

.ag-header__cat-submenu-link--all {
  font-weight: 700;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0.2rem;
  padding-bottom: 0.6rem;
}

[data-theme="dark"] .ag-header__cats {
  background: var(--color-surface);
  border-bottom-color: var(--color-border);
}

[data-theme="dark"] .ag-header__cat-link {
  color: var(--text-primary);
}

[data-theme="dark"] .ag-header__cat-submenu {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
}

[data-theme="dark"] .ag-header__cat-submenu-link {
  color: var(--text-secondary);
}

[data-theme="dark"] .ag-header__cat-submenu-link--all {
  border-bottom-color: var(--color-border);
}

[data-theme="dark"] .ag-header__cat-submenu-link:hover,
[data-theme="dark"] .ag-header__cat-submenu-link.is-active {
  background: var(--color-surface-2);
  color: #f37335;
}

.ag-header__account-menu {
  border-radius: 10px;
  border: 1px solid #ececec;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ag-header__mobile {
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ag-header__mobile-inner {
  padding: 0.85rem 1rem 1rem;
}

.ag-header__search--mobile {
  max-width: none;
  margin: 0 0 0.85rem;
}

.ag-header__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ag-header__mobile-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.35rem 0;
}

.ag-header__mobile-theme {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 0.88rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 0.35rem;
  cursor: pointer;
}

.ag-header__mobile-theme:hover {
  border-color: #f37335;
  color: #f37335;
}

.ag-header__mobile-cats {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 991.98px) {
  .ag-header__search:not(.ag-header__search--bar) {
    display: none;
  }

  .ag-header__search-row {
    display: block;
    padding-bottom: 0.65rem;
    background: #000000;
  }

  .ag-header__search--bar {
    max-width: none;
    margin: 0;
    width: 100%;
    min-height: 2.85rem;
  }

  .ag-header__search-row .ldrc-container {
    width: 100%;
  }

  .ag-header__brand-tag {
    display: none;
  }

  .ag-header__top {
    padding-top: calc(env(safe-area-inset-top, 0px) + 0.55rem);
    padding-bottom: 0.55rem;
  }

  .ag-header__top-inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .ag-header__utils {
    gap: 0.45rem;
  }
}

@media (min-width: 992px) {
  .ag-header__search-row {
    display: none !important;
  }

  .ag-header__top-inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(300px, 1fr) auto;
    gap: 1rem 1.25rem;
    align-items: center;
  }

  .ag-header__search {
    margin: 0;
    max-width: none;
    width: 100%;
  }
}

@media (min-width: 992px) and (max-width: 1299.98px) {
  .ag-header__brand-tag {
    display: none;
  }

  .ag-header__util-link--accent .ag-header__util-text,
  .ag-header__util-link--compare .ag-header__util-text {
    display: none;
  }

  .ag-header__utils {
    gap: 0.55rem;
  }
}

.ag-header__cats-mobile {
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  padding: 0.5rem 0;
}

.ag-header__cats-mobile-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 16px;
}

@media (min-width: 576px) {
  .ag-header__cats-mobile-scroll {
    padding: 0 24px;
  }
}

.ag-header__cats-mobile-scroll::-webkit-scrollbar {
  display: none;
}

.ag-header__cat-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  color: #333333;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ag-header__cat-chip.is-active,
.ag-header__cat-chip:hover {
  border-color: #f37335;
  color: #f37335;
  background: #fff8f3;
}

.ag-header__mobile-cats-title {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ag-header__mobile-cat-link {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0;
}

.ag-header__mobile-subcat-link {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.25rem 0 0.25rem 0.85rem;
}

.ag-header__mobile-inner {
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
  .ag-header__brand-name {
    font-size: 0.82rem;
    max-width: 5.5rem;
  }

  .ag-header__util-text {
    display: none;
  }

  .ag-header__icon-btn,
  .ag-header__menu-btn {
    width: 2.1rem;
    height: 2.1rem;
  }

  .ag-header__logo .logo-icon {
    height: 34px !important;
    max-width: 90px !important;
  }
}

/* Legacy navbar (fallback) — skip when Apple Gadgets header is active */
#ldrc-navbar:not(.ag-header),
.ldrc-navbar:not(.ag-header) {
  --bs-navbar-padding-y: 0;
  --bs-navbar-padding-x: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1050;
  /* compositor layer reduces subpixel jump when the mobile URL bar resizes */
  transform: translateZ(0);
  backface-visibility: hidden;
  /* Notch + air so the bar is not flush to the top when sticky (esp. mobile) */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: 0.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 991.98px) {
  nav#ldrc-navbar.ldrc-navbar.navbar:not(.ag-header),
  #ldrc-navbar:not(.ag-header),
  .ldrc-navbar:not(.ag-header) {
    padding-top: calc(env(safe-area-inset-top, 0px) + 16px) !important;
    padding-bottom: 0.75rem !important;
  }

  #ldrc-navbar:not(.ag-header) > .ldrc-container {
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

.ldrc-navbar .navbar-brand {
  font-family: var(--font-serif);
  color: var(--gold);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.ldrc-navbar .nav-link {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  transition: color 0.3s ease;
  padding: 12px 20px !important;
  position: relative;
}

.ldrc-navbar .nav-link:hover {
  color: var(--text-primary);
}

.ldrc-navbar .nav-link.active {
  color: var(--gold);
  font-weight: 600;
}

.ldrc-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.ldrc-navbar .navbar-toggler {
  border-color: var(--color-border);
  padding: 6px 10px;
}

.ldrc-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(99,102,241,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile nav */
@media (max-width: 991.98px) {
  .ldrc-navbar .navbar-collapse {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 16px 0;
    margin-top: 8px;
    border-radius: 0 0 12px 12px;
  }

  .ldrc-navbar .nav-link.active::after {
    display: none;
  }
}

/* ── Footer ── */
.ldrc-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-top: 64px;
  padding-bottom: 32px;
}

@media (max-width: 767.98px) {
  .ldrc-footer {
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .ldrc-footer .row.g-4 {
    --bs-gutter-y: 1.5rem;
  }

  .ldrc-footer [style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left;
    gap: 1rem !important;
  }

  .ldrc-footer [style*="justify-content:space-between"] > div {
    flex-wrap: wrap;
    gap: 12px !important;
  }
}

@media (max-width: 575.98px) {
  .ldrc-footer {
    padding-top: 40px;
    padding-bottom: 24px;
  }
}

.ldrc-footer h5 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
}

.ldrc-footer a {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 3px 0;
}

.ldrc-footer a:hover {
  color: var(--gold);
}

.ldrc-footer .footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  margin-top: 40px;
}

.ldrc-footer .footer-bottom p,
.ldrc-footer .footer-bottom a {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Logo icon ── */
.logo-icon {
  width: auto;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.ldrc-navbar .logo-icon {
  max-height: 56px;
  max-width: min(280px, 55vw);
  border-radius: 10px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .ldrc-navbar .logo-icon {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .ldrc-navbar .logo-icon {
  background: rgba(255, 255, 255, 0.96);
}

/* ── Page Hero ── */
.page-hero {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
}

.breadcrumb-custom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-custom a:hover {
  color: var(--gold);
}

.breadcrumb-custom .sep {
  color: var(--gold);
  opacity: 0.5;
}

.breadcrumb-custom .current {
  color: var(--gold);
}

.page-hero .breadcrumb-custom {
  justify-content: center;
  margin-bottom: 16px;
}

.page-hero .hero-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 62px);
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-hero h1 em {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 600;
}

.page-hero .hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 20px auto 0;
  line-height: 1.75;
}

/* ── Research Card ── */
.research-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.research-card:hover {
  border-left-color: var(--gold);
  box-shadow: 0 8px 32px rgba(201, 169, 97, 0.12);
  transform: translateY(-4px);
}

.research-card .card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.research-card .card-body {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.research-card .card-tag {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.research-card .card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-card:hover .card-title {
  color: var(--gold-light);
}

.research-card .card-text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── Publication Card ── */
.pub-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--card-padding);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pub-card:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ── Blog Card ── */
.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-left-color: var(--gold);
  box-shadow: 0 8px 32px rgba(201, 169, 97, 0.12);
  transform: translateY(-4px);
}

.blog-card .blog-img {
  height: 190px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease;
}

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

/* ── Stats bar ── */
.stats-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-bar .stat-item {
  text-align: center;
  padding: 32px 40px;
}

.stats-bar .stat-value {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
}

.stats-bar .stat-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 8px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
  align-self: center;
}

/* ── Subscribe section ── */
.subscribe-section {
  background: var(--color-bg);
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

.subscribe-section input[type="email"] {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--color-border);
  outline: none;
  padding: 10px 4px;
  width: 280px;
  transition: border-color 0.3s ease;
}

.subscribe-section input[type="email"]:focus {
  border-bottom-color: var(--gold);
}

/* ── Pagination ── */
.ldrc-pagination .page-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ldrc-pagination .page-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.ldrc-pagination .page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--color-bg);
  font-weight: 700;
}

/* ── Podcast row ── */
.podcast-row {
  border-left: 3px solid transparent;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.podcast-row:hover {
  border-left-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.12);
}

.podcast-row:nth-child(even) {
  background: var(--color-surface-2);
}

.podcast-row:nth-child(odd) {
  background: var(--color-surface);
}

/* ── Tab navigation ── */
.ldrc-tabs {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 73px;
  z-index: 40;
}

.ldrc-tabs .tab-btn {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 18px 28px;
  position: relative;
  transition: color 0.25s ease;
  text-transform: uppercase;
}

.ldrc-tabs .tab-btn:hover {
  color: var(--text-primary);
}

.ldrc-tabs .tab-btn.active {
  color: var(--gold);
  font-weight: 600;
}

.ldrc-tabs .tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
}

/* ── Sticky filter bar ── */
.filter-bar {
  position: sticky;
  top: 73px;
  z-index: 40;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
}

/* ── Detail page hero ── */
.detail-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 100px 0 60px;
}

/* ── Related cards grid ── */
.related-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  text-decoration: none;
  display: block;
}

.related-card:hover {
  border-left-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201, 169, 97, 0.12);
}

/* ── Author avatar ── */
.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-surface), #1a2c50);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  color: var(--gold);
}

/* ── Excerpt block ── */
.article-excerpt {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 24px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Buttons ── */
.btn-ldrc-primary {
  background: var(--btn-gradient);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: 30px;
  padding: 10px 24px;
  border: 1px solid rgba(228, 210, 167, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ldrc-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  color: #fff;
}

.btn-ldrc-outline {
  background: transparent;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: 30px;
  padding: 8px 20px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-ldrc-outline:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-gold-gradient {
  background: var(--btn-gradient);
  color: var(--color-bg);
  border: none;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gold-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gold-outline:hover {
  background: rgba(201, 168, 76, 0.1);
}

/* ══ Scroll to top (template/js/site-shell.js) ══ */
.ldrc-scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ldrc-scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .ldrc-scroll-top-btn {
    transition: none;
  }
}

/* ══ Shop listing (E-commerce) ══ */
.shop-section {
  background-color: var(--color-bg);
  color: var(--text-primary);
}

/* Nested on PDP: reuse shop card rules without a second full-width band */
.shop-section--embed {
  background: transparent;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Tighter top under the global page hero; comfortable bottom */
.shop-page {
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.ldrc-shop-ajax.is-loading {
  transition: opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .ldrc-shop-ajax.is-loading {
    transition: none;
  }
}

.shop-async-skeleton {
  margin: 0 0 1rem;
}

.col-lg-8.col-xl-9.is-loading-products {
  position: relative;
}

.col-lg-8.col-xl-9.is-loading-products .product-grid {
  visibility: hidden;
}

.col-lg-8.col-xl-9.is-loading-products .shop-pagination-wrap {
  pointer-events: none;
}

.shop-async-skeleton-overlay {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
}

.product-grid.shop-grid-skeleton .skeleton-product-card {
  border-radius: 12px;
  min-height: var(--shop-skeleton-card-h, 100%);
}

.product-grid.shop-grid-skeleton .skeleton-product-card__media {
  height: var(--shop-skeleton-media-h, 0);
  padding-top: var(--shop-skeleton-media-pt, 90%);
}

.product-grid.shop-grid-skeleton .skeleton-product-card__body {
  padding: 0.5rem 0.5rem 0.55rem;
  min-height: 78px;
}

@media (min-width: 576px) {
  .product-grid.shop-grid-skeleton .skeleton-product-card__body {
    padding: 0.55rem 0.65rem 0.65rem;
  }
}

.shop-toolbar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.125rem;
}

.shop-results-label {
  color: var(--text-muted) !important;
}

.shop-sort-form {
  min-width: min(100%, 12.5rem);
}

.shop-sort-select {
  background-color: var(--color-bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--color-border) !important;
  font-size: 0.875rem;
  border-radius: 8px;
  cursor: pointer;
}

.shop-chip {
  color: var(--text-primary) !important;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  max-width: 100%;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.shop-chip:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--gold);
  color: var(--text-primary) !important;
}

.shop-sidebar {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border) !important;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .shop-sidebar {
    position: static;
  }
}

.shop-sidebar__toggle {
  border: 0;
  border-radius: 0;
  background: var(--color-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.9rem 1.25rem;
  text-align: left;
}

.shop-sidebar__toggle:hover {
  background: var(--color-surface-2);
}

.shop-sidebar__toggle[aria-expanded='true'] .shop-sidebar__toggle-chev {
  transform: rotate(180deg);
}

.shop-sidebar__toggle-chev {
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

@media (min-width: 992px) {
  .shop-sidebar__toggle {
    display: none !important;
  }
}

.shop-sidebar__title {
  color: var(--gold);
  font-family: var(--font-serif);
}

.category-list a.shop-category-link {
  color: var(--text-muted);
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.shop-section .active-cat {
  background: rgba(99, 102, 241, 0.1);
  color: var(--gold) !important;
  font-weight: 600;
}

.shop-section .category-list a:hover {
  background: rgba(99, 102, 241, 0.05);
  color: var(--gold) !important;
  padding-left: 20px !important;
}

.shop-search .form-control {
  background: var(--color-bg);
  color: var(--text-primary);
  border-radius: 8px 0 0 8px;
}

.shop-search .btn-search-submit {
  background: var(--gold);
  color: #fff;
  border-radius: 0 8px 8px 0;
}

[data-theme="light"] .shop-search .btn-search-submit {
  color: #fff;
}

.shop-results-line {
  color: var(--text-primary);
}

.shop-section .product-card {
  background: var(--color-surface);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--color-border) !important;
}

.product-card .product-card-hint,
.product-card .long-arrow {
  pointer-events: none;
  user-select: none;
}

.product-card .product-card-hint {
  opacity: 0.8;
  white-space: nowrap;
}

.shop-section .product-img-wrapper {
  padding-top: 100%;
}

.shop-section .product-img-wrapper .product-image {
  object-fit: cover;
}

.shop-section .product-badge-sale {
  background: #ff4d4d;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
}

.shop-section .product-badge-pct {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.shop-section .stretched-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.shop-section .shop-product-cat {
  color: var(--gold);
  letter-spacing: 1px;
}

.shop-section .shop-product-title {
  color: #e6edf3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.75em;
  line-height: 1.35;
}

[data-theme="light"] .shop-section .shop-product-title {
  color: var(--text-primary);
}

.shop-section .shop-price {
  color: var(--gold);
}

.shop-section .shop-price-old {
  color: var(--text-secondary);
  opacity: 0.7;
}

.shop-empty-icon {
  color: #161b22;
}

[data-theme="light"] .shop-empty-icon {
  color: var(--text-muted);
}

.shop-browse-btn {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.shop-section .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  border-color: var(--gold) !important;
  cursor: pointer;
}

@media (min-width: 992px) {
  .shop-section .product-card:hover {
    transform: translateY(-8px);
  }
}

/* 5 per row (xl+), smaller cards — must follow general .shop-section product rules */
.shop-section .product-grid--compact .product-card {
  border-radius: 12px;
}

.shop-section .product-grid--compact .product-card-body {
  padding: 0.5rem 0.5rem 0.55rem;
}

@media (min-width: 576px) {
  .shop-section .product-grid--compact .product-card-body {
    padding: 0.55rem 0.65rem 0.65rem;
  }
}

.shop-section .product-grid--compact .product-img-wrapper {
  padding-top: 90%;
}

.shop-section .product-grid--compact .shop-product-cat {
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.shop-section .product-grid--compact .shop-product-title {
  font-size: 0.78rem;
  min-height: 2.4em;
  line-height: 1.3;
  font-weight: 600;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

[data-theme="light"] .shop-section .product-grid--compact .shop-product-title {
  color: var(--text-primary);
}

.shop-section .product-grid--compact .shop-price {
  font-size: 0.82rem;
  line-height: 1.2;
}

.shop-section .product-grid--compact .shop-price-old {
  font-size: 0.65rem;
}

.shop-section .product-grid--compact .product-badge-sale {
  padding: 2px 6px;
  font-size: 0.58rem;
  border-radius: 4px;
  font-weight: 600;
}

.shop-section .product-grid--compact .product-badge-pct {
  font-size: 0.55rem;
  padding: 0.08rem 0.3rem;
}

.shop-section .product-grid--compact .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

@media (min-width: 992px) {
  .shop-section .product-grid--compact .product-card:hover {
    transform: translateY(-5px);
  }
}

.shop-section .pagination .page-link {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--gold);
}

.shop-section .pagination .page-item.active .page-link {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .shop-section .product-card {
    transition: none;
  }

  .shop-section .product-card:hover,
  .shop-section .product-grid--compact .product-card:hover {
    transform: none;
  }
}

/* ══ Product details (align with shop / tokens) ══ */
.product-details-page {
  background: var(--color-bg);
  color: var(--text-primary);
  padding-top: clamp(0.75rem, 3vw, 1.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.pdp-related-spaced {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--color-border);
}

.pdp-tabs-wrap {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.pdp-gallery {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.25));
}

.pdp-gallery__inner {
  position: relative;
}

.pdp-gallery__main {
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface-2);
}

.pdp-gallery__main.ratio > .pdp-gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.2s ease;
}

/* Main PDP image: contain so hover magnifier maps 1:1 to pixels */
.pdp-magnify__stage .pdp-gallery__img--magnify {
  object-fit: contain;
  background: var(--color-surface-2);
}

.pdp-magnify__col-main {
  z-index: 0;
}

.pdp-magnify__stage {
  position: relative;
  cursor: default;
  z-index: 0;
}

@media (min-width: 992px) {
  .pdp-magnify__stage[data-pdp-magnify-enabled="1"] {
    cursor: crosshair;
  }

  @media (prefers-reduced-motion: reduce) {
    .pdp-magnify__stage[data-pdp-magnify-enabled] {
      cursor: default;
    }
  }
}

.pdp-magnify__lens {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  pointer-events: none;
  box-sizing: border-box;
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 4px 16px rgba(0, 0, 0, 0.25);
  background: rgba(248, 250, 252, 0.12);
}

.pdp-magnify__result {
  --pdp-magnify-bg: var(--color-surface-2);
  position: relative;
  z-index: 0;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background-color: var(--pdp-magnify-bg);
  background-repeat: no-repeat;
  overflow: hidden;
}

.pdp-magnify__result-wrap {
  width: 100%;
  max-width: 17.5rem;
  flex: 0 0 auto;
  align-self: stretch;
}

@media (min-width: 992px) {
  .pdp-magnify {
    min-height: 0;
  }

  .pdp-magnify__result-wrap {
    width: 38%;
    min-width: 12rem;
    max-width: 18rem;
  }
}

.pdp-magnify__hint {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.pdp-magnify__stage[data-pdp-magnify-enabled="0"] {
  cursor: default;
}

.pdp-badge-save {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: #10b981 !important;
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.pdp-gallery__thumbs {
  margin-top: 1rem;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
}

.pdp-thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: var(--color-surface-2);
  cursor: pointer;
  opacity: 0.7;
  transition: border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.pdp-thumb:hover,
.pdp-thumb:focus-visible {
  opacity: 1;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.pdp-thumb--active {
  border-color: var(--gold);
  opacity: 1;
  box-shadow: 0 0 0 1px var(--color-border);
}

.pdp-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-info .breadcrumb-custom {
  margin-bottom: 1rem;
}

.pdp-info .breadcrumb-custom a,
.pdp-info .breadcrumb-custom .current {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.pdp-info .breadcrumb-custom a:hover {
  color: var(--gold);
}

.pdp-meta-label {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 600;
}

.pdp-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.pdp-price {
  color: var(--gold) !important;
}

.pdp-price-old {
  color: var(--text-secondary);
  opacity: 0.75;
}

.pdp-stock--in {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
}

.pdp-stock--out {
  background: rgba(248, 113, 113, 0.1) !important;
  color: #f87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.25) !important;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
}

.pdp-lead p {
  line-height: 1.7;
  font-size: 0.95rem;
}

.pdp-attr {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pdp-attr__val {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  margin-top: 0.15rem;
}

.pdp-qty {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.2rem 0.25rem;
}

.pdp-qty__btn {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.pdp-qty__btn:hover {
  color: var(--gold);
  background: rgba(99, 102, 241, 0.08);
}

.pdp-qty__input {
  width: 3rem;
  min-width: 0;
  text-align: center;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: none;
  padding: 0.25rem 0.15rem;
  -moz-appearance: textfield;
}

.pdp-qty__input::-webkit-outer-spin-button,
.pdp-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp-add-btn {
  min-height: 2.9rem;
  border-radius: 10px;
  font-weight: 600;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  flex: 1 1 10rem;
}

.pdp-variant-btn {
  border: 1px solid var(--color-border) !important;
  background: var(--color-surface-2) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 3rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pdp-variant-btn:hover,
.pdp-variant-btn:focus-visible {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.pdp-variant-btn--active {
  border-color: var(--gold) !important;
  background: rgba(212, 175, 55, 0.12) !important;
  color: var(--gold) !important;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.pdp-variant-group > p {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary) !important;
}

.pdp-buy-box .pdp-price-prefix {
  letter-spacing: 0.06em;
}

@media (max-width: 991.98px) {
  .pdp-magnify__hint {
    display: none;
  }

  .product-details-page .pdp-gallery {
    margin-bottom: 0.25rem;
  }

  .product-details-page .pdp-info {
    padding-top: 0.25rem;
  }
}

.pdp-tabs {
  background: var(--color-surface);
  border: 1px solid var(--color-border) !important;
  border-radius: 12px;
  padding: 0.25rem 0.25rem 0;
  overflow: hidden;
}

.pdp-nav-tabs {
  border-bottom: 1px solid var(--color-border);
  margin: 0 0.5rem 0.25rem 0.5rem;
  padding: 0.5rem 0.25rem 0;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
}

.pdp-nav-tabs .nav-item {
  margin: 0;
}

.pdp-nav-tabs .nav-link {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  font-weight: 600;
  background: none !important;
  border: 0 !important;
  padding: 0.5rem 0.15rem 0.85rem 0.15rem;
  border-radius: 0;
  position: relative;
  transition: color 0.2s ease;
}

.pdp-nav-tabs .nav-link:hover {
  color: var(--text-primary) !important;
}

.pdp-nav-tabs .nav-link.active {
  color: var(--gold) !important;
}

.pdp-nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.pdp-tab-content {
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text-secondary);
}

.pdp-prose {
  line-height: 1.8;
  font-size: 0.95rem;
}

.pdp-prose a {
  color: var(--gold);
}

.pdp-prose p:last-child {
  margin-bottom: 0;
}

.pdp-spec-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
  --bs-border-color: var(--color-border);
  color: var(--text-primary);
  margin: 0;
}

.pdp-spec-table__th {
  color: var(--text-muted) !important;
  font-size: 0.85rem;
  font-weight: 500;
  width: 40%;
  min-width: 7rem;
  border-color: var(--color-border) !important;
  padding: 0.65rem 0.75rem 0.65rem 0;
}

.pdp-spec-table__td {
  color: var(--text-primary) !important;
  border-color: var(--color-border) !important;
  padding: 0.65rem 0.75rem;
}

.pdp-related__eyebrow {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.7rem;
}

.pdp-related__title {
  font-family: var(--font-serif);
  color: var(--text-primary);
}

.pdp-related__all {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.pdp-related__all:hover {
  color: var(--gold-light);
}

[data-theme="light"] .pdp-gallery,
[data-theme="light"] .pdp-tabs {
  box-shadow: var(--shadow-card);
}

/* ══ Product details — Apple Gadgets style ══ */
.product-details-page--ag {
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
}

.pdp-ag-gallery {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: clamp(0.75rem, 1.5vw, 1rem);
  position: sticky;
  top: 5.5rem;
  align-self: flex-start;
  width: 100%;
}

[data-theme="dark"] .pdp-ag-gallery,
:root:not([data-theme="light"]) .pdp-ag-gallery {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.pdp-ag-gallery__layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdp-ag-gallery__main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.pdp-ag-magnify {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .pdp-ag-magnify {
    flex-direction: row;
    align-items: stretch;
    gap: 0.65rem;
  }

  .pdp-ag-gallery__viewport {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
}

.pdp-ag-gallery__viewport {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.pdp-ag-gallery__stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(85vh, 50rem);
  margin-inline: 0;
  background: #fafafa;
  border-radius: 10px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .pdp-ag-gallery__stage {
    max-height: min(88vh, 52rem);
  }
}

.pdp-ag-gallery__stage[data-pdp-magnify-enabled="1"] {
  cursor: crosshair;
}

@media (prefers-reduced-motion: reduce) {
  .pdp-ag-gallery__stage[data-pdp-magnify-enabled] {
    cursor: default;
  }
}

.pdp-ag-magnify__lens {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
  box-sizing: border-box;
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 4px 16px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.pdp-ag-magnify__result-wrap {
  display: none;
  flex-direction: column;
  flex: 0 0 8.5rem;
  width: 8.5rem;
  min-width: 8.5rem;
  max-width: 8.5rem;
  align-self: stretch;
}

@media (min-width: 992px) {
  .pdp-ag-magnify__result-wrap.d-xl-flex {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .pdp-ag-magnify__result-wrap.d-xl-flex {
    display: flex !important;
  }
}

@media (min-width: 1400px) {
  .pdp-ag-magnify__result-wrap.d-xl-flex {
    flex-basis: 9.5rem;
    width: 9.5rem;
    min-width: 9.5rem;
    max-width: 9.5rem;
  }
}

.pdp-ag-magnify__result {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 8rem;
  height: 100%;
  max-height: min(88vh, 52rem);
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background-color: #fafafa;
  background-repeat: no-repeat;
  overflow: hidden;
}

[data-theme="dark"] .pdp-ag-magnify__result,
:root:not([data-theme="light"]) .pdp-ag-magnify__result {
  background-color: var(--color-surface-2);
  border-color: var(--color-border);
}

.pdp-ag-magnify__hint {
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.pdp-ag-gallery__img--magnify {
  object-fit: contain;
}

[data-theme="dark"] .pdp-ag-gallery__stage,
:root:not([data-theme="light"]) .pdp-ag-gallery__stage {
  background: var(--color-surface-2);
}

.pdp-ag-gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(0.5rem, 1.2vw, 0.85rem);
  opacity: 1;
  transform: none;
  transition: opacity 0.22s ease;
  will-change: opacity;
}

.pdp-ag-gallery__img:not(.is-active) {
  opacity: 0;
}

.pdp-ag-gallery__loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

[data-theme="dark"] .pdp-ag-gallery__loader,
:root:not([data-theme="light"]) .pdp-ag-gallery__loader {
  background: rgba(15, 23, 42, 0.45);
}

.pdp-ag-gallery__loader-spin {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: pdpGallerySpin 0.7s linear infinite;
}

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

.pdp-ag-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pdp-ag-gallery__arrow--prev {
  left: 0.4rem;
}

.pdp-ag-gallery__arrow--next {
  right: 0.4rem;
}

.pdp-ag-gallery__arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pdp-ag-gallery__arrow:active {
  transform: translateY(-50%) scale(0.96);
}

[data-theme="dark"] .pdp-ag-gallery__arrow,
:root:not([data-theme="light"]) .pdp-ag-gallery__arrow {
  background: var(--color-surface-2);
  border-color: var(--color-border);
  color: var(--text-primary);
}

.pdp-ag-gallery__counter {
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.pdp-ag-badge-sale {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  background: #e11d48;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
}

.pdp-ag-gallery__thumbs-col {
  order: 2;
}

.pdp-ag-gallery__thumbs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.15rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.pdp-ag-thumb {
  flex: 0 0 auto;
  width: 4.25rem;
  height: 4.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.3rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}

.pdp-ag-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.pdp-ag-thumb--active,
.pdp-ag-thumb:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.pdp-ag-thumb--active {
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .pdp-ag-gallery {
    padding: 1.15rem;
  }

  .pdp-ag-gallery__layout {
    flex-direction: row;
    align-items: stretch;
    gap: 0.85rem;
  }

  .pdp-ag-gallery__thumbs-col {
    order: 0;
    flex: 0 0 4.75rem;
  }

  .pdp-ag-gallery__thumbs {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: min(88vh, 52rem);
    scroll-snap-type: y proximity;
    padding-bottom: 0;
    padding-right: 0.15rem;
  }

  .pdp-ag-thumb {
    width: 4.25rem;
    height: 4.25rem;
  }

  .pdp-ag-gallery__arrow--prev {
    left: 0.5rem;
  }

  .pdp-ag-gallery__arrow--next {
    right: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .pdp-ag-gallery {
    position: static;
    top: auto;
  }

  .product-details-page--ag {
    padding-top: 0.5rem;
    padding-bottom: clamp(2.5rem, 8vw, 4rem);
  }

  .product-details-page--ag .product-details-page__row {
    --bs-gutter-y: 1rem;
  }

  .pdp-info--ag {
    padding-top: 0;
  }

  .pdp-info--ag .breadcrumb-custom {
    margin-bottom: 0.85rem;
    gap: 0.35rem 0.45rem;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .pdp-ag-gallery {
    padding: 0.65rem;
    border-radius: 10px;
  }

  .pdp-ag-gallery__stage {
    max-height: min(78vw, 22rem);
    border-radius: 8px;
  }

  .pdp-ag-gallery__img {
    padding: 0.45rem;
  }

  .pdp-ag-gallery__thumbs {
    gap: 0.45rem;
    margin-inline: -0.15rem;
    padding-inline: 0.15rem;
    scroll-padding-inline: 0.15rem;
  }

  .pdp-ag-thumb {
    width: 3.75rem;
    height: 3.75rem;
  }

  .pdp-ag-title {
    font-size: clamp(1.2rem, 5.5vw, 1.5rem);
    margin-bottom: 0.75rem;
  }

  .pdp-ag-price {
    font-size: clamp(1.35rem, 6vw, 1.65rem);
  }

  .pdp-ag-meta-list,
  .pdp-ag-options,
  .pdp-ag-qty-block {
    margin-bottom: 1rem !important;
  }

  .pdp-ag-tabs-wrap {
    margin-top: 1.75rem;
  }

  .pdp-ag-nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 0 0.65rem;
  }

  .pdp-ag-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .pdp-ag-nav-tabs .nav-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .pdp-ag-nav-tabs .nav-link {
    white-space: nowrap;
    padding: 0.85rem 0.95rem !important;
    font-size: 0.88rem !important;
  }

  .pdp-ag-tab-content {
    padding: 1rem 0.85rem 1.15rem;
  }

  .pdp-ag-tab-title {
    font-size: 1rem;
    margin-bottom: 0.75rem !important;
  }

  .pdp-ag-spec-list {
    gap: 0.55rem;
  }

  .pdp-ag-spec-list__row {
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
  }

  .pdp-ag-spec-list__label {
    font-size: 0.68rem;
  }

  .pdp-ag-spec-list__value {
    font-size: 0.88rem;
  }

  .pdp-ag-related-title {
    font-size: 1.15rem;
    margin-bottom: 1rem !important;
  }

  .pdp-related-spaced {
    margin-top: 2rem;
    padding-top: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .pdp-ag-gallery__stage {
    max-height: min(82vw, 20rem);
  }

  .pdp-ag-gallery__arrow {
    width: 2.75rem;
    height: 2.75rem;
  }

  .pdp-ag-badge-sale {
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }

  .pdp-ag-topbar {
    flex-wrap: wrap;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .pdp-ag-compare {
    font-size: 0.75rem;
    margin-left: auto;
  }

  .pdp-ag-option-label {
    display: block;
    min-width: 0;
    margin-bottom: 0.45rem;
  }

  .pdp-ag-pill {
    min-width: 0;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
  }

  .pdp-ag-actions {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .pdp-ag-btn {
    min-height: 2.85rem;
    width: 100%;
  }

  .pdp-ag-perks {
    gap: 0.55rem;
    padding-top: 0.85rem;
  }

  .pdp-ag-perk {
    font-size: 0.82rem;
    align-items: flex-start;
  }

  .pdp-ag-prose img,
  .pdp-prose img {
    max-width: 100%;
    height: auto;
  }

  .pdp-ag-prose table,
  .pdp-prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.pdp-info--ag .breadcrumb-custom {
  margin-bottom: 1.25rem;
}

.pdp-ag-topbar {
  border-bottom: 0;
}

.pdp-ag-category {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: capitalize;
}

.pdp-ag-compare {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.pdp-ag-compare:hover,
.pdp-ag-compare[data-in-compare="1"] {
  color: var(--gold);
}

.pdp-ag-title {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.pdp-ag-price-block {
  line-height: 1.3;
}

.pdp-ag-price-from {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pdp-ag-price {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .pdp-ag-price,
:root:not([data-theme="light"]) .pdp-ag-price {
  color: var(--text-primary);
}

.pdp-ag-price-old {
  font-size: 1rem;
  color: var(--text-muted);
}

.pdp-ag-price-note {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.pdp-ag-meta-list {
  display: grid;
  gap: 0.55rem;
}

.pdp-ag-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.92rem;
}

.pdp-ag-meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.pdp-ag-meta-value {
  color: var(--text-primary);
  font-weight: 600;
}

.pdp-ag-availability.pdp-stock--in {
  color: #059669 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.pdp-ag-availability.pdp-stock--out {
  color: #dc2626 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.pdp-ag-option {
  margin-bottom: 1rem;
}

.pdp-ag-option:last-child {
  margin-bottom: 0;
}

.pdp-ag-option-label {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
  min-width: 5.5rem;
}

.pdp-ag-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdp-ag-pill {
  border-radius: 6px !important;
  min-width: 4.5rem;
  padding: 0.5rem 1rem !important;
  font-size: 0.88rem !important;
}

.pdp-ag-qty {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
}

[data-theme="dark"] .pdp-ag-qty,
:root:not([data-theme="light"]) .pdp-ag-qty {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

.pdp-ag-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pdp-ag-btn {
  min-height: 3rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.pdp-ag-btn--primary {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}

.pdp-ag-btn--primary:hover:not(:disabled) {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.pdp-ag-btn--cart {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #fff !important;
}

.pdp-ag-btn--cart:hover:not(:disabled) {
  filter: brightness(1.05);
  color: #fff !important;
}

.pdp-ag-btn:disabled {
  opacity: 0.55;
}

.pdp-ag-perks {
  display: grid;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.pdp-ag-perk {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pdp-ag-perk i {
  width: 1.1rem;
  text-align: center;
  color: var(--gold);
}

.pdp-ag-perk--link {
  text-decoration: none;
  color: var(--text-secondary);
}

.pdp-ag-perk--link:hover {
  color: #25d366;
}

.pdp-ag-perk--link:hover i {
  color: #25d366;
}

.pdp-ag-tabs-wrap {
  margin-top: 2.5rem;
}

.pdp-ag-tabs {
  background: #fff;
  border: 1px solid #e8e8e8 !important;
  border-radius: 10px;
}

[data-theme="dark"] .pdp-ag-tabs,
:root:not([data-theme="light"]) .pdp-ag-tabs {
  background: var(--color-surface);
  border-color: var(--color-border) !important;
}

.pdp-ag-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e8e8e8;
  margin: 0;
  padding: 0 1rem;
  gap: 0;
}

.pdp-ag-nav-tabs .nav-link {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 1rem 1.25rem !important;
  color: var(--text-muted) !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -1px;
}

.pdp-ag-nav-tabs .nav-link.active {
  color: var(--text-primary) !important;
  border-bottom-color: var(--gold) !important;
}

.pdp-ag-nav-tabs .nav-link.active::after {
  display: none;
}

.pdp-ag-tab-title {
  font-weight: 700;
  color: var(--text-primary);
}

.pdp-ag-spec-table {
  width: 100%;
  border-collapse: collapse;
}

.pdp-ag-spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pdp-ag-spec-list__row {
  margin: 0;
  padding: 0.85rem 0.95rem;
  background: #f9fafb;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
}

[data-theme="dark"] .pdp-ag-spec-list__row,
:root:not([data-theme="light"]) .pdp-ag-spec-list__row {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

.pdp-ag-spec-list__label {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pdp-ag-spec-list__value {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  word-break: break-word;
}

.pdp-ag-spec-wrap.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.pdp-ag-spec-table th,
.pdp-ag-spec-table td {
  padding: 0.85rem 1rem;
  border: 1px solid #e8e8e8;
  font-size: 0.92rem;
  vertical-align: top;
  word-break: break-word;
}

[data-theme="dark"] .pdp-ag-spec-table th,
[data-theme="dark"] .pdp-ag-spec-table td,
:root:not([data-theme="light"]) .pdp-ag-spec-table th,
:root:not([data-theme="light"]) .pdp-ag-spec-table td {
  border-color: var(--color-border);
}

.pdp-ag-spec-table th {
  width: 32%;
  background: #f9fafb;
  color: var(--text-primary);
  font-weight: 600;
}

[data-theme="dark"] .pdp-ag-spec-table th,
:root:not([data-theme="light"]) .pdp-ag-spec-table th {
  background: var(--color-surface-2);
}

.pdp-ag-related-title {
  font-weight: 700;
  color: var(--text-primary);
}

.pdp-ag-tab-content {
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.35rem) clamp(1.15rem, 2vw, 1.5rem);
}

.pdp-ag-prose img,
.pdp-prose img {
  max-width: 100%;
  height: auto;
}

/* ══ Product details — smart HNS TECH layer ══ */
.ag-pdp {
  --pdp-accent: #f37335;
  --pdp-accent-soft: #fff8f3;
  --pdp-accent-ring: rgba(243, 115, 53, 0.16);
  background:
    radial-gradient(ellipse 70% 45% at 8% -5%, rgba(243, 115, 53, 0.07), transparent 55%),
    radial-gradient(ellipse 55% 35% at 100% 0%, rgba(142, 68, 173, 0.05), transparent 50%),
    var(--color-bg);
  padding-top: clamp(1rem, 2.8vw, 1.85rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.ag-pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(1.15rem, 2.8vw, 2rem);
  align-items: start;
}

@media (max-width: 991.98px) {
  .ag-pdp__grid {
    grid-template-columns: 1fr;
  }
}

.ag-pdp-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: clamp(1.1rem, 2.2vw, 1.55rem);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.05);
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
}

@media (max-width: 991.98px) {
  .ag-pdp-panel {
    position: static;
  }
}

.ag-pdp-lead {
  margin: -0.35rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ag-pdp .pdp-ag-gallery {
  border-radius: 18px;
  border-color: var(--color-border);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.04);
}

.ag-pdp .pdp-ag-gallery__stage {
  background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
  border-radius: 14px;
}

.ag-pdp .pdp-ag-thumb--active,
.ag-pdp .pdp-ag-thumb:hover {
  border-color: var(--pdp-accent);
  box-shadow: 0 0 0 3px var(--pdp-accent-ring);
}

.ag-pdp .pdp-ag-gallery__arrow:hover {
  border-color: var(--pdp-accent);
  color: var(--pdp-accent);
}

.ag-pdp .pdp-ag-magnify__lens {
  border-color: var(--pdp-accent);
}

.ag-pdp .pdp-ag-badge-sale {
  background: linear-gradient(135deg, #f37335, #e85d1c);
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.ag-pdp .pdp-ag-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ag-pdp .pdp-ag-category {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--pdp-accent-soft);
  color: var(--pdp-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ag-pdp .pdp-ag-compare {
  color: var(--text-muted);
}

.ag-pdp .pdp-ag-compare:hover,
.ag-pdp .pdp-ag-compare[data-in-compare="1"] {
  color: var(--pdp-accent);
}

.ag-pdp .pdp-ag-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.ag-pdp .pdp-ag-price-block {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.ag-pdp .pdp-ag-price {
  color: var(--pdp-accent);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 800;
}

.ag-pdp .pdp-ag-save {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.ag-pdp .pdp-ag-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

@media (max-width: 420px) {
  .ag-pdp .pdp-ag-meta-list {
    grid-template-columns: 1fr;
  }
}

.ag-pdp .pdp-ag-meta-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.ag-pdp .pdp-ag-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ag-pdp .pdp-ag-options {
  margin-bottom: 1.15rem;
}

.ag-pdp .pdp-ag-option {
  margin-bottom: 0.95rem;
}

.ag-pdp .pdp-ag-option-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 0;
}

.ag-pdp .pdp-variant-btn.pdp-ag-pill {
  border-radius: 999px !important;
  background: var(--color-bg) !important;
  border: 1.5px solid var(--color-border) !important;
  color: var(--text-primary) !important;
  min-width: 0;
  padding: 0.5rem 1rem !important;
}

.ag-pdp .pdp-variant-btn.pdp-ag-pill:hover,
.ag-pdp .pdp-variant-btn.pdp-ag-pill:focus-visible {
  border-color: var(--pdp-accent) !important;
  color: var(--pdp-accent) !important;
  box-shadow: 0 0 0 3px var(--pdp-accent-ring);
}

.ag-pdp .pdp-variant-btn--active.pdp-ag-pill {
  border-color: var(--pdp-accent) !important;
  background: var(--pdp-accent-soft) !important;
  color: var(--pdp-accent) !important;
  box-shadow: 0 0 0 3px var(--pdp-accent-ring);
}

.ag-pdp .pdp-ag-qty-block {
  margin-bottom: 1.15rem;
}

.ag-pdp .pdp-ag-qty {
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  overflow: hidden;
}

.ag-pdp .pdp-ag-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}

@media (max-width: 575.98px) {
  .ag-pdp .pdp-ag-actions {
    grid-template-columns: 1fr;
  }
}

.ag-pdp .pdp-ag-btn {
  min-height: 3.05rem;
  border-radius: 14px;
  font-weight: 700;
}

.ag-pdp .pdp-ag-btn--primary {
  background: linear-gradient(135deg, #f37335 0%, #e85d1c 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(243, 115, 53, 0.28);
}

.ag-pdp .pdp-ag-btn--primary:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
  color: #fff !important;
}

.ag-pdp .pdp-ag-btn--cart {
  background: #111111 !important;
  border-color: #111111 !important;
  color: #fff !important;
}

.ag-pdp .pdp-ag-btn--cart:hover:not(:disabled) {
  background: #000 !important;
  filter: none;
}

.ag-pdp .pdp-ag-perks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.ag-pdp .pdp-ag-perk {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--text-secondary, var(--text-muted));
  text-decoration: none;
}

.ag-pdp .pdp-ag-perk__icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--pdp-accent-soft);
  color: var(--pdp-accent);
}

.ag-pdp .pdp-ag-perk--link:hover {
  border-color: #25d366;
  color: #128c7e;
}

.ag-pdp .pdp-ag-perk--link:hover .pdp-ag-perk__icon {
  background: #ecfdf5;
  color: #25d366;
}

.ag-pdp .pdp-ag-tabs-wrap {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.ag-pdp .pdp-ag-tabs {
  border: 1px solid var(--color-border) !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.04);
  background: var(--color-surface);
}

.ag-pdp .pdp-ag-nav-tabs {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0 0.75rem;
}

.ag-pdp .pdp-ag-nav-tabs .nav-link.active {
  color: var(--pdp-accent) !important;
  border-bottom-color: var(--pdp-accent) !important;
}

.ag-pdp .pdp-ag-tab-title {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.ag-pdp .pdp-ag-spec-table th {
  background: var(--pdp-accent-soft);
  color: #9a3412;
  width: 28%;
}

.ag-pdp .pdp-ag-prose {
  color: var(--text-secondary, var(--text-muted));
  line-height: 1.65;
}

.ag-pdp-related {
  margin-top: clamp(2rem, 5vw, 3.25rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--color-border);
}

.ag-pdp-related__eyebrow {
  margin: 0 0 0.3rem;
  color: var(--pdp-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ag-pdp .pdp-ag-related-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
}

.ag-pdp-related-card {
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ag-pdp-related-card:hover {
  border-color: rgba(243, 115, 53, 0.45);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
  transform: translateY(-2px);
}

.ag-pdp-related-card__link {
  display: block;
  height: 100%;
  padding: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.ag-pdp-related-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 0.75rem;
}

.ag-pdp-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ag-pdp-related-card__badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: var(--pdp-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.ag-pdp-related-card__cat {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ag-pdp-related-card__title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.ag-pdp-related-card__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
}

.ag-pdp-related-card__price {
  font-weight: 800;
  color: var(--pdp-accent);
}

.ag-pdp-related-card__old {
  font-size: 0.8rem;
  color: var(--text-muted);
}

[data-theme="dark"] .ag-pdp .pdp-ag-category,
[data-theme="dark"] .ag-pdp .pdp-ag-perk__icon,
[data-theme="dark"] .ag-pdp .pdp-variant-btn--active.pdp-ag-pill {
  background: rgba(243, 115, 53, 0.14);
}

[data-theme="dark"] .ag-pdp .pdp-ag-spec-table th {
  background: rgba(243, 115, 53, 0.12);
  color: #fdba74;
}

/* ══ Shopping cart (light + dark) ══ */
.cart-section {
  background-color: var(--color-bg);
  color: var(--text-primary);
}

.cart-page {
  padding-top: clamp(0.75rem, 3vw, 1.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.cart-page-eyebrow {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.7rem;
}

.cart-page-title {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cart-table-panel {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  display: block;
  background: var(--color-surface-2);
}

.cart-item-thumb-link:hover .cart-item-thumb,
.cart-item-thumb-link:focus-visible .cart-item-thumb {
  border-color: var(--gold);
}

.cart-section .cart-item-name {
  color: var(--text-primary) !important;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.cart-section .cart-item-name:hover {
  color: var(--gold) !important;
}

.cart-section .cart-item-subtotal {
  color: var(--gold) !important;
  font-size: 0.95rem;
}

.cart-summary {
  background: var(--color-surface) !important;
  border-radius: 16px;
  border: 1px solid var(--color-border) !important;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
}

@media (max-width: 991.98px) {
  .cart-summary {
    position: static;
  }
}

.cart-summary__row {
  border-bottom: 1px solid var(--color-border) !important;
}

.cart-summary__total {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0.5rem !important;
}

.cart-remove-btn {
  color: var(--text-muted) !important;
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.cart-remove-btn:hover {
  color: #f87171 !important;
  background: rgba(248, 113, 113, 0.08);
}

.cart-empty {
  padding: clamp(2.5rem, 8vw, 4.5rem) 1rem;
}

.cart-empty .cart-empty-icon {
  font-size: clamp(3.5rem, 12vw, 5rem);
  color: var(--text-muted);
  opacity: 0.85;
}

.cart-empty .cart-empty-text {
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="light"] .cart-table-panel,
[data-theme="light"] .cart-summary {
  box-shadow: var(--shadow-card);
}

.cart-section .cart-items-table {
  --bs-table-color: var(--text-primary);
  --bs-table-bg: transparent;
  --bs-border-color: var(--color-border);
  color: var(--text-primary);
  background: transparent;
}

.cart-section .cart-items-table > :not(caption) > * > * {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--color-border);
  box-shadow: none;
}

.cart-section .cart-items-table thead th {
  color: var(--text-secondary);
  background: rgba(99, 102, 241, 0.06) !important;
  border-color: var(--color-border) !important;
  font-weight: 600;
}

[data-theme="light"] .cart-section .cart-items-table thead th {
  background: rgba(99, 102, 241, 0.08) !important;
}

.cart-section .cart-items-table tbody tr:hover {
  --bs-table-hover-bg: rgba(99, 102, 241, 0.06);
}

[data-theme="light"] .cart-section .cart-items-table tbody tr:hover {
  --bs-table-hover-bg: rgba(99, 102, 241, 0.08);
}

.cart-section .cart-item-meta {
  color: var(--text-secondary);
}

.cart-section .cart-qty-picker {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  width: fit-content;
  padding: 0.15rem 0.2rem;
}

.cart-section .cart-qty-picker .form-control {
  color: var(--text-primary) !important;
  background: transparent !important;
}

.cart-section .cart-qty-btn {
  color: var(--text-primary) !important;
}

.cart-section .cart-qty-btn:hover,
.cart-section .cart-qty-btn:focus {
  color: var(--gold) !important;
}

.cart-section .cart-summary-title {
  color: var(--text-primary);
  font-weight: 600;
}

.cart-section .cart-summary-line .label {
  color: var(--text-secondary);
}

.cart-section .cart-summary-line .value {
  color: var(--text-primary);
  font-weight: 600;
}

.cart-section .cart-summary-total .label {
  color: var(--text-primary);
}

.cart-section .cart-total {
  color: var(--gold) !important;
  font-weight: 700;
}

.cart-section .cart-continue-shopping {
  border: 1px solid var(--color-border) !important;
  border-radius: 10px;
  color: var(--text-secondary) !important;
  background: transparent;
}

.cart-section .cart-continue-shopping:hover {
  border-color: var(--gold) !important;
  color: var(--text-primary) !important;
  background: var(--color-bg);
}

.cart-section .cart-empty-title {
  color: var(--text-primary);
  font-weight: 600;
}

/* ══ Cart — smart HNS TECH layer ══ */
.ag-cart {
  --cart-accent: #f37335;
  --cart-accent-soft: #fff8f3;
  --cart-accent-ring: rgba(243, 115, 53, 0.16);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(243, 115, 53, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(142, 68, 173, 0.06), transparent 50%),
    var(--color-bg);
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

.ag-cart__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.ag-cart__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--cart-accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ag-cart__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.ag-cart__lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.ag-cart__continue-top {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cart-accent);
  text-decoration: none;
}

.ag-cart__continue-top:hover {
  color: #e85d1c;
  text-decoration: underline;
}

.ag-cart__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: clamp(1.15rem, 3vw, 2rem);
  align-items: start;
}

@media (max-width: 991.98px) {
  .ag-cart__grid {
    grid-template-columns: 1fr;
  }
}

.ag-cart-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.ag-cart-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.95rem;
  padding: clamp(0.95rem, 2vw, 1.2rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
}

@media (max-width: 575.98px) {
  .ag-cart-item {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }
}

.ag-cart-item__media {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

@media (max-width: 575.98px) {
  .ag-cart-item__media {
    width: 4.5rem;
    height: 4.5rem;
  }
}

.ag-cart-item__media .cart-item-thumb,
.ag-cart .cart-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.ag-cart-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ag-cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ag-cart-item__name {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  text-decoration: none;
}

.ag-cart-item__name:hover {
  color: var(--cart-accent);
}

.ag-cart-item__meta {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ag-cart-item__remove {
  flex-shrink: 0;
}

.ag-cart-item__footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  align-items: end;
}

@media (max-width: 575.98px) {
  .ag-cart-item__footer {
    grid-template-columns: 1fr 1fr;
  }

  .ag-cart-item__subtotal {
    grid-column: 1 / -1;
  }
}

.ag-cart-item__label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ag-cart-item__unit,
.ag-cart-item__subtotal {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ag-cart .cart-item-subtotal {
  color: var(--cart-accent) !important;
  font-size: 1rem;
}

.ag-cart .cart-qty-picker {
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  min-height: 2.5rem;
}

.ag-cart .cart-qty-btn:hover,
.ag-cart .cart-qty-btn:focus {
  color: var(--cart-accent) !important;
}

.ag-cart .cart-item-thumb-link:hover .cart-item-thumb,
.ag-cart .cart-item-thumb-link:focus-visible .cart-item-thumb {
  border-color: transparent;
}

.ag-cart-summary {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 18px;
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.05);
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
}

@media (max-width: 991.98px) {
  .ag-cart-summary {
    position: static;
  }
}

.ag-cart-summary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ag-cart-summary__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ag-cart-summary__count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ag-cart-summary__rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.ag-cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}

.ag-cart-summary__row .label {
  color: var(--text-muted);
}

.ag-cart-summary__row .value {
  font-weight: 700;
  color: var(--text-primary);
}

.ag-cart-summary__note {
  margin: -0.15rem 0 0.15rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.ag-cart-summary__row--total {
  border-bottom: 0;
  padding-top: 0.35rem;
  padding-bottom: 0;
  font-size: 1.05rem;
}

.ag-cart .cart-total {
  color: var(--cart-accent) !important;
  font-size: 1.2rem;
  font-weight: 800;
}

.ag-cart-checkout {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f37335 0%, #e85d1c 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.25rem;
  box-shadow: 0 10px 24px rgba(243, 115, 53, 0.28);
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ag-cart-checkout:hover {
  color: #fff !important;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(243, 115, 53, 0.34);
}

.ag-cart-continue {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  border: 1px solid var(--color-border) !important;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-muted) !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  background: transparent;
}

.ag-cart-continue:hover {
  border-color: var(--cart-accent) !important;
  color: var(--cart-accent) !important;
  background: var(--cart-accent-soft);
}

.ag-cart-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: center;
}

.ag-cart-empty {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4.5rem) 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.05);
}

.ag-cart-empty__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.15rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--cart-accent-soft);
  color: var(--cart-accent);
  font-size: 1.65rem;
}

.ag-cart-empty__title {
  margin-bottom: 0.5rem;
  font-family: var(--font-serif, Georgia, serif);
  letter-spacing: -0.02em;
}

.ag-cart-empty__text {
  max-width: 22rem;
  margin: 0 auto 1.35rem;
  color: var(--text-muted);
}

/* ══ Checkout (smart layout) ══ */
.checkout-section,
.ag-checkout {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(243, 115, 53, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(142, 68, 173, 0.06), transparent 50%),
    var(--color-bg);
  color: var(--text-primary);
}

.checkout-page,
.ag-checkout {
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

.ag-checkout__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.ag-checkout__eyebrow {
  margin: 0 0 0.4rem;
  color: #f37335;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.ag-checkout__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.ag-checkout__lede {
  margin: 0;
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ag-checkout__steps {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ag-checkout__step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.ag-checkout__step.is-active {
  color: var(--text-primary);
}

.ag-checkout__step-num {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.72rem;
  font-weight: 700;
}

.ag-checkout__step.is-active .ag-checkout__step-num {
  border-color: #f37335;
  background: #f37335;
  color: #fff;
}

.ag-checkout__step-sep {
  width: 1.25rem;
  height: 1px;
  background: var(--color-border);
}

.ag-checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

@media (max-width: 991.98px) {
  .ag-checkout__grid {
    grid-template-columns: 1fr;
  }
}

.ag-checkout__main {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.ag-checkout-card,
.ag-checkout-summary,
.checkout-form-panel,
.checkout-order-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  box-shadow: var(--shadow-card, 0 8px 28px rgba(0, 0, 0, 0.06));
}

.ag-checkout-card__head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.ag-checkout-card__badge {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #f37335, #e85d1c);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.ag-checkout-card__title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.ag-checkout-card__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.checkout-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.checkout-section .checkout-input,
.checkout-section .form-control.checkout-input {
  background: var(--color-bg) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-section .checkout-input:focus,
.checkout-section .form-control.checkout-input:focus {
  border-color: #f37335 !important;
  box-shadow: 0 0 0 3px rgba(243, 115, 53, 0.16);
  outline: none;
}

.ag-checkout-delivery {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.ag-checkout-delivery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 575.98px) {
  .ag-checkout-delivery__grid {
    grid-template-columns: 1fr;
  }
}

.ag-checkout-zone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ag-checkout-zone:hover {
  border-color: rgba(243, 115, 53, 0.45);
}

.ag-checkout-zone.is-selected {
  border-color: #f37335;
  background: #fff8f3;
  box-shadow: 0 0 0 3px rgba(243, 115, 53, 0.12);
}

[data-theme="dark"] .ag-checkout-zone.is-selected {
  background: rgba(243, 115, 53, 0.12);
}

.ag-checkout-zone__icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--color-surface);
  color: #f37335;
  border: 1px solid var(--color-border);
}

.ag-checkout-zone.is-selected .ag-checkout-zone__icon {
  background: #f37335;
  border-color: #f37335;
  color: #fff;
}

.ag-checkout-zone__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.ag-checkout-zone__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ag-checkout-zone__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ag-checkout-zone__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.ag-checkout-pay {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ag-checkout-pay__option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ag-checkout-pay__option:hover {
  border-color: rgba(243, 115, 53, 0.4);
}

.ag-checkout-pay__option:has(.form-check-input:checked) {
  border-color: #f37335;
  background: #fff8f3;
  box-shadow: 0 0 0 3px rgba(243, 115, 53, 0.12);
}

[data-theme="dark"] .ag-checkout-pay__option:has(.form-check-input:checked) {
  background: rgba(243, 115, 53, 0.12);
}

.ag-checkout-pay__option .form-check-input {
  float: none;
  position: static;
  margin: 0.15rem 0 0;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  border-color: var(--color-border);
  background-color: var(--color-surface);
}

.ag-checkout-pay__option .form-check-input:checked {
  background-color: #f37335;
  border-color: #f37335;
}

.ag-checkout-pay__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ag-checkout-pay__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ag-checkout-pay__currency {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ag-checkout-pay__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ag-checkout-summary,
.checkout-order-panel {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
}

@media (max-width: 991.98px) {
  .ag-checkout-summary,
  .checkout-order-panel {
    position: static;
  }
}

.ag-checkout-summary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ag-checkout-summary__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ag-checkout-summary__count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ag-checkout-items {
  margin: 0 0 1rem;
  max-height: 16rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.ag-checkout-item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-border);
}

.ag-checkout-item:last-child {
  border-bottom: 0;
}

.ag-checkout-item__media {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.ag-checkout-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ag-checkout-item__name {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}

.ag-checkout-item__variant,
.ag-checkout-item__qty {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ag-checkout-item__price {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.ag-checkout-promo,
.checkout-promo {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.ag-checkout-promo__row {
  display: flex;
  gap: 0.5rem;
}

.ag-checkout-promo__row .checkout-input {
  flex: 1;
  min-width: 0;
}

.ag-checkout-promo__btn {
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.ag-checkout-promo__btn:hover {
  border-color: #f37335;
  color: #f37335;
}

.ag-checkout-promo__applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #059669;
  font-size: 0.9rem;
}

.ag-checkout-totals {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.ag-checkout-totals__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary, var(--text-muted));
}

.ag-checkout-totals__row--discount {
  color: #059669;
}

.ag-checkout-totals__row--total,
.checkout-total-row {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.checkout-total-amount {
  color: #f37335 !important;
  font-weight: 800;
  font-size: 1.2rem;
}

.ag-checkout-submit {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f37335 0%, #e85d1c 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.25rem;
  box-shadow: 0 10px 24px rgba(243, 115, 53, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ag-checkout-submit:hover {
  color: #fff !important;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(243, 115, 53, 0.34);
}

.ag-checkout-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.4;
}

.ag-checkout-back {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.ag-checkout-back:hover {
  color: #f37335;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[data-theme="light"] .ag-checkout-card,
[data-theme="light"] .ag-checkout-summary,
[data-theme="light"] .checkout-form-panel,
[data-theme="light"] .checkout-order-panel {
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.05);
}

/* ══ About page (align with shop / design tokens) ══ */
.about-section {
  background-color: var(--color-bg);
  color: var(--text-primary);
}

.about-page {
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.about-eyebrow {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.about-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.about-prose,
.about-description {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-prose a {
  color: var(--gold);
}

.about-experience {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.about-experience__years {
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1;
  color: var(--gold);
  font-family: var(--font-serif);
}

.about-experience__title {
  color: var(--text-primary);
  font-weight: 600;
}

.about-hero-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  aspect-ratio: 4 / 3;
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-stat-bubble {
  background: var(--btn-gradient, linear-gradient(135deg, #6366f1 0%, #818cf8 100%));
  border-radius: 16px;
  /* High contrast on indigo gradient (independent of theme body text) */
  color: #f8fafc;
  min-width: 10rem;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.about-stat-bubble__label {
  opacity: 0.9;
  letter-spacing: 0.06em;
}

.about-stat-bubble__value {
  line-height: 1.1;
  font-size: 1.75rem;
}

.about-section-block {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.about-mission-card {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.15));
}

.about-mission-icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 50%;
  color: var(--gold);
}

.about-mission-title,
.about-values__heading {
  font-family: var(--font-serif);
  color: var(--text-primary);
}

.about-mission-quote {
  max-width: 50rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.about-value-card {
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.about-value-card__icon {
  color: var(--gold);
}

.about-value-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: var(--color-surface-2) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25) !important;
}

@media (prefers-reduced-motion: reduce) {
  .about-value-card,
  .about-value-card:hover {
    transform: none;
    transition: none;
  }
}

[data-theme="light"] .about-hero-image,
[data-theme="light"] .about-mission-card,
[data-theme="light"] .about-value-card {
  box-shadow: var(--shadow-card);
}

/* ══ Contact page ══ */
.contact-section {
  background-color: var(--color-bg);
  color: var(--text-primary);
}

.contact-page {
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.contact-eyebrow {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.contact-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.contact-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.contact-item__icon {
  width: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border-radius: 50%;
  color: var(--gold);
}

@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .contact-item__icon {
    background: rgba(99, 102, 241, 0.12);
  }
}

.contact-item__title {
  color: var(--text-primary);
  font-weight: 600;
}

.contact-item__text {
  color: var(--text-secondary);
}

.contact-form-card {
  background: var(--color-surface);
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.contact-form-label {
  color: var(--text-primary);
}

.contact-form-card .form-control {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--text-primary);
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
}

.contact-form-card .form-control::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.contact-form-card .form-control:focus {
  background: var(--color-bg) !important;
  border-color: var(--gold) !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
}

.contact-form-card select.form-control {
  cursor: pointer;
}

.contact-form-card select.form-control option {
  background: var(--color-surface);
  color: var(--text-primary);
}

.contact-form-submit {
  padding: 0.9rem 1rem;
  border-radius: 12px;
}

.contact-section-block {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.contact-map {
  height: min(28rem, 60vh);
  min-height: 16rem;
  border-radius: 1.875rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
}

.contact-map__frame {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
}

[data-theme="light"] .contact-form-card {
  box-shadow: var(--shadow-card);
}

/* ══ Offers page ══ */
.offers-section {
  background-color: var(--color-bg);
  color: var(--text-primary);
}

.offers-page {
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.offers-hero {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.offers-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.offers-hero__sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.offers-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.offers-card:hover {
  border-color: var(--color-border-hover, rgba(99, 102, 241, 0.35));
}

.offers-card__name {
  color: var(--text-primary);
  font-weight: 600;
}

.offers-card__label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  font-weight: 600;
}

.offers-code {
  color: var(--gold);
  font-family: var(--font-sans, system-ui, sans-serif);
  letter-spacing: 0.04em;
  word-break: break-word;
}

.offers-card__value {
  color: var(--text-primary);
}

.offers-card__value-note {
  color: var(--text-muted);
  font-weight: 500;
}

.offers-card__list {
  color: var(--text-secondary);
}

.offers-card__list li {
  border-left: 2px solid var(--color-border);
  padding-left: 0.75rem;
  margin-left: 0.15rem;
}

.offers-badge {
  display: inline-block;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35em 0.55em;
  border-radius: 0.35rem;
  line-height: 1.2;
}

.offers-badge--type {
  background: var(--color-surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--color-border);
}

.offers-badge--active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .offers-badge--active {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
  }
}

.offers-empty {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.offers-empty__title {
  color: var(--text-primary);
  font-weight: 600;
}

.offers-empty__text {
  color: var(--text-secondary);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="light"] .offers-card,
[data-theme="light"] .offers-empty {
  box-shadow: var(--shadow-card);
}

@media (prefers-reduced-motion: reduce) {
  .offers-card {
    transition: none;
  }
}

/* ══ User auth (login, register, etc.) ══ */
.auth-page {
  background-color: var(--color-bg);
  color: var(--text-primary);
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.auth-panel {
  background: var(--color-surface);
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.auth-panel__title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.auth-form-label {
  color: var(--text-secondary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-prose {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1rem;
}

.auth-panel .auth-alert--success {
  background: var(--color-surface-2);
  color: var(--text-primary);
  border: 1px solid var(--color-border);
}

.auth-panel .auth-alert--danger {
  background: color-mix(in srgb, #dc3545 14%, transparent);
  color: var(--text-primary);
  border: 1px solid color-mix(in srgb, #dc3545 32%, transparent);
}

@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .auth-panel .auth-alert--danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
  }
}

.auth-panel .form-group .input-popup.auth-secure-hints,
.auth-panel .form-group .input-popup.small {
  color: var(--text-secondary);
}

.auth-panel .form-control {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--text-primary);
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
}

.auth-panel .form-control::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.auth-panel .form-control:focus {
  background: var(--color-bg) !important;
  border-color: var(--gold) !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
}

.auth-remember .form-check-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-panel .form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.2em;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.auth-panel .form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}

.auth-panel .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--gold) 25%, transparent);
  border-color: var(--gold);
}

@supports not (box-shadow: 0 0 0 0.2rem color-mix(in srgb, red 25%, blue)) {
  .auth-panel .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.35);
  }
}

.auth-link {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.auth-link:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

.auth-link--muted {
  color: var(--text-secondary);
  text-decoration: none;
}

.auth-link--muted:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.auth-panel .form-control:read-only {
  cursor: not-allowed;
  opacity: 0.9;
}

.auth-panel select.form-control {
  cursor: pointer;
}

.auth-panel select.form-control option {
  background: var(--color-surface);
  color: var(--text-primary);
}

.auth-panel .input-group .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.auth-panel .input-group-text {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--text-primary);
  font-weight: 600;
  min-width: 3.25rem;
  justify-content: center;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* secure_password.js: popup in auth panel (overrides template/custom.css) */
.auth-panel .hover-input-popup .input-popup {
  background: var(--color-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.3));
}

.auth-panel .input-popup::after {
  border-color: transparent transparent var(--color-surface) transparent !important;
}

[data-theme="light"] .auth-panel .input-popup::after {
  border-color: transparent transparent var(--color-surface) transparent !important;
}

/* "Already have account" / duplicate user modal */
.auth-modal .modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--text-primary);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.auth-modal .modal-header,
.auth-modal .modal-footer {
  border-color: var(--color-border);
}

.auth-modal .modal-title,
.auth-modal__body {
  color: var(--text-primary);
}

.auth-modal__body {
  font-size: 1rem;
  line-height: 1.5;
}

.auth-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  border-radius: 0.35rem;
  cursor: pointer;
  opacity: 0.85;
  transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.auth-modal__close:hover {
  opacity: 1;
  background: var(--color-surface-2);
  color: var(--text-primary);
}

.auth-modal__close i {
  font-size: 1.35rem;
  line-height: 1;
}

[data-theme="light"] .auth-panel {
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .auth-modal .modal-content {
  box-shadow: var(--shadow-card);
}

/* ══ Home page (index) ══ */
.home-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background-color: var(--color-bg);
  color: var(--text-primary);
  border-color: var(--color-border);
}

.home-section--services {
  border-bottom: 1px solid var(--color-border);
}

.home-service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.home-service-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.2));
}

.home-service-card__icon {
  width: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border-radius: 50%;
  color: var(--gold);
}

@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .home-service-card__icon {
    background: rgba(99, 102, 241, 0.1);
  }
}

.home-service-card__title {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.home-service-card__desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Apple Gadgets style homepage — hero slider */
.ag-hero {
  background: #ffffff;
  padding: 0.85rem 0 0.5rem;
  width: 100%;
}

[data-theme="dark"] .ag-hero {
  background: var(--color-bg);
}

[data-theme="dark"] .ag-hero__viewport,
[data-theme="dark"] .ag-hero__image {
  background: var(--color-surface-2);
}

.ag-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

@media (max-width: 991.98px) {
  .ag-hero__grid {
    grid-template-columns: 1fr;
  }
}

.ag-hero__main {
  min-height: 0;
}

.ag-hero__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(200px, 34vw, 380px);
  overflow: hidden;
  border-radius: 16px;
  background: #f0f0f0;
}

.ag-hero__track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.ag-hero__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
}

.ag-hero__link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  text-decoration: none;
}

.ag-hero__image {
  width: 100%;
  height: 100%;
  min-height: clamp(200px, 34vw, 380px);
  object-fit: cover;
  object-position: center;
  display: block;
  background: #f0f0f0;
}

.ag-hero__side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: clamp(200px, 34vw, 380px);
}

.ag-hero__side--full {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: auto;
}

@media (max-width: 991.98px) {
  .ag-hero {
    padding: 0.5rem 0 0.35rem;
  }

  .ag-hero__grid {
    gap: 0.55rem;
  }

  .ag-hero__viewport,
  .ag-hero__image {
    min-height: clamp(160px, 42vw, 280px);
    border-radius: 12px;
  }

  .ag-hero__side {
    flex-direction: row;
    gap: 0.55rem;
    min-height: auto;
  }

  .ag-hero__side-banner {
    border-radius: 12px;
  }

  .ag-hero__side-image {
    min-height: clamp(90px, 22vw, 140px);
    aspect-ratio: 2 / 1;
  }

  .ag-hero__nav {
    width: 1.85rem;
    height: 1.85rem;
  }

  .ag-hero__nav--prev {
    left: 0.4rem;
  }

  .ag-hero__nav--next {
    right: 0.4rem;
  }
}

@media (max-width: 575.98px) {
  .ag-hero__side--full {
    flex-direction: row;
  }

  .ag-trust-strip__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.85rem;
    overflow-x: visible;
    padding: 0.75rem 0.85rem;
  }

  .ag-trust-strip__item {
    min-width: 0;
    font-size: 0.7rem;
    white-space: normal;
    line-height: 1.25;
  }

  .ag-trust-strip__icon {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .ag-categories__grid {
    gap: 0.55rem 0.45rem;
  }

  .ag-category-card__name {
    font-size: 0.65rem;
  }

  .ag-home-section {
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
  }

  .ag-home-carousel__track {
    gap: 0.65rem;
    margin: 0 -2px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .featured-product-card__link {
    padding: 0.85rem;
  }

  .featured-product-card__title {
    font-size: 0.78rem;
  }

  .ag-home-carousel__tab {
    font-size: 0.62rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 359.98px) {
  .ag-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ag-header__search-input {
    font-size: 0.78rem;
  }

  .ag-header__search-input::placeholder {
    font-size: 0.72rem;
  }
}

.ag-hero__side-banner {
  flex: 1 1 0;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0f0;
  line-height: 0;
  min-height: 0;
}

.ag-hero__side-image {
  width: 100%;
  height: 100%;
  min-height: calc((clamp(200px, 34vw, 380px) - 0.75rem) / 2);
  object-fit: cover;
  object-position: center;
  display: block;
}

.ag-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #333333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ag-hero__nav:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.ag-hero__nav--prev {
  left: 0.65rem;
}

.ag-hero__nav--next {
  right: 0.65rem;
}

.ag-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 3;
}

.ag-hero__dot {
  width: 0.45rem;
  height: 0.45rem;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ag-hero__dot.is-active {
  background: #f37335;
  transform: scale(1.2);
}

.ag-trust-strip {
  background: #ffffff;
  padding: 0.65rem 0 0.85rem;
}

[data-theme="dark"] .ag-trust-strip {
  background: var(--color-bg);
}

[data-theme="dark"] .ag-trust-strip__inner {
  background: var(--color-surface);
}

[data-theme="dark"] .ag-trust-strip__item {
  color: var(--text-primary);
}

.ag-trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: #f5f5f5;
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
}

.ag-trust-strip__inner::-webkit-scrollbar {
  display: none;
}

.ag-trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  min-width: max-content;
  font-size: 0.78rem;
  font-weight: 600;
  color: #222222;
}

.ag-trust-strip__icon {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
}

.ag-categories {
  padding-bottom: 0.5rem;
}

.ag-categories__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.85rem 0.65rem;
}

@media (max-width: 1199.98px) {
  .ag-categories__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .ag-categories__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ag-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ag-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #111111;
  text-align: center;
}

.ag-category-card:hover {
  color: var(--gold);
}

[data-theme="dark"] .ag-category-card {
  color: var(--text-primary);
}

.ag-category-card__media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #f7f7f7;
  border: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.65rem;
}

[data-theme="dark"] .ag-category-card__media {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.ag-category-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ag-category-card__name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}

.ag-see-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid #111111;
  color: #111111;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ag-see-all-btn:hover {
  background: #111111;
  color: #ffffff;
}

.ag-home-section {
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
  background: #ffffff;
  color: #111111;
}

[data-theme="dark"] .ag-home-section {
  background: var(--color-bg);
  color: var(--text-primary);
}

[data-theme="dark"] .ag-category-card {
  color: var(--text-primary);
}

[data-theme="dark"] .ag-category-card__media {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .ag-see-all-btn {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .ag-see-all-btn:hover {
  background: var(--text-primary);
  color: var(--color-bg);
}

[data-theme="dark"] .ag-home-carousel__empty {
  color: var(--text-muted);
}

.ag-home-section__header {
  margin-bottom: 1rem;
}

.ag-home-section__footer {
  margin-top: 1.25rem;
  text-align: center;
}

.ag-home-section__title,
.ag-home-carousel__header .ag-home-section__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: inherit;
}

.ag-home-section__title-accent {
  font-weight: 700;
  background: linear-gradient(90deg, #f37335 0%, #8e44ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ag-home-carousel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ag-home-carousel__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ag-home-carousel__tab {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  background: #f2f2f2;
  color: #666666;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ag-home-carousel__tab.is-active {
  background: #111111;
  color: #ffffff;
}

[data-theme="dark"] .ag-home-carousel__tab {
  background: var(--color-surface-2);
  color: var(--text-secondary);
}

[data-theme="dark"] .ag-home-carousel__tab.is-active {
  background: var(--text-primary);
  color: var(--color-bg);
}

.ag-home-carousel__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.ag-home-carousel__nav-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ag-home-carousel__nav-btn:hover {
  opacity: 0.85;
  transform: scale(1.04);
}

[data-theme="dark"] .ag-home-carousel__nav-btn {
  background: var(--text-primary);
  color: var(--color-bg);
}

.ag-home-carousel__viewport {
  position: relative;
  overflow: hidden;
}

.ag-home-carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ag-home-carousel__track::-webkit-scrollbar {
  display: none;
}

.ag-home-carousel__track:not(.is-active) {
  display: none;
}

.ag-home-carousel__empty {
  margin: 0;
  padding: 2rem 0;
  color: #666666;
}

.featured-product-card {
  flex: 0 0 calc((100% - 3rem) / 4);
  min-width: 200px;
  scroll-snap-align: start;
}

@media (max-width: 1199.98px) {
  .featured-product-card {
    flex-basis: calc((100% - 2rem) / 3);
  }
}

@media (max-width: 767.98px) {
  .featured-product-card {
    flex-basis: calc((100% - 1rem) / 2);
    min-width: 160px;
  }
}

@media (max-width: 479.98px) {
  .featured-product-card {
    flex-basis: 78%;
    min-width: 0;
  }
}

.featured-product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.15rem;
  border-radius: 14px;
  border: 1px solid #e8e8e8;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.featured-product-card__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #d8d8d8;
  color: inherit;
}

[data-theme="dark"] .featured-product-card__link {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.featured-product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9.5rem;
  margin-bottom: 0.85rem;
}

.featured-product-card__image {
  width: 100%;
  max-height: 9.5rem;
  object-fit: contain;
  display: block;
}

.featured-product-card__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

[data-theme="dark"] .featured-product-card__title {
  color: var(--text-primary);
}

.featured-product-card__pricing {
  margin-top: auto;
}

.featured-product-card__price {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.2;
}

[data-theme="dark"] .featured-product-card__price {
  color: var(--text-primary);
}

.featured-product-card__price-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.featured-product-card__price-old {
  font-size: 0.78rem;
  color: #888888;
}

.featured-product-card__savings {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #e6fcf5;
  color: #20c997;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .ag-home-carousel__header {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
  }

  .ag-home-carousel__header .ag-home-section__title {
    flex: 1 1 100%;
    margin-bottom: 0.35rem;
  }

  .ag-home-carousel__tabs {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ag-home-carousel__nav {
    margin-left: auto;
  }
}

@media (max-width: 575.98px) {
  .ag-home-carousel__header {
    flex-direction: column;
    align-items: stretch;
  }

  .ag-home-carousel__nav {
    align-self: flex-end;
  }
}

/* Featured band: reuses .shop-section product card rules */
.home-section--featured {
  background: linear-gradient(
    to bottom,
    var(--color-surface) 0%,
    var(--color-surface-2) 50%,
    var(--color-surface) 100%
  );
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-section__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.home-section__title-italic {
  color: var(--gold-light);
  font-style: italic;
}

.home-section__lede {
  max-width: 36rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  font-size: 1.05rem;
}

.home-cta-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  text-decoration: none;
}

/* Shop cards on home: allow centered layout utility without breaking focus ring */
.shop-section.home-section .text-center .shop-product-title,
.shop-section.home-section .text-center .shop-product-cat,
.shop-section.home-section .text-center .shop-price,
.shop-section.home-section .text-center .shop-price-old {
  text-align: center;
}

/* Promo tiles */
.home-promo {
  border-radius: 20px;
  min-height: 18rem;
  height: 100%;
  max-height: 22rem;
  background: var(--color-surface-2);
}

@media (min-width: 768px) {
  .home-promo {
    min-height: 20rem;
    height: 22rem;
    max-height: none;
  }
}

.home-promo__img {
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.home-promo:hover .home-promo__img {
  transform: scale(1.05);
}

.home-promo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.45) 55%, transparent 100%);
  color: #f8fafc;
  z-index: 1;
}

[data-theme="light"] .home-promo__overlay {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.35) 55%, transparent 100%);
  color: #f8fafc;
}

.home-promo__eyebrow {
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0;
}

.home-promo__title {
  font-family: var(--font-serif);
  color: #f8fafc;
  line-height: 1.2;
  margin: 0;
}

/* Testimonials */
.home-section--testimonials {
  background: var(--color-surface-2);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-testimonial {
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.home-testimonial__rating {
  color: var(--gold);
  letter-spacing: 0.15em;
}

.home-testimonial__quote {
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  flex: 1 1 auto;
}

.home-testimonial__quote p {
  margin: 0;
}

.home-testimonial__footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.home-testimonial__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.home-testimonial__avatar img {
  object-fit: cover;
  display: block;
}

.home-testimonial__name {
  color: var(--text-primary);
  font-weight: 600;
}

.home-testimonial__role {
  color: var(--text-secondary);
}

/* Newsletter (subscribe partial) */
.home-subscribe {
  background: var(--color-surface-2);
  color: var(--text-primary);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-subscribe__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.home-subscribe__lede {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
}

.home-subscribe__form {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.home-subscribe__field {
  min-width: min(100%, 17.5rem);
  position: relative;
}

.home-subscribe__input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 0.9rem 1.1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.home-subscribe__input::placeholder {
  color: var(--text-muted);
}

.home-subscribe__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 25%, transparent);
}

@supports not (box-shadow: 0 0 0 2px color-mix(in srgb, red 25%, blue)) {
  .home-subscribe__input:focus {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
  }
}

.home-subscribe__btn {
  padding: 0.9rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .home-subscribe__form {
    flex-direction: column;
  }
  .home-subscribe__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-service-card,
  .home-service-card:hover,
  .home-promo__img,
  .home-promo:hover .home-promo__img {
    transform: none;
    transition: none;
  }
}

[data-theme="light"] .home-service-card,
[data-theme="light"] .home-testimonial {
  box-shadow: var(--shadow-card);
}

/* Product compare — Apple Gadgets style */
.ag-compare-page {
  background: #ffffff;
  color: #111111;
  padding: 1.25rem 0 3rem;
}

[data-theme="dark"] .ag-compare-page {
  background: var(--color-bg);
  color: var(--text-primary);
}

.ag-compare-page__header {
  margin-bottom: 1.25rem;
}

.ag-compare-page__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.ag-compare-page__lede {
  margin: 0;
  max-width: 40rem;
  color: #666666;
  font-size: 0.92rem;
  line-height: 1.6;
}

.ag-compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #ffffff;
}

.ag-compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.ag-compare-table th,
.ag-compare-table td {
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.ag-compare-table__label-col {
  width: 11rem;
  min-width: 9rem;
  background: #fafafa;
  padding: 1rem;
  position: sticky;
  left: 0;
  z-index: 2;
}

.ag-compare-table__label-head {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #333333;
}

.ag-compare-table__product-col {
  min-width: 11.5rem;
  width: 20%;
  padding: 0.85rem;
  background: #ffffff;
}

.ag-compare-table__row-label {
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #444444;
  background: #fafafa;
  position: sticky;
  left: 0;
  z-index: 1;
}

.ag-compare-table__cell {
  padding: 0.85rem;
  font-size: 0.82rem;
  color: #333333;
  line-height: 1.45;
}

.ag-compare-product-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  position: relative;
}

.ag-compare-product-head__remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ag-compare-product-head__media {
  display: block;
  width: 100%;
  max-width: 8.5rem;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f7;
}

.ag-compare-product-head__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ag-compare-product-head__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #111111;
  text-decoration: none;
  line-height: 1.35;
}

.ag-compare-product-head__name:hover {
  color: #f37335;
}

.ag-compare-product-head__cart {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  background: #111111;
  color: #ffffff;
  border: 0;
}

.ag-compare-slot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.25rem 0.25rem;
  text-align: center;
}

.ag-compare-slot-empty__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #f5f5f5;
  color: #999999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ag-compare-slot-empty__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #666666;
}

.ag-compare-search {
  position: relative;
  width: 100%;
}

.ag-compare-search__input {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  outline: none;
}

.ag-compare-search__input:focus {
  border-color: #f37335;
}

.ag-compare-search__results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 5;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-height: 14rem;
  overflow-y: auto;
}

.ag-compare-search__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f3f3f3;
  background: #ffffff;
  padding: 0.55rem 0.65rem;
  text-align: left;
  cursor: pointer;
}

.ag-compare-search__item:last-child {
  border-bottom: 0;
}

.ag-compare-search__item:hover {
  background: #fff8f3;
}

.ag-compare-search__thumb {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f7f7;
  flex-shrink: 0;
}

.ag-compare-search__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ag-compare-search__name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #111111;
  line-height: 1.25;
}

.ag-compare-search__price {
  font-size: 0.68rem;
  color: #666666;
}

.ag-compare-price-old {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: #999999;
}

.ag-compare-stock.is-in {
  color: #20c997;
  font-weight: 600;
}

.ag-compare-stock.is-out {
  color: #dc3545;
  font-weight: 600;
}

.ag-compare-empty {
  margin-top: 1.5rem;
  text-align: center;
}

.ag-compare-empty__text {
  margin: 0 0 1rem;
  color: #666666;
}

.ag-header__compare-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  margin-left: 0.2rem;
  border-radius: 999px;
  background: #f37335;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.product-compare-btn {
  border: 1px solid #e5e5e5;
  background: rgba(255, 255, 255, 0.95);
  color: #333333;
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.product-compare-btn--card {
  position: relative;
  z-index: 3;
}

.product-compare-btn:hover,
.product-compare-btn.is-active {
  border-color: #f37335;
  color: #f37335;
  background: #fff8f3;
}

.pdp-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
}

.pdp-compare-btn.is-active,
.pdp-compare-btn[data-in-compare="1"] {
  border-color: #f37335;
  color: #f37335;
  background: #fff8f3;
}

@media (max-width: 767.98px) {
  .ag-compare-page {
    padding-bottom: 2rem;
  }

  .ag-compare-table {
    min-width: 640px;
  }

  .pdp-compare-btn span {
    display: none;
  }
}

/* Apple Gadgets style — shop listing */
.ag-shop-page {
  background: #ffffff;
  color: #111111;
}

[data-theme="dark"] .ag-shop-page {
  background: var(--color-bg);
  color: var(--text-primary);
}

.ag-shop-page .breadcrumb-custom a,
.ag-shop-page .breadcrumb-custom .current {
  color: #666666;
}

.ag-shop-page .breadcrumb-custom a:hover {
  color: #f37335;
}

.ag-shop-page__header {
  margin-bottom: 1rem;
}

.ag-shop-page__title {
  margin: 0.35rem 0 0;
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #111111;
}

.ag-shop-cats-mobile {
  margin: 0 -16px 1rem;
  padding: 0 0 0.35rem;
}

@media (min-width: 576px) {
  .ag-shop-cats-mobile {
    margin-left: -24px;
    margin-right: -24px;
  }
}

.ag-shop-cats-mobile__scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 16px;
}

@media (min-width: 576px) {
  .ag-shop-cats-mobile__scroll {
    padding: 0 24px;
  }
}

.ag-shop-cats-mobile__scroll::-webkit-scrollbar {
  display: none;
}

.ag-shop-cat-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  color: #333333;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ag-shop-cat-chip.is-active,
.ag-shop-cat-chip:hover {
  border-color: #f37335;
  color: #f37335;
  background: #fff8f3;
}

.ag-shop-sidebar {
  background: #ffffff !important;
  border: 1px solid #ececec !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
  top: calc(env(safe-area-inset-top, 0px) + 6.5rem);
}

.ag-shop-sidebar__body {
  padding: 1rem 1.1rem 1.15rem;
}

@media (min-width: 992px) {
  .ag-shop-sidebar__body {
    padding: 1.15rem 1.25rem 1.25rem;
  }
}

.ag-shop-sidebar__title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888888;
}

.ag-shop-sidebar__search {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid #f0f0f0;
}

.ag-shop-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ag-shop-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: #333333 !important;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ag-shop-category-link:hover {
  background: #f7f7f7;
  color: #f37335 !important;
}

.ag-shop-page .active-cat.ag-shop-category-link,
.ag-shop-page .active-cat.ag-shop-subcategory-link {
  background: #fff3eb;
  color: #f37335 !important;
  font-weight: 700;
}

.ag-shop-subcategory-list {
  margin: 0.2rem 0 0.35rem;
  padding-left: 0.85rem;
  border-left: 2px solid #f0f0f0;
}

.ag-shop-subcategory-link {
  display: block;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  color: #666666 !important;
  font-size: 0.78rem;
  text-decoration: none;
}

.ag-shop-subcategory-link:hover {
  color: #f37335 !important;
  background: #fafafa;
}

.ag-shop-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #f5f5f5;
  border-radius: 999px;
  padding: 0.35rem 0.4rem 0.35rem 0.85rem;
}

.ag-shop-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #111111;
  font-size: 0.82rem;
  outline: none;
}

.ag-shop-search__input::placeholder {
  color: #999999;
}

.ag-shop-search__btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: #f37335;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.ag-shop-toolbar.shop-toolbar {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.ag-shop-results__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888888;
}

.ag-shop-results__count {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #111111;
}

.ag-shop-results__of {
  color: #888888;
  font-weight: 500;
}

.ag-shop-chip.shop-chip {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  color: #333333 !important;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.ag-shop-chip.shop-chip:hover {
  border-color: #f37335;
  color: #f37335 !important;
  background: #fff8f3;
}

.ag-shop-chip__text {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-shop-sort.shop-sort-select {
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  color: #333333 !important;
  border-radius: 999px !important;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 2rem 0.45rem 0.85rem;
}

.ag-shop-grid .featured-product-card {
  flex: none;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.ag-shop-card-wrap {
  height: 100%;
}

.ag-shop-card-wrap .featured-product-card__link {
  height: 100%;
}

.ag-shop-card-compare {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
}

.ag-shop-empty {
  padding: 2.5rem 1rem;
  border: 1px dashed #e5e5e5;
  border-radius: 14px;
  background: #fafafa;
}

.ag-shop-empty__icon {
  color: #cccccc;
  margin-bottom: 0.75rem;
}

.ag-shop-empty__title {
  margin: 0 0 0.35rem;
  color: #111111;
  font-weight: 700;
}

.ag-shop-empty__text {
  margin: 0 0 1rem;
  color: #666666;
  font-size: 0.9rem;
}

.ag-shop-pagination .pagination .page-link {
  color: #333333;
  border-color: #e5e5e5;
}

.ag-shop-pagination .pagination .page-item.active .page-link {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.ag-shop-page .shop-sidebar__toggle {
  background: #ffffff;
  color: #111111;
  border-bottom: 1px solid #f0f0f0;
}

@media (max-width: 575.98px) {
  .ag-shop-page {
    padding-top: 0.35rem;
  }

  .ag-shop-card-wrap .featured-product-card__link {
    padding: 0.75rem;
  }

  .ag-shop-card-wrap .featured-product-card__title {
    font-size: 0.76rem;
  }
}

.ag-shop-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ag-shop-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ag-shop-filter-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888888;
}

.ag-shop-filter-select,
.ag-shop-filter-input {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #ffffff;
  color: #333333;
  font-size: 0.82rem;
  padding: 0.55rem 0.75rem;
  outline: none;
}

.ag-shop-filter-select:focus,
.ag-shop-filter-input:focus {
  border-color: #f37335;
}

.ag-shop-filter-select:disabled {
  background: #f5f5f5;
  color: #999999;
}

.ag-shop-filter-price {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: center;
}

.ag-shop-filter-price__sep {
  color: #aaaaaa;
  font-size: 0.85rem;
}

.ag-shop-filter-checks {
  gap: 0.55rem;
}

.ag-shop-filter-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.82rem;
  color: #333333;
  cursor: pointer;
}

.ag-shop-filter-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #f37335;
}

.ag-shop-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.25rem;
}

.ag-shop-filter-apply {
  flex: 1 1 auto;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

.ag-shop-filter-apply:hover {
  background: #f37335;
}

.ag-shop-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  color: #666666;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.ag-shop-filter-clear:hover {
  border-color: #f37335;
  color: #f37335;
}

/* ── Dark mode: Apple Gadgets shop / compare surfaces ── */
[data-theme="dark"] .ag-shop-page .breadcrumb-custom a,
[data-theme="dark"] .ag-shop-page .breadcrumb-custom .current {
  color: var(--text-muted);
}

[data-theme="dark"] .ag-shop-page__title {
  color: var(--text-primary);
}

[data-theme="dark"] .ag-shop-sidebar {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  box-shadow: var(--shadow-card) !important;
}

[data-theme="dark"] .ag-shop-sidebar__title,
[data-theme="dark"] .ag-shop-filter-label,
[data-theme="dark"] .ag-shop-results__label,
[data-theme="dark"] .ag-shop-results__of {
  color: var(--text-muted);
}

[data-theme="dark"] .ag-shop-filter-select,
[data-theme="dark"] .ag-shop-filter-input {
  background: var(--color-surface-2);
  border-color: var(--color-border);
  color: var(--text-primary);
}

[data-theme="dark"] .ag-shop-filter-select:disabled {
  background: var(--color-bg);
  color: var(--text-muted);
}

[data-theme="dark"] .ag-shop-filter-check,
[data-theme="dark"] .ag-shop-filter-price__sep {
  color: var(--text-secondary);
}

[data-theme="dark"] .ag-shop-filter-clear {
  border-color: var(--color-border);
  color: var(--text-secondary);
}

[data-theme="dark"] .ag-shop-search {
  background: var(--color-surface-2);
}

[data-theme="dark"] .ag-shop-search__input {
  color: var(--text-primary);
}

[data-theme="dark"] .ag-shop-search__input::placeholder {
  color: var(--text-muted);
}

[data-theme="dark"] .ag-shop-toolbar.shop-toolbar {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .ag-shop-results__count {
  color: var(--text-primary);
}

[data-theme="dark"] .ag-shop-chip.shop-chip {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--text-primary) !important;
}

[data-theme="dark"] .ag-shop-chip.shop-chip:hover {
  background: var(--color-surface-2);
}

[data-theme="dark"] .ag-shop-sort.shop-sort-select {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .ag-shop-empty {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .ag-shop-empty__icon {
  color: var(--text-muted);
}

[data-theme="dark"] .ag-shop-empty__title {
  color: var(--text-primary);
}

[data-theme="dark"] .ag-shop-empty__text {
  color: var(--text-secondary);
}

[data-theme="dark"] .ag-shop-pagination .pagination .page-link {
  background: var(--color-surface);
  color: var(--text-primary);
  border-color: var(--color-border);
}

[data-theme="dark"] .ag-shop-pagination .pagination .page-item.active .page-link {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

[data-theme="dark"] .ag-shop-page .shop-sidebar__toggle {
  background: var(--color-surface);
  color: var(--text-primary);
  border-bottom-color: var(--color-border);
}

[data-theme="dark"] .product-compare-btn {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--text-primary);
}

[data-theme="dark"] .product-compare-btn:hover,
[data-theme="dark"] .product-compare-btn.is-active {
  background: color-mix(in srgb, #f37335 12%, var(--color-surface));
}

[data-theme="dark"] .featured-product-card__link:hover {
  border-color: var(--color-border-hover);
}

[data-theme="dark"] .featured-product-card__price-old {
  color: var(--text-muted);
}

[data-theme="dark"] .ag-compare-page__lede {
  color: var(--text-secondary);
}

[data-theme="dark"] .ag-compare-table-wrap {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .ag-compare-table th,
[data-theme="dark"] .ag-compare-table td {
  border-bottom-color: var(--color-border);
}

[data-theme="dark"] .ag-compare-table__label-col,
[data-theme="dark"] .ag-compare-table__row-label {
  background: var(--color-surface-2);
  color: var(--text-primary);
}

[data-theme="dark"] .ag-compare-table__label-head {
  color: var(--text-primary);
}

[data-theme="dark"] .ag-compare-table__product-col,
[data-theme="dark"] .ag-compare-table__cell {
  background: var(--color-surface);
  color: var(--text-secondary);
}

[data-theme="dark"] .ag-compare-product-head__remove {
  background: var(--color-surface-2);
  color: var(--text-muted);
}