:root {
  --sidebar-width: 260px;
  --cream-dark: #f2e8d5; /* Darker beige for menu */
  --cream-light: #fdfaf5;
  --wood: #d2b48c;
  --ink: #17314a;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--cream-light);
  color: var(--ink);
  overflow-y: auto;
}

.site-wrapper {
  display: flex;
  min-height: 100vh;
  overflow: visible;
}


.main-content {
  margin-left: 260px;
  padding: 40px;
  width: calc(100% - 260px);
  box-sizing: border-box;
  overflow-y: auto;
}

/* Fixed Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--cream-dark);
  border-right: 2px solid var(--wood);
  padding: 20px;
  position: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box; /* This prevents padding from pushing the width out */
  overflow-x: hidden;    /* This hides anything that tries to grow sideways */
}

/* The Animation Box */
.brand-square {
  width: 100%;           /* This forces it to follow the sidebar width */
  max-width: 220px;      /* But don't let it get too huge */
  aspect-ratio: 1 / 1;   /* Keeps it a perfect square */
  object-fit: cover;     /* Crops the video to fill the square perfectly */
  border: 4px solid var(--ink);
  margin-bottom: 20px;
  display: block;
}

/* Header & Top Right Buttons */
.top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 20px 0;
}


.header-image-container {
  display: block;
  width: 100%;
}

.main-header-img {
  display: block;
  margin: 0 auto;
  max-width: 1000px;   /* ← controls banner size */
  width: 100%;
  height: auto;
}


.header-controls {
  position: absolute;
  top: 20px;
  right: 40px; /* Aligns buttons to the top right */
  display: flex;
  gap: 15px;
}

.icon-link { background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Description Box Styling */
.description-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border-left: 5px solid var(--wood);
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Menu Buttons */
.nav-btn {
  width: 100%;
  display: block;
  padding: 15px;
  margin-bottom: 10px;
  background: var(--wood);
  color: var(--ink);
  border: none;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.nav-btn:hover { background: var(--ink); color: white; transform: translateX(10px); }


.carousel-controls {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: var(--cream-dark);
}
.product-item .image-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.product-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* Hide all images by default */
}

.product-item img.active {
  display: block; /* Only show the 'active' image */
}


/* DARK MODE COLORS */
body.dark-mode {
  background: #1a1a1a;
  color: #fdfaf5;
}
body.dark-mode .description-box, 
body.dark-mode .sidebar {
  background: #2d2d2d;
  color: #fdfaf5;
  border-color: var(--wood);
}

/* CAROUSEL VISIBILITY */
.image-wrapper { position: relative; width: 100%; height: 300px; background: #eee; }
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: none; }
.image-wrapper img.active { display: block; }



/* CART MODAL LOOK */
.modal {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  background: white; padding: 20px; border-radius: 12px; width: 90%; max-width: 400px;
  color: #333;
}
.logo-link:hover video {
  transform: scale(1.05) rotate(-1deg);
  transition: 0.3s ease;
}
/* ===== PRODUCT CARDS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-card .carousel {
  aspect-ratio: 1 / 1;
}


.product-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.add-to-cart {
  color: #ff7a18;
  transition: transform 0.2s ease, color 0.2s ease;
}

.add-to-cart:hover {
  color: #ff9f1c;
  transform: scale(1.15);
}


.carousel img.active {
  display: block;
}

/* Product + Modal carousel arrows (Type A & B) */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 36px;
  height: 36px;
  border-radius: 50%;

  background: rgba(23, 49, 74, 0.9); ;
  border: none;

  color: #ffffff; /* white < > */
  font-size: 22px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.carousel-arrow.left { left: 5px; }
.carousel-arrow.right { right: 5px; }
/* Mini Merch Carousel specific adjustments */
.mini-merch-carousel {
  position: relative;
  overflow: hidden;
  height: 210px; 
  display: block;
  background: rgba(0,0,0,0.03);
}

.mini-merch-carousel .slideshow-img {
  width: 100%;
  height: 100% !important; /* Force it to fill the height */
  object-fit: contain !important; /* This zooms the image to fill the box */
  border-radius: 6px;
  position: absolute;
  top: 0;
  left: 0;
}

.mini-merch-carousel img.active {
  opacity: 1;
}

/* Info */
.product-info {
  margin-top: 12px;
}

.product-title {
  font-weight: bold;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.add-cart {
  cursor: pointer;
  font-size: 22px;
  color: #ff7a18; /* fire orange */
  transition: transform 0.2s ease, color 0.2s ease;
}

.add-cart:hover {
  color: #ff9f1c;
  transform: scale(1.15);
}
.price-row .add-cart {
  color: #ff7a18 !important;
}
.only-one {
  color: #b30000;           /* deep red */
  font-style: italic;
  font-weight: 600;
  margin-left: 8px;
}

.stock-count {
  color: #6b5a3a;           /* your beige-brown tone */
  font-style: italic;
  margin-left: 8px;
}


.product-card {
  background: rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 10px;
}


@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
.product-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 3px solid var(--wood);
}


.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}


.carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}



.carousel img.active {
  display: block;
}

.product-title {
  margin-top: 10px;
  font-weight: bold;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 10px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}



.carousel img.active {
  display: block;
}


.product-title {
  margin-top: 10px;
  font-weight: bold;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#productModal .modal-content {
  max-width: 1200px;
  width: 90%;
  max-height: 90vh;
  background: var(--cream-light);
  overflow-y: auto;
}


#productModal .modal-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: start;
}
.product-details-box {
  background: var(--cream-dark);
  border: 3px solid var(--wood);
  border-radius: 14px;
  padding: 25px;
}

.product-details-box h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.product-price {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 20px 0;
}

.add-to-cart-btn {
  background: var(--ink);
  color: white;
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.add-to-cart-btn:hover {
  background: #0f2233;
}


.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-bottom: 30px;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
/* Full-screen Lightbox background */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}


/* Clickable Areas (Hotzones) */
.lightbox-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%; /* Entire side is clickable */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 4rem;
  background: rgba(255, 255, 255, 0); /* Invisible until hover */
  transition: background 0.3s, opacity 0.3s;
  user-select: none;
  z-index: 10001;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-arrow.left { left: 0; }
.lightbox-arrow.right { right: 0; }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10002;
}
/* GLOBAL TEXT COLOR UNIFICATION */
body,
.nav-btn,
.product-title,
.item-title,
.item-desc,
.item-price,
.price-row,
.description-box,
.sidebar,
h1, h2, h3, h4, h5, h6,
button {
  color: var(--ink);
}
.main-divider {
  height: 4px;
  background: var(--ink);
  margin: 30px 0 40px;
  width: 100%;
  display: block !important;
}
.popup-divider {
  height: 3px;
  background: var(--ink);
  margin: 10px 0 20px;
  width: 100%;
}
.previous-row {
  position: relative;
  margin-bottom: 40px;
}

.previous-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
}

.previous-carousel img {
  width: calc(20% - 16px);
  cursor: pointer;
  border-radius: 10px;
  object-fit: cover;
}

.previous-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--cream-dark);
  border: 2px solid var(--wood);
  font-size: 28px;
  cursor: pointer;
  z-index: 5;
}

.previous-arrow.left { left: -10px; }
.previous-arrow.right { right: -10px; }

