*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0f0f0f;
  --white: #f8f6f2;
  --sand: #e8e2d9;
  --muted: #888;
  --accent: #c9a97a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: transparent;
  border-bottom: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}

nav.nav--scrolled {
  background: var(--black);
  border-bottom: 1px solid #1a1a1a;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-card {
  width: 70px;
  height: 70px;
  perspective: 400px;
}

.logo-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: logo-spin 6s linear infinite;
}

.logo-card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.logo-card-face img {
  width: 58px;
  height: 58px;
  display: block;
}

.logo-card-front { transform: rotateY(0deg); }
.logo-card-back  { transform: rotateY(180deg); }

@keyframes logo-spin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--white);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

#hero {
  min-height: 100vh;
  background: url('../images/hero-fire.jpg') calc(50% - 3px) center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

#hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(to bottom, transparent, #0f0f0f);
  pointer-events: none;
  z-index: 3;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 35% 65% at 50% 48%,
    rgba(220, 90, 20, 0.88) 0%,
    rgba(180, 50, 10, 0.48) 50%,
    transparent 80%
  );
  mix-blend-mode: screen;
  animation: glow-pulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 12% 40% at 50% 42%,
    rgba(255, 200, 80, 0.75) 0%,
    rgba(255, 130, 30, 0.4) 55%,
    transparent 78%
  );
  mix-blend-mode: screen;
  animation: fire-flicker 3s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.8rem);
  letter-spacing: 0.15em;
  background-size: 200% 200%;
  background-position: 20% 60%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: brightness(1.9) sepia(0.35) saturate(2.4) contrast(1.1);
  z-index: 2;
  pointer-events: none;
}

.hero-label--left {
  left: 3rem;
  background-image:
    linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.38)),
    url('../images/hero-fire.jpg');
}

.hero-label--right {
  right: 3rem;
  text-align: right;
  background-image:
    linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.38)),
    url('../images/hero-fire.jpg');
  background-position: 80% 60%;
}

@keyframes glow-pulse {
  0%   { opacity: 0.6;  transform: scale(1); }
  100% { opacity: 1;    transform: scale(1.05) translateY(-5px); }
}

