/* ===========================
   DESIGN SYSTEM — ULTRASTYLE
   SUNDAY MONDAY Brand Identity
   Black & White minimal aesthetic
   =========================== */
:root {
  /* Brand Colors — Black & White */
  --color-bg: #0a0a0a;
  --color-bg-deep: #000000;
  --color-surface: #111111;
  --color-surface-hover: #1a1a1a;
  --color-cream: #ffffff;
  --color-cream-light: #ffffff;
  --color-cream-muted: rgba(255, 255, 255, 0.5);
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.55);
  --color-accent: #cccccc;
  --color-accent-gold: #ffffff;
  --color-overlay: rgba(0, 0, 0, 0.5);
  --color-overlay-hover: rgba(0, 0, 0, 0.75);
  --color-tag-bg: rgba(255, 255, 255, 0.1);
  --color-tag-border: rgba(255, 255, 255, 0.25);
  --color-tag-text: var(--color-cream);
  --color-divider: rgba(255, 255, 255, 0.1);

  /* Amazon brand */
  --color-amazon: #ffffff;
  --color-amazon-hover: #e0e0e0;
  --color-amazon-text: #000000;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Bebas Neue', 'Impact', sans-serif;

  /* Spacing */
  --header-height: 100px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 0.25s;
  --duration-normal: 0.45s;
  --duration-slow: 0.7s;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  min-height: 100vh;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

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

/* ===========================
   HEADER — Logo Only
   =========================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid var(--color-divider);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              background var(--duration-normal) ease;
}

#site-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
}

#site-header.hidden {
  transform: translateY(-100%);
}

#main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(20px, 3vw, 48px);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  transition: opacity var(--duration-fast) ease,
              transform var(--duration-fast) ease;
}

.logo:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.logo:active {
  transform: scale(0.98);
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1) drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

/* Social Icons */
.social-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--color-cream);
  transition: color var(--duration-fast) ease,
              background var(--duration-fast) ease,
              transform var(--duration-fast) ease;
}

.social-link:hover {
  color: var(--color-cream-light);
  background: rgba(212, 203, 179, 0.08);
  transform: scale(1.1);
}

.social-link:active {
  transform: scale(0.95);
}

/* ===========================
   HERO GRID — 2x2
   =========================== */
#hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100vw;
  height: 100vh;
  gap: 3px;
  background-color: var(--color-bg-deep);
  padding-top: var(--header-height);
}

/* ===========================
   PRODUCT CARD
   =========================== */
.product-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

/* Product Image */
.product-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo),
              filter var(--duration-slow) ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
  filter: brightness(0.75) saturate(0.9);
}

/* Overlay */
.product-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 40px);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-quart),
              background var(--duration-normal) ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
  background: var(--color-overlay-hover);
}

/* Tag */
.product-tag {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-tag-text);
  background: var(--color-tag-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 7px 16px;
  border-radius: 2px;
  border: 1px solid var(--color-tag-border);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-out-expo) 0.05s,
              opacity var(--duration-normal) var(--ease-out-expo) 0.05s;
}

.product-card:hover .product-tag {
  transform: translateY(0);
  opacity: 1;
}

/* Product Info */
.product-info {
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-out-expo) 0.1s,
              opacity var(--duration-normal) var(--ease-out-expo) 0.1s;
}

.product-card:hover .product-info {
  transform: translateY(0);
  opacity: 1;
}

.product-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 400;
  color: var(--color-cream-light);
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.product-price {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-accent-gold);
  letter-spacing: 0.05em;
}

/* CTA */
.product-cta {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(15px);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-out-expo) 0.15s,
              opacity var(--duration-normal) var(--ease-out-expo) 0.15s;
}

.product-card:hover .product-cta {
  transform: translateX(0);
  opacity: 1;
}

.cta-text {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-cream);
}

