/* Local replacement for removed remote styles. */
:root {
  --local-black: #070503;
  --local-espresso: #160c06;
  --local-brown: #352013;
  --local-gold: #d8aa45;
  --local-gold-bright: #ffe49a;
  --local-text: #fff2d2;
  --local-muted: #c9ad78;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--local-black);
  color: var(--local-text);
  font-family: Arial, Helvetica, sans-serif;
}

body.gan-popup-open {
  overflow: hidden;
}

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

a {
  color: var(--local-gold-bright);
}

.gan-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.gan-popup-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gan-popup-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(216, 170, 69, 0.2), transparent 32rem),
    rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(7px);
}

.gan-popup-card {
  position: relative;
  z-index: 1;
  width: min(525px, calc(100vw - 30px));
  max-height: min(890px, calc(100vh - 28px));
  overflow: hidden;
  border: 1px solid rgba(255, 228, 154, 0.42);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 100%, rgba(216, 0, 0, 0.22), transparent 20rem),
    linear-gradient(180deg, #270000 0%, #090000 100%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.72),
    0 0 38px rgba(216, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 228, 154, 0.26);
  transform: translateY(12px) scale(0.98);
  transition: transform 220ms ease;
}

.gan-popup-overlay.is-active .gan-popup-card {
  transform: translateY(0) scale(1);
}

.gan-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72) !important;
  color: #fff !important;
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
  box-shadow: 0 0 18px rgba(255, 25, 18, 0.45) !important;
}

.gan-popup-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #120000;
}

.gan-popup-content {
  padding: 28px 30px 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 170, 69, 0.18), transparent 14rem),
    linear-gradient(180deg, #4b0000, #160000 70%);
}

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

.gan-popup-actions {
  display: grid;
  gap: 18px;
}

.gan-popup-btn {
  min-height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(100deg, #c91500 0%, #d73200 42%, #f1c400 100%);
  box-shadow: 0 12px 28px rgba(255, 34, 12, 0.32);
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gan-popup-btn:hover,
.gan-popup-btn:focus {
  filter: brightness(1.08) drop-shadow(0 0 12px rgba(255, 228, 154, 0.45));
}

.gan-popup-copy {
  max-width: 390px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
}

.gan-popup-copy-small {
  margin-top: 8px;
  color: #ff180f;
  font-size: 15px;
  font-weight: 700;
}

.container,
.product-single {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}

.topbar,
.navbar,
.bottom-nav,
.pd-sticky-header {
  background: linear-gradient(180deg, rgba(53, 32, 19, 0.98), rgba(7, 5, 3, 0.98));
  border-color: rgba(255, 228, 154, 0.28);
}

.topbar-inner,
.nav-inner,
.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  font-size: 13px;
  padding: 8px 0;
}

.topbar-right,
.nav-actions,
.pd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 228, 154, 0.22);
}

.logo-mobile {
  display: none;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 520px;
  border: 1px solid rgba(255, 228, 154, 0.3);
  border-radius: 8px;
  background: rgba(7, 5, 3, 0.72);
  overflow: hidden;
}

.search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  padding: 0 12px;
  background: transparent;
  color: var(--local-text);
  outline: 0;
}

.search-icon-btn,
.icon-btn,
.login-btn,
.pd-sticky-btn,
.pd-buy-btn,
.pd-cart-btn,
.pd-compare-btn,
.modal-btn {
  cursor: pointer;
  border: 1px solid rgba(255, 228, 154, 0.48);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--local-gold-bright), var(--local-gold));
  color: #1b1007;
  font-weight: 700;
  min-height: 38px;
  padding: 0 14px;
}

.mega-cats-wrapper {
  width: 100%;
  overflow-x: auto;
}

.mega-cats {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  white-space: nowrap;
}

.mega-cats a {
  text-decoration: none;
  color: var(--local-muted);
  border: 1px solid rgba(255, 228, 154, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
}

.product-single {
  padding: 24px 0 110px;
}

.pd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--local-muted);
  font-size: 13px;
}

.pd-top-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr) minmax(260px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.pd-media-card,
.pd-info-card,
.pd-side-card,
.pd-full-description,
.pd-related-full,
.compare-sidebar,
.modal-dialog {
  border: 1px solid rgba(255, 228, 154, 0.24);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(53, 32, 19, 0.9), rgba(10, 6, 3, 0.94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  padding: 16px;
}

.pd-main-image {
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(7, 5, 3, 0.72);
}

.pd-thumb-gallery,
.pd-mobile-slider {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

.pd-thumb-btn {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  padding: 2px;
  border: 1px solid rgba(255, 228, 154, 0.22);
  border-radius: 8px;
  background: rgba(7, 5, 3, 0.68);
}

.pd-thumb-btn.active {
  border-color: var(--local-gold-bright);
}

.pd-title {
  margin: 0 0 12px;
  color: var(--local-gold-bright);
  line-height: 1.15;
}

.pd-price-row,
.pd-meta-row,
.pd-sticky-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pd-price-current,
.pd-sticky-price {
  color: var(--local-gold-bright);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
}

.pd-price-original,
.pd-sticky-price-original {
  color: rgba(255, 242, 210, 0.55);
  text-decoration: line-through;
}

.pd-discount-badge,
.stock-badge,
.sold-inline,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: linear-gradient(180deg, var(--local-gold-bright), var(--local-gold));
  color: #1b1007;
  font-weight: 800;
}

.pd-short-desc,
.pd-full-desc-body {
  line-height: 1.7;
  color: var(--local-text);
}

.pd-sidebar {
  display: grid;
  gap: 14px;
}

.pd-sticky-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 228, 154, 0.24);
}

.pd-sticky-header-container {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.pd-sticky-thumb img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 7px;
}

.pd-sticky-info {
  flex: 1;
  min-width: 0;
}

.pd-sticky-title {
  margin: 0;
  font-size: 14px;
  color: var(--local-text);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  border-top: 1px solid rgba(255, 228, 154, 0.24);
}

.bottom-nav-inner {
  justify-content: space-around;
  padding: 8px 10px;
}

.bottom-nav-item {
  border: 0;
  background: transparent;
  color: var(--local-muted);
  text-decoration: none;
  font-size: 11px;
}

.modal-overlay,
.pd-share-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.modal-overlay.show,
.pd-share-modal-overlay.show {
  display: flex;
}

@media (max-width: 960px) {
  .pd-top-layout {
    grid-template-columns: 1fr;
  }

  .logo {
    display: none;
  }

  .logo-mobile {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .nav-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    max-width: none;
  }
}
