/**
 * Golden Bearing storefront skin.
 */

:root {
  --dr-gd-primary: #1a3a5c;
  --dr-gd-primary-soft: rgba(26, 58, 92, 0.08);
  --dr-gd-accent: #c9a227;
  --dr-gd-accent-soft: rgba(201, 162, 39, 0.15);
  --dr-gd-bg: #f7f8fa;
  --dr-gd-surface: #ffffff;
  --dr-gd-text: #1f2937;
  --dr-gd-muted: #6b7280;
  --dr-gd-border: #e5e7eb;
  --dr-gd-radius: 12px;
  --dr-gd-max: 1100px;
}

body.dr-tpl-golden {
  background: var(--dr-gd-bg) !important;
  color: var(--dr-gd-text);
  font-family: var(--dr-font-family, 'IRANSansWeb', 'Vazirmatn', Tahoma, Arial, sans-serif) !important;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.dr-tpl-golden .gd-home,
body.dr-tpl-golden .gd-shop,
body.dr-tpl-golden .gd-car-products {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--dr-gd-max);
  margin-inline: auto;
  box-sizing: border-box;
}

body.dr-tpl-golden .gd-header,
body.dr-tpl-golden .gd-footer {
  width: 100%;
  flex-shrink: 0;
}

body.dr-tpl-golden input,
body.dr-tpl-golden button,
body.dr-tpl-golden select,
body.dr-tpl-golden textarea {
  font-family: inherit;
}

body.dr-tpl-golden .dr-header,
body.dr-tpl-golden .dr-footer,
body.dr-tpl-golden .dr-cat-nav {
  display: none !important;
}

/* ─── Header ─────────────────────────────────────────── */
.gd-header {
  background: var(--dr-gd-surface);
  border-bottom: 2px solid var(--dr-gd-accent-soft);
  position: sticky;
  top: 0;
  z-index: 200;
}

.gd-header__inner {
  max-width: var(--dr-gd-max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gd-logo img { max-height: 44px; width: auto; }
.gd-logo__text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dr-gd-primary);
}

.gd-search {
  flex: 1;
  min-width: 180px;
  max-width: 360px;
  display: flex;
  align-items: center;
  border: 1px solid var(--dr-gd-border);
  border-radius: var(--dr-gd-radius);
  overflow: hidden;
  background: #fff;
}

.gd-search input {
  flex: 1;
  border: 0;
  padding: 10px 12px;
  font: inherit;
  outline: none;
  min-width: 0;
}

