/* =============================================
   STAMP STORE — Design System & Styles
   Where cultures & streetwear meet.
   ============================================= */

/* --- Custom Properties --- */
:root {
  --bg-orange: #E65C00;
  --bg-orange-dark: #CC5200;
  --bg-orange-light: #FF6B0A;
  --accent-red: #8B0000;
  --accent-red-light: #A50000;
  --black: #000000;
  --white: #FFFFFF;
  --green: #2D5016;
  --green-light: #3A6B1E;
  --gray-dark: #1a1a1a;
  --gray-mid: #333333;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.35);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background-color: var(--bg-orange);
  background-image:
    radial-gradient(ellipse at 15% 70%, rgba(204, 82, 0, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 30%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 8%, rgba(255, 150, 50, 0.25) 0%, transparent 40%);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
}

/* Noise / Grunge texture overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.045;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 512px 512px;
  will-change: auto;
}

/* Remove noise overlay on mobile for GPU perf */
@media (max-width: 768px) {
  body::after {
    display: none;
  }
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-orange); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-orange-light); }

/* --- Layout --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 38px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn-accent {
  background: var(--accent-red);
  color: var(--white);
  border-color: var(--accent-red);
}
.btn-accent:hover {
  background: var(--white);
  color: var(--accent-red);
}


/* =============================================
   1. ANNOUNCEMENT BAR
   ============================================= */
.announcement-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 11px 24px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  z-index: 1001;
  position: relative;
}


/* =============================================
   2. HEADER / NAVIGATION
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  background: transparent;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Nav left */
.nav-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-left a,
.nav-right .nav-text-link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 4px 0;
  transition: opacity var(--transition-fast);
}

.nav-left a::after,
.nav-right .nav-text-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav-left a:hover::after,
.nav-right .nav-text-link:hover::after {
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  justify-self: center;
}

.logo-icon {
  width: 38px;
  height: 38px;
  color: var(--white);
  transition: transform 0.4s ease;
}
.logo:hover .logo-icon {
  transform: rotate(30deg);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.22em;
  line-height: 1;
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-self: end;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: opacity var(--transition-fast);
}
.nav-icon:hover {
  opacity: 0.7;
}
.nav-icon svg {
  width: 20px;
  height: 20px;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  width: 28px;
  height: 22px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1002;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all 0.35s ease;
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}


/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.97);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--white);
  letter-spacing: 0.12em;
  transition: color 0.3s ease, transform 0.3s ease;
}
.mobile-menu a:hover {
  color: var(--bg-orange);
  transform: translateX(8px);
}

.mobile-menu .mobile-accent {
  font-family: serif;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.3em;
  margin-top: 20px;
}


/* =============================================
   3. HERO SECTION
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -76px; /* pull up behind sticky header */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.7) 80%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 900px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 2px 4px 30px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 44px;
  letter-spacing: 0.06em;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

.hero-accent-text {
  position: absolute;
  bottom: 40px;
  right: 48px;
  font-size: 1.6rem;
  opacity: 0.2;
  color: var(--white);
  letter-spacing: 0.25em;
  writing-mode: vertical-rl;
  z-index: 2;
}

.hero-scroll-hint {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s, float 2s ease-in-out infinite 1.4s;
}

.hero-scroll-hint span {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero-scroll-hint svg {
  width: 20px;
  height: 20px;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}


/* =============================================
   4. MARQUEE / MANIFESTO
   ============================================= */
.marquee-section {
  background: var(--accent-red);
  padding: 16px 0;
  overflow: hidden;
  transform: rotate(-1.5deg);
  margin: -12px 0 0;
  position: relative;
  z-index: 10;
  border-top: 2px solid rgba(255,255,255,0.1);
  border-bottom: 2px solid rgba(255,255,255,0.1);
  width: 100vw;
  max-width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--white);
  padding: 0 20px;
}

.marquee-content .dot {
  font-size: 0.6rem;
  padding: 0 8px;
  opacity: 0.5;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* =============================================
   5. FEATURED COLLECTION
   ============================================= */
.featured-section {
  padding: 100px 0 80px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-red);
  margin: 12px auto 0;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-tab {
  padding: 10px 28px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all var(--transition-base);
  font-weight: 500;
}

.filter-tab:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
}