@keyframes fire-flicker {
  0%   { opacity: 0.4;  transform: scaleY(1) translateY(0); }
  100% { opacity: 0.85; transform: scaleY(1.05) translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  #hero::before, #hero::after { animation: none; }
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s, color 0.2s;
}

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

.hero-image {
  background: var(--sand);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-image-single {
  background: transparent;
  aspect-ratio: 3/4;
  overflow: hidden;
  width: clamp(340px, 48vw, 760px);
  justify-self: center;
  align-self: start;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
}

.hero-image-single img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0f0f0f;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: transparent;
  overflow: hidden;
  align-items: stretch;
  justify-items: stretch;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: auto;
  display: block;
  background: #0f0f0f;
}

.image-grid-hero,
.image-grid-about {
  aspect-ratio: 1/1;
}

.image-grid-hero img,
.image-grid-about img {
  min-height: 100%;
}

.image-grid-about {
  aspect-ratio: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: start;
}

.image-grid-about img {
  min-height: 0;
  height: auto;
  object-fit: contain;
  background: transparent;
}

#meista {
  padding: 8rem 4rem;
  background: var(--black);
  color: var(--white);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  background: transparent;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-text .label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.about-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.about-text p { color: #aaa; font-weight: 300; margin-bottom: 1rem; max-width: 420px; }

.about-text {
  text-align: center;
}

#yhteystiedot { padding: 8rem 4rem; background: var(--black); }

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-text .label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.contact-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item .item-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-item a, .contact-item p {
  font-size: 1rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 300;
}

.contact-item a:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #333;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--white); }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }

.contact-form textarea { resize: none; height: 100px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-status {
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

footer {
  border-top: 1px solid #1a1a1a;
  background: #0a0a0a;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 4rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1a1a1a;
}

.footer-heading {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.footer-address p,
.footer-address a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 300;
  text-decoration: none;
  line-height: 1.5;
}

.footer-address a:hover { color: var(--white); }

.footer-vat {
  font-size: 0.75rem;
  color: #555;
  line-height: 1.6;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--white); }

.footer-dispute {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-dispute-text {
  font-size: 0.78rem;
  font-weight: 300;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-dispute-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-dispute-links a {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-dispute-links a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 1.75rem;
  font-size: 0.72rem;
  color: #444;
  text-align: center;
}

@media (max-width: 768px) {
  nav { padding: 1.25rem 1.5rem; }
  nav.nav--open { background: var(--black); }
  .nav-hamburger { display: flex; position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-links { display: none; }
  nav.nav--open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  nav.nav--open .nav-hamburger span:nth-child(2) { opacity: 0; }
  nav.nav--open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  nav.nav--open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--black);
    border-bottom: 1px solid #1a1a1a;
    padding: 1.5rem;
    gap: 1.5rem;
    align-items: center;
  }
  #hero, #meista, #yhteystiedot { padding: 6rem 1.5rem 4rem; }
  #shop { padding: 6rem 0.75rem 4rem; }
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { padding: 2.5rem 1.5rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  #shop-collection .shopify-buy__collection { grid-template-columns: repeat(2, 1fr) !important; }
}

/* === CHAIN === */

.chain {
  width: 100%;
  height: 110px;
  overflow: hidden;
  background: var(--black);
}

.chain--hero-gap { margin-top: 6rem; }

.chain__track {
  width: 100%;
  height: 100%;
  background-image: url("../images/chain-tile.png");
  background-repeat: repeat-x;
  background-size: 136px 101px;
  mix-blend-mode: lighten;
}

.chain__track--ltr { animation: chainSlideRight 20s linear infinite; }
.chain__track--rtl { animation: chainSlideLeft  20s linear infinite; }

@keyframes chainSlideRight {
  from { background-position: -136px center; }
  to   { background-position: 0 center; }
}

@keyframes chainSlideLeft {
  from { background-position: 0 center; }
  to   { background-position: -136px center; }
}

@media (prefers-reduced-motion: reduce) {
  .chain__track { animation: none; }
}

/* === SHOP === */

#shop {
  padding: 5rem 4rem 8rem;
  background: var(--black);
}

.shop-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.shop-inner > .label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.shop-inner > h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 3rem;
}

.shop-show-all {
  display: block;
  width: fit-content;
  margin: 3rem auto 0;
  padding: 0.75rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--white);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.shop-show-all:hover {
  background: var(--white);
  color: var(--black);
}

#shop-collection:empty::after {
  content: 'Loading products...';
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* Buy Button overrides – product cards render in DOM, not iframe */
#shop-collection .shopify-buy__collection {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
}

#shop-collection .shopify-buy__product {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid #1a1a1a !important;
  padding: 0 0 2rem !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

#shop-collection .shopify-buy__product-img-wrapper {
  aspect-ratio: 3/4 !important;
  overflow: hidden !important;
  background: #161616;
  height: auto !important;
}

#shop-collection .shopify-buy__product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

#shop-collection .shopify-buy__product:hover .shopify-buy__product-img-wrapper img {
  opacity: 0.8;
}

#shop-collection .shopify-buy__product__title {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 300 !important;
  color: var(--white) !important;
  margin-top: 1rem !important;
}

#shop-collection .shopify-buy__product__actual-price,
#shop-collection .shopify-buy__price {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: var(--white) !important;
  margin-top: 0.25rem !important;
}

#shop-collection .shopify-buy__btn-wrapper {
  margin-top: 1rem !important;
}

#shop-collection .shopify-buy__btn {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  background: transparent !important;
  border: 1px solid var(--white) !important;
  color: var(--white) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.85rem 2rem !important;
  transition: background 0.2s, color 0.2s !important;
  cursor: pointer;
}

#shop-collection .shopify-buy__btn:hover {
  background: var(--white) !important;
  color: var(--black) !important;
}

@media (min-width: 769px) and (max-width: 1024px) {
  #shop-collection .shopify-buy__collection {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* === CATEGORIES === */

#categories {
  padding: 8rem 4rem;
  background: var(--black);
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  border-bottom: 1px solid #1a1a1a;
}

.cat-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s;
}

.cat-tab:hover { color: var(--white); }

.cat-tab.active {
  color: var(--white);
  border-bottom: 2px solid var(--white);
}

.cat-panel.hidden { display: none; }