.gd-search button {
  border: 0;
  background: var(--dr-gd-primary);
  color: #fff;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gd-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.gd-header__link {
  color: var(--dr-gd-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.gd-header__link:hover { color: var(--dr-gd-accent); }

.gd-cart-btn {
  position: relative;
  border: 1px solid var(--dr-gd-border);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--dr-gd-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gd-cart-btn__count {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--dr-gd-accent);
  color: #fff;
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.gd-cart-btn__count[hidden] {
  display: none !important;
}

.gd-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--dr-gd-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: var(--dr-gd-primary);
}

.gd-menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.gd-header.is-menu-open .gd-menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.gd-header.is-menu-open .gd-menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.gd-header.is-menu-open .gd-menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Golden mobile header + mini cart */
@media (max-width: 767px) {
  body.dr-tpl-golden .gd-header__inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "logo menu cart"
      "search search search"
      "nav nav nav";
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
  }

  body.dr-tpl-golden .gd-logo {
    grid-area: logo;
    min-width: 0;
  }

  body.dr-tpl-golden .gd-logo img {
    max-height: 38px;
  }

  body.dr-tpl-golden .gd-logo__text {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.dr-tpl-golden .gd-menu-toggle {
    display: inline-flex;
    grid-area: menu;
  }

  body.dr-tpl-golden .gd-cart-btn {
    grid-area: cart;
    width: 44px;
    height: 44px;
  }

  body.dr-tpl-golden .gd-search {
    grid-area: search;
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  body.dr-tpl-golden .gd-search input {
    padding: 12px 14px;
    font-size: 1rem;
  }

  body.dr-tpl-golden .gd-search button {
    width: 46px;
    height: 46px;
  }

  body.dr-tpl-golden .gd-header__actions {
    grid-area: nav;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: #fff;
    border: 1px solid var(--dr-gd-border);
    border-radius: var(--dr-gd-radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(26, 58, 92, 0.08);
  }

  body.dr-tpl-golden .gd-header.is-menu-open .gd-header__actions {
    display: flex;
  }

  body.dr-tpl-golden .gd-header__link {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--dr-gd-border);
  }

  body.dr-tpl-golden .gd-header__link:last-of-type {
    border-bottom: none;
  }

  body.dr-tpl-golden .gd-header__actions .dr-login-btn,
  body.dr-tpl-golden .gd-header__actions .dr-header-user {
    margin: 0;
    width: 100%;
  }

  body.dr-tpl-golden .gd-header__actions .dr-login-btn {
    display: block;
    text-align: center;
    padding: 14px 16px;
    border-radius: 0;
    border-top: 1px solid var(--dr-gd-border);
    font-size: 1rem;
  }

  body.dr-tpl-golden .gd-header__actions .dr-header-user {
    border-top: 1px solid var(--dr-gd-border);
  }

  body.dr-tpl-golden .gd-header__actions .dr-user-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 0;
    min-height: 48px;
  }

  body.dr-tpl-golden .gd-header__actions .dr-user-dropdown {
    position: static;
    box-shadow: none;
    border-top: 1px solid var(--dr-gd-border);
    border-radius: 0;
    min-width: 0;
    width: 100%;
  }

  body.dr-tpl-golden .gd-header__actions .dr-user-dropdown a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  /* Mini cart — full-width mobile drawer */
  body.dr-tpl-golden .dr-cart-panel {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: auto;
    max-height: 100svh;
    max-height: 100dvh;
    box-shadow: none;
  }

  body.dr-tpl-golden .dr-cart-panel-header {
    background: var(--dr-gd-primary);
    padding: 18px 16px;
    flex-shrink: 0;
  }

  body.dr-tpl-golden .dr-cart-panel-header h2 {
    font-size: 1.15rem;
  }

  body.dr-tpl-golden .dr-cart-close {
    font-size: 2rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.dr-tpl-golden .dr-cart-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px;
  }

  body.dr-tpl-golden .dr-mini-cart-item {
    font-size: 1rem;
    padding: 14px 0;
    gap: 12px;
  }

  body.dr-tpl-golden .dr-mini-cart-item__num {
    font-size: 1.05rem;
    min-width: 1.6em;
  }

  body.dr-tpl-golden .dr-mini-cart-item__name {
    font-size: 1.02rem;
    line-height: 1.5;
  }

  body.dr-tpl-golden .dr-mini-cart-item__calc {
    font-size: 0.98rem;
  }

  body.dr-tpl-golden .dr-cart-footer {
    flex-shrink: 0;
    padding: 14px 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  body.dr-tpl-golden .dr-cart-total {
    font-size: 1.1rem;
    margin-bottom: 14px;
  }

  body.dr-tpl-golden .dr-cart-footer .dr-checkout-btn {
    padding: 16px;
    font-size: 1.05rem;
    border-radius: 12px;
    background: var(--dr-gd-primary);
  }

  body.dr-tpl-golden .dr-cart-footer .dr-checkout-btn:hover {
    background: var(--dr-gd-accent);
  }

  body.dr-tpl-golden .dr-view-cart-link {
    font-size: 1rem;
    padding: 12px;
  }
}

@media (min-width: 768px) {
  body.dr-tpl-golden .gd-menu-toggle {
    display: none;
  }
}

/* ─── Homepage ───────────────────────────────────────── */
.gd-home {
  max-width: var(--dr-gd-max);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.gd-home-intro {
  text-align: center;
  margin-bottom: 28px;
}

.gd-home-intro__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--dr-gd-primary);
}

.gd-home-intro__sub {
  margin: 0;
  color: var(--dr-gd-muted);
  font-size: 0.95rem;
}

body.dr-tpl-golden .gd-car-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  justify-items: stretch;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.dr-tpl-golden .gd-car-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-self: stretch;
  align-self: stretch;
  min-height: 56px;
  padding: 14px 16px;
  background: var(--dr-gd-surface);
  border: 1px solid var(--dr-gd-border);
  border-radius: var(--dr-gd-radius);
  text-decoration: none;
  color: var(--dr-gd-text);
  transition: border-color .2s, box-shadow .2s;
}

.gd-car-card:hover {
  border-color: var(--dr-gd-accent);
  box-shadow: 0 4px 14px var(--dr-gd-accent-soft);
}

.gd-car-card__name {
  font-weight: 700;
  font-size: 1rem;
  text-align: right;
  flex: 1;
  min-width: 0;
}

.gd-car-card__count {
  font-size: 0.78rem;
  color: var(--dr-gd-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.gd-home-shop-link {
  text-align: center;
  margin-top: 32px;
}

.gd-home-shop-link__btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--dr-gd-primary);
  color: #fff !important;
  border-radius: var(--dr-gd-radius);
  text-decoration: none;
  font-weight: 600;
}

.gd-home-shop-link__btn:hover,
.gd-home-shop-link__btn:focus,
.gd-home-shop-link__btn:visited {
  background: #142d47;
  color: #fff !important;
}

#gd-home-cars[hidden],
#gd-home-products[hidden] {
  display: none !important;
}

