/* ─── CLOUD COMPANY — Black & White ─── */

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --card: #141414;
  --card-hover: #1a1a1a;
  --stroke: #2a2a2a;
  --text: #ffffff;
  --text-muted: #888888;
  --text-dim: #555555;
  --white: #ffffff;
  --black: #000000;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --surface: var(--bg);
  --border: var(--stroke);
  --text-primary: var(--text);
  --accent: var(--white);
  --accent-soft: rgba(255, 255, 255, 0.06);

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.08);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-med: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms ease;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }

body {
  margin: 0; padding: 0;
  font-family: 'Inter', 'SF Pro Display', 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
}
header, section, footer, aside, main { position: relative; z-index: 1; }

::selection { background: var(--white); color: var(--black); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 2px; }

/* ─── Hide number input spinner ─── */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ─── Background System ─── */
#bgContainer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.bg-layer { position: absolute; inset: 0; }
#oldBg { background: var(--bg); }
#newBg { background: var(--bg); clip-path: circle(0% at 0% 0%); transition: clip-path 0.65s cubic-bezier(0.4, 0, 0.2, 1); }

/* ─── Dark theme parallax background ─── */
.dark-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}
#bgContainer.bg-revealed .dark-bg-video { opacity: 0.5; }
.dark-bg-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.90);
  opacity: 0;
  transition: opacity 1.5s ease;
}
#bgContainer.bg-revealed .dark-bg-overlay { opacity: 1; }

/* ─── Noise ─── */
#noiseOverlay {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px 256px;
}

/* ─── PAGE LOADER ─── */
#pageLoader {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #0d0d0d;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

/* Parallax PNG background layers */
.loader-parallax {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

/* Dark overlay on top of parallax but behind content */
.loader-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  animation: loaderDarken 1.2s ease-out forwards;
}
@keyframes loaderDarken {
  0%   { background: rgba(0,0,0,0.80); }
  8%   { background: rgba(0,0,0,0.81); }
  17%  { background: rgba(0,0,0,0.83); }
  25%  { background: rgba(0,0,0,0.84); }
  33%  { background: rgba(0,0,0,0.85); }
  42%  { background: rgba(0,0,0,0.86); }
  50%  { background: rgba(0,0,0,0.87); }
  58%  { background: rgba(0,0,0,0.88); }
  67%  { background: rgba(0,0,0,0.89); }
  75%  { background: rgba(0,0,0,0.90); }
  100% { background: rgba(0,0,0,0.90); }
}

/* Subtle scanline overlay */
#pageLoader::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 5;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.015) 2px,
    rgba(255,255,255,0.015) 4px
  );
  pointer-events: none;
}

/* Parallax layer base styles + keyframes (used by dark theme and loader) */
.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-repeat: repeat-x;
}
.parallax-layer-bg {
  background-image: url(/img/poster-drop-animate1.png);
  animation: parallaxScroll1 400s linear infinite;
}
.parallax-layer-front {
  background-image: url(/img/poster-drop-animate2.png);
  animation: parallaxScroll2 200s linear infinite;
}
@keyframes parallaxScroll1 {
  from { background-position: 0 0; }
  to { background-position: -4000px 0; }
}
@keyframes parallaxScroll2 {
  from { background-position: 0 0; }
  to { background-position: -6000px 0; }
}

/* Particles */
.loader-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
}
.loader-particle {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: loaderParticle 3s var(--d) ease-in-out infinite;
  box-shadow: 0 0 6px rgba(255,255,255,0.4);
}
@keyframes loaderParticle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(20px, -30px) scale(1.5); opacity: 1; }
  50% { transform: translate(-10px, -50px) scale(0.8); opacity: 0.5; }
  75% { transform: translate(30px, -20px) scale(1.2); opacity: 0.8; }
}

