/* ==========================================================================
   1. CSS VARIABLES & THEME SETTINGS - DARK MODE
   ========================================================================== */
:root {
  /* TEXT COLORS */
  --text-color: #fff;
  --text-secondary: #a5a5a5;
  
  /* BACKGROUND COLORS */
  --bg-body: linear-gradient(120deg, rgb(21, 27, 30) 5%, rgba(33, 33, 33, 0.93) 100%);
  --bg-panel: rgba(30, 34, 40, 0.7);
  --bg-glass: rgba(84, 88, 95, 0.546);
  
  /* BUTTON COLORS */
  --button-bg: #7171719a;
  --button-text: #fff;
  
  /* INPUT COLORS */
  --input-bg: #353535ed;
  --input-text: #fff;
  --input-placeholder: #a5a5a5;
  --secret-input-btn-bg: var(--button-bg);
  
  /* PANEL SETTINGS */
  --panel-bg: rgba(30, 34, 40, 0.7);
  --panel-radius: 30px;
  --panel-shadow: 0 8px 32px 0 rgba(36, 41, 50, 0.269);
  --panel-width: calc(100% - 4rem);
  --panel-max-width: 1000px;
  --panel-padding: 3rem;
  
  /* GLASS EFFECT */
  --glass-gloss: linear-gradient(120deg, rgba(255, 255, 255, 0.159) 5%, rgba(165, 210, 229, 0.395) 100%);
  --glass-blur: 3px;
  
  /* SHADOWS */
  --shadow-button: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset, rgba(0, 0, 0, 0.2) 4px 6px 12px;
  --shadow-button-hover: rgba(50, 50, 93, 0.35) 0px 60px 120px -20px, rgba(0, 0, 0, 0.4) 0px 40px 80px -30px, rgba(10, 37, 64, 0.45) 0px -2px 8px 0px inset, rgba(0, 0, 0, 0.2) 4px 6px 12px;
  
  /* SPECIAL COLORS */
  --rave-color: #ff003c;
  --accent-gray: #a5a5a5;
  --accent-dark: #080808;
  
  /* GLASS EDGE - Border color for glass elements */
  --glass-edge: rgba(255, 255, 255, 0.18);
  
  /* FONT */
  --font-main: 'Futura Book', Arial, sans-serif;
  
  /* Z-INDEX */
  --z-content: 1;
  --z-sticker: 2;
  --z-form: 5;
  --z-nav: 1500;
  
  /* LAYOUT PADDING - Desktop (769px+) */
  --padding-container-top: 5rem;
  --padding-container-bottom: 2rem;
  --padding-container-horizontal: 1rem;
  
  /* LAYOUT PADDING - Tablet Large (628px-768px) */
  --padding-container-top-tablet: 6rem;
  --padding-container-bottom-tablet: 2rem;
  
  /* LAYOUT PADDING - Mobile (421px-627px) */
  --padding-container-top-mobile: 5rem;
  --padding-container-bottom-mobile: 1.5rem;
  
  /* LAYOUT PADDING - Mobile Small (≤420px) */
  --padding-container-top-mobile-small: 4.5rem;
  --padding-container-bottom-mobile-small: 1.5rem;
  
  /* SHOP CONFIGURATION */
  --product-width: 260px;
  --grid-max-width: 1200px;
  --card-ratio: 1.05;
  
  /* ========================================================================
     NAVIGATION SYSTEM - Unified Variables
     ========================================================================
     All navigation elements use these variables. Override them in media 
     queries to change sizes/positions for different breakpoints.
     
     To change navigation:
     1. Modify base variables below for desktop (769px+)
     2. Override variables in media queries for tablet/mobile
     3. All elements automatically recalculate positions
     ======================================================================== */
  
  /* Base Navigation Button Settings */
  --nav-button-size: 5rem;
  --nav-button-gap: 0.4rem;
  --nav-line-width: 60%;
  --nav-line-height: 3px;
  --nav-position-top: 2rem;
  --nav-position-side: 2rem;
  
  /* Cart variables removed */
  --nav-menu-top: calc(var(--nav-position-top) + var(--nav-button-size) + 0.5rem);
  --nav-menu-right: var(--nav-position-side);
  --nav-menu-item-height: 3.8rem;
  --nav-menu-gap: 1rem;
  --nav-menu-item-count: 3;
  --nav-menu-font-size: 1.3rem;
  --nav-menu-item-padding: 1.25rem 2rem;
  --nav-menu-min-width: 220px;
  
  /* Secret Modal Settings */
  --secret-modal-top: calc(
    var(--nav-menu-top) + 
    (var(--nav-menu-item-height) * var(--nav-menu-item-count)) + 
    (var(--nav-menu-gap) * (var(--nav-menu-item-count) - 1)) + 
    1rem
  );
  --secret-modal-right: calc(var(--nav-position-side) + 1rem);
  --secret-modal-left: auto;
  --secret-modal-width: 220px;
  --secret-modal-padding: 1.5rem 2rem;
  --secret-modal-input-font-size: 1rem;
  --secret-modal-button-padding: 0.8rem 1rem;
  
    /* Cart Count Badge removed */
}

/* ==========================================================================
   2. CSS VARIABLES & THEME SETTINGS - LIGHT MODE
   ========================================================================== */
body.light-mode {
  /* TEXT COLORS */
  --text-color: #1d1d1f;
  --text-secondary: #5e5e5e;
  
  /* BACKGROUND COLORS */
  --bg-body: linear-gradient(120deg, rgb(221, 221, 221) 5%, rgb(241, 241, 241) 100%);
  --bg-panel: rgba(255, 255, 255, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.65);
  
  /* BUTTON COLORS */
  --button-bg: #f5f5f59a;
  --button-text: #1d1d1f;
  
  /* INPUT COLORS */
  --input-bg: #ffffff;
  --input-text: #1d1d1f;
  --input-placeholder: rgba(61, 61, 61, 0.6);
  --secret-input-btn-bg: var(--button-bg);
  
  /* PANEL SETTINGS */
  --panel-bg: rgba(255, 255, 255, 0.7);
  --panel-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  
  /* GLASS EFFECT */
  --glass-gloss: linear-gradient(120deg, rgba(255, 255, 255, 0.786) 5%, rgba(164, 164, 164, 0.655) 100%);
  --glass-blur: 20px;
  
  /* SPECIAL COLORS */
  --accent-gray: #3f3f3f;
  --accent-dark: #f7f7f7f6;
  
  /* GLASS EDGE - Border color for glass elements */
  --glass-edge: rgba(203, 203, 203, 0.28);
}