.gd-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px;
  min-height: 160px;
}

.gd-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--dr-gd-border);
  border-top-color: var(--dr-gd-accent);
  border-radius: 50%;
  animation: gd-spin 0.75s linear infinite;
}

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

.gd-car-products.is-loading .gd-car-products__body {
  pointer-events: none;
}

/* Car product list (homepage) */
.gd-car-products__head {
  margin-bottom: 20px;
}

.gd-wholesale-notice,
.gd-car-products__wholesale-notice {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #15803d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.gd-shop > .gd-wholesale-notice {
  margin-bottom: 16px;
}

.gd-wholesale-notice--shop {
  margin-bottom: 16px;
}

.gd-car-products__title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--dr-gd-primary);
}

.gd-product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gd-product-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--dr-gd-surface);
  border: 1px solid var(--dr-gd-border);
  border-radius: var(--dr-gd-radius);
  cursor: pointer;
  font: inherit;
  text-align: right;
  color: var(--dr-gd-text);
  transition: border-color .2s;
  box-sizing: border-box;
}

.gd-product-row:hover:not(:disabled) {
  border-color: var(--dr-gd-accent);
}

.gd-product-row--oos {
  opacity: 0.55;
  cursor: not-allowed;
}

.gd-product-row__name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: calc(2rem - 5px);
  line-height: 1.4;
}

.gd-product-row__price {
  flex-shrink: 0;
  color: var(--dr-gd-primary);
  font-weight: 700;
  font-size: 1.75rem;
}

.gd-product-row__price small {
  font-weight: 400;
  font-size: 1.6rem;
}

/* Car product list (homepage + AJAX-loaded rows) */
.gd-car-products .gd-product-row {
  font-size: 2rem;
  padding: 18px 20px;
}

.gd-car-products .gd-empty {
  font-size: 1.5rem;
}

/* ATC modal */
.gd-atc-modal[hidden] { display: none !important; }

.gd-atc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 480px) {
  .gd-atc-modal {
    align-items: center;
    padding: 16px;
  }
}

.gd-atc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 92, 0.35);
  backdrop-filter: blur(2px);
  animation: gd-modal-fade-in 0.2s ease;
}

.gd-atc-modal__box {
  position: relative;
  background: var(--dr-gd-surface);
  border: 1px solid var(--dr-gd-border);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 -8px 32px rgba(26, 58, 92, 0.12);
  animation: gd-modal-slide-up 0.25s ease;
}

@media (min-width: 480px) {
  .gd-atc-modal__box {
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(26, 58, 92, 0.16);
  }
}

@keyframes gd-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gd-modal-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.gd-atc-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 0;
}

.gd-atc-modal__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--dr-gd-border);
  border-radius: 50%;
  background: var(--dr-gd-bg);
  cursor: pointer;
  color: var(--dr-gd-muted);
  padding: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.gd-atc-modal__close:hover {
  background: var(--dr-gd-accent-soft);
  border-color: var(--dr-gd-accent);
  color: var(--dr-gd-primary);
}

.gd-atc-modal__title {
  margin: 0;
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--dr-gd-text);
  text-align: right;
}

.gd-atc-modal__body {
  padding: 16px 20px 20px;
}

.gd-atc-modal__price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: var(--dr-gd-primary-soft);
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dr-gd-primary);
}

.gd-atc-modal__qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--dr-gd-bg);
  border: 1px solid var(--dr-gd-border);
  border-radius: 12px;
}

.gd-atc-modal__qty-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dr-gd-text);
}

.gd-atc-modal__qty.dr-product-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--dr-gd-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--dr-gd-surface);
}

.gd-atc-modal__qty .dr-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  color: var(--dr-gd-primary);
  transition: background 0.15s;
}

.gd-atc-modal__qty .dr-qty-btn:hover {
  background: var(--dr-gd-accent-soft);
}