#pageLoader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-hidden + #bgContainer,
.loader-hidden ~ header,
.loader-hidden ~ section,
.loader-hidden ~ footer {
  animation: loaderReveal 0.8s ease-out both;
}
.loader-hidden ~ section:nth-of-type(1) { animation-delay: 0.05s; }
.loader-hidden ~ section:nth-of-type(2) { animation-delay: 0.15s; }
.loader-hidden ~ section:nth-of-type(3) { animation-delay: 0.25s; }
.loader-hidden ~ section:nth-of-type(4) { animation-delay: 0.35s; }
.loader-hidden ~ section:nth-of-type(5) { animation-delay: 0.45s; }
.loader-hidden ~ section:nth-of-type(6) { animation-delay: 0.55s; }
.loader-hidden ~ footer { animation-delay: 0.65s; }
@keyframes loaderReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cloud icon */
.loader-cloud {
  position: relative;
  z-index: 10;
  margin-bottom: 32px;
}
.loader-cloud-icon {
  width: 80px; height: 80px;
  color: #fff;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
  animation: loaderPulse 2s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Rings */
.loader-ring {
  position: absolute; top: 50%; left: 50%;
  width: 100px; height: 100px;
  margin: -50px 0 0 -50px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(255,255,255,0.6);
  animation: loaderSpin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 10;
}
.loader-ring-2 {
  width: 130px; height: 130px;
  margin: -65px 0 0 -65px;
  border-top-color: rgba(255,255,255,0.25);
  animation-duration: 2s;
  animation-direction: reverse;
  z-index: 10;
}
.loader-ring-3 {
  width: 70px; height: 70px;
  margin: -35px 0 0 -35px;
  border-top-color: rgba(255,255,255,0.15);
  animation-duration: 1.2s;
  border-width: 1.5px;
  z-index: 10;
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

/* Brand text */
.loader-brand {
  display: flex; gap: 8px;
  font-size: 28px; font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 40px;
  z-index: 10;
  position: relative;
}
.loader-brand-main {
  color: #fff;
  animation: loaderTextSlide 1.2s ease-out both;
}
.loader-brand-accent {
  color: #fff;
  animation: loaderTextSlide 1.2s 0.15s ease-out both;
}
@keyframes loaderTextSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.loader-bar-track {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  z-index: 10;
  position: relative;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0.4));
  border-radius: 10px;
  animation: loaderBar 2s ease-in-out infinite;
}
@keyframes loaderBar {
  0% { width: 0%; margin-left: 0; }
  50% { width: 100%; margin-left: 0; }
  100% { width: 0%; margin-left: 100%; }
}

/* ─── Glass ─── */
.glass {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--stroke);
}

.glass-strong {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--stroke);
}

.card-glass {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.card-glass:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}

.card-surface {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5 { letter-spacing: -0.03em; }
h1 { letter-spacing: -0.06em; }

.text-hero {
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.9; font-weight: 900; letter-spacing: -0.06em;
}

/* ─── Header ─── */
.header-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all var(--transition-med);
}

.header-nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.header-nav.scrolled .header-inner { height: 56px; }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  height: 72px; transition: height var(--transition-med);
}

.header-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 900; letter-spacing: 2px;
  text-decoration: none; color: var(--text);
}

.header-logo-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--white); display: flex; align-items: center; justify-content: center;
}

.header-logo-icon svg { width: 20px; height: 20px; color: var(--black); }

.header-nav-center { display: flex; gap: 32px; align-items: center; }

.header-nav-link {
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color var(--transition-fast);
  letter-spacing: 0.02em;
}

.header-nav-link:hover { color: var(--text); }

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

.header-icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: none; background: transparent; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}

.header-icon-btn:hover { background: var(--card); color: var(--text); }

.header-icon-btn svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); color: var(--black);
  font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ─── Hero ─── */
.hero-section {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  max-width: 1400px; margin: 0 auto;
  padding: 120px 24px 80px; width: 100%; align-items: center;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 24px;
}

.hero-label-line {
  width: 24px; height: 1px; background: var(--white);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.88; font-weight: 900; letter-spacing: -0.06em;
  margin: 0 0 24px; color: var(--text);
}

.hero-title-white {
  display: inline-block;
}

.hero-desc {
  font-size: 1rem; line-height: 1.7;
  color: var(--text-muted); max-width: 440px; margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em;
  text-decoration: none; color: var(--black); background: var(--white);
  border: none; cursor: pointer;
  transition: all var(--transition-med);
  position: relative; overflow: hidden;
}