/* This controls the box the video sits in */
.home-video {
  position: relative;
  width: 100%;    
  max-height: 600px;
  max-width: 800px; /* This stops it from becoming huge */
  margin: 0 auto;
  aspect-ratio: 16 / 9; /* This maintains the correct rectangle shape */
  border: 4px solid var(--wood);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/* Visually narrow the YouTube video without shifting layout */
.home-video-side {
  padding: 0 clamp(40px, 6vw, 120px);
  box-sizing: border-box;
}

/* This makes the actual YouTube player fill that box */
.home-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.remove-btn {
  margin-left: 8px;
  background: none;
  border: none;
  color: #b30000;
  cursor: pointer;
  font-style: italic;
}
/* Position the X button inside the white box */
.cart-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-close:hover {
  opacity: 1;
  transform: scale(1.1);
}
.checkout-page {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.checkout-box {
  max-width: 1100px;
  width: 100%;
  background: var(--panel-bg, #e0c2a3);
  border: 1px solid #1f385b;
  padding: 30px;
}


.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.checkout-summary {
  border-right: 1px solid #333;
  padding-right: 20px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.checkout-form input {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
}
.checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.cancel-btn,
.checkout-btn {
  background: #1f385b;
  color: #fff;
  border: none;
  padding: 12px 22px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.cancel-btn:hover,
.checkout-btn:hover {
  background: #162a44;
  transform: translateY(-1px);
}
.checkout-actions .cancel-btn,
.checkout-actions .checkout-btn {
  background-color: #1f385b !important;
  color: #ffffff !important;
  border: none !important;
}

.checkout-actions .cancel-btn:hover,
.checkout-actions .checkout-btn:hover {
  background-color: #162a44 !important;
}
.account-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.account-field label {
  font-weight: 600;
  margin-bottom: 4px;
}
#account-view {
  display: block;
  text-align: left;
}

.sold-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
  color: white;
  font-size: 32px; /* Adjusted font size */
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10; /* Above the image */
}
.success-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2ecc71;
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: bold;
  z-index: 9999;
}
.popup-carousel {
  width: 100%;
  height: 450px; 
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

.popup-carousel img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  margin-bottom: 20px;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}
/* Layout for Video and Merch side-by-side */
.home-top-layout {
  display: flex !important;
  flex-direction: row !important;
  gap: 30px !important; /* Space between video and merch */
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

.home-video-side { 
  flex: 1 !important; 
  /* Removed max-width to let it fill the space next to the wider sidebar */
  display: flex;
  flex-direction: column;
}

.home-video {
  margin: 0 !important; /* Removes margins that might prevent alignment */
  width: 100%;
  max-width: none; /* Let it fill the space next to the 300px merch side */
  aspect-ratio: 16 / 9;
}

/* Merch Header with Dark Blue Underline */
.merch-header {
  color: #17314a; /* Dark Blue */
  font-size: 1.8rem;
  margin-top: 0;
  display: inline-block;
  border-bottom: 3px solid #17314a; /* Matching Underline */
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.merch-mini-link {
  display: block;
  font-size: 0.9rem;
  color: #17314a;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 10px;
}
.merch-mini-link:hover { text-decoration: underline; }


/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1000px) {
  .home-top-layout { 
    flex-direction: column; 
  }
  .home-video-side, .home-merch-side {
    width: 100%;
    flex: none;
  }
}
/* Hover effect for the clickable header */
.merch-header[onclick]:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.previous-carousel-window {
  overflow: hidden;
  width: 100%;
}

.previous-carousel-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar for clean look */
}

.previous-carousel-track::-webkit-scrollbar { display: none; }

.previous-carousel-track img {
  /* This forces exactly 5 images per row (100% / 5 = 20%) */
  flex: 0 0 calc(20% - 15px) !important; 
  width: calc(20% - 15px) !important;
  
  /* SQUARE FIX */
  aspect-ratio: 1 / 1 !important;
  object-fit: cover;
  
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

/* Ensure the track stays in a straight line */
.previous-carousel-track {
  display: flex !important;
  flex-direction: row !important;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.carousel-controls-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide-arrow {
  background: var(--wood);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  color: white;
}
/* 1. Youtube Video Container */
.home-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 2. Merch Section Labels */
.merch-header {
  color: #17314a;
  font-size: 1.8rem;
  margin-top: 0;
  display: inline-block;
  border-bottom: 3px solid #17314a;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

/* 3. The Layout Fix (Locks the sidebar width) */
/* 1. This forces the Video and Merch sidebar to be the exact same height */
.home-top-layout {
  display: flex !important;
  flex-direction: row !important;
  gap: 30px !important;
  align-items: stretch !important; /* This makes the sidebar match the video height */
  margin-bottom: 40px;
}

/* 2. The Merch Sidebar */
.home-merch-side { 
  flex: 0 0 300px !important; /* Made it a bit larger/wider as requested */
  background: white !important; 
  padding: 20px !important; 
  border-radius: 12px !important; 
  border: 2px solid var(--wood) !important;
  box-sizing: border-box !important;

  /* This allows the content inside (the boxes) to stretch vertically */
  display: flex !important;
  flex-direction: column !important;
justify-content: flex-start !important;
}

/* 3. The Merch Boxes and Carousels */
.merch-box {
  flex: none; /* This makes the two merch boxes split the height equally */
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}


/* 5. The Lightbox (Enlarged image arrows) */
.lightbox-arrow {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 15% !important; 
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.0) !important; /* Change to 0.1 if you want to see the click area */
  font-size: 5rem !important;
  color: white !important;
  z-index: 10001 !important;
  cursor: pointer;
}
.lightbox-arrow.left { left: 0 !important; }
.lightbox-arrow.right { right: 0 !important; }

.merch-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.merch-box:hover {
  transform: translateY(-5px);
  /* Slight lift effect */
}


/* --- SOCIAL FOOTER ROW --- */
.social-footer-row {
  position: fixed;
  bottom: 15px;
  left: 10px;
  
  /* This width fits exactly inside your sidebar */
  width: 240px; 
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* FORCES 7 icons in 1 row */
  gap: 8px; /* Tightened gap to make them fit */
  
  background: var(--cream-dark);
  padding: 10px 5px; /* Thinner padding */
  border-radius: 10px;
  border: 2px solid var(--wood);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
  z-index: 2000;
}

.social-footer-row a {
  color: var(--ink);
  font-size: 1.1rem; /* Slightly smaller icons to ensure they fit the row */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s, color 0.2s;
}

.social-footer-row a:hover {
  color: var(--wood);
  transform: translateY(-3px);
}

/* Ensure they hide on mobile so they don't cover content */
@media (max-width: 1000px) {
  .social-footer-row {
    position: relative;
    bottom: 0;
    left: 0;
    justify-content: center;
    margin-top: 20px;
    background: none;
    border: none;
    box-shadow: none;
  }
}

/* --- PREVIOUS WORK CAROUSEL FIX --- */
#previousWorks .carousel-track {
  display: flex !important;
  gap: 15px;
  overflow-x: hidden; /* We use the arrows to scroll */
  padding: 10px 0;
  scroll-behavior: smooth;
}

#previousWorks .carousel-track img {
  width: 250px !important;  /* Standard size */
  height: 250px !important;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--wood);
  cursor: pointer;
  flex-shrink: 0;
  display: block !important; /* Forces visibility for home page */
  opacity: 1 !important;
}

/* Position the arrows correctly over the track */
#previousWorks .carousel-wrapper {
  position: relative;
  width: 100%;
}

