/* ==========================================================================
   1. BRAND ARCHITECTURE & GLOBAL INITIALIZATION
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

:root {
  --c-primary: #1a1f48;   /* header / main accent */
  --c-button: #460ca4;    /* CTA button */
  --c-bg-page: #f2f2f5;   /* page background */
  --c-surface: #ffffff;   /* cards / surfaces */
  --c-text: #000000;      /* primary text */
  --c-a1: #832a21;
  --c-a2: #fbcb15;
  --c-a3: #002838;
  --c-a4: #1caa46;
  --c-a5: #b57df1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: 'Poppins', 'Inter', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  position: relative;
  background-attachment: fixed;
  background-color: var(--c-bg-page);
  color: var(--c-text);
  overflow-x: hidden;
}

body.lock-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

/* This creates a dedicated background layer behind your content */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/heronowords.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  z-index: -1; /* Keeps it behind all shop elements */
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); /* Starts completely transparent */
  z-index: -1; /* Keeps it behind shop content */
  transition: background-color 0.4s ease-in-out;
  pointer-events: none;
}

/* When the player scrolls, tint the screen with a deep, dark theme color */
body.scrolled::after {
  background: rgba(15, 12, 30, 0.7); /* Deep dark purple/black tint at 70% opacity */
}

/* Smoothly hides the down arrow when scrolling */
body.scrolled .down-arrow {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Smoothly fade out the welcome message completely instead of blurring it */
body.scrolled .welcome-container {
  opacity: 0.2; /* Dims the welcome text so it doesn't compete with the cards */
}

/* Smooth fade out for the down arrow */
.down-arrow {
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.welcome-container {
  transition: opacity 0.4s ease-in-out;
}


/* ==========================================================================
   2. HERO INTERFACE & GLOBAL LAYOUT COMPONENTS
   ========================================================================== */
.hero, .hero-img, .hero-spacer { 
  display: none; 
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: .5rem;
  color: #1a1f48;
}

.subtitle { 
  font-size: 1.25rem; 
  margin-bottom: 1.5rem; 
  color: #000000; 
}

.spacer {
  height: 100vh;
}

.welcome-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  padding: 2rem;
}

.down-arrow {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 0;
  animation: pulse-arrow 2s infinite;
}

.down-arrow::before {
  content: '\2193';
  font-size: 1.5rem;
  color: #fff;
}


/* ==========================================================================
   3. STRUCTURAL FRAMES (HEADER, NAV, FOOTER, SPINNER)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-a5) 100%);
  color: #ffffff;
  z-index: 1000;
}

.logo { 
  height: 40px; 
}

.nav { 
  display: flex; 
  gap: 1.5rem; 
}

.nav-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after { 
  transform: scaleX(1); 
}

.nav-link:focus,
.nav-link:active {
  outline: none;
}

.footer { 
  padding: 2rem; 
  text-align: center; 
  margin-top: 4rem; 
  background: #1a1f48; 
  color: #ffffff; 
}

.app-links { 
  margin-top: .5rem; 
  display: flex; 
  justify-content: center; 
  gap: 1rem; 
}

.app-icon { 
  width: 40px; 
  height: 40px; 
}

#fsc-spinner {
  width: 100%;
  height: 100%;
  z-index: 999999999;
  background: rgba(0,0,0,0.4);
  position: fixed;
  top: 0;
  left: 0;
}

#fsc-spinner img {
  -webkit-animation-duration: .4s;
  animation-duration: .4s;
  -webkit-animation-delay: .4s;
  animation-delay: .4s;
  -webkit-animation-name: fsb-fadeIn;
  animation-name: fsb-fadeIn;
  position: fixed;
  top: 50%;
  margin-top: -50px;
  left: 50%;
  margin-left: -50px;
  z-index: 99999999;
}


/* ==========================================================================
   4. ANIMATIONS MATRICES
   ========================================================================== */
@keyframes pulse-arrow {
  0% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.2); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes bounceIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes flare {
  0%, 100% { background-size: 100%; }
  50% { background-size: 120%; }
}
@keyframes welcomePop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes continuousZoomPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes borderSpin {
  0%, 100% { border-image-source: linear-gradient(45deg, #ff9a9e, #fad0c4); }
  50% { border-image-source: linear-gradient(45deg, #fad0c4, #ff9a9e); }
}


/* ==========================================================================
   5. SHOP TILES & PRODUCT DISPLAY ARCHITECTURE
   ========================================================================== */
.shop-section {
  position: relative;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 2rem;
  text-align: center;
  overflow: hidden;
  border: none;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 2;
  opacity: 1;
  transform: none;
  transition: none;
}

.shop-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.07;
  pointer-events: none;
}

#exclusives, #discord-specials, #coins, #eggs, #whale-specials, #battlepass {
  background-color: #fcfdfe !important;
  background-image: radial-gradient(#e2e8f0 2px, transparent 2px) !important;
  background-size: 24px 24px !important;
  border-radius: 1rem;
  background: #ffffff;
  animation: bounceIn 0.8s ease-out;
}

.section-title { 
  font-size: 4.5rem; 
  margin-bottom: 2rem; 
  color: #1a1f48; 
}

.glass {
  background: var(--c-surface);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0.75rem;
}

.product-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
  gap: 2rem; 
  justify-items: center; 
}

#exclusives .product-grid,
#discord-specials .product-grid,
#coins .product-grid,
#eggs .product-grid, 
#whale-specials .product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card { 
  width: 100%; 
  max-width: 260px; 
  padding: 1rem; 
  text-align: center; 
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  transition: transform .2s ease, box-shadow .2s ease; 
  overflow: hidden;
}

.product-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 10px 10px -5px rgba(0, 0, 0, 0.4); 
}

article.product-card.glass {
  margin: 20px;
}

.product-image { 
  width: 100%; 
  height: auto; 
  object-fit: contain; 
  margin-bottom: .75rem; 
  animation: continuousZoomPulse 3s ease-in-out infinite;  
  transform-origin: bottom center;  
}

#exclusives .product-card,
#discord-specials .product-card,
#eggs .product-card, 
#whale-specials .product-card {
  overflow: hidden;
}