body.light-mode .about-text {
  color: #f5f5f7;
}


/* ==========================================================================
   2. BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-color);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
.font-mono { 
  font-family: var(--font-main); 
  letter-spacing: 1px; 
}

.font-bebas { 
  font-family: var(--font-main); 
  letter-spacing: 0px; 
}


/* ==========================================================================
   4. GLASSMORPHISM EFFECTS
   ========================================================================== */
.glass {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--panel-shadow);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: var(--z-content);
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-gloss);
  pointer-events: none;
}


/* ==========================================================================
   5. BUTTON SYSTEM
   ========================================================================== */
/* Base Button Styles */
button,
.btn,
.mail-btn,
.size-option,
.cart-btn,
input[type="submit"] {
  background: var(--button-bg);
  border: none;
  color: var(--button-text);
  padding: 1rem 2rem;
  border-radius: 0.8rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-button);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Button Gloss Effect */
button::before,
.btn::before,
.mail-btn::before,
.size-option::before,
.cart-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-gloss);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

/* Button States */
button:hover,
.btn:hover,
.mail-btn:hover,
.size-option:hover,
.cart-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-button-hover);
}

button:active,
.btn:active,
.mail-btn:active,
.size-option:active,
.cart-btn:active {
  transform: scale(0.95);
}

button:disabled,
.btn:disabled {
  opacity: 0.9;
  cursor: not-allowed;
  transform: none !important;
}

.size-option.selected {
  background: var(--accent-gray);
  border-color: var(--accent-gray);
  color: var(--text-color);
}




/* ==========================================================================
   6. LAYOUT & CONTAINERS
   ========================================================================== */
.parallax-container {
  position: relative;
  padding: var(--padding-container-top) var(--padding-container-horizontal) var(--padding-container-bottom) var(--padding-container-horizontal);
  transform-style: preserve-3d;
  perspective: 1000px;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}


/* ==========================================================================
   7. PANEL SYSTEM
   ========================================================================== */
/* Base Panel */
.panel-overlap {
  position: relative;
  margin: 3rem auto;
  width: var(--panel-width);
  max-width: var(--panel-max-width);
  padding: var(--panel-padding);
  border-radius: var(--panel-radius);
  transform: translateZ(20px) rotate(-3deg);
  transition: transform 0.3s ease-out;
  overflow: hidden;
  background: var(--panel-bg);
  border: none;
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  isolation: isolate;
  /* Allow touch scrolling on mobile - JavaScript handles fluid cursor interactions */
  touch-action: pan-y pan-x;
}

.panel-overlap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-gloss);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.7;
}

/* Panel Hover Effects */
.panel-overlap:hover {
  transform: translateZ(60px) scale(1.02) rotate(0deg) !important;
}

/* Alternating Panel Rotations */
.parallax-container .panel-overlap:nth-of-type(6n+1) { transform: translateZ(20px) rotate(-4deg); transition: transform 0.3s ease-out; }
.parallax-container .panel-overlap:nth-of-type(6n+2) { transform: translateZ(20px) rotate(3deg); transition: transform 0.3s ease-out; }
.parallax-container .panel-overlap:nth-of-type(6n+3) { transform: translateZ(20px) rotate(-2deg); transition: transform 0.3s ease-out; }
.parallax-container .panel-overlap:nth-of-type(6n+4) { transform: translateZ(20px) rotate(2.5deg); transition: transform 0.3s ease-out; }
.parallax-container .panel-overlap:nth-of-type(6n+5) { transform: translateZ(20px) rotate(-1.5deg); transition: transform 0.3s ease-out; }
.parallax-container .panel-overlap:nth-of-type(6n+6) { transform: translateZ(20px) rotate(1deg); transition: transform 0.3s ease-out; }

/* Override for image panels to maintain artistic positioning */
.image-panel-left {
  transform: translateZ(20px) rotate(-3deg) !important;
}

.image-panel-right {
  transform: translateZ(20px) rotate(3deg) !important;
}

/* Panel Content */
.content-wrap {
  position: relative;
  z-index: var(--z-content);
}

/* Panel Variations - All panels extend .panel-overlap base styling */
/* Individual panels only override transform/rotation for animations */
.hero,
.secret-panel,
.about-panel,
.gallery-panel,
.products-panel,
.rave-main,
.rave-header,
.rave-lineup {
  /* Inherit all base panel styles from .panel-overlap */
  position: relative;
  margin: 3rem auto;
  width: var(--panel-width);
  max-width: var(--panel-max-width);
  padding: var(--panel-padding);
  border-radius: var(--panel-radius);
  overflow: hidden;
  background: var(--panel-bg);
  border: none;
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  isolation: isolate;
  transition: transform 0.3s ease-out;
}

.hero::before,
.secret-panel::before,
.about-panel::before,
.gallery-panel::before,
.products-panel::before,
.rave-main::before,
.rave-header::before,
.rave-lineup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-gloss);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.7;
}

/* Individual panel animations - only transform/rotation */
.hero {
  transform: translateZ(40px) rotate(-3deg);
  margin-top: 2rem;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  width: 70%;
  height: 70%;
  background-image: url('../assets/atelier\ sticker.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: var(--z-sticker);
  min-height: 100px;
  min-width: 100px;
  background-color: rgba(255, 0, 0, 0);
}

.sticker-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 65%;
  min-height: 80px;
  min-width: 80px;
  z-index: 3;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.sticker-link:hover {
  opacity: 0.9;
}

/* Ensure panels have proper transitions and hover states */
.hero:hover,
.secret-panel:hover,
.about-panel:hover,
.rave-lineup:hover,
.gallery-panel:hover,
.about-image-panel:hover {
  transform: translateZ(30px) scale(1.02) rotate(0deg) !important;
}

.secret-panel {
  transform: translateZ(40px) rotate(2deg);
  margin-top: 2rem;
  text-align: center;
  display: block;
  visibility: visible;
  opacity: 1;
  z-index: var(--z-content);
}

.secret-panel > * {
  position: relative;
  z-index: var(--z-content);
}

.about-panel {
  transform: translateZ(20px) rotate(2.1deg);
  margin-top: -2rem;
  text-align: left;
}

/* First about panel - match homepage hero spacing */
.parallax-container .about-panel:first-of-type {
  margin-top: 2rem;
}


.about-image-panel {
  width: 50%;
  max-width: 550px;
  padding: 1.5rem;
  margin: 2rem auto;
  transform: translateZ(20px);
  overflow: hidden;
}

.image-panel-left {
  margin-left: 25%;
  margin-right: auto;
  transform: translateZ(20px) rotate(-2.5deg);
}

.image-panel-right {
  margin-left: auto;
  margin-right: 25%;
  transform: translateZ(20px) rotate(2.5deg);
}

.image-panel-content {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--panel-radius) - 0.5rem);
}

