/* Hooked Store Styles */

:root {
  --loader-display: grid; /* Default to visible */
  --off-white: #FFFFFF;
  --baby-pink: #FFFFFF;
  --pink-700: #000000;
  --black: #000000;
  --gray-600: #666666;
  --gray-300: #DDDDDD;
  --border-color: #000000; /* Sharp black borders for vintage look */
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--off-white);
  color: var(--black);
  overflow-x: hidden; /* Prevent scrollbar when hero expands to 100vw */
}

input, button, select, textarea {
  font-family: "Montserrat", sans-serif;
}

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--off-white);
  display: var(--loader-display);
  place-items: center;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  text-align: center;
}
.loader img {
  width: 120px;
  animation: pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
body.loading {
  overflow: hidden;
}
.loading-bar-container {
  width: 160px;
  height: 6px;
  background-color: var(--gray-300);
  border-radius: 3px;
  margin: 16px auto 0;
  overflow: hidden;
}
.loading-bar {
  width: 0;
  height: 100%;
  background-color: var(--pink-700);
  border-radius: 3px;
}

/* ===== PROMO BAR (Marquee) ===== */
.promo-bar {
  background: var(--black);
  color: #FFFFFF;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.promo-track {
  display: flex;
  gap: 60px;
  animation: scroll 25s linear infinite;
  white-space: nowrap;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.promo-close {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}

/* ===== UTILITY BAR ===== */
.utility-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 30px;
  font-size: 0.85rem;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.left-icons i, .utility-bar .right-links a, .utility-bar select { color: var(--gray-600); text-decoration: none; }
.left-icons i { margin-right: 12px; cursor: pointer; font-size: 1.1rem; }
.right-links { display: flex; gap: 16px; align-items: center; }
.right-links select { border: none; background: transparent; outline: none; cursor: pointer; }

/* ===== HEADER (Grid Layout) ===== */
.site-header {
  display: grid;
  grid-template-columns: 180px 1fr 1fr auto;
  align-items: center;
  padding: 16px 30px;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  text-decoration: none;
  color: var(--black);
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.main-nav { display: flex; gap: 24px; }
.nav-link { color: var(--black); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-link:hover { text-decoration: underline; }

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #eee;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--off-white);
}
.search-box input { border: none; outline: none; width: 100%; background: transparent; font-family: "Montserrat", sans-serif; }
.search-box i { color: var(--gray-600); }

.header-icons { display: flex; align-items: center; gap: 16px; font-size: 1.2rem; }
.header-icons i { cursor: pointer; }
.cart-wrap { position: relative; cursor: pointer; }
.cart-count { 
  position: absolute; 
  top: -8px; 
  right: -8px; 
  background: var(--black); 
  color: white; 
  border-radius: 50%; 
  width: 18px; 
  height: 18px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 10px; 
}

/* Hero */
.hero { background: var(--off-white); padding: 48px 0; border-bottom: 1px solid var(--border-color); }
.hero-inner { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 24px; 
  align-items: center; 
  transition: all 2s cubic-bezier(0.19, 1, 0.22, 1); /* Ultra-smooth exponential ease */
}
.hero-copy h1 { font-family: "Montserrat", sans-serif; font-size: 3.5rem; margin: 0 0 16px; line-height: 1.1; transition: all 1.5s ease; }
.hero-copy p { color: var(--gray-600); margin: 0 0 24px; font-family: "Montserrat", sans-serif; font-size: 0.95rem; transition: all 1.5s ease; }
.hero-actions { display: flex; gap: 12px; transition: all 1.5s ease; }

/* Buttons */
.btn { 
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid var(--black); 
  cursor: pointer; 
  background: white;
  transition: .2s;
  text-decoration: none; 
  font-size: 0.9rem;
  display: inline-block;
}
.btn:hover { background: var(--black); color: white; }
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { opacity: 0.8; }

.hero-art { 
  height: 280px; 
  position: relative; 
  transition: all 2s cubic-bezier(0.19, 1, 0.22, 1); 
  cursor: pointer; /* Indicate clickable */
  z-index: 10;
  overflow: hidden; /* Hide the second image initially */
  margin-top: 30px;
}
.hero-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.hero-art img {
  width: 50%; /* Each image takes half the track (100% of container) */
  height: 100%;
  object-fit: cover;
  border-radius: 4px; /* Slight radius */
  border: 1px solid var(--black);
  box-shadow: 4px 4px 0px rgba(0,0,0,1); /* Retro hard shadow */
  animation: float 2.5s ease-in-out infinite;
  transition: all 2s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: width, height, transform, border-radius;
}
.hero-art img.glow { box-shadow: 4px 4px 0px var(--pink-700); }

/* Expanded Hero State */
.hero.expanded .hero-inner {
  grid-template-columns: 1fr; /* Stack vertically */
  gap: 48px;
}
.hero.expanded .hero-copy {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero.expanded .hero-actions {
  justify-content: center;
}
.hero.expanded .hero-art {
  width: 100vw; /* Full viewport width */
  margin-left: calc(50% - 50vw); /* Center relative to container */
  height: 100vh; /* Maximize height to allow full width expansion */
  transform: translateZ(0); /* Force hardware acceleration */
  background: var(--off-white); /* Seamless background for 'contain' fit */
}
.hero.expanded .hero-track {
  transform: translateX(-50%); /* Slide to show second image */
  transition-delay: 1.8s; /* Wait for expansion to finish */
}
.hero.expanded .hero-art img {
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  box-shadow: none;
  animation: none; /* Stop float */
  object-fit: contain; /* Ensure full image is visible without cropping */
}

.section-title { font-family: "Montserrat", sans-serif; font-size: 2rem; margin: 48px 0 24px; text-align: center; font-weight: 600; }

/* Categories */
.best-sellers { padding: 24px 0; }
.center-row { display: flex; justify-content: center; margin-top: 18px; }

/* Shop */
.shop { padding: 24px 0 48px; }
.shop-controls { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.control-group { display: inline-flex; align-items: center; gap: 8px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Product Card (Tusvintage Style) */
.product-card img { width: 100%; border-radius: 8px; aspect-ratio: 1/1; object-fit: cover; background: var(--off-white); }
.product-card h3 { margin-top: 12px; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.price { margin: 4px 0 12px; font-weight: 600; color: var(--gray-600); }
.add-btn { width: 100%; padding: 8px; border-radius: 6px; border: 1px solid #111; background: white; cursor: pointer; transition: 0.2s; }
.add-btn:hover { background: #111; color: white; }

/* Hide search/nav on mobile */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* About & Contact */
.about, .contact { padding: 24px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 12px; max-width: 560px; }
.form-row { display: grid; gap: 6px; }
.form-row input, .form-row textarea, .form-row select { height: 40px; border: 1px solid var(--black); border-radius: 0; padding: 8px 12px; background: #fff; font-family: "Montserrat", sans-serif; }
.form-row textarea { height: auto; }
.contact-info {
  max-width: 560px;
  margin-bottom: 24px;
}
.contact-info a { color: var(--black); }
.contact-info a:hover { color: var(--pink-700); }
.form-status { margin-top: 8px; color: var(--gray-600); }

/* Cart Drawer */
.cart-drawer { position: fixed; top: 0; right: -420px; width: 360px; max-width: 80vw; height: 100vh; background: #fff; border-left: 1px solid var(--black); box-shadow: -10px 0 30px rgba(0,0,0,0.08); transition: right 0.28s ease; z-index: 60; display: grid; grid-template-rows: auto 1fr auto; }
.cart-drawer.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--black); }
.icon-button { background: transparent; border: 1px solid var(--black); border-radius: 0; height: 32px; width: 32px; cursor: pointer; }
.cart-items { overflow-y: auto; padding: 12px; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--gray-300); padding-bottom: 10px; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 0; border: 1px solid var(--black); }
.quantity { display: inline-flex; align-items: center; gap: 6px; }
.qty-btn { height: 28px; width: 28px; border: 1px solid var(--black); background: var(--off-white); border-radius: 0; cursor: pointer; }
.remove-btn { background: transparent; border: none; color: #c00; cursor: pointer; }
.cart-footer { border-top: 1px solid var(--gray-300); padding: 12px; }
.totals { display: grid; gap: 6px; margin-bottom: 12px; }
.total-row { display: flex; justify-content: space-between; }
.total-row.grand { font-weight: 700; }

/* Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 70; }
.modal.open { display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.modal-dialog { position: relative; z-index: 71; background: #fff; width: 560px; max-width: 92vw; border-radius: 0; border: 1px solid var(--black); box-shadow: 8px 8px 0 rgba(0,0,0,0.2); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--black); }
.modal-body { padding: 16px; display: grid; gap: 12px; }

/* ===== AESTHETIC SPACERS & GALLERIES ===== */
.moodboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: 80px 0;
  border-bottom: 1px solid var(--black);
  align-items: start;
}
.moodboard img {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--black);
  border-radius: 0;
  transition: transform 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
}
.moodboard img:hover { transform: scale(1.02); }

/* Randomize slots for visual interest */
.moodboard img:nth-child(1) {
  grid-column: 1 / span 5;
  height: 550px;
}
.moodboard img:nth-child(2) {
  grid-column: 6 / span 4;
  height: 400px;
  margin-top: 120px; /* Offset to look random */
  transition-delay: 100ms;
}
.moodboard img:nth-child(3) {
  grid-column: 10 / span 3;
  height: 480px;
  margin-top: 40px;
  transition-delay: 200ms;
}

.visual-break {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  margin: 48px 0;
  display: block;
}

.gallery-marquee { overflow: hidden; white-space: nowrap; padding: 32px 0; background: var(--off-white); border-top: 1px solid var(--black); }
.gallery-track { display: inline-flex; gap: 16px; animation: scroll 40s linear infinite; }
.gallery-track img { height: 300px; width: auto; border: 1px solid var(--black); border-radius: 4px; }

/* Responsive adjustments for spacers */

/* Footer */
.site-footer { border-top: 1px solid var(--black); background: var(--off-white); color: var(--black); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; padding: 24px 20px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--black); text-decoration: none; font-family: "Montserrat", sans-serif; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { color: var(--gray-600); }

/* Responsive */
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto auto; padding: 16px 20px; }
  .search-box { display: none; }
  .nav-toggle { display: block; z-index: 60; position: relative; }
  .logo { z-index: 60; position: relative; }

  .main-nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--off-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 40;
  }
  .site-header.nav-open .main-nav { transform: translateX(0); }
  .nav-link { font-size: 2rem; }

  .utility-bar { display: none; } /* Hide utility bar on mobile to save space */
  
  .hero-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  
  /* Stack moodboard on mobile */
  .moodboard { display: flex; flex-direction: column; gap: 40px; padding: 40px 0; }
  .moodboard img { width: 100%; height: auto; aspect-ratio: 3/4; margin: 0 !important; }
}
@media (max-width: 540px) {
  .product-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Scroll animations */
[data-animate] { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.in-view { opacity: 1; transform: translateY(0); }

/* Text typing effect */
.typing-cursor {
  display: inline-block;
  margin-left: 0.2rem;
  animation: blink 0.7s infinite;
}

@keyframes float {
  0% { transform: translatey(0px); }
  50% { transform: translatey(-10px); }
  100% { transform: translatey(0px); }
}

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