#previousWorks .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  font-size: 1.2rem;
}
#previousWorks .carousel-btn.left { left: 5px; }
#previousWorks .carousel-btn.right { right: 5px; }

/* Merch Page Gallery Layout */
#merch-view .carousel-track {
  display: flex !important;
  gap: 15px;
  overflow-x: hidden; /* Arrows will handle scrolling */
  padding: 10px 0;
  scroll-behavior: smooth;
}

#merch-view .carousel-track img {
  width: 200px !important;  /* Force images to stay small */
  height: 200px !important;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--wood);
  flex-shrink: 0;
  display: block !important;
  opacity: 1 !important; /* Ensure they aren't hidden like the sidebar */
}

#merch-view .carousel-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

/* --- UNIFIED CAROUSEL ARROWS --- */
/* UNIFIED BLUE ARROWS FOR ALL CAROUSELS */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* This is the specific ink/blue shade you liked */
  background: rgba(23, 49, 74, 0.9) !important; 
  color: #f2e8d5 !important; /* Cream text/arrow */
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%; /* Perfect circles */
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #17314a !important; /* Solid blue on hover */
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.left { left: -20px; }
.carousel-btn.right { right: -20px; }


/* Ensure the wrapper allows arrows to sit on the edges */
.carousel-wrapper {
  position: relative;
  margin: 20px 25px; 
}

