/* =============================================
   KanvazoStudio
   Premium E-Commerce — Urban Streetwear Aesthetic
   ============================================= */

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
  --ks-bg: #0d0d0d;
  --ks-card: #111111;
  --ks-border: #222222;
  --ks-text: #ffffff;
  --ks-muted: #666666;
  --ks-red: #E8003D;
  --ks-cyan: #00C2D1;
  --ks-yellow: #FFD600;

  /* Legacy compatibility bridge */
  --bg-deep: var(--ks-bg);
  --bg-card: var(--ks-card);
  --text-primary: var(--ks-text);
  --accent-primary: var(--ks-red);
  --accent-secondary: var(--ks-cyan);
  --accent-tertiary: var(--ks-yellow);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--ks-bg);
  color: var(--ks-text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--ks-red);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 4px;
  background: var(--ks-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--ks-red);
  border-radius: 2px;
}

*:focus-visible {
  outline: 2px solid var(--ks-cyan);
  outline-offset: 2px;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none;
}

button {
  cursor: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- Custom Cursor ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s ease;
  transform: translate(-50%, -50%);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(232, 0, 61, 0.3);
  background: rgba(232, 0, 61, 0.05);
  box-shadow: 0 0 10px rgba(232, 0, 61, 0.1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
}

body.cursor-hover .cursor-dot {
  width: 0;
  height: 0;
  background: transparent;
}

body.cursor-hover .cursor-glow {
  width: 55px;
  height: 55px;
  border: 1.5px solid var(--accent-primary);
  background: rgba(232, 0, 61, 0.1);
  box-shadow: 0 0 15px rgba(232, 0, 61, 0.2);
}

/* ---------- HEADER ---------- */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  background: transparent;
}

nav {
  position: relative;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--ks-border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-shadow:
    2px 2px 0px #E8003D,
    4px 4px 0px #00C2D1;
}