.hero-cta:hover {
  transform: translateX(4px);
  box-shadow: 0 0 30px rgba(255,255,255,0.15);
}

.hero-cta svg {
  width: 16px; height: 16px;
  transition: transform var(--transition-fast);
}

.hero-cta:hover svg { transform: translateX(4px); }

.hero-image-wrapper { position: relative; display: flex; justify-content: center; align-items: center; }

.hero-image-container {
  position: relative; width: 100%; max-width: 500px;
  aspect-ratio: 3/4; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-soft);
  border: 1px solid var(--stroke);
}

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

.hero-floating-card {
  position: absolute; bottom: -10px; left: -20px;
  background: var(--card); border: 1px solid var(--stroke);
  border-radius: var(--radius-md); padding: 16px 24px;
  box-shadow: var(--shadow-soft);
  animation: float 6s ease-in-out infinite;
  text-align: center;
  min-width: 180px;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.hero-floating-card-label {
  font-size: 0.5rem; font-weight: 700; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
  opacity: 0.6;
}

.hero-floating-card-title { font-size: 0.85rem; font-weight: 700; margin: 0; }

.hero-floating-card-price {
  font-size: 1.2rem; font-weight: 900; margin-top: 4px;
}

/* ─── Filter ─── */
.filter-pill {
  padding: 10px 24px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none;
  background: rgba(255,255,255,0.04); color: var(--text-muted);
  cursor: pointer; transition: all var(--transition-fast);
  position: relative;
}

.filter-pill::after {
  content: ''; position: absolute; bottom: 6px; left: 24px; right: 24px;
  height: 2px; background: var(--white); transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.filter-pill:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.filter-pill.active {
  background: rgba(255,255,255,0.1); color: var(--text);
}

.filter-pill.active::after { transform: scaleX(1); }

/* ─── Product Grid ─── */
#productGrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 80px;
  justify-items: center;
}

.product-card {
  position: relative;
  border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
  background: transparent; border: none;
  transition: all var(--transition-med);
  max-width: 380px; width: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card-media {
  position: relative; aspect-ratio: 3/4;
  overflow: hidden; background: var(--bg-soft);
  border-radius: var(--radius-md);
}

.product-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-media img { transform: scale(1.05); }

.product-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.7);
  color: var(--text); font-size: 0.65rem; font-weight: 600;
  padding: 4px 12px; border-radius: 50px;
  letter-spacing: 0.05em; border: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
}

.product-card-sale {
  position: absolute; top: 12px; right: 12px;
  background: var(--white); color: var(--black);
  font-size: 0.65rem; font-weight: 700;
  padding: 4px 12px; border-radius: 50px;
}

.product-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75) 40%);
  backdrop-filter: blur(4px);
  transition: opacity 0.4s ease;
}

.product-card:hover .product-card-body {
  opacity: 0;
}

.product-card-title {
  font-size: 1rem; font-weight: 700; margin: 0 0 4px;
  letter-spacing: -0.02em; color: #fff;
}

.product-card-price { display: flex; align-items: center; gap: 8px; }

.product-card-price-current {
  font-size: 1.4rem; font-weight: 900; color: #fff;
}

.product-card-price-old {
  font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.5);
  text-decoration: line-through;
}

/* ─── Gallery overlay ─── */
.gallery-overlay {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.5s ease; z-index: 10;
}

.product-card:hover .gallery-overlay { opacity: 1; }

.gallery-dots {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px; z-index: 20;
}

.gallery-dot {
  width: 5px; height: 5px; border-radius: 50%; transition: all 0.3s ease;
}

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--stroke);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0;
  transition: all var(--transition-fast); color: var(--text);
}

.product-card:hover .gallery-arrow { opacity: 1; }

.gallery-arrow:hover { background: rgba(255,255,255,0.2); }
.gallery-arrow-left { left: 8px; }
.gallery-arrow-right { right: 8px; }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px); z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.closing {
  animation: fadeOut 0.3s ease-in forwards;
  pointer-events: none;
}

