:root {
  --theme-color: #00b4d8;
  --theme-glow: rgba(0, 180, 216, 0.45);
  --shoe-hue: 0deg;
  --shoe-sat: 110%;
  --bg-page: #ffffff;
  --card-bg: rgba(15, 23, 42, 0.88);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle at 50% 30%, #ffffff 0%, #e2e8f0 100%),
    radial-gradient(circle at 80% 80%, rgba(0, 180, 216, 0.08) 0%, transparent 50%);
  padding: 24px;
  overflow-x: hidden;
}

/* --- 3D Parallax Container --- */
.card-container {
  perspective: 1200px;
}

/* --- Liquid Glass & Claymorphic Card --- */
.card {
  position: relative;
  width: 350px;
  background: var(--card-bg);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1px solid var(--border-glass);
  border-radius: 36px;
  padding: 24px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  
  box-shadow: 
    0 30px 60px -15px rgba(15, 23, 42, 0.28),
    0 10px 20px -5px rgba(15, 23, 42, 0.15),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 -6px 14px 0 rgba(0, 0, 0, 0.4),
    inset 0 0 24px 0 rgba(255, 255, 255, 0.04);
    
  /* Smooth, calm, and relaxed transition */
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  overflow: visible;
}

/* --- Liquid Glass Curved Sheen Highlight --- */
.liquid-sheen {
  position: absolute;
  top: -30%;
  left: -20%;
  width: 140%;
  height: 75%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 40%,
    transparent 65%
  );
  border-radius: 50%;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 1;
}

/* --- Dynamic Ambient Aura Glow Behind Shoe --- */
.card-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--theme-glow) 0%, transparent 70%);
  filter: blur(45px);
  pointer-events: none;
  transition: background 0.4s ease;
  z-index: 0;
}

/* --- Skechers Brand Watermark --- */
.watermark {
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translateX(-50%) translateZ(10px);
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* --- Header Elements --- */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: relative;
  z-index: 2;
}

.badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 14px;
  border-radius: 100px;
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--theme-color);
  box-shadow: 0 0 8px var(--theme-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* --- Claymorphic Wishlist Button (Easy to Click) --- */
.wishlist-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Invisible extended clickable hitbox */
.wishlist-btn::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.wishlist-btn:hover {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
  transform: scale(1.08);
}

.wishlist-btn.active {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
}

.wishlist-btn.active svg {
  fill: #f43f5e;
}

/* --- 3D Floating Skechers Sneaker Display --- */
.shoe-showcase {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 16px;
  transform: translateZ(40px);
  z-index: 3;
}

.shoe-shadow {
  position: absolute;
  bottom: 6px;
  width: 240px;
  height: 26px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  filter: blur(8px);
  border-radius: 50%;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.shoe-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Perfectly Straight & Level */
  transform: none;
  /* Real-Time Color Changer Filter */
  filter: hue-rotate(var(--shoe-hue, 0deg)) saturate(var(--shoe-sat, 110%)) drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.45s ease;
}

.card:hover .shoe-img {
  transform: scale(1.05) translateY(-6px);
  filter: hue-rotate(var(--shoe-hue, 0deg)) saturate(var(--shoe-sat, 110%)) drop-shadow(0 22px 32px rgba(0, 0, 0, 0.7));
}

.card:hover .shoe-shadow {
  transform: scale(1.12);
  opacity: 0.8;
}

/* --- Sneaker Meta Info --- */
.product-info {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.brand-series {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-color);
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.product-name {
  color: var(--text-main);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.description {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* --- Options Row: Color + Size --- */
.options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 18px;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: relative;
  z-index: 2;
}

.option-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* --- Claymorphic Colorway Dots (Easy to Click) --- */
.color-dots {
  display: flex;
  gap: 10px;
}

.dot {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--dot);
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 2px rgba(255, 255, 255, 0.4),
    inset 0 -2px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Invisible click hitbox for dots */
.dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.dot:hover {
  transform: scale(1.15);
}

.dot.active {
  border-color: #ffffff;
  box-shadow: 
    0 0 0 2px var(--dot),
    0 6px 14px rgba(0, 0, 0, 0.4);
}

/* --- Claymorphic EU Size Pills --- */
.size-pills {
  display: flex;
  gap: 6px;
}

.size-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.size-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.size-btn.active {
  background: #ffffff;
  color: #0b0f19;
  border-color: #ffffff;
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* --- Card Footer & Naira Price --- */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: relative;
  z-index: 2;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-prefix {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.price-value {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* --- Claymorphic CTA Button --- */
.cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--theme-color) 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  
  box-shadow: 
    0 10px 22px -4px var(--theme-glow),
    inset 0 2px 3px rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3);
    
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 14px 28px -4px var(--theme-glow),
    inset 0 2px 3px rgba(255, 255, 255, 0.55),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}

.cta-btn:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 
    0 4px 10px var(--theme-glow),
    inset 0 3px 6px rgba(0, 0, 0, 0.4);
}

.cta-btn.added {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 
    0 10px 22px -4px rgba(16, 185, 129, 0.5),
    inset 0 2px 3px rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3) !important;
}