/* Merch Page Specifics */
.merch-logo-img {
  width: 180px;
  transition: transform 0.3s;
  display: block;
  margin: 0 auto 20px auto;
}
.merch-logo-link:hover .merch-logo-img {
  transform: scale(1.05);
}

#merch-view .carousel-track img {
  width: 220px !important;
  height: 220px !important;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--wood);
  flex-shrink: 0;
}

.carousel-track img {
  background: #e5dcc3; /* A placeholder color similar to your cream */
  content-visibility: auto; /* Browser optimization for off-screen images */
}

.carousel-track img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Optional: Style for the headers generated in Previous Works */
.previous-work-label {
  margin-top: 20px;
  font-size: 1.4rem;
  color: var(--ink);
}
/* Stop merch from stretching to video height */
.home-top-layout {
  align-items: flex-start !important;
}

/* Let merch boxes size naturally */
.merch-box {
  flex: none !important;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
}
/* Video Selector Container */
.video-selector {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px; /* Positions it close beneath the player */
  width: 100%;
}

/* Individual Selector Box */
.video-thumb {
  flex: 1;
  aspect-ratio: 16 / 9; /* Matches the rectangular shape of the player */
  background-color: var(--wood); /* Using your beige/wood color */
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: none;
}

.video-thumb:hover {
  transform: scale(1.05); /* Grows slightly on hover */
  background-color: var(--ink); /* Feedback change to your dark blue */
}

/* Editable Address Field Styling */
.account-input[readonly] {
  border-bottom: 1px solid rgba(23, 49, 74, 0.1); /* Subtle line when locked */
  background: none;
}

.account-input:not([readonly]) {
  border-bottom: 1px solid #007bff; /* Highlighted when editing */
  background: rgba(255, 255, 255, 0.05);
}

/* --- FORCE 4 COLUMNS OVERRIDE --- */

/* 1. Default to 4 columns for Desktop */
.product-grid, 
#catalog {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}

/* 2. Tablet Size (below 1100px): Drop to 2 columns */
@media (max-width: 1100px) {
  .product-grid, 
  #catalog {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 3. Mobile Size (below 600px): Drop to 1 column */
@media (max-width: 600px) {
  .product-grid, 
  #catalog {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Account page should match policy / returns layout ===== */

#account-view {
  width: 100%;
  padding: 0;
  margin: 0;
}

#account-view .description-box {
  max-width: none;
  width: 100%;
}
/* ===== Merch page description box theme fix ===== */

#merch-view .description-box {
  background: var(--cream) !important;
  border-left: 5px solid var(--wood);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ===== Force account page to match policy / returns layout ===== */

.main-content #account-view {
  max-width: none;
  width: 100%;
}

.main-content #account-view .description-box {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
/* ============================================================
   DESKTOP DEFAULT (Keep this exactly as it was)
   ============================================================ */

/* Ensure the button is NEVER seen on desktop */
.mobile-menu-toggle {
  display: none; 
}

/* Ensure the sidebar is ALWAYS visible on desktop */
.sidebar {
  display: flex !important;
  transform: translateX(0) !important;
  position: fixed;
  left: 0;
  top: 0;
}

/* Ensure content is ALWAYS pushed to the right on desktop */
.main-content {
  margin-left: 260px !important;
  width: calc(100% - 260px) !important;
}

/* ============================================================
   MOBILE ONLY (Only triggers if screen is smaller than 900px)
   ============================================================ */
@media screen and (max-width: 900px) {
  
  /* 1. Show the menu button */
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 3000;
    background: var(--wood);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--ink);
    cursor: pointer;
  }

  /* 2. Move sidebar off-screen by default on mobile */
  .sidebar {
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease;
    z-index: 2500;
  }

  /* 3. Bring sidebar back when 'active' class is added via JS */
  .sidebar.active {
    transform: translateX(0) !important;
  }

  /* 4. Make content full-width on mobile */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 70px; /* Space for the menu button */
  }
}