.modal-overlay.closing .modal-content {
  animation: modalOut 0.25s ease-in forwards;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes modalOut {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to { opacity: 0; transform: scale(0.95) translateY(10px); }
}

/* ─── Product Modal (iOS Dark) ─── */
.pm-card {
  background: #1c1c1e;
  border-radius: 32px;
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: row;
  position: relative;
}
.pm-card::-webkit-scrollbar { width: 4px; }
.pm-card::-webkit-scrollbar-track { background: transparent; }
.pm-card::-webkit-scrollbar-thumb { background: #3a3a3c; border-radius: 10px; }

.pm-close {
  position: absolute; top: 18px; right: 18px; z-index: 10;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%; width: 40px; height: 40px;
  color: #f5f5f7;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: 0.2s;
}
.pm-close:hover { background: rgba(255,255,255,0.12); transform: scale(1.05); }

/* Gallery */
.pm-gallery {
  flex: 0 0 48%;
  background: #141416;
  padding: 28px 24px 28px 28px;
  border-radius: 32px 0 0 32px;
  display: flex; flex-direction: column;
  border-right: 1px solid #2c2c2e;
}
.pm-main-photo {
  width: 100%; aspect-ratio: 1/1;
  background: #2c2c2e;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.pm-main-photo img { width: 100%; height: 100%; object-fit: cover; }

.pm-thumbs {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-top: 14px;
  scrollbar-width: thin;
}
.pm-thumbs::-webkit-scrollbar { height: 3px; background: #2c2c2e; border-radius: 10px; }
.pm-thumbs::-webkit-scrollbar-thumb { background: #3a3a3c; border-radius: 10px; }

.pm-thumb {
  flex: 0 0 68px; height: 68px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.15s;
  background: #2c2c2e;
}
.pm-thumb.active { border-color: #fff; }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-thumb:hover { transform: scale(1.04); }

/* Details */
.pm-details {
  flex: 1;
  padding: 32px 30px 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
  background: #1c1c1e;
  border-radius: 0 32px 32px 0;
}

.pm-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08);
  color: #d1d1d6;
  font-size: 12px; font-weight: 600;
  padding: 4px 14px;
  border-radius: 30px;
  align-self: flex-start;
}

.pm-name {
  font-size: 22px; font-weight: 700;
  color: #f5f5f7;
  letter-spacing: -0.3px; line-height: 1.3;
  margin: 0;
}

.pm-price-row {
  display: flex; align-items: baseline; gap: 10px;
}
.pm-price {
  font-size: 26px; font-weight: 700;
  color: #f5f5f7; letter-spacing: -0.5px;
}
.pm-old-price {
  font-size: 16px; font-weight: 400;
  color: #636366; text-decoration: line-through;
  display: none;
}

.pm-desc {
  font-size: 15px; line-height: 1.6;
  color: #a1a1a6;
  margin: 0;
}

.pm-divider {
  height: 1px;
  background: #2c2c2e;
  margin: 2px 0;
}

.pm-stock {
  font-size: 13px; font-weight: 600;
}

.pm-options-row {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.pm-option-group {
  display: flex; flex-direction: column; gap: 6px;
}
.pm-option-label {
  font-size: 12px; font-weight: 600;
  color: #636366;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pm-size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-size-btn {
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid #3a3a3c;
  background: transparent;
  color: #d1d1d6;
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: 0.15s;
  font-family: inherit;
}
.pm-size-btn:hover { border-color: #8e8e93; }
.pm-size-btn.active {
  border-color: #f5f5f7;
  background: #f5f5f7;
  color: #1c1c1e;
}

.pm-color-options {
  display: flex; gap: 10px; align-items: center;
}
.pm-color-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer; transition: 0.15s;
  padding: 0;
}
.pm-color-btn:hover { transform: scale(1.08); }
.pm-color-btn.active {
  border-color: #f5f5f7;
  box-shadow: 0 0 0 2px #1c1c1e;
}

.pm-qty-row {
  display: flex; align-items: center; gap: 14px;
}
.pm-qty-control {
  display: flex; align-items: center; gap: 6px;
  background: #2c2c2e;
  padding: 4px 8px;
  border-radius: 30px;
}
.pm-qty-btn {
  width: 32px; height: 32px;
  border-radius: 50%; border: none;
  background: transparent;
  color: #f5f5f7;
  font-size: 18px; font-weight: 300;
  cursor: pointer; transition: 0.15s;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.pm-qty-btn:hover { background: #3a3a3c; }
.pm-qty-number {
  font-size: 17px; font-weight: 500;
  color: #f5f5f7;
  min-width: 30px; text-align: center;
}

.pm-action-row {
  display: flex; gap: 10px; width: 100%;
}
.pm-btn-add {
  flex: 1;
  background: #fff; color: #1c1c1e;
  border: none; border-radius: 30px;
  padding: 15px 24px;
  font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transition: 0.15s;
  font-family: inherit;
}
.pm-btn-add:hover { background: #e8e8e8; transform: scale(1.01); }
.pm-btn-add:disabled { opacity: 0.4; pointer-events: none; }

.pm-btn-wish {
  background: transparent;
  border: 1px solid #3a3a3c;
  color: #d1d1d6;
  padding: 15px 18px;
  border-radius: 30px;
  cursor: pointer; transition: 0.15s;
  font-family: inherit;
  display: flex; align-items: center; justify-content: center;
}
.pm-btn-wish:hover { border-color: #8e8e93; color: #f5f5f7; }
.pm-btn-wish.active { border-color: #fff; color: #fff; }

.pm-footer {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #636366;
  margin-top: 2px;
}
.pm-footer svg { color: #8e8e93; }

@media (max-width: 768px) {
  .pm-card { flex-direction: column; max-height: 95vh; border-radius: 28px; }
  .pm-gallery {
    flex: 1; border-radius: 28px 28px 0 0;
    padding: 20px 18px; border-right: none;
    border-bottom: 1px solid #2c2c2e;
  }
  .pm-details { border-radius: 0 0 28px 28px; padding: 22px 20px; gap: 12px; }
  .pm-name { font-size: 19px; }
  .pm-price { font-size: 22px; }
  .pm-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 16px; }
  .pm-thumb { flex: 0 0 56px; height: 56px; }
}
@media (max-width: 480px) {
  .pm-gallery { padding: 16px 14px; }
  .pm-details { padding: 18px 16px; gap: 10px; }
  .pm-name { font-size: 17px; }
  .pm-price { font-size: 20px; }
  .pm-desc { font-size: 14px; }
  .pm-btn-add { padding: 13px 18px; font-size: 15px; }
  .pm-btn-wish { padding: 13px 14px; }
}

/* ─── Cart ─── */
.cart-panel {
  position: fixed; top: 0; right: 0; height: 100vh;
  width: 420px; max-width: 95vw; z-index: 9000;
  background: var(--bg); border-left: 1px solid var(--stroke);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-panel.open { transform: translateX(0); }

.cart-backdrop {
  position: fixed; inset: 0; z-index: 8999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}
.cart-backdrop.open {
  opacity: 1;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

/* ─── Toast ─── */
.toast-notification {
  position: fixed; bottom: 28px; right: 28px; z-index: 99999;
  padding: 14px 28px; font-weight: 600; font-size: 0.85rem;
  color: var(--text); background: var(--card);
  backdrop-filter: blur(20px); border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  animation: slideUp 0.4s ease-out; box-shadow: var(--shadow-soft);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Swatch / Size ─── */
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition-fast);
}

.color-swatch.active {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
  transform: scale(1.15);
}

.size-chip {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.8rem; cursor: pointer;
  border: 1px solid var(--stroke); background: transparent;
  color: var(--text-muted); transition: all var(--transition-fast);
}

.size-chip:hover { border-color: var(--text-dim); color: var(--text); }

.size-chip.selected {
  background: var(--white); color: var(--black); border-color: var(--white);
}

/* ─── Payment ─── */
.payment-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; font-weight: 600; font-size: 0.85rem;
  cursor: pointer; border: 1px solid var(--stroke);
  border-radius: var(--radius-sm); transition: all var(--transition-fast);
  flex: 1; justify-content: center; color: var(--text-muted); background: transparent;
}

.payment-chip:hover { border-color: var(--text-dim); }

.payment-chip.selected {
  border-color: var(--white); background: var(--white); color: var(--black);
}

/* ─── Sort ─── */
.sort-pill {
  padding: 8px 16px; border-radius: 50px;
  border: 1px solid var(--stroke); background: transparent;
  color: var(--text-muted); font-weight: 500; font-size: 0.8rem;
  cursor: pointer; transition: all var(--transition-fast);
}

.sort-pill:hover { border-color: var(--text-dim); color: var(--text); }

.sort-pill.active { background: var(--card); border-color: var(--text-dim); color: var(--text); }

/* ─── Cookie ─── */
#cookieConsent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  padding: 12px 16px; background: var(--card);
  backdrop-filter: blur(20px); border-top: 1px solid var(--stroke);
  animation: slideUp 0.5s ease-out;
}

/* ─── Feedback ─── */
#feedbackWidget { z-index: 100; }
#feedbackModal { border: 1px solid var(--stroke); background: var(--bg); }
.fb-blurred #feedbackBody, .fb-blurred #feedbackInputArea { filter: blur(6px); pointer-events: none; }
.fb-rating-overlay { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }

/* ─── Scroll reveal ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Feature card ─── */
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}

.feature-card {
  text-align: left;
  transition: all var(--transition-med);
}

.feature-card-title {
  font-size: 1.1rem; font-weight: 400;
  letter-spacing: -0.02em; margin: 0 0 4px;
  color: var(--text);
}

.feature-card-desc {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); margin: 0;
}

/* ─── Countdown ─── */
.countdown-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  min-width: 80px;
  text-align: center;
}
.countdown-number {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-dim); margin-top: 6px;
  opacity: 0.6;
}
.countdown-sep {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 200; color: var(--text-dim); opacity: 0.3;
  margin-top: -20px;
}

/* ─── Hero card timer (micro) ─── */
.hero-countdown {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hero-countdown-days {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.hero-countdown-days + span {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
  letter-spacing: 0.05em;
}

/* ─── Section padding ─── */
.section-padded { padding: 60px 0; }

/* ─── Testimonial / quote block ─── */
.quote-block {
  text-align: center; max-width: 700px; margin: 0 auto;
}

.quote-block-text {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300; letter-spacing: -0.03em;
  line-height: 1.3; color: var(--text);
}

.quote-block-author {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 24px;
}

/* ─── Text highlight (white bg, black text) ─── */
.hl {
  background: #fff;
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ─── Currency selector ─── */
.currency-option.active-currency {
  border-color: var(--text) !important;
  color: var(--text) !important;
}

/* ─── Block Carousel ─── */
.block-carousel { position:relative; width:100%; height:100%; overflow:hidden; }
.block-carousel .carousel-slide { position:absolute; inset:0; opacity:0; transition:opacity 0.8s ease; display:flex; align-items:center; justify-content:center; }
.block-carousel .carousel-slide.active { opacity:1; z-index:1; }
.block-carousel .carousel-slide img,
.block-carousel .carousel-slide video { width:100%; height:100%; object-fit:cover; }
.block-carousel-dots { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:2; }
.block-carousel-dots span { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.25); transition:all 0.3s; cursor:pointer; }
.block-carousel-dots span.active { background:#fff; box-shadow:0 0 8px rgba(255,255,255,0.5); }

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  #productGrid { gap: 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .section-padded { padding: 80px 0; }
}

@media (max-width: 900px) {
  #productGrid { gap: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 100px; }
  .hero-image-wrapper { order: -1; }
  .hero-image-container { max-width: 350px; }
  .header-nav-center { display: none; }
  .header-inner { height: 60px; padding: 0 16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section-padded { padding: 60px 0; }
}

@media (max-width: 600px) {
  #productGrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card-body { padding: 12px 10px 10px; }
  .product-card-title { font-size: 0.8rem; }
  .product-card-price-current { font-size: 1rem; }
  .product-card-badge { top: 8px; left: 8px; padding: 3px 10px; font-size: 0.55rem; }
  .product-card-sale { top: 8px; right: 8px; padding: 3px 10px; font-size: 0.55rem; }
  .hero-floating-card { display: none; }
  .filter-pill { padding: 8px 16px; font-size: 0.65rem; }
  .filter-pill::after { left: 16px; right: 16px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .section-padded { padding: 48px 0; }
  .section-padded .container { padding: 0 16px; }
}