.about-image-panel-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: calc(var(--panel-radius) - 0.5rem);
}


body.legal-page .about-panel,
body.legal-page .about-panel.panel-overlap,
body.legal-page .panel-overlap.about-panel {
  transform: translateZ(20px) rotate(0deg) !important;
  margin-top: 2rem !important;
}

body.legal-page .about-panel:hover,
body.legal-page .about-panel.panel-overlap:hover,
body.legal-page .panel-overlap.about-panel:hover,
body.legal-page .panel-overlap:hover.about-panel {
  transform: translateZ(20px) rotate(0deg) !important;
  box-shadow: var(--panel-shadow);
}

.gallery-panel {
  transform: translateZ(30px) rotate(-1.5deg);
  margin-top: -2rem;
}


/* Panel Typography - Consistent styling */
.hero h1,
.secret-panel h2 {
  color: var(--accent-gray);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 4rem;
  text-shadow: 0 2px 20px rgba(174, 231, 255, 0.072);
  min-height: 4rem;
  visibility: hidden;
}


/* ==========================================================================
   8. HEADER & NAVIGATION
   ========================================================================== */
header.glass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-radius: 1.5rem 1.5rem;
  margin-bottom: 2rem;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-gray);
  text-shadow: 0 2px 8px rgba(179, 225, 255, 0.086);
}

nav a {
  text-decoration: none;
  color: #f5f5f7;
  font-weight: 600;
  margin: 0 1rem;
  font-family: var(--font-main);
  transition: color 0.2s;
}

nav a.active, 
nav a:hover {
  color: var(--accent-gray);
}

nav .merch-btn {
  background: var(--accent-gray);
  color: var(--text-color);
  padding: 0.5rem 1.2rem;
  border-radius: 1rem;
  font-family: var(--font-main);
  font-size: 1.2rem;
  margin-left: 1.5rem;
  box-shadow: 0 2px 8px #4bb6ff33;
  text-decoration: none;
  transition: background color 0.2s;
}


/* ==========================================================================
   9. NAVIGATION ELEMENTS
   ========================================================================== */
.back-button {
  position: fixed;
  top: var(--nav-position-top);
  left: var(--nav-position-side);
  width: var(--nav-button-size);
  height: var(--nav-button-size);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-color);
  font-size: calc(var(--nav-button-size) * 0.3);
  border-radius: 50%;
  border: none;
  background: var(--accent-dark);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  box-shadow: var(--shadow-button);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  isolation: isolate;
  z-index: 1000;
}

.back-button:hover {
  transform: scale(1.1);
  background: var(--accent-dark);
  color: var(--text-color);
  box-shadow: var(--shadow-button-hover);
}


/* ==========================================================================
   10. SECRET SECTION
   ========================================================================== */
.secret-form {
  background: var(--bg-glass);
  background-image: url('../assets/secret-dark.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: none;
  padding: 2.5rem;
  width: 50%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: var(--z-form);
  overflow: hidden;
}

.secret-form::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-gloss);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}


body.light-mode .secret-form {
  background-image: url('../assets/secret-light.png');
}

.secret-form h3 {
  margin-bottom: 1.5rem;
  color: var(--accent-dark);
}

/* Secret Form Input Wrapper */
.secret-form .input-send-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border-radius: 0.5rem;
  border: none;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-button);
  position: relative;
  z-index: 11;
}


.secret-form .input-send-wrapper input[type="password"],
.secret-form .input-send-wrapper input[type="text"] {
  width: 100%;
  flex: 1;
  padding: 0.7rem 3.5rem 0.7rem 2.8rem;
  margin: 0;
  border: none;
  background: var(--input-bg);
  color: var(--text-color);
  font-family: var(--font-main);
  font-size: 1rem;
  text-align: left;
  outline: none;
  box-sizing: border-box;
  border-radius: 0;
  position: relative;
  z-index: 6;
}

.secret-form .input-send-wrapper input::placeholder {
  color: var(--accent-gray);
  opacity: 0.7;
}

/* Secret Form Send Button */
.secret-form .input-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: 0.3rem;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  min-width: 2.2rem;
  background: var(--secret-input-btn-bg);
  border: none;
  color: var(--button-text);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-button);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 0;
  z-index: 100;
  overflow: hidden;
  pointer-events: auto;
}

.secret-form .input-send-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-gloss);
  opacity: 0.3;
  pointer-events: none;
  border-radius: 50%;
}

.secret-form .input-send-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-button-hover);
}

.secret-form .input-send-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.secret-form .input-send-btn svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

/* Light Mode - Secret Form Input */
body.light-mode .secret-form .input-send-wrapper {
  background: var(--input-bg);
  box-shadow: var(--shadow-button);
}

body.light-mode .secret-form .input-send-wrapper input {
  background: var(--input-bg);
  color: var(--input-text);
}

body.light-mode .secret-form .input-send-wrapper input::placeholder {
  color: var(--input-placeholder);
  opacity: 0.7;
}

/* Password Toggle Button */
.password-toggle-btn {
  position: absolute;
  left: 0.5rem;
  top: 15%;
  transform: scale(1.0);
  width: 1.8rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 12;
  padding: 0;
  transition: all 0.15s ease;
}

.password-toggle-btn:hover {
  transform: scale(1.1);
}

.password-toggle-btn:active {
  transform: scale(0.95);
}

.password-toggle-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: var(--input-text);
  color: var(--input-text);
  display: block;
}

body.light-mode .secret-form .input-send-btn {
  background: var(--secret-input-btn-bg);
  color: var(--button-text);
}


/* ==========================================================================
   11. ABOUT PAGE STYLES
   ========================================================================== */
.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 0.9rem;
  background: var(--bg-glass);
  box-shadow: var(--panel-shadow);
  padding: 0.35rem;
  transform: translateZ(20px) rotate(var(--rotation));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 0.6rem;
}

.about-gallery .gallery-item:nth-child(6n+1) { --rotation: -4deg; }
.about-gallery .gallery-item:nth-child(6n+2) { --rotation: 3deg; }
.about-gallery .gallery-item:nth-child(6n+3) { --rotation: -2deg; }
.about-gallery .gallery-item:nth-child(6n+4) { --rotation: 2.5deg; }
.about-gallery .gallery-item:nth-child(6n+5) { --rotation: -1.5deg; }
.about-gallery .gallery-item:nth-child(6n+6) { --rotation: 1deg; }