/* === SIZE FILTER === */
.size-filter {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}
.size-filter--hidden { display: none; }
.size-filter__toggle {
  align-self: flex-start;
  padding: 0.4rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid #2e2e2e;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  margin-bottom: 0;
}
.size-filter__toggle:hover { border-color: #555; color: var(--white); }
.size-filter--open .size-filter__toggle { border-color: var(--accent); color: var(--accent); }
.size-filter__buttons {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.size-filter--open .size-filter__buttons { display: flex; }
.size-filter__btn {
  padding: 0.4rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid #2e2e2e;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.size-filter__btn:hover { border-color: #555; color: var(--white); }
.size-filter__btn.active { border-color: var(--accent); color: var(--accent); }
@media (max-width: 768px) {
  .size-filter { margin-bottom: 1.5rem; }
  .size-filter__toggle { font-size: 0.68rem; padding: 0.35rem 0.75rem; }
  .size-filter__buttons { gap: 0.4rem; }
  .size-filter__btn { font-size: 0.68rem; padding: 0.35rem 0.75rem; }
}

.cat-panel:empty::after {
  content: 'Loading products...';
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.cat-panel .shopify-buy__collection {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
}

.cat-panel .shopify-buy__product {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid #1a1a1a !important;
  padding: 0 0 2rem !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

.cat-panel .shopify-buy__product-img-wrapper {
  aspect-ratio: 3/4 !important;
  overflow: hidden !important;
  background: #161616;
  height: auto !important;
}

.cat-panel .shopify-buy__product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.cat-panel .shopify-buy__product:hover .shopify-buy__product-img-wrapper img {
  opacity: 0.8;
}

.cat-panel .shopify-buy__product__title {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 300 !important;
  color: var(--white) !important;
  margin-top: 1rem !important;
}

.cat-panel .shopify-buy__product__actual-price,
.cat-panel .shopify-buy__price {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: var(--white) !important;
  margin-top: 0.25rem !important;
}

.cat-panel .shopify-buy__btn-wrapper {
  margin-top: 1rem !important;
}

.cat-panel .shopify-buy__btn {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  background: transparent !important;
  border: 1px solid var(--white) !important;
  color: var(--white) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.85rem 2rem !important;
  transition: background 0.2s, color 0.2s !important;
  cursor: pointer;
}

.cat-panel .shopify-buy__btn:hover {
  background: var(--white) !important;
  color: var(--black) !important;
}

@media (max-width: 768px) {
  #categories { padding: 6rem 1.5rem 4rem; }
  .cat-tab { padding: 0.75rem 1rem; font-size: 0.7rem; }
  .cat-panel .shopify-buy__collection {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cat-panel .shopify-buy__collection {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* === PRODUCT MODAL === */

/* Cursor hint on product images */
.shopify-buy__product-img-wrapper { cursor: pointer !important; }

/* Overlay */
#sns-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#sns-modal.sns-modal--open { display: flex; }

/* Container */
.sns-modal__container {
  position: relative;
  background: #111;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Close button */
.sns-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #f8f6f2;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s;
  padding: 0.2rem 0.4rem;
  z-index: 2;
}
.sns-modal__close:hover { opacity: 1; }

/* Spinner */
.sns-modal__spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
}
.sns-modal__spinner-ring {
  width: 2rem;
  height: 2rem;
  border: 2px solid #2a2a2a;
  border-top-color: #c9a97a;
  border-radius: 50%;
  animation: sns-spin 0.8s linear infinite;
}
@keyframes sns-spin { to { transform: rotate(360deg); } }

/* Body: two columns */
.sns-modal__body {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  flex: 1;
}

/* Gallery (left) */
.sns-modal__gallery {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  overflow: hidden;
}
.sns-modal__main-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}
.sns-modal__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sns-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #f8f6f2;
  font-size: 1.4rem;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.sns-modal__nav:hover { background: rgba(0, 0, 0, 0.8); }
.sns-modal__nav--prev { left: 0.5rem; }
.sns-modal__nav--next { right: 0.5rem; }

.sns-modal__thumbs {
  display: flex;
  gap: 0.3rem;
  padding: 0.4rem;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.sns-modal__thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0.45;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}
.sns-modal__thumb:hover { opacity: 0.75; }
.sns-modal__thumb.sns-modal__thumb--active {
  opacity: 1;
  border-color: #c9a97a;
}

/* Info (right) */
.sns-modal__info {
  flex: 1;
  padding: 3rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}
.sns-modal__title {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  color: #f8f6f2;
  letter-spacing: 0.03em;
  margin: 0;
}
.sns-modal__price {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #c9a97a;
  letter-spacing: 0.06em;
  margin: 0;
}

.sns-modal__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: #888888;
  line-height: 1.6;
  margin-top: 1rem;
}
.sns-modal__desc p { margin: 0 0 0.5em; }

/* Variants */
.sns-modal__variants { display: flex; flex-direction: column; gap: 0.6rem; }
.sns-modal__variant-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666;
  margin: 0;
}
.sns-modal__variant-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sns-modal__variant-btn {
  padding: 0.45rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  background: transparent;
  border: 1px solid #2e2e2e;
  color: #f8f6f2;
  cursor: pointer;
  transition: border-color 0.15s;
}
.sns-modal__variant-btn:hover:not(.sns-modal__variant-btn--sold) { border-color: #666; }
.sns-modal__variant-btn.sns-modal__variant-btn--active {
  border-color: #c9a97a;
  color: #c9a97a;
}
.sns-modal__variant-btn.sns-modal__variant-btn--sold {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Add to Cart */
.sns-modal__atc {
  margin-top: auto;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid #f8f6f2;
  color: #f8f6f2;
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.sns-modal__atc:hover:not(:disabled) {
  background: #f8f6f2;
  color: #0f0f0f;
}
.sns-modal__atc:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: #444;
}

/* Mobile */
@media (max-width: 700px) {
  #sns-modal { padding: 0; }
  .sns-modal__body { flex-direction: column; }
  .sns-modal__gallery { flex: none; max-height: 75vw; }
  .sns-modal__main-wrap { height: 75vw; }
  .sns-modal__info { padding: 1.5rem 1.25rem; gap: 1rem; }
  .sns-modal__container { max-height: 100dvh; }
}

/* === CUSTOM PRODUCT GRID === */

.sns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.sns-product {
  cursor: pointer;
  border-bottom: 1px solid #1a1a1a;
  padding: 0 0 2rem;
}

.sns-product__img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #161616;
}

.sns-product__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.sns-product:hover .sns-product__img-wrap img { opacity: 0.8; }

.sns-product__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: #f8f6f2;
  margin: 1rem 0 0;
  letter-spacing: 0.04em;
}

.sns-product__price {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #f8f6f2;
  margin: 0.3rem 0 0;
}

@media (max-width: 1024px) {
  .sns-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sns-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .sns-product { padding: 0 0 1rem; }
}

.sns-product--hidden { display: none; }

/* === CUSTOM CART TOGGLE + DRAWER === */

#sns-toggle {
  position: relative;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid #f8f6f2;
  color: #f8f6f2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#sns-toggle:hover { background: #f8f6f2; color: #0f0f0f; }

#sns-toggle-count {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: #c9a97a;
  color: #0f0f0f;
  font-size: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}
#sns-toggle-count.visible { display: flex; }

#sns-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 8400;
}
#sns-drawer-overlay.open { display: block; }

#sns-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 100vw;
  height: 100dvh;
  background: #0f0f0f;
  z-index: 8500;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
#sns-drawer.open { right: 0; }

.sns-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}
.sns-drawer__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f8f6f2;
  margin: 0;
}
.sns-drawer__close {
  background: transparent;
  border: none;
  color: #f8f6f2;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.55;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  transition: opacity 0.2s;
}
.sns-drawer__close:hover { opacity: 1; }