.gd-atc-modal__qty .dr-product-qty-input {
  width: 48px;
  height: 40px;
  border: 0;
  border-right: 1px solid var(--dr-gd-border);
  border-left: 1px solid var(--dr-gd-border);
  background: var(--dr-gd-surface);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dr-gd-text);
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
}

.gd-atc-modal__qty .dr-product-qty-input::-webkit-outer-spin-button,
.gd-atc-modal__qty .dr-product-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gd-atc-modal__footer {
  padding: 0 20px 20px;
}

.gd-atc-modal__btn {
  display: block;
  width: 100%;
  background: var(--dr-gd-accent) !important;
  color: #fff !important;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.gd-atc-modal__btn:hover {
  background: #b8921f !important;
}

.gd-atc-modal__btn:active {
  transform: scale(0.98);
}

.gd-atc-modal__btn.loading {
  opacity: 0.75;
  pointer-events: none;
}

.gd-atc-modal__btn.success {
  background: #2e7d32 !important;
}

/* ─── Shop listing ───────────────────────────────────── */
.gd-shop {
  max-width: var(--dr-gd-max);
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.gd-shop__breadcrumb {
  font-size: 0.85rem;
  color: var(--dr-gd-muted);
  margin-bottom: 16px;
}

.gd-shop__breadcrumb a {
  color: var(--dr-gd-primary);
  text-decoration: none;
}

.gd-shop__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.gd-sidebar-intro-card {
  padding: 0;
  overflow: hidden;
}

.gd-sidebar-intro-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.gd-sidebar-intro-text {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--dr-gd-muted);
  line-height: 1.7;
}

.gd-pro-cat-desc-box {
  background: var(--dr-gd-primary-soft);
  border-right: 4px solid var(--dr-gd-primary);
  border-radius: var(--dr-gd-radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--dr-gd-text);
}

.gd-sidebar-card {
  background: var(--dr-gd-surface);
  border: 1px solid var(--dr-gd-border);
  border-radius: var(--dr-gd-radius);
  padding: 14px;
  margin-bottom: 12px;
}

.gd-sidebar-card h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--dr-gd-primary);
}

.gd-sidebar-card form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gd-sidebar-card input[type="search"] {
  border: 1px solid var(--dr-gd-border);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.gd-sidebar-card button {
  background: var(--dr-gd-primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  font: inherit;
  cursor: pointer;
}

.gd-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow: auto;
}

.gd-sidebar-list a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--dr-gd-text);
  font-size: 0.88rem;
}

.gd-sidebar-list a:hover,
.gd-sidebar-list a.is-active {
  background: var(--dr-gd-primary-soft);
  color: var(--dr-gd-primary);
  font-weight: 600;
}

.gd-shop__hero h1 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: var(--dr-gd-primary);
}

.gd-shop__hero p {
  margin: 0 0 16px;
  color: var(--dr-gd-muted);
  font-size: 0.92rem;
}

.gd-car-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.gd-car-chip {
  padding: 6px 14px;
  border: 1px solid var(--dr-gd-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--dr-gd-text);
  font-size: 0.85rem;
  background: #fff;
}

.gd-car-chip.is-active,
.gd-car-chip:hover {
  border-color: var(--dr-gd-accent);
  background: var(--dr-gd-accent-soft);
  color: var(--dr-gd-primary);
  font-weight: 600;
}

.gd-shop__meta {
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--dr-gd-muted);
}