.about-gallery .gallery-item:hover {
  transform: translateZ(30px) translateY(-6px) rotate(0deg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.about-image-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1.5rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    rgba(50, 50, 93, 0.25) 0px 30px 60px -12px,
    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
}

.about-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-title.hero::after {
  display: none !important;
}

.page-title.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
}

.page-title.hero .subtitle {
  max-width: 760px;
  text-align: center;
  font-size: 1.05rem;
  opacity: 0.9;
}


/* ==========================================================================
   12. RAVE PAGE STYLES
   ========================================================================== */
body.rave-bg {
  background: #020009;
  position: relative;
  overflow-x: hidden;
}

/* Ensure content appears above stars background */
body.rave-bg main,
body.rave-bg .parallax-container,
body.rave-bg .panel-overlap {
  position: relative;
  z-index: 1;
}

/* Stars Background Styles */
.stars-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stars-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
}

.stars-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.rave-header {
  margin: 0 auto;
  padding: 2rem 0;
  text-align: center;
  /* Override background for rave theme */
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 8px 32px 0 rgba(255, 0, 60, 0.267);
  transform: none;
  border-radius: 0;
}

.rave-header::before {
  display: none; /* Remove glass effect for rave header */
}

.rave-header .logo {
  font-size: 2.5rem;
  color: var(--rave-color);
  text-shadow: 0 2px 16px rgba(255, 0, 60, 0.6);
}

.rave-main {
  max-width: 600px;
  margin: 4rem auto 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  /* Override background for rave theme */
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 8px 32px 0 rgba(255, 0, 60, 0.267);
  transform: none;
}

.rave-main::before {
  display: none; /* Remove glass effect for rave main */
}

.rave-title {
  font-size: 2.5rem;
  color: var(--rave-color);
  font-family: var(--font-main);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.rave-desc {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.rave-info {
  padding: 1.5rem;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}




/* ==========================================================================
   14. NAVIGATION STYLES
   ========================================================================== */
/* Burger Menu */
.burger-menu {
  position: fixed;
  top: var(--nav-position-top);
  right: var(--nav-position-side);
  width: var(--nav-button-size);
  height: var(--nav-button-size);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--nav-button-gap);
  cursor: pointer;
  z-index: 1500;
  background: var(--accent-dark);
  border: none;
  border-radius: 50%;
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  box-shadow: var(--shadow-button);
  transition: all 0.3s ease;
  isolation: isolate;
}

.burger-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--glass-gloss);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.burger-menu:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-button-hover);
}

.burger-menu:active {
  transform: scale(0.95);
}

.burger-line {
  width: var(--nav-line-width);
  height: var(--nav-line-height);
  background-color: var(--text-color);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: translateY(0.5rem) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: translateY(-0.5rem) rotate(-45deg);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: var(--nav-position-top);
  left: var(--nav-position-side);
  width: var(--nav-button-size);
  height: var(--nav-button-size);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1500;
  background: var(--accent-dark);
  border: none;
  border-radius: 50%;
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  box-shadow: var(--shadow-button);
  transition: all 0.3s ease;
  padding: 0;
  isolation: isolate;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--glass-gloss);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-button-hover);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle svg {
  width: 50%;
  height: 50%;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
  display: none;
  position: absolute;
}

.theme-toggle .moon-icon {
  display: block;
  position: absolute;
}

body.light-mode .theme-toggle .sun-icon {
  display: block;
}

body.light-mode .theme-toggle .moon-icon {
  display: none;
}

/* Art-Items Navigation & Cart Styles Removed */

/* Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 1000;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear;
}

#nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 990;
}

#nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Navigation Menu */
.nav-menu {
  position: fixed;
  top: var(--nav-menu-top);
  right: var(--nav-menu-right);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.nav-menu li {
  margin: 0;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-overlay.active .nav-menu li:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.05s;
}

.nav-overlay.active .nav-menu li:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.1s;
}

.nav-overlay.active .nav-menu li:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.15s;
}

.nav-menu a {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  font-size: var(--nav-menu-font-size, 1.3rem);
  font-family: var(--font-main);
  font-weight: 600;
  padding: var(--nav-menu-item-padding, 1.25rem 2rem);
  background: var(--accent-dark);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: none;
  border-radius: 0.8rem;
  box-shadow: var(--shadow-button);
  transition: all 0.15s ease;
  isolation: isolate;
  position: relative;
  min-width: var(--nav-menu-min-width, 220px);
  text-align: center;
  height: var(--nav-menu-item-height);
  box-sizing: border-box;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-gloss);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.nav-menu a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-button-hover);
}

.nav-menu a:active {
  transform: translateY(0) scale(0.98);
}

/* Secret Modal */
.secret-modal {
  position: fixed;
  top: var(--secret-modal-top);
  right: var(--secret-modal-right);
  left: var(--secret-modal-left, auto);
  transform: translateX(100px);
  background: var(--accent-dark);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  padding: var(--secret-modal-padding, 1.5rem 2rem);
  border-radius: 0.8rem;
  border: none;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1500;
  width: var(--secret-modal-width);
  box-shadow: var(--shadow-button);
  isolation: isolate;
}

.secret-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-gloss);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.secret-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.secret-modal h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.secret-modal input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-edge);
  color: var(--text-color);
  padding: var(--secret-modal-button-padding);
  margin: 1rem 0;
  width: 100%;
  font-family: var(--font-main);
  font-size: var(--secret-modal-input-font-size);
  border-radius: 0.8rem;
}

body.light-mode .secret-modal input {
  color: #1d1d1f !important;
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .secret-modal input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.secret-modal button {
  width: 100%;
  border-radius: 0.8rem;
}

/* ==========================================================================
   15. ART-ITEMS STYLES
   ========================================================================== */
/* Art-Items Main */
.art-main {
  padding-top: 2rem;
  max-width: 100%;
  overflow-x: hidden;
}

.art-title {
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-color);
}

.products-panel {
  transform: translateZ(20px);
  max-width: 100%;
  overflow-x: hidden;
  /* Override for art-items section - transparent background */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
  border-radius: 6rem;
}