#sns-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem;
}
.sns-drawer__empty {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #888;
  margin-top: 2rem;
  text-align: center;
}
.sns-drawer__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #1a1a1a;
}
.sns-drawer__item-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: #f8f6f2;
  margin: 0 0 0.25rem;
}
.sns-drawer__item-qty {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #666;
  margin: 0;
}
.sns-drawer__item-price {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #c9a97a;
  margin: 0;
  white-space: nowrap;
  margin-left: 1rem;
  flex-shrink: 0;
}

.sns-drawer__footer {
  padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid #1a1a1a;
  flex-shrink: 0;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}
.sns-drawer__footer.visible { display: flex; }

.sns-drawer__total-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}
#sns-drawer__total { color: #c9a97a; }

.sns-drawer__notice {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #555;
  margin: 0;
  text-align: center;
}

#sns-drawer__checkout {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid #f8f6f2;
  color: #f8f6f2;
  padding: 0.9rem;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#sns-drawer__checkout:hover { background: #f8f6f2; color: #0f0f0f; }

.sns-drawer__item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #1a1a1a;
}

.sns-drawer__item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sns-drawer__remove {
  background: transparent;
  border: none;
  color: #666;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}
.sns-drawer__remove:hover { opacity: 1; color: #f8f6f2; }

.sns-drawer__item-qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.sns-drawer__qty-btn {
  background: transparent;
  border: 1px solid #333;
  color: #c9a97a;
  width: 1.4rem;
  height: 1.4rem;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.sns-drawer__qty-btn:hover { background: #1a1a1a; border-color: #c9a97a; }

.sns-drawer__qty-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #f8f6f2;
  min-width: 1rem;
  text-align: center;
}