.gd-shop__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* Product card */
.gd-card {
  background: var(--dr-gd-surface);
  border: 1px solid var(--dr-gd-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(26, 58, 92, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gd-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 22px rgba(26, 58, 92, 0.1);
  transform: translateY(-2px);
}

.gd-card--oos { opacity: 0.75; }

.gd-card__media {
  display: block;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
}

.gd-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gd-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.gd-card__title {
  color: var(--dr-gd-text);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 600;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gd-card__title:hover {
  color: var(--dr-gd-primary);
}

.gd-card__price {
  font-weight: 700;
  color: var(--dr-gd-primary);
  width: 100%;
}

.gd-card__price .gd-dual-prices {
  margin-top: 0;
}

/* Dual retail / wholesale prices */
.gd-dual-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.gd-dual-prices--card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 10px;
  gap: 8px;
}

.gd-dual-prices--card .gd-dual-prices__row {
  font-size: calc(0.8rem + 2px);
  gap: 5px;
}

.gd-dual-prices--card .gd-dual-prices__label,
.gd-dual-prices--card .gd-dual-prices__value {
  font-size: inherit;
  font-weight: 700;
  line-height: 1.4;
}

.gd-dual-prices--card .gd-dual-prices__value {
  flex: 1;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}

.gd-dual-prices--card .gd-dual-prices__tick,
.gd-dual-prices--card .gd-dual-prices__info {
  width: 20px;
  height: 20px;
  margin-inline-start: auto;
}

.gd-dual-prices--card .gd-dual-prices__tick svg,
.gd-dual-prices--card .gd-dual-prices__info svg {
  width: 12px;
  height: 12px;
}

.gd-dual-prices__row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  line-height: 1.35;
  width: 100%;
  font-weight: 700;
}

.gd-dual-prices__row--retail {
  color: #c62828;
}

.gd-dual-prices__row--wholesale {
  color: #15803d;
}

.gd-dual-prices__label {
  font-size: 0.82em;
  font-weight: 700;
  flex-shrink: 0;
}

.gd-dual-prices__value {
  white-space: nowrap;
  font-weight: inherit;
}

.gd-dual-prices__tick {
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  flex-shrink: 0;
}

.gd-dual-prices__tick.is-active {
  display: inline-flex;
}

.gd-dual-prices__row--retail .gd-dual-prices__tick.is-active {
  border-color: #c62828;
  background: #c62828;
  color: #fff;
}

.gd-dual-prices__row--wholesale .gd-dual-prices__tick.is-active {
  border-color: #15803d;
  background: #15803d;
  color: #fff;
}

.gd-dual-prices__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #15803d;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}

.gd-dual-prices__info.is-hidden {
  display: none;
}

.gd-dual-prices__info:hover {
  color: #166534;
  transform: scale(1.08);
}

.gd-dual-prices--row .gd-dual-prices__row {
  font-size: 1.35rem;
}

.gd-dual-prices--row .gd-dual-prices__tick,
.gd-dual-prices--row .gd-dual-prices__info {
  width: 26px;
  height: 26px;
}

.gd-dual-prices--row .gd-dual-prices__tick svg,
.gd-dual-prices--row .gd-dual-prices__info svg {
  width: 16px;
  height: 16px;
}

/* Wholesale price tooltip toast */
.gd-price-tip {
  position: fixed;
  z-index: 10050;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 16px;
  background: #1a3a5c;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: gd-tip-in 0.2s ease;
  pointer-events: none;
}

@keyframes gd-tip-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gd-card__currency {
  font-size: 0.78rem;
  font-weight: 400;
}

.gd-card__oos { color: #b91c1c; font-size: 0.85rem; }
.gd-card__ask { color: var(--dr-gd-muted); font-size: 0.85rem; }

.gd-card__atc {
  flex: 1;
  background: var(--dr-gd-primary) !important;
  color: #fff !important;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  min-height: 38px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, filter 0.15s ease;
}

.gd-card__atc:hover {
  filter: brightness(1.06);
}

.gd-card .dr-product-atc-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.gd-card .dr-product-qty {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.gd-card .dr-product-qty .dr-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 38px;
  border: none;
  background: #f8fafc;
  color: var(--dr-gd-primary);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.gd-card .dr-product-qty .dr-qty-btn:hover {
  background: #eef2f7;
  color: #0f2744;
}

.gd-card .dr-product-qty-input {
  width: 38px;
  height: 38px;
  border: none;
  border-right: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  background: #fff;
  color: var(--dr-gd-text);
  padding: 0;
  outline: none;
  -moz-appearance: textfield;
}

.gd-card .dr-product-qty-input::-webkit-outer-spin-button,
.gd-card .dr-product-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.dr-tpl-golden .dr-product-atc-row {
  margin-top: auto;
}

body.dr-tpl-golden .dr-product-qty {
  border-color: var(--dr-gd-border);
}

.gd-pagination {
  margin-top: 24px;
}

.gd-pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.gd-pagination a,
.gd-pagination span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--dr-gd-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--dr-gd-text);
}

.gd-pagination .current {
  background: var(--dr-gd-primary);
  color: #fff;
  border-color: var(--dr-gd-primary);
}

.gd-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--dr-gd-muted);
}

/* ─── Footer ─────────────────────────────────────────── */
.gd-footer {
  background: var(--dr-gd-primary);
  color: rgba(255, 255, 255, 0.9);
  padding: 24px 16px;
  margin-top: auto;
}