.products-panel::before {
  display: none; /* Remove glass effect for products panel */
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--product-width), 400px));
  gap: calc(clamp(1.25rem, 2.5vw, 2.5rem) + 12px);
  padding: 1.5rem;
  width: 100%;
  max-width: var(--grid-max-width);
  margin: 0 auto;
  justify-content: center;
  box-sizing: border-box;
}

/* Product Cards */
.product-card {
  --rotation: 0deg;
  --product-content-inset: clamp(0.65rem, 3vw, 1rem);
  --notch-translate-y: -6px;
  --notch-rotation: 0deg;
  position: relative;
  background: var(--panel-bg);
  background-size: 85%;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  padding: var(--panel-padding);
  isolation: isolate;
  border-radius: var(--panel-radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-image 0.4s ease;
  text-align: center;
  transform: translateZ(20px) rotate(var(--rotation));
  width: 100%;
  max-width: 400px;
  aspect-ratio: var(--card-ratio);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 280px;
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  clip-path: inset(0 round var(--panel-radius));
  -webkit-clip-path: inset(0 round var(--panel-radius));
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-gloss);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.7;
  pointer-events: none;
}

/* Light mode - match standard panel opacity */
body.light-mode .product-card::before {
  opacity: 0.7;
}

.product-card:hover {
  transform: translateZ(30px) translateY(-6px) rotate(0deg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* Alternating rotations */
.products-grid .product-card:nth-child(6n+1) { --rotation: -4deg; }
.products-grid .product-card:nth-child(6n+2) { --rotation: 3deg; }
.products-grid .product-card:nth-child(6n+3) { --rotation: -2deg; }
.products-grid .product-card:nth-child(6n+4) { --rotation: 2.5deg; }
.products-grid .product-card:nth-child(6n+5) { --rotation: -1.5deg; }
.products-grid .product-card:nth-child(6n+6) { --rotation: 1deg; }

/* Product content overlay */

.product-content {
  position: absolute;
  bottom: 0;
  left: var(--product-content-inset);
  right: var(--product-content-inset);
  z-index: 2;
  padding: 2rem 1rem 1.25rem;
  border-radius: calc(var(--panel-radius) - var(--product-content-inset)) calc(var(--panel-radius) - var(--product-content-inset)) 0 0;
  transform: translateY(calc(100% - 1.5rem));
  transition: transform 0.3s ease;
  overflow: visible;
  color: var(--text-secondary);
  pointer-events: auto;
  --product-panel-bg: rgba(0, 0, 0, 0.6);
  --product-panel-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --notch-depth: 9px;
  --notch-width: 120px;
}

.product-content > * {
  pointer-events: auto;
}

/* Brighter panel background in light mode */
body.light-mode .product-content {
  --product-panel-bg: rgba(255, 255, 255, 0.85);
  --product-panel-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ensure all text elements in product content use secondary color */
.product-content h1,
.product-content h2,
.product-content h3,
.product-content h4,
.product-content h5,
.product-content h6,
.product-content p,
.product-content span,
.product-content div:not(.product-actions):not(.size-options) {
  color: var(--text-secondary);
}


.notch-arrow {
  position: absolute;
  top: calc(-1 * var(--notch-depth) + 5px);
  left: 0;
  right: 0;
  width: calc(var(--notch-width) + 28px);
  height: 38px;
  padding: 12px 24px 16px;
  display: block;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.65);
  transform: translateY(var(--notch-translate-y)) rotate(var(--notch-rotation));
  -webkit-transform: translateY(var(--notch-translate-y)) rotate(var(--notch-rotation));
  transform-origin: center;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  -webkit-transition: -webkit-transform 0.3s ease, color 0.3s ease;
  border-radius: 999px;
  touch-action: manipulation;
}

.notch-arrow path {
  transition: inherit;
  vector-effect: non-scaling-stroke;
}

body.light-mode .notch-arrow {
  color: rgba(34, 34, 34, 0.55);
}

.product-card.size-options-visible {
  --notch-rotation: 180deg;
}

@media (max-width: 768px) {
  .product-content {
    overflow: visible;
    left: clamp(0.5rem, 3vw, 0.85rem);
    right: clamp(0.5rem, 3vw, 0.85rem);
    border-radius: calc(var(--panel-radius) - clamp(0.5rem, 3vw, 0.85rem)) calc(var(--panel-radius) - clamp(0.5rem, 3vw, 0.85rem)) 0 0;
  }

  .product-card.size-options-visible .product-content {
    transform: translateY(0);
  }
  
  /* Keep the actual content area clipped - only show content below the clickable area */
  .product-title,
  .product-price,
  .product-actions {
    clip-path: inset(1.5rem 0 0 0);
  }
  
  .product-card.size-options-visible .product-title,
  .product-card.size-options-visible .product-price,
  .product-card.size-options-visible .product-actions {
    clip-path: none;
  }
}

/* Desktop hover interaction */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-content {
    transform: translateY(0);
  }

  .product-card:hover {
    --notch-rotation: 180deg;
  }
}

@media (hover: none) {
  .product-card:hover .product-content {
    transform: translateY(calc(100% - 1.5rem));
  }
}

/* Mobile: show content when size-options-visible class is present */
.product-card.size-options-visible .product-content {
  transform: translateY(0);
}

/* Slideshow styles */
.product-slideshow {
  cursor: pointer;
}

/* Dot indicators for slideshow */
.slideshow-dots {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slideshow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  pointer-events: none;
}

.slideshow-dot.active {
  background: rgba(255, 255, 255, 1);
  width: 22px;
  border-radius: 3px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

/* Light mode dot indicators */
body.light-mode .slideshow-dots {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.light-mode .slideshow-dot {
  background: rgba(0, 0, 0, 0.4);
}

body.light-mode .slideshow-dot.active {
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.product-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 85%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.product-bg-image.active {
  opacity: 1;
}


/* Product title removed */
.product-title {
  display: none;
}

.product-price {
  color: var(--text-secondary);
  opacity: 0.85;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* Make price more visible when content panel is fully shown */
.product-card:hover .product-price,
.product-card.size-options-visible .product-price {
  opacity: 1;
}

/* Product Actions */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
  opacity: 1;
  transform: translateY(0);
  transition: none;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.size-options {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 1;
  max-height: 100px;
  overflow: visible;
  transition: none;
  margin: 0;
  pointer-events: auto;
}

.size-option {
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  min-width: 44px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.size-option.disabled {
  opacity: 0.5;
  text-decoration: line-through;
  cursor: not-allowed;
  pointer-events: none;
}

.size-option.disabled:hover {
  transform: none;
  box-shadow: none;
}

.size-option.selected,
.size-option.active {
  background: #2a2a2abb !important;
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 0 0 0 1px rgba(71, 93, 129, 0.08), 0 6px 18px rgba(59, 131, 246, 0.18) !important;
  border: 1.5px solid #60a5fa62 !important;
}

.mail-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  width: 100%;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--text-secondary);
  opacity: 1;
  transform: translateY(0);
  transition: color 0.3s ease;
}

/* Cart Styles Removed */

/* Loading States */
.loading {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--text-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}


/* ==========================================================================
   13. MEDIA QUERIES
   ========================================================================== */
/* Tablet: 628px to 768px */
@media (max-width: 768px) and (min-width: 628px) {
  /* Panel Variables - Tablet */
  :root {
    --panel-width: calc(100% - 4rem);
    --panel-max-width: 1000px;
    --panel-padding: 2rem 1.5rem;
    --panel-radius: 30px;
    --panel-bg: rgba(30, 34, 40, 0.7);
    --panel-shadow: 0 8px 32px 0 rgba(36, 41, 50, 0.269);
  }
  
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
  }
  
  .panel-overlap,
  .hero,
  .about-panel,
  .gallery-panel,
  .secret-panel {
    transform: translateZ(20px) rotate(-1deg) !important;
  }
  
  /* Legal pages: disable rotation in this media query */
  body.legal-page .about-panel {
    transform: translateZ(20px) rotate(0deg) !important;
  }
  
  .panel-overlap {
    width: var(--panel-width);
    max-width: var(--panel-max-width);
    padding: var(--panel-padding);
    margin: 2rem auto;
    border-radius: var(--panel-radius);
    background: var(--panel-bg);
    box-shadow: var(--panel-shadow);
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero { 
    margin-top: 1.5rem; 
  }

  .rave-main { 
    margin: 2rem 1rem 0 1rem; 
    padding: var(--panel-padding); 
    max-width: 100%; 
    border-radius: var(--panel-radius); 
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 8px 32px 0 rgba(255, 0, 60, 0.267);
  }
  
  .rave-title { 
    font-size: 1.8rem; 
  }
  
  .rave-desc { 
    font-size: 1rem; 
  }

  .rave-lineup .content-wrap { 
    display: block; 
  }
  
  .rave-lineup img { 
    width: 100%; 
    height: auto; 
    margin-bottom: .75rem; 
  }

  .hero::after { 
    width: 75%; 
    height: 75%;
    min-height: 180px;
    min-width: 180px;
  }

  .secret-form { 
    width: 90%; 
    padding: 1.5rem; 
    max-width: 350px; 
  }

  .parallax-container { 
    padding: var(--padding-container-top-tablet) 0 var(--padding-container-bottom-tablet) 0; 
  }


  .about-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-item {
    transform: none !important;
  }
  
  .gallery-item img {
    height: 280px;
  }
  
  .about-panel {
    padding: var(--panel-padding);
    border-radius: var(--panel-radius);
    background: var(--panel-bg);
    box-shadow: var(--panel-shadow);
  }
  
  .about-image {
    height: 180px;
  }

  .page-title.hero {
    padding: var(--panel-padding);
    border-radius: var(--panel-radius);
    background: var(--panel-bg);
    box-shadow: var(--panel-shadow);
  }
  
  .page-title.hero h1 {
    font-size: 2.8rem;
  }
  
  .page-title.hero .subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .about-text {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .gallery-panel {
    padding: var(--panel-padding);
    border-radius: var(--panel-radius);
    background: var(--panel-bg);
    box-shadow: var(--panel-shadow);
  }
  
  /* Art-Items Styles - Tablet */
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
  }
  
  .art-title {
    font-size: 2.5rem;
    margin-top: calc(var(--nav-position-top) + var(--nav-button-size) + 1rem);
    margin-bottom: 2rem;
  }
  
  /* Navigation Variables - Tablet */
  :root {
    --nav-button-size: 3.5rem;
    --nav-button-gap: 0.22rem;
    --nav-line-width: 55%;
    --nav-line-height: 2.5px;
    --nav-position-top: 1rem;
    --nav-position-side: 1rem;
    --nav-menu-item-height: 3.15rem;
    --nav-menu-font-size: 1.15rem;
    --nav-menu-item-padding: 1rem 1.5rem;
    --nav-menu-min-width: 200px;
    --secret-modal-width: 200px;
    --secret-modal-padding: 1.2rem 1.5rem;
    --secret-modal-input-font-size: 1rem;
    --secret-modal-button-padding: 0.9rem 1.2rem;
  }
  
  @media (hover: none) {
    .panel-overlap:hover {
      transform: translateZ(20px) rotate(-3deg) !important;
    }
    .hero:hover {
      transform: translateZ(25px) rotate(-3deg) !important;
    }
    .secret-panel:hover {
      transform: translateZ(20px) rotate(2deg) !important;
    }
  }
}

/* Mobile: Always show size options on mobile (or toggle on click) */
@media (max-width: 768px) {
  .size-options {
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
  }
  
  .product-card.size-options-visible .size-options,
  .size-options.active {
    opacity: 1;
    max-height: 100px;
    margin: 0;
  }
  
  /* Ensure product images maintain 85% size on mobile */
  .product-card,
  .product-bg-image {
    background-size: 85% !important;
  }
}

/* Mobile: 421px to 627px */
@media (max-width: 627px) and (min-width: 421px) {
  /* Panel Variables - Mobile */
  :root {
    --panel-width: clamp(calc(100% - 6rem), 85vw, calc(100% - 4rem));
    --panel-max-width: clamp(calc(100% - 6rem), 85vw, calc(100% - 4rem));
    --panel-padding: clamp(1.5rem, 3vw, 2rem) clamp(1.2rem, 2.5vw, 1.8rem);
    --panel-radius: 30px;
    --panel-bg: rgba(30, 34, 40, 0.7);
    --panel-shadow: 0 8px 32px 0 rgba(36, 41, 50, 0.269);
  }
  
  .panel-overlap,
  .hero,
  .about-panel,
  .gallery-panel,
  .secret-panel {
    width: var(--panel-width);
    max-width: var(--panel-max-width);
    padding: var(--panel-padding);
    margin: clamp(1.5rem, 2.5vw, 2rem) auto;
    border-radius: var(--panel-radius);
    background: var(--panel-bg);
    box-shadow: var(--panel-shadow);
  }
  
  .hero {
    transform: translateZ(25px) rotate(-2deg) !important;
  }
  
  .secret-panel {
    transform: translateZ(20px) rotate(1.5deg) !important;
  }
  
  .about-panel {
    transform: translateZ(22px) rotate(1.2deg) !important;
  }
  
  /* Legal pages: disable rotation in this media query */
  body.legal-page .about-panel {
    transform: translateZ(20px) rotate(0deg) !important;
  }
  
  .gallery-panel {
    transform: translateZ(18px) rotate(-1deg) !important;
  }
  
  .parallax-container {
    padding: var(--padding-container-top-tablet) 0 var(--padding-container-bottom-tablet) 0;
  }
  
  .hero::after { 
    width: 70%;
    height: 70%;
    min-height: 160px;
    min-width: 160px;
  }
  
  .sticker-link {
    width: 70%;
    height: 55%;
    min-height: 110px;
    min-width: 160px;
  }
  
  .hero h1 {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 400px));
    padding: 0 2.5rem;
    gap: 1.8rem;
    justify-content: center;
  }
  
  .product-card {
    min-height: 320px !important;
    max-width: 400px;
  }
  
  .product-card,
  .product-bg-image {
    background-size: 88% !important;
  }
  
  .secret-form {
    width: clamp(280px, 60vw, 350px);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    max-width: 350px;
  }
  
  .secret-form .input-send-wrapper input {
    padding: 0.9rem 3.5rem 0.9rem 0.9rem;
    font-size: 1rem;
  }
  
  .secret-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    width: auto;
    min-width: 140px;
  }
  
  .about-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-item {
    transform: none !important;
  }
  
  .gallery-item img {
    height: 280px;
  }
  
  .about-image {
    height: 180px;
  }
  
  .about-image-container {
    max-width: 300px;
  }

  .about-image-panel {
    width: 85%;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: translateZ(20px) rotate(-1deg) !important;
  }

  .image-panel-left,
  .image-panel-right {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .page-title.hero {
    padding: var(--panel-padding);
    border-radius: var(--panel-radius);
    background: var(--panel-bg);
    box-shadow: var(--panel-shadow);
  }
  
  .page-title.hero h1 {
    font-size: 2.5rem;
  }
  
  .page-title.hero .subtitle {
    font-size: 1rem;
    padding: 0 0.75rem;
  }

  .about-text {
    font-size: 1rem;
    padding: 0 0.75rem;
  }
  
  .about-panel {
    padding: var(--panel-padding);
    border-radius: var(--panel-radius);
    background: var(--panel-bg);
    box-shadow: var(--panel-shadow);
  }
  
  .gallery-panel {
    padding: var(--panel-padding);
    border-radius: var(--panel-radius);
    background: var(--panel-bg);
    box-shadow: var(--panel-shadow);
  }
  
  /* Navigation Variables - Mobile */
  :root {
    --nav-button-size: 3.5rem;
    --nav-button-gap: 0.22rem;
    --nav-line-width: 55%;
    --nav-line-height: 2.5px;
    --nav-position-top: 1rem;
    --nav-position-side: 1rem;
    --nav-menu-item-height: 3.15rem;
    --nav-menu-font-size: 1.15rem;
    --nav-menu-item-padding: 1rem 1.5rem;
    --nav-menu-min-width: 200px;
    --secret-modal-width: 200px;
    --secret-modal-padding: 1.2rem 1.5rem;
    --secret-modal-input-font-size: 1rem;
    --secret-modal-button-padding: 0.9rem 1.2rem;
  }
  
  .art-title {
    margin-top: calc(var(--nav-position-top) + var(--nav-button-size) + 1rem);
  }
  
  /* Art-Items Styles - Mobile */
  
  .product-card {
    transform: rotate(var(--rotation)) !important;
    width: calc(100% - 2rem) !important;
    max-width: calc(100% - 2rem) !important;
    margin: 0 auto !important;
    background: var(--panel-bg) !important;
    border-radius: var(--panel-radius) !important;
    box-shadow: var(--panel-shadow) !important;
    min-height: 340px !important;
  }
  
  .product-card,
  .product-bg-image {
    background-size: 88% !important;
  }
  
  .product-card:hover {
    transform: translateY(-6px) rotate(0deg) !important;
  }
  
  .products-grid {
    padding: 0 2rem !important;
    max-width: 100% !important;
  }
}

/* Mobile: 530px to 620px - Increase card size when 2 panels fit */
@media (max-width: 620px) and (min-width: 530px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 400px)) !important;
    justify-content: center;
  }
  
  .product-card {
    max-width: 400px;
  }
}

