:root {
  --bg-page: #ffffff;
  --bg-gray-box: #f5f5f5;
  --text-black: #121212;
  --text-muted: #666666;
  --border-color: #e5e5e5;
  --btn-border: #121212;
  --brand-green: #15803d;
  --brand-red: #e11d48;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-black);
  padding-bottom: 90px;
  min-height: 100vh;
}

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

/* Marquee Bar */
.top-marquee-bar {
  background-color: #000000;
  padding: 10px 14px;
  text-align: center;
}

.top-marquee-bar a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Header */
header {
  background-color: #000000;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-weight: 900;
  font-size: 15px;
}

.brand-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #333333;
  transition: background 0.2s;
}

.nav-link:hover {
  background: #222222;
}

.action-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.cart-badge-count {
  font-size: 11px;
  font-weight: 800;
  margin-left: 2px;
}

/* Layout */
.product-container {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Gallery */
.gallery-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.main-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-gray-box);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.main-stage.loading .main-image {
  opacity: 0;
}

.main-stage.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.04) 50%, rgba(0,0,0,0) 100%);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.thumb-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.thumb-strip::-webkit-scrollbar { display: none; }

.thumb-item {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  background: var(--bg-gray-box);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-item.active {
  border: 2px solid #000000;
}

/* Details */
.details-section {
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-black);
  margin-bottom: 12px;
}

.price-stock-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.product-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-black);
}

.stock-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
}

.stock-badge.in-stock {
  background-color: #dcfce7;
  color: var(--brand-green);
}

.stock-badge.out-stock {
  background-color: #fee2e2;
  color: var(--brand-red);
}

.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 18px 0;
}

/* Chips Variant Selector */
.variant-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-black);
  margin-bottom: 10px;
}

.variant-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.variant-chip {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.variant-chip input[type="radio"] {
  display: none;
}

.variant-chip-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-black);
}

.variant-chip:hover {
  border-color: #999999;
}

.variant-chip.selected {
  background: #000000;
  border-color: #000000;
}

.variant-chip.selected .variant-chip-title {
  color: #ffffff;
}

/* Desktop Actions */
.desktop-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  height: 46px;
}

.stepper-btn {
  width: 36px;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text-black);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-val {
  min-width: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.btn-secondary {
  flex: 1;
  height: 46px;
  background-color: #ffffff;
  color: var(--text-black);
  border: 1px solid var(--btn-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background-color: #f5f5f5;
}

.btn-primary {
  flex: 1;
  height: 46px;
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background-color: #222222;
}

.btn-primary:disabled, .btn-secondary:disabled {
  background-color: #f1f1f1 !important;
  border-color: #e0e0e0 !important;
  color: #999999 !important;
  cursor: not-allowed !important;
}

.product-desc-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-black);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Mobile Bottom Sticky Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  z-index: 99;
}

.mobile-action-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.mobile-action-row .btn-primary, 
.mobile-action-row .btn-secondary {
  height: 44px;
}

/* Right-Corner Cart Popup Notification */
.cart-popup-toast {
  position: fixed;
  top: 76px;
  right: 24px;
  width: 320px;
  background: #000000;
  color: #ffffff;
  border-radius: 8px;
  padding: 18px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  border: 1px solid #222222;
}

.cart-popup-toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.popup-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.popup-close-btn {
  background: none;
  border: none;
  color: #888888;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close-btn:hover {
  color: #ffffff;
}

.popup-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.popup-item-img {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  background: #1a1a1a;
  border: 1px solid #333333;
  flex-shrink: 0;
}

.popup-item-name {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #ffffff;
}

.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-btn-dark {
  width: 100%;
  background: #000000;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 4px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.popup-btn-dark:hover {
  background: #1c1c1c;
}

.popup-btn-light {
  width: 100%;
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  border-radius: 4px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.popup-btn-light:hover {
  background: #e6e6e6;
}

.popup-continue-link {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 4px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .desktop-actions {
    display: none;
  }
  .mobile-sticky-bar {
    display: block;
  }
  .cart-popup-toast {
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

/* Mobile Floating Scroll Hint */
.scroll-hint {
  position: fixed;
  bottom: calc(70px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: floatBounce 2s infinite;
  white-space: nowrap;
  pointer-events: none;
}

.scroll-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

@keyframes floatBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-5px); }
  60% { transform: translateX(-50%) translateY(-2px); }
}

@media (min-width: 861px) {
  .scroll-hint {
    display: none !important;
  }
}

 .brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background-color: #000000;
}