.gd-footer__inner {
  position: relative;
  max-width: var(--dr-gd-max);
  margin: 0 auto;
  padding-inline: 16px;
}

.gd-footer__center {
  text-align: center;
}

.gd-footer__copy {
  margin: 0;
  font-size: 0.85rem;
}

.gd-footer__contact {
  margin-top: 10px;
}

.gd-footer__contact .dr-retail-footer-phone {
  margin: 0;
  justify-content: center;
}

.gd-footer__enamad {
  position: absolute;
  left: 16px;
  bottom: 0;
  line-height: 0;
  z-index: 1;
}

.gd-footer__enamad img,
.gd-footer__enamad iframe {
  display: block;
  max-height: 90px;
  width: auto;
}

.gd-footer--enamad .gd-footer__inner {
  padding-left: 120px;
  min-height: 90px;
}

@media (max-width: 640px) {
  .gd-footer--enamad .gd-footer__inner {
    padding-left: 16px;
    min-height: 0;
  }

  .gd-footer__enamad {
    position: static;
    margin-bottom: 12px;
  }
}

/* ─── Responsive ─────────────────────────────────────── */
/* gd-mobile-car-fullwidth-v2 */

@media (max-width: 767px) {
  body.dr-tpl-golden .gd-home {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  body.dr-tpl-golden .gd-home #gd-home-cars,
  body.dr-tpl-golden .gd-car-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.dr-tpl-golden .gd-car-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  body.dr-tpl-golden .gd-car-grid > .gd-car-card,
  body.dr-tpl-golden a.gd-car-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
  }

  body.dr-tpl-golden .gd-car-card__name {
    text-align: right !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 2rem !important;
  }

  /* Product rows: 70% name / 30% prices on mobile */
  body.dr-tpl-golden .gd-product-row {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 6px 8px;
    align-items: center;
    padding: 12px 10px;
  }

  body.dr-tpl-golden .gd-car-products .gd-product-row {
    font-size: inherit;
    padding: 12px 10px;
  }

  body.dr-tpl-golden .gd-product-row__name {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: clamp(0.82rem, 3.4vw, 0.98rem);
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.dr-tpl-golden .gd-product-row__price {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: clamp(0.68rem, 2.8vw, 0.82rem);
    line-height: 1.35;
    text-align: right;
  }

  body.dr-tpl-golden .gd-product-row__price small {
    font-size: 0.85em;
    font-weight: 400;
  }

  body.dr-tpl-golden .gd-product-row__price .gd-dual-prices--row {
    gap: 3px;
    align-items: stretch;
  }

  body.dr-tpl-golden .gd-product-row__price .gd-dual-prices--row .gd-dual-prices__row {
    font-size: clamp(0.62rem, 2.5vw, 0.76rem);
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
    line-height: 1.3;
  }

  body.dr-tpl-golden .gd-product-row__price .gd-dual-prices__label {
    display: none;
  }

  body.dr-tpl-golden .gd-product-row__price .gd-dual-prices__value {
    white-space: normal;
    word-break: break-word;
    text-align: right;
  }

  body.dr-tpl-golden .gd-product-row__price .gd-dual-prices--row .gd-dual-prices__tick,
  body.dr-tpl-golden .gd-product-row__price .gd-dual-prices--row .gd-dual-prices__info {
    width: 18px;
    height: 18px;
  }

  body.dr-tpl-golden .gd-product-row__price .gd-dual-prices--row .gd-dual-prices__tick svg,
  body.dr-tpl-golden .gd-product-row__price .gd-dual-prices--row .gd-dual-prices__info svg {
    width: 11px;
    height: 11px;
  }
}

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

  .gd-shop__sidebar {
    display: none;
  }

  .gd-shop__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .gd-shop__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  body.dr-tpl-golden .gd-car-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    flex-direction: unset !important;
    gap: 12px;
    width: 100%;
    max-width: var(--dr-gd-max);
    margin-inline: auto;
  }

  body.dr-tpl-golden .gd-car-grid > .gd-car-card,
  body.dr-tpl-golden a.gd-car-card {
    width: auto !important;
    max-width: none !important;
    flex: unset !important;
  }

  body.dr-tpl-golden .gd-car-card {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    min-height: 90px;
    padding: 16px 12px;
  }

  body.dr-tpl-golden .gd-car-card__name {
    text-align: center;
    flex: none;
    font-size: calc(1rem + 3px);
  }
}