/* Mobile Small: 420px and below */
@media (max-width: 420px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden !important;
    perspective: none !important;
  }

  .parallax-container {
    padding: var(--padding-container-top-mobile-small) 0 var(--padding-container-bottom-mobile-small) 0 !important;
    transform: none !important;
    min-height: auto !important;
  }

  /* Panel Variables - Mobile Small */
  :root {
    --panel-width: calc(100% - 3rem);
    --panel-max-width: calc(100% - 3rem);
    --panel-padding: 1.5rem 1rem;
    --panel-radius: 30px;
    --panel-bg: rgba(30, 34, 40, 0.7);
    --panel-shadow: 0 8px 32px 0 rgba(36, 41, 50, 0.269);
  }

  .panel-overlap,
  .hero,
  .about-panel,
  .gallery-panel,
  .secret-panel {
    margin: 1rem auto !important;
    width: var(--panel-width) !important;
    max-width: var(--panel-max-width) !important;
    padding: var(--panel-padding) !important;
    border-radius: var(--panel-radius) !important;
    background: var(--panel-bg) !important;
    box-shadow: var(--panel-shadow) !important;
  }
  
  .hero {
    transform: rotate(-3deg) !important;
  }
  
  .about-panel {
    transform: rotate(2deg) !important;
  }
  
  /* Legal pages: disable rotation in this media query */
  body.legal-page .about-panel {
    transform: rotate(0deg) !important;
  }
  
  .gallery-panel {
    transform: rotate(-1.5deg) !important;
  }

  .secret-panel {
    transform: rotate(1.5deg) !important;
    margin-top: 2.5rem !important;
  }

  .panel-overlap::before { 
    opacity: 0.5 !important;
  }
  
  .hero::after { 
    width: 80% !important;
    height: 80% !important;
    min-height: 150px !important;
    min-width: 150px !important;
  }

  .sticker-link {
    width: 80% !important;
    height: 60% !important;
    min-height: 100px !important;
    min-width: 150px !important;
  }

  .page-title.hero { 
    padding: var(--panel-padding) !important;
    border-radius: var(--panel-radius) !important;
    background: var(--panel-bg) !important;
    box-shadow: var(--panel-shadow) !important;
  }
  
  .hero h1 { 
    font-size: 2.2rem !important; 
  }
  

  .page-title.hero h1 { 
    font-size: 2rem !important; 
  }
  
  .page-title.hero .subtitle {
    font-size: 0.95rem !important;
    padding: 0 0.5rem !important;
  }
  
  .about-panel {
    padding: var(--panel-padding) !important;
    border-radius: var(--panel-radius) !important;
    background: var(--panel-bg) !important;
    box-shadow: var(--panel-shadow) !important;
  }
  
  .gallery-panel {
    padding: var(--panel-padding) !important;
    border-radius: var(--panel-radius) !important;
    background: var(--panel-bg) !important;
    box-shadow: var(--panel-shadow) !important;
  }

  .products-grid {
    grid-template-columns: 1fr !important;
    padding: 0 2rem !important;
    gap: 1.5rem !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .product-card {
    width: calc(100% - 2rem) !important;
    max-width: calc(100% - 2rem) !important;
    aspect-ratio: auto !important;
    min-height: 380px !important;
    padding: 1rem !important;
    border-radius: var(--panel-radius) !important;
    background: var(--panel-bg) !important;
    box-shadow: var(--panel-shadow) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 auto !important;
    margin-left: calc(50% - (100% - 5rem) / 2 - 2rem) !important;
  }
  
  /* Increase image size on smallest mobile for better visibility */
  .product-card,
  .product-bg-image {
    background-size: 90% !important;
  }
  
  .add-to-cart-btn {
    padding: 0.75rem 1.2rem !important;
    font-size: 1rem !important;
    min-height: 48px !important;
  }
  
  .size-option {
    padding: 0.65rem 0.85rem !important;
    font-size: 1rem !important;
    min-width: 52px !important;
    min-height: 44px !important;
  }

  .about-gallery img {
    height: auto !important;
    max-height: 220px !important;
    object-fit: cover !important;
  }

  .about-gallery {
    gap: 1.2rem !important;
  }
  
  .gallery-item img {
    height: 240px !important;
  }
  
  .about-image {
    height: 160px !important;
  }
  
  .about-image-container {
    max-width: 280px !important;
    margin-bottom: 1rem !important;
  }

  .about-image-panel {
    width: 90% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: translateZ(20px) rotate(-1deg) !important;
    padding: 1rem !important;
  }

  .image-panel-left,
  .image-panel-right {
    margin-left: auto !important;
    margin-right: auto !important;
    transform: translateZ(20px) rotate(-1deg) !important;
  }
  
  .about-text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  
  @media (hover: none) {
    .gallery-item:hover {
      transform: none !important;
      box-shadow: 0 6px 18px rgba(0,0,0,0.15) !important;
    }
    
    .about-gallery .gallery-item:hover {
      transform: none !important;
    }
  }

  .secret-form {
    width: calc(100% - 2rem) !important;
    max-width: calc(100% - 2rem) !important;
    padding: 1.5rem !important;
    margin: 0 auto !important;
  }
  
  .secret-form .input-send-wrapper input {
    padding: 0.8rem 3.5rem 0.8rem 0.8rem;
    font-size: 1rem;
  }
  
  .secret-btn {
    padding: 0.9rem 2rem !important;
    font-size: 1.1rem !important;
    width: 70% !important;
  }

  .back-button { 
    z-index: 1200;
  }

  .panel-overlap:hover { 
    transform: none !important; 
  }

  .nav-overlay {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 1400 !important;
    border-left: none !important;
  }

  body.nav-open { 
    overflow: hidden !important; 
  }

  .rave-lineup .content-wrap { 
    display: block !important; 
  }
  
  .rave-lineup .content-wrap > div { 
    width: 100% !important; 
    max-width: none !important; 
    margin-bottom: 0.75rem !important; 
  }
  
  .rave-lineup img { 
    width: 100% !important; 
    height: auto !important; 
    border-radius: 6px !important; 
  }

  .secret-modal { 
    z-index: 1450 !important; 
  }
  
  
  .products-grid {
    padding: 0.75rem !important;
    gap: 1.2rem !important;
  }

  
  
  /* Navigation Variables - Mobile Small */
  :root {
    --nav-button-size: 4rem;
    --nav-button-gap: 0.3rem;
    --nav-line-width: 60%;
    --nav-line-height: 3px;
    --nav-position-top: 1.1rem;
    --nav-position-side: 1rem;
    --nav-menu-item-height: 2.75rem;
    --nav-menu-font-size: 1rem;
    --nav-menu-item-padding: 0.875rem 1.25rem;
    --nav-menu-min-width: 180px;
    --secret-modal-width: 180px;
    --secret-modal-padding: 1rem 1.25rem;
    --secret-modal-right: 2rem;
    --secret-modal-input-font-size: 1rem;
    --secret-modal-button-padding: 0.8rem 1rem;
  }
  
  @media (hover: none) {
    .panel-overlap:hover,
    .hero:hover,
    .secret-panel:hover,
    .about-panel:hover,
    .gallery-panel:hover {
      transform: none !important;
    }
    
    /* Legal pages: ensure no rotation or hover effects */
    body.legal-page .about-panel,
    body.legal-page .about-panel:hover,
    body.legal-page .about-panel.panel-overlap,
    body.legal-page .about-panel.panel-overlap:hover {
      transform: translateZ(20px) rotate(0deg) !important;
    }
    
    .back-button:hover {
      transform: scale(1) !important;
    }
    
    .burger-menu:hover {
      transform: none !important;
    }
    
    /* Ensure panels allow scrolling on touch devices */
    .panel-overlap,
    .hero,
    .secret-panel,
    .about-panel,
    .gallery-panel,
    .product-card {
      touch-action: pan-y pan-x;
    }
  }
}

.product-content::before,
.product-content::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  background: var(--product-panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--product-panel-shadow);
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

.product-content::before {
  top: var(--notch-depth);
  bottom: 0;
}

.product-content::after {
  left: 50%;
  right: auto;
  width: var(--notch-width);
  height: calc(var(--notch-depth) * 2);
  top: calc(-1 * var(--notch-depth));
  transform: translateX(-50%) rotate(180deg);
  transform-origin: center;
  border-radius: 0 0 calc(var(--notch-width) / 2) calc(var(--notch-width) / 2);
  box-shadow: none;
}

body.light-mode .product-content::before,
body.light-mode .product-content::after {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