.cta-arrow {
  color: var(--color-cream);
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.product-card:hover .cta-arrow {
  animation: arrowBounce 1.2s var(--ease-out-expo) infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}




/* ===========================
   COMING SOON — Silhouette Cards
   =========================== */
.coming-soon {
  cursor: default;
  pointer-events: auto;
}

.coming-soon .product-image img {
  filter: brightness(0.15) saturate(0);
}

.coming-soon:hover .product-image img {
  filter: brightness(0.22) saturate(0);
  transform: scale(1.06);
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.coming-soon-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  transition: color var(--duration-normal) ease,
              transform var(--duration-normal) var(--ease-out-expo);
}

.coming-soon:hover .coming-soon-text {
  color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

/* Hide the normal product overlay on coming-soon cards */
.coming-soon .product-overlay {
  display: none;
}

/* ===========================
   SCROLL INDICATOR
   =========================== */
.scroll-indicator {
  position: fixed;
  bottom: 28px;
  right: 32px;
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-cream-muted);
  opacity: 1;
  transition: opacity var(--duration-normal) ease;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator span {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 80px;
  background: rgba(212, 203, 179, 0.15);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-cream);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ===========================
   PAGE LOAD ANIMATION
   =========================== */
.product-card {
  opacity: 0;
  transform: scale(1.02);
  animation: cardReveal 0.8s var(--ease-out-expo) forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#site-header {
  opacity: 0;
  transform: translateY(-20px);
  animation: headerReveal 0.6s var(--ease-out-expo) 0.5s forwards;
}

@keyframes headerReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   PRODUCT DETAIL PAGE
   =========================== */
.product-page {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 50px);
  background: var(--color-bg);
}

.product-detail {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  min-height: calc(100vh - var(--header-height) - 50px);
}

/* Gallery Section */
.product-gallery {
  position: relative;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}

.gallery-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.gallery-main img {
  max-width: 85%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.gallery-main img:hover {
  transform: scale(1.03);
}

/* Gallery Navigation Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-cream);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--duration-fast) ease,
              background var(--duration-fast) ease,
              transform var(--duration-fast) ease;
}

.gallery-main:hover .gallery-arrow {
  opacity: 1;
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.08);
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-arrow-prev {
  left: 16px;
}

.gallery-arrow-next {
  right: 16px;
}

.gallery-thumbnails {
  display: flex;
  gap: 4px;
  padding: 12px 40px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: opacity var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              transform var(--duration-fast) ease;
}

.gallery-thumb:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--color-cream);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Details Section */
.product-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 80px);
  gap: 32px;
}

.detail-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cream);
  background: var(--color-tag-bg);
  border: 1px solid var(--color-tag-border);
  padding: 8px 18px;
  border-radius: 2px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  color: var(--color-cream-light);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.detail-price {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-accent-gold);
  letter-spacing: 0.02em;
}

.detail-divider {
  width: 60px;
  height: 1px;
  background: var(--color-divider);
}

.detail-description {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 480px;
}

/* Specifications */
.detail-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-specs h3 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: 16px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-divider);
}

.spec-row:first-of-type {
  border-top: 1px solid var(--color-divider);
}

.spec-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: capitalize;
}

.spec-value {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-cream);
}

/* Purchase Buttons */
.purchase-buttons {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 4px;
  background: var(--color-amazon);
  color: var(--color-amazon-text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-amazon.btn-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.5);
}

.btn-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  border-radius: 2px;
}

.btn-subtext {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.btn-shopier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 4px;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: background var(--duration-fast) ease,
              transform var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-shopier:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-shopier:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  top: calc(var(--header-height) + 8px);
  left: clamp(20px, 3vw, 48px);
  z-index: 90;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cream);
  transition: color var(--duration-fast) ease,
              transform var(--duration-fast) ease;
}

.back-link:hover {
  color: var(--color-cream);
  transform: translateX(-3px);
}

.back-link svg {
  transition: transform var(--duration-fast) ease;
}

.back-link:hover svg {
  transform: translateX(-4px);
}


/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet */
@media (max-width: 900px) {
  :root {
    --header-height: 80px;
  }

  .logo-img {
    height: 54px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .gallery-main {
    min-height: 50vh;
  }
}

/* Mobile */
@media (max-width: 640px) {
  #hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    height: auto;
    min-height: 100vh;
  }

  .product-card {
    min-height: 50vh;
  }

  /* On mobile, always show overlay */
  .product-overlay {
    opacity: 1;
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.75) 0%,
      transparent 60%
    );
  }

  .product-tag,
  .product-info,
  .product-cta {
    transform: none;
    opacity: 1;
  }

  .product-tag {
    position: absolute;
    top: clamp(16px, 3vw, 24px);
    left: clamp(16px, 3vw, 24px);
  }

  :root {
    --header-height: 70px;
  }

  .logo-img {
    height: 40px;
  }

  .btn-amazon {
    width: 100%;
  }

  /* Show scroll indicator on mobile only */
  .scroll-indicator {
    display: flex;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