.filter-tab.active {
  color: var(--white);
  background: var(--black);
  border-color: var(--white);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-image img {
  transform: scale(1.06);
}

/* Product Badges */
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  z-index: 3;
  text-transform: uppercase;
}

.badge-sold-out {
  background: var(--accent-red);
  color: var(--white);
}

.badge-low-stock {
  background: var(--bg-orange);
  color: var(--white);
}

.badge-new {
  background: var(--green);
  color: var(--white);
}

/* Product Info */
.product-info {
  padding: 20px 20px 16px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 500;
}

.product-price {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Add to Cart */
.btn-add-cart {
  width: 100%;
  padding: 14px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  transform: translateY(100%);
  opacity: 0;
}

.product-card:hover .btn-add-cart {
  transform: translateY(0);
  opacity: 1;
}

.btn-add-cart:hover {
  background: var(--bg-orange);
  color: var(--white);
}

/* Sold-out state */
.product-card.sold-out .product-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.product-card.sold-out .btn-add-cart {
  display: none;
}
.product-card.sold-out {
  cursor: default;
}
.product-card.sold-out:hover .product-image img {
  transform: scale(1);
}

/* CTA Card (View All) */
.product-card.cta-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--bg-orange-dark) 0%, var(--accent-red) 100%);
  border: 2px solid rgba(255, 255, 255, 0.12);
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.product-card.cta-card:hover {
  border-color: rgba(255,255,255,0.3);
}

.cta-card-content {
  text-align: center;
  padding: 40px 32px;
}

.cta-card-content h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.cta-card-content .btn {
  margin-top: 4px;
  font-size: 0.82rem;
}


/* =============================================
   6. CUSTOM PRINTING & FRAMES
   ============================================= */
.custom-section {
  padding: 0;
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.custom-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 60px 48px;
  min-height: 550px;
}

.custom-panel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.custom-panel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-panel:hover .custom-panel-bg img {
  transform: scale(1.05);
}

.custom-panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.4) 45%,
    rgba(0, 0, 0, 0.15) 100%
  );
  transition: background 0.4s ease;
}
.custom-panel:hover .custom-panel-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.custom-panel-content {
  position: relative;
  z-index: 2;
}

.custom-panel-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--bg-orange);
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 600;
}

.custom-panel-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  line-height: 1.05;
}

.custom-panel-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 380px;
  font-weight: 300;
}


/* =============================================
   7. INSTAGRAM SECTION
   ============================================= */
.instagram-section {
  background: var(--black);
  padding: 80px 0 0;
  text-align: center;
}

.instagram-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.instagram-handle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bg-orange);
  margin-bottom: 40px;
  display: inline-block;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: opacity var(--transition-fast);
}
.instagram-handle:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 40px;
}

.instagram-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.instagram-item:hover img {
  transform: scale(1.1);
}

.instagram-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(230, 92, 0, 0.75);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.instagram-item:hover::after {
  opacity: 1;
}

.instagram-item .ig-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  z-index: 2;
  opacity: 0;
  transition: all 0.35s ease;
}
.instagram-item:hover .ig-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


/* =============================================
   8. NEWSLETTER SECTION
   ============================================= */
.newsletter-section {
  padding: 110px 0;
  background: linear-gradient(180deg, var(--black) 0%, rgba(0,0,0,0.96) 40%, var(--gray-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative accent */
.newsletter-section::before {
  content: 'スタンプ';
  position: absolute;
  bottom: -30px;
  right: 5%;
  font-size: 10rem;
  opacity: 0.025;
  font-weight: 700;
  color: var(--white);
  pointer-events: none;
  letter-spacing: 0.1em;
}

.newsletter-content {
  position: relative;
  z-index: 2;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  line-height: 1;
}

.newsletter-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 44px;
  font-weight: 400;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 17px 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.newsletter-form input:focus {
  border-color: var(--bg-orange);
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
  padding: 17px 36px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}
.newsletter-form button:hover {
  background: var(--bg-orange);
  color: var(--white);
  border-color: var(--bg-orange);
}
.newsletter-form button:disabled {
  opacity: 0.8;
  cursor: default;
}


/* =============================================
   9. FOOTER
   ============================================= */
.footer {
  background: var(--black);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.22em;
  margin-bottom: 14px;
}

.footer-brand-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.75;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg-orange);
  margin-bottom: 22px;
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}
.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.03em;
}

.footer-accent {
  font-size: 1.1rem;
  opacity: 0.15;
  letter-spacing: 0.3em;
}