.nav-links a {
  color: var(--ks-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 2rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ks-text);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-links a {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.mobile-nav-links a:hover {
  color: var(--accent-primary);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg-layers {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(232, 0, 61, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(0, 194, 209, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(13, 13, 13, 0.8) 0%, transparent 50%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.2;
  }

  50% {
    transform: translateY(-80px) translateX(30px);
    opacity: 0.6;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%,
      transparent 35%,
      rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 5vw;
  max-width: 1200px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 9vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.15em;
}

.hero-title .accent {
  color: #E8003D;
  text-shadow: 3px 3px 0 #00C2D1;
  display: block;
}

.hero-sub {
  color: var(--ks-muted);
  font-size: 15px;
  max-width: 460px;
  line-height: 1.7;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Visual / 3D Object */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-3d-object {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-product-img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: heroFloat 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.hero-product-img.fade-out {
  opacity: 0;
  transform: scale(0.85) rotate(-5deg);
  filter: blur(8px);
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

.hero-orbit {
  position: absolute;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  animation: orbitSpin 20s linear infinite;
}

.hero-orbit-1 {
  width: 320px;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-orbit-2 {
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 30s;
  animation-direction: reverse;
  border-color: rgba(255, 0, 110, 0.12);
}

@keyframes orbitSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-glow-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid var(--ks-text);
  background: transparent;
  color: var(--ks-text);
}

.btn:hover {
  background: var(--ks-red);
  border-color: var(--ks-red);
  color: #ffffff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--ks-muted);
}

.btn-ghost:hover {
  border-color: var(--ks-red);
  color: var(--ks-red);
  background: transparent;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 10px;
}

.btn i,
.btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- SECTION COMMON ---------- */
.section-drops,
.section-category,
.section-mugs {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ks-cyan);
  margin-bottom: 12px;
}

.section-title,
h2.drops-title,
h2.collection-title,
[class*="section-heading"],
[class*="collection-title"] {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: #ffffff;
  margin-bottom: 10px;
}

.section-sub {
  color: var(--ks-muted);
  font-size: 14px;
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

hr.divider {
  border: none;
  border-top: 1px solid #1e1e1e;
  margin: 3rem 0;
}

/* ---------- GLASSMORPHISM CARD ---------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-card:hover {
  border-color: var(--accent-primary);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(232, 0, 61, 0.1);
}

/* ---------- INFINITE CAROUSEL ---------- */
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  animation: carouselScroll 30s linear infinite;
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes carouselScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.carousel-loader {
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--accent-primary);
  animation: pulseGlow 2s ease-in-out infinite;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.carousel-item {
  flex-shrink: 0;
  width: 280px;
}

.carousel-item .product-card {
  height: 100%;
}

/* ---------- PRODUCT CARDS ---------- */
.product-card {
  background: #111111;
  border: 0.5px solid #222222;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #E8003D;
  box-shadow: 0 12px 36px rgba(232, 0, 61, 0.18);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.product-card .card-body {
  padding: 14px 16px 18px;
}

.product-card .badge {
  display: inline-block;
  background: var(--ks-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.product-card .card-name {
  font-size: 13px;
  color: var(--ks-text);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .card-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--ks-yellow);
  margin-bottom: 12px;
}

.product-card .btn-buy {
  width: 100%;
  padding: 10px;
  border-radius: 100px;
  border: 1.5px solid var(--ks-border);
  background: transparent;
  color: var(--ks-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
}

.product-card .btn-buy:hover {
  border-color: var(--ks-red);
  color: var(--ks-red);
}

/* ---------- PRODUCT GRID ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ---------- SECTION ALTERNATION ---------- */
.section-alt {
  background: #111111;
}

.text-cyan {
  color: var(--accent-secondary) !important;
}

.btn-full {
  width: 100%;
  justify-content: center;
  border: 1px solid #ffffff !important;
  background: transparent !important;
}

.btn-full:hover {
  background: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
}

.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 80% 50%, rgba(255, 0, 110, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.section-kids::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 20% 50%, rgba(255, 0, 110, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* ---------- MUG GALLERY ---------- */
.section-mugs {
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(245, 239, 225, 0.8) 50%, var(--bg-deep) 100%);
}

.mug-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mug-card {
  display: flex;
  flex-direction: column;
}

.mug-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-dark);
}

.mug-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mug-card:hover .mug-img-wrap img {
  transform: scale(1.08);
}

.mug-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  filter: blur(25px);
  opacity: 0;
  transition: opacity var(--transition);
}

.mug-card:hover .mug-glow {
  opacity: 0.6;
}

.mug-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mug-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.mug-info .btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* ---------- FOOTER ---------- */
.main-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 0, 110, 0.12);
  background: rgba(245, 239, 225, 0.5);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand .brand-name {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

.footer-brand .brand-sub {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.65rem;
  color: var(--accent-tertiary);
  letter-spacing: 0.15em;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.footer-social a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.footer-social a:hover {
  transform: translateY(-5px);
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(232, 0, 61, 0.4);
}

.footer-social a i {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  display: block;
  position: relative;
  z-index: 1;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---------- SCROLL REVEAL ANIMATION ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--delay, 0s);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 3D TILT (via JS — base styles) ---------- */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- RESPONSIVE: MOBILE FIRST ---------- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mug-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-3d-object {
    width: 280px;
    height: 280px;
  }

  .hero-product-img {
    width: 200px;
    height: 200px;
  }

  .hero-orbit-1 {
    width: 240px;
    height: 240px;
  }

  .hero-orbit-2 {
    width: 280px;
    height: 280px;
  }

  .hero-glow-ring {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .mug-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .section-drops,
  .section-category,
  .section-mugs {
    padding: 4rem 0;
  }

  .carousel-item {
    width: 220px;
  }

  /* Hide custom cursor on touch devices */
  .cursor-dot,
  .cursor-glow {
    display: none;
  }

  body {
    cursor: auto;
  }

  a,
  button {
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-3d-object {
    width: 220px;
    height: 220px;
  }

  .hero-product-img {
    width: 160px;
    height: 160px;
  }

  .hero-orbit-1 {
    width: 190px;
    height: 190px;
  }

  .hero-orbit-2 {
    width: 220px;
    height: 220px;
  }

  .hero-glow-ring {
    width: 180px;
    height: 180px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .mug-showcase {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.72rem;
  }

  .footer-links {
    gap: 1rem;
  }
}

/* ---------- DYNAMIC STORE REFINEMENTS ---------- */
.loading-state {
  width: 100%;
  padding: 4rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  animation: pulseOpacity 2s infinite ease-in-out;
  grid-column: 1 / -1;
}

@keyframes pulseOpacity {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

#dynamic-drops {
  min-height: 400px;
}

/* ---------- PRODUCT DETAIL MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.modal-content {
  background: #FFFBF0;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
  display: flex;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 0, 110, 0.15);
  color: #4A4A4A;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: 0.35s ease;
}

.modal-close:hover {
  background: #FF006E;
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.modal-image-container {
  background: #F5EFE0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  padding: 3rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #4A4A4A;
}

.modal-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #FF006E;
  text-transform: uppercase;
}

.modal-title {
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.1;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FF7B00;
}

.modal-description {
  font-size: 0.95rem;
  color: #6B6B6B;
  line-height: 1.6;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.option-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: #9CA3AF;
}

.form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(232, 0, 61, 0.2);
  background: #1a1a1a;
  color: #ffffff;
  font-weight: 600;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #ddd;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-dot.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--accent-primary);
}

.shipping-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #2e7d32;
  font-weight: 600;
}

#paypal-button-container-modal {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .modal-content {
    max-height: 95vh;
    height: 90vh;
    flex-direction: column;
    display: flex;
  }

  .modal-image-container {
    height: 30vh;
    min-height: 200px;
    flex-shrink: 0;
  }

  .modal-details {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
  }
}

/* ---------- MAIN FOOTER ---------- */
.main-footer {
  padding: 4rem 0 2rem;
  background-color: var(--ks-bg);
  border-top: 1px solid var(--ks-border);
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-brand .brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--ks-text);
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0px var(--ks-cyan);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ks-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--ks-red);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-social a {
  color: var(--ks-muted);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  color: #00C2D1;
  transform: translateY(-3px);
}

.footer-social i,
.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer-copy {
  font-size: 11px;
  color: var(--ks-muted);
  margin-top: 1rem;
}