#exclusives .product-image,
#discord-specials .product-image,
#eggs .product-image, 
#whale-specials .product-image {
  margin-top: -1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  margin-bottom: 1rem;
  width: calc(100% + 2rem);
  max-width: calc(100% + 2rem);
  object-fit: cover;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.product-name { font-weight: 600; margin-bottom: .5rem; color: #000000; }
.product-price { font-size: 1.1rem; margin-bottom: .75rem; display: flex; align-items: center; justify-content: center; gap: .25rem; color: #000000; }
.icon-coin { width: 20px; height: 20px; }
.add-to-cart { width: 100%; }

.flare {
  background-image: url(../img/flare50.png);
  background-position-x: 50%;
  background-position-y: 50%;
  animation-name: flare;
  animation-iteration-count: infinite;
  animation-duration: 1.5s;
  max-width: 22rem;
  background-color: #1a1f48;
  background-repeat: no-repeat;
}

.coin { 
  width: 60%; 
}

.text-white { 
  color: #ffffff; 
}

.btn-primary {
  background: #460ca4;
  color: #ffffff;
  border: none;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  border-radius: .5rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px #b57df1;
}


/* ==========================================================================
   6. 3D CUSTOM FONT SYSTEMS (LUCKIEST GUY MODULES)
   ========================================================================== */
.eggblast-style, 
.arena-style,
.discord-style,
.whale-style,
.coin-style,
.egg-style,
.welcome-hero-text,
.welcome-username, 
.qty-val, 
.eggbasketheader, 
.order-summary-toggle h3 {
  font-family: 'Luckiest Guy', cursive;
  letter-spacing: 6%;
  text-shadow: 0.005em 0.005em 0px #2b0847, 0.010em 0.010em 0px #2b0847, 0.015em 0.015em 0px #2b0847,
    0.020em 0.020em 0px #2b0847, 0.025em 0.025em 0px #2b0847, 0.030em 0.030em 0px #2b0847,
    0.035em 0.035em 0px #2b0847, 0.040em 0.040em 0px #2b0847, 0.060em 0.070em 0.100em rgba(0, 0, 0, 0.7);
  animation: welcomePop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.eggbasketheader, 
.order-summary-toggle h3 {
  color: #fbcb15;
  font-size: 1.6rem;
}

.qty-val {
  color: #fbcb15;
}

.product-price, 
.cross-price {
  font-family: 'Luckiest Guy', cursive;
  letter-spacing: 6%;
  color: #ff007f;
  font-size: 1.6rem;
}

.sectiondesc, 
.product-name, 
.product-description, 
.nav-link, 
.cross-name,
.upsell-div h2, 
.item-name {
  font-family: 'Luckiest Guy', cursive;
  letter-spacing: 6%;
  color: #b57df1;
  font-size: 1.2rem;
  text-shadow: 0.005em 0.005em 0px #200540, 0.010em 0.010em 0px #200540, 0.015em 0.015em 0px #200540,
    0.020em 0.020em 0px #200540, 0.025em 0.025em 0px #200540, 0.030em 0.030em 0px #200540,
    0.035em 0.035em 0px #200540, 0.040em 0.040em 0px #200540, 0.060em 0.070em 0.100em rgba(0, 0, 0, 0.7);
}

.upsell-div h2 {
  font-size: 1.6rem;
}

.btn-primary {
  font-family: 'Luckiest Guy', cursive;
  letter-spacing: 6%;
  text-shadow: 0.005em 0.005em 0px #2b0847, 0.010em 0.010em 0px #2b0847, 0.015em 0.015em 0px #2b0847,
    0.020em 0.020em 0px #2b0847, 0.025em 0.025em 0px #2b0847, 0.030em 0.030em 0px #2b0847,
    0.035em 0.035em 0px #2b0847, 0.040em 0.040em 0px #2b0847, 0.060em 0.070em 0.100em rgba(0, 0, 0, 0.5);
  animation: welcomePop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.summary-line {
  font-family: 'Luckiest Guy', cursive;
  letter-spacing: 6%;
}

.eggblast-style {  
  color: #e62b8a;  
}

.arena-style {
  color: #ffa200; 
}

.discord-style {
  color: #7289da; 
}

.whale-style {
  color: #460ca4; 
}

.coin-style {
  color: #fbcb15; 
}

.egg-style {
  color: #1caa46; 
}

.welcome-hero-text {
  font-size: 4.5rem;
  text-align: center;
  color: #1caa46;
}

.welcome-username {
  color: #b57df1;
}


/* ==========================================================================
   7. MODAL LOGIC FRAMES
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000000;
}

.input-field {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0 1rem 0;
  border: 1px solid #ccc;
  border-radius: 0.4rem;
  font-size: 1rem;
  background: #fafafa;
  box-sizing: border-box;
}

.discord-modal-border { border: 2px solid #5865F2 !important; }
.discord-header { color: #5865F2; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.discord-welcome-badge { background: rgba(88, 101, 242, 0.15); border: 1px solid rgba(88, 101, 242, 0.3); padding: 0.75rem; border-radius: 0.5rem; margin-bottom: 1rem; font-size: 0.9rem; color: #2b3990; }
.discord-tag { background: #5865F2; color: #ffffff; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.75rem; margin-left: 0.25rem; font-weight: bold; }
.discord-instructions { font-size: 0.85rem; color: #555555; margin-bottom: 1.25rem; line-height: 1.45; }
.btn-discord-connect { background: #5865F2 !important; }
.btn-discord-connect:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(88, 101, 242, 0.6) !important; }


/* ==========================================================================
   8. SHOPPING CART APPARATUS (DRAWER & BREAKDOWNS)
   ========================================================================== */
.cart-drawer.full-width {
  position: fixed;
  top: 72px; 
  left: 0;
  width: 100vw;  
  height: calc(100vh - 72px); 
  background-color: #fcfdfe; 
  background-image: radial-gradient(#e2e8f0 2px, transparent 2px);
  background-size: 24px 24px;
  z-index: 999; 
  display: flex;
  flex-direction: column;
  transform: translateX(100%); 
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #1e293b;
  font-family: 'Luckiest Guy', cursive;
}

.cart-drawer.full-width.open { 
  transform: translateX(0); 
}

.drawer-header {
  padding: 5px 40px;
  background-color: transparent;
  display: flex;
  justify-content: end;
  align-items: center;
}

.drawer-header h3 { 
  margin: 0; 
  letter-spacing: 2px; 
  color: #ff007f; 
  font-size: 2.5rem; 
}

.close-drawer-btn {
  background: none;
  border: none;
  color: #fbcb15;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  font-family: 'Luckiest Guy', cursive;
  text-shadow: 0.005em 0.005em 0px #200540, 0.010em 0.010em 0px #200540, 0.015em 0.015em 0px #200540,
    0.020em 0.020em 0px #200540, 0.025em 0.025em 0px #200540, 0.030em 0.030em 0px #200540,
    0.035em 0.035em 0px #200540, 0.040em 0.040em 0px #200540, 0.060em 0.070em 0.100em rgba(0, 0, 0, 0.7);
  animation: welcomePop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.close-drawer-btn:hover { 
  color: #00bcbc; 
  transform: scale(1.1); 
}

.drawer-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px; 
  padding: 10px 40px;
  overflow: hidden; 
  height: 100%;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto; 
}

.grid-column {
  padding: 40px;
  border-radius: 20px;
  background-color: #ffffff; 
  font-family: 'Arial', sans-serif;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03); 
  overflow-y: auto; 
  max-height: 100%;
  width: 100%;
  justify-self: center; 
}

.cart-items-list { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  margin-top: 10px; 
}

.cart-item, 
.line-item-container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item:hover, 
.line-item-container:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04); 
}

.line-item-container { 
  flex-wrap: wrap; 
  margin-bottom: 20px; 
}

.line-item-container:last-child { 
  margin-bottom: 5px; 
}

.main-product-row { 
  gap: 16px; 
}

.upsell-div { 
  flex-basis: 100%; 
  width: 100%; 
  margin-top: 8px; 
}

.product-grid.cart {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0rem 2rem;
}

.item-img-box {
  width: 64px;
  height: 64px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-img-box img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.item-details { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  gap: 4px; 
}

.item-name { 
  font-family: 'Luckiest Guy', cursive; 
  font-size: 1.5rem; 
  letter-spacing: 0.5px; 
}

.item-price {
  font-family: 'Luckiest Guy', cursive;
  letter-spacing: 6%; 
  font-size: 1rem; 
  font-weight: 700; 
  color: #ff007f; 
  text-align: right;
}

.pricediscoutn {
  color: #64748b;
}

.item-qty-selector { 
  display: flex; 
  align-items: center; 
  background-color: #f1f5f9; 
  border-radius: 8px; 
  padding: 4px; 
  border: 1px solid #e2e8f0; 
}

.qty-btn { 
  background: none; 
  border: none; 
  width: 28px; 
  height: 28px; 
  font-size: 1.1rem; 
  font-weight: bold; 
  color: #64748b; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 6px; 
  transition: background-color 0.2s, color 0.2s; 
}

.qty-btn:hover { 
  background-color: #ffffff; 
  color: #1e293b; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
}

.qty-btn i { 
  font-size: 0.85rem; 
}

.qty-val { 
  font-size: 1.6rem; 
  min-width: 30px; 
  text-align: center;
}

.item-remove-btn { 
  background: none; 
  border: none; 
  color: #94a3b8; 
  font-size: 1.8rem; 
  cursor: pointer; 
  line-height: 1; 
  padding: 4px 8px; 
  border-radius: 6px; 
  transition: color 0.2s, background-color 0.2s; 
}

.item-remove-btn:hover { 
  color: #ef4444; 
  background-color: #ffeeee; 
}

.item-remove-btn i { 
  font-size: 1.2rem; 
}

.cart-summary-box { 
  margin-top: 10px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  font-family: 'Arial', sans-serif; 
}

.summary-line { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  color: #64748b; 
  font-size: 1.05rem; 
  font-weight: 500; 
}

.summary-line span:last-child { 
  font-weight: 700; 
  color: #64748b; 
}

.subscriptiontext {
  color: #c0c0c0;
  font-size: .8rem;
  text-align: right;
}

.summary-line.total-line {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: #1e293b;
}

.summary-line.total-line span:last-child { 
  color: #ff007f; 
  text-shadow: 1px 1px 0px rgba(0,0,0,0.05); 
}

.cross-sell-box { 
  margin-top: 25px; 
  padding: 18px; 
  background-color: #f8fafc; 
  border: 1px solid #e2e8f0; 
  border-radius: 14px; 
}

.cross-sell-box h5 { 
  margin: 0 0 12px 0; 
  font-family: 'Luckiest Guy', cursive; 
  font-size: 1.15rem; 
  letter-spacing: 0.5px; 
  color: #334155; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

.cross-sell-box h5 i { 
  color: #ff9900; 
}

.cross-sell-card { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
  background-color: #ffffff; 
  padding: 10px; 
  border: 1px dashed #cbd5e1; 
  border-radius: 10px; 
}

.cross-img-box { 
  width: 48px; 
  height: 48px; 
  background-color: #fff7ed; 
  border-radius: 8px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 1.2rem; 
}

.cross-details { 
  display: flex; 
  flex-direction: column; 
  gap: 2px; 
  font-family: 'Arial', sans-serif; 
}

.cross-price { 
  font-size: 1rem; 
}

.cross-price del { 
  color: #94a3b8; 
  margin-right: 4px; 
}

.cross-price strong { 
  color: #10b981; 
  font-size: 0.95rem; 
}

.cross-add-btn {
  background: linear-gradient(135deg, #00bcbc, #00f0ff);
  color: white;
  border: none;
  padding: 8px 14px;
  font-family: 'Luckiest Guy', cursive;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 188, 188, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cross-add-btn:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 6px 14px rgba(0, 188, 188, 0.3); 
}

.cross-add-btn i { 
  font-size: 0.9rem; 
}

.order-summary-toggle { 
  display: none; 
}

/* 1. Give the main card container explicit dimensions so it doesn't collapse */
.product-card.glass {
  perspective: 1000px;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  padding: 0 !important; 
  width: 100%;        /* Let it fill your grid column width */
  height: 350px;      /* Adjust this pixel value to match your desired card height */
}

/* 2. The wrapper element needs to take up 100% of that height */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

/* 3. Flip animation trigger */
.product-card.glass.flipped .card-inner {
  transform: rotateY(180deg);
}

/* 4. Common styling for both front and back faces */
.card-front, .card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05); /* Slight tint */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px; /* Smooth card corners */
  padding: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); 
  transition: box-shadow 0.3s ease; /* Smooth hover transition */
}

/* Optional: Add a subtle glow/lift shadow when hovering over the card */
.product-card.glass:hover .card-front,
.product-card.glass:hover .card-back {
  box-shadow: 0 12px 40px 0 rgba(124, 77, 255, 0.3); /* Subtle purple theme glow */
}

/* 5. Back face default position */
.card-back {
  transform: rotateY(180deg);
  background: rgba(255, 255, 255, 0.05); /* Slight tint */
  border: 1px solid rgba(124, 77, 255, 0.3); /* Purple border accent on the back */
}

.discountprice, .coindesc {
  font-size: 1.2rem;
  color: #c0c0c0;
  font-family: 'Luckiest Guy', cursive;
  letter-spacing: 6%;
  text-shadow: 0.005em 0.005em 0px #2b0847, 0.010em 0.010em 0px #2b0847, 0.015em 0.015em 0px #2b0847,
    0.020em 0.020em 0px #2b0847, 0.025em 0.025em 0px #2b0847, 0.030em 0.030em 0px #2b0847,
    0.035em 0.035em 0px #2b0847, 0.040em 0.040em 0px #2b0847, 0.060em 0.070em 0.100em rgba(0, 0, 0, 0.7);
  animation: welcomePop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

#battlepass .product-grid.battlepass {
  grid-template-columns: 1fr, 1fr;
}

/* Main card container holding the block layout */
.mockup-cart-item-card-v3 {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  gap: 0px;
}

/* --- ROW 1: HEADER ALIGNMENT --- */
.mockup-v3-row-name {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
}

.mockup-v3-item-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #1a1f48;
  text-transform: uppercase;
}

/* --- ROW 2: BODY ALIGNMENT --- */
.mockup-v3-row-body {
  display: flex;
  align-items: center; 
  width: 100%;
}

/* Left side: Allocate 50% width to the image */
.mockup-v3-media-area {
  width: 50%;
  display: flex;
  justify-content: flex-start;
}

.mockup-v3-cart-thumb {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Right side: 50% width column box */
.mockup-v3-right-content-stack {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Right-side Row 1: Price (Now Right Aligned) ?? */
.mockup-v3-price-line {
  display: grid;
  justify-content: flex-end; /* Right-aligns the prices */
  align-items: center;
  gap: 8px;
}

.mockup-v3-old-price {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.95rem;
}

.mockup-v3-new-price {
  color: #e11d48;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Right-side Row 2: Quantity (Now Right Aligned) ?? */
.mockup-v3-qty-line {
  display: flex;
  justify-content: flex-end; /* Right-aligns the quantity button box */
  align-items: center;
}

/* Modular Quantity input frame */
.mockup-v3-quantity-selector {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 2px;
}

.mockup-v3-qty-btn {
  background: none;
  border: none;
  padding: 4px 10px;
  font-weight: bold;
  cursor: pointer;
  color: #64748b;
}

.mockup-v3-qty-val {
  padding: 0 4px;
  font-weight: bold;
  color: #1a1f48;
}

/* Trash bin icon button modifications */
.mockup-v3-delete-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.mockup-v3-delete-btn:hover {
  color: #ef4444;
  transform: scale(1.05);
}

/* The background screen overlay covering the page view */
.mockup-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Translucent dimming layer */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Keeps it layered completely on top of navbars and shopping boxes */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Toggle state triggered by the script */
.mockup-modal-overlay.mockup-modal-active {
  opacity: 1;
  pointer-events: auto;
}

/* Inner content block card dimensions and look */
.mockup-modal-content {
  font-family: 'Luckiest Guy', cursive;
  letter-spacing: 6%;
  text-shadow: 0.005em 0.005em 0px #2b0847, 0.010em 0.010em 0px #2b0847, 0.015em 0.015em 0px #2b0847,
    0.020em 0.020em 0px #2b0847, 0.025em 0.025em 0px #2b0847, 0.030em 0.030em 0px #2b0847,
    0.035em 0.035em 0px #2b0847, 0.040em 0.040em 0px #2b0847, 0.060em 0.070em 0.100em rgba(0, 0, 0, 0.7);
  animation: welcomePop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  background: #ffffff;
  width: 90%;
  max-width: 450px;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.25s ease;
  font-size: 1.6rem;
}

.mockup-modal-content p {
  font-size: 1.2rem;
}

.mockup-modal-overlay.mockup-modal-active .mockup-modal-content {
  transform: scale(1);
}

/* Alignment blocks for layout inside your modal box */
.mockup-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mockup-modal-header h3 {
  margin: 0;
  font-size: 1.6rem;
  color: #1caa46;
}

.mockup-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #94a3b8;
}

.mockup-modal-close:hover {
  color: #ef4444;
}

.mockup-modal-body {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
}

.mockup-modal-footer {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.mockup-modal-confirm-btn {
  background: #e11d48;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mockup-modal-confirm-btn:hover {
  background: #be123c;
}


/* ==========================================================================
   9. MEDIA QUERIES & SCREEN INTERFACES
   ========================================================================== */
@media (max-width: 1024px) {
  .eggbasketheader {
    display: none;
  }

  .shop-section {
    width: 96%;
  }	

  #exclusives .product-grid,
  #discord-specials .product-grid,
  #coins .product-grid,
  #eggs .product-grid,
  #whale-specials .product-grid, 
  #battlepass .product-grid {
    grid-template-columns: repeat(2, 1fr);
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Beautifully centers the 3rd item on row 2 */
    gap: 0.5rem;
  }

  .drawer-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    overflow-y: auto; 
    margin: 0; 
  }

  .grid-column {
    padding: 25px;
    max-height: none;
    overflow-y: visible;
    width: 100%;
  }

  .grid-column.right-side {
    padding-top: 50px;
    order: 1;
    margin-bottom: 10px;
  }

  .grid-column.left-side {
    order: 2;
  }

  .order-summary-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 15px;
    user-select: none;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.3rem;
    color: #1e293b;
    letter-spacing: 0.5px;
  }

  .order-summary-toggle:hover { 
    background-color: #f1f5f9; 
  }

  .toggle-icon { 
    font-size: 1rem; 
    color: #64748b; 
    transition: transform 0.2s ease; 
  }

  .basket-content.is-collapsed { 
    display: none !important; 
  }
}

@media (max-width: 768px) {
  .shop-section {
    width: 96%;
  }	

  .product-card {
    max-width: 900px;
  }

  #discord-specials .product-image, 
  #whale-specials .product-image, 
  #exclusives .product-image, 
  #battlepass .product-image, 
  #coins .product-image, 
  #eggs .product-image {
    max-height: 150px;
    width: max-content;
    align-self: center;
  }

  .welcome-hero-text,
  .eggblast-style, 
  .arena-style,
  .discord-style,
  .whale-style,
  .coin-style,
  .egg-style,
  .welcome-username { 
    font-size: 3rem; 
  }

  .cart-drawer.full-width { 
    top: 72px; 
  }
}

@media (max-width: 600px) {
  .hero h1 { 
    font-size: 2.2rem; 
  }

  .subtitle { 
    font-size: 1rem; 
  }

  .header { 
    flex-direction: column; 
    gap: .5rem; 
  }

  .cart-drawer.full-width {
    top: 99px;
    height: calc(100vh - 99px);
  }
}

@media (max-width: 480px) {
  .cart-item, 
  .line-item-container {
    flex-wrap: wrap;
    gap: 12px;
  }

  .item-qty-selector {
    order: 3;
    margin-left: auto;
  }

  .item-remove-btn {
    order: 4;
  }
}