/* =============================================
   ANIMATIONS
   ============================================= */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Hero stagger */
.hero-content .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.3s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.5s; }

/* Product card reveal */
.product-card {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  will-change: opacity, transform;
}
.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
.product-card.visible:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Stagger for product cards */
.product-card:nth-child(1) { transition-delay: 0.0s; }
.product-card:nth-child(2) { transition-delay: 0.1s; }
.product-card:nth-child(3) { transition-delay: 0.2s; }
.product-card:nth-child(4) { transition-delay: 0.3s; }
.product-card:nth-child(5) { transition-delay: 0.4s; }
.product-card:nth-child(6) { transition-delay: 0.5s; }


/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .custom-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .custom-panel {
    min-height: 450px;
  }
}

@media (max-width: 768px) {
  .nav-left,
  .nav-right .nav-text-link {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
  }
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-right {
    gap: 16px;
  }
  .nav-icon:not(.cart-btn) {
    display: none;
  }

  .hero {
    min-height: 550px;
    margin-top: -60px;
  }
  .hero-accent-text {
    display: none;
  }

  .marquee-section {
    transform: rotate(-1deg);
  }

  .header.scrolled {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .featured-section {
    padding: 70px 0 60px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-form {
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
  }
  .newsletter-form input {
    border-right: 2px solid rgba(255,255,255,0.15);
  }
  .newsletter-form button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-brand-desc {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }
  .custom-panel {
    padding: 40px 28px;
    min-height: 380px;
  }
  .newsletter-section {
    padding: 80px 0;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh auto;
  }
  .modal-image {
    min-height: auto;
  }
}

/* =============================================
   MODAL & FORMS (BUYING EXPERIENCE)
   ============================================= */

/* Block scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-modal.open {
  pointer-events: all;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

@media (min-width: 769px) {
  .modal-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal.open .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-orange);
  color: var(--white);
  border-color: var(--bg-orange);
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.modal-image {
  background: #111;
  display: flex;
  flex-direction: column;
}

.modal-image img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  min-height: 0;
}

.modal-thumbnails {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: #111;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.store-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s;
  flex-shrink: 0;
}

.store-thumb.active,
.store-thumb:hover {
  opacity: 1;
  border-color: var(--bg-orange);
}

.modal-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.modal-category {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-price {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--bg-orange);
  margin-bottom: 32px;
}

/* Options (Color/Size) */
.modal-options {
  margin-bottom: 32px;
}

.option-group {
  margin-bottom: 24px;
}

.option-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.color-options,
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.color-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  cursor: pointer;
  color: var(--white);
  transition: all 0.2s ease;
  border-radius: 4px;
}

.color-swatch:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.color-swatch.active {
  border-color: var(--bg-orange);
  background: rgba(230, 92, 0, 0.1);
}

.swatch-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swatch-white {
  border-color: rgba(0, 0, 0, 0.2);
}

.swatch-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.size-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.size-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.size-btn.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Delivery Form */
.modal-delivery {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
}

.delivery-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.form-field input,
.form-field select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--bg-orange);
  background: rgba(0, 0, 0, 0.4);
}

.form-field select option {
  background: var(--black);
  color: var(--white);
}

.btn-order {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  font-size: 1.1rem;
}

/* Delivery Methods & Summary */
.delivery-methods {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.radio-label input[type="radio"] {
  accent-color: var(--bg-orange);
  width: 18px;
  height: 18px;
  margin: 0;
}

.order-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row.total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--bg-orange-light);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Success State */
.order-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 40px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
}

.order-success h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
}

.order-success p {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 300px;
}

.btn-continue {
  width: 100%;
}

/* =============================================
   STOREFRONT MODAL — MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .product-modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-container {
    max-height: 95vh;
    border-radius: 12px 12px 0 0;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: auto;
  }

  .modal-image {
    position: relative;
    height: 280px;
    min-height: auto;
  }

  .modal-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .modal-details {
    padding: 24px 20px 32px;
  }

  .modal-name {
    font-size: 1.5rem;
  }

  .modal-price {
    margin-bottom: 24px;
  }

  .modal-options {
    margin-bottom: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-delivery {
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  .modal-image {
    height: 220px;
  }

  .modal-details {
    padding: 20px 16px 28px;
  }

  .modal-name {
    font-size: 1.3rem;
  }
}
