/* ================================
   GLOBAL RESET + BACKGROUND
=================================== */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #000000;
  background-image: url('images/pattern-d2.png');
  background-repeat: repeat;
  background-size: 450px;
  background-attachment: fixed;
  color: #ffffff;
}

/* =================================
   HEADER + NAV
==================================== */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 0 20px;
  overflow: visible;
  background: #000;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* LOGO */
.logo {
  height: 100%;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 220px;
  width: auto;
  display: block;
}
.logo:hover { opacity: 0.9; }

/* MAIN NAV + DROPDOWN */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  position: relative;
}
.nav-link:hover { opacity: 0.8; }

.nav-item { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #000000;
  border: 1px solid #222;
  padding: 8px 0;
  display: none;
  z-index: 2000;
}
.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.dropdown-menu a:hover { background: #111111; }
.nav-item.dropdown:hover .dropdown-menu { display: block; }

/* ================================
   SHOPIFY CART TOGGLE (in header)
=================================== */

.shopify-cart-toggle {
  display: inline-flex;
  align-items: center;
}

#shopify-cart-toggle {
  display: inline-flex;          /* IMPORTANT: not none */
  align-items: center;
}

/* Make Shopify toggle look like your header icon */
#shopify-cart-toggle .shopify-buy__cart-toggle {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-left: 4px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
}

#shopify-cart-toggle .shopify-buy__cart-toggle__text {
  display: none !important;
}

#shopify-cart-toggle .shopify-buy__cart-toggle__icon {
  fill: #ffffff !important;
}

#shopify-cart-toggle .shopify-buy__cart-toggle__count {
  background: #ffffff !important;
  color: #000000 !important;
  border-radius: 999px !important;
  padding: 2px 7px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  min-width: 18px !important;
  line-height: 1 !important;
  text-align: center !important;
}

/* ================================
   HOME PAGE (HERO + GRID PREVIEW)
=================================== */

.hero { text-align: center; padding: 140px 20px 80px; }
.hero h1 {
  font-size: 40px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  letter-spacing: 2px;
}
.hero p { font-size: 18px; margin-top: 10px; color: #cccccc; }

/* shared grid layout */
.grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* hero cards */
.hero-card {
  background: #ffffff;
  color: #000000;
  width: 220px;
  border-radius: 18px;
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.hero-card span {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.about { padding: 80px 20px; text-align: center; }
.about h2 { font-size: 32px; margin-bottom: 20px; }
.about p { max-width: 600px; margin: 0 auto; color: #dddddd; }

.footer {
  padding: 40px 20px;
  background: #000000;
  color: #ffffff;
  text-align: center;
  margin-top: 40px;
}

/* ================================
   SHOP PAGES
=================================== */

.shop-body { background: #ffffff !important; color: #000000; }

.shop-page {
  padding: 80px 20px;
  text-align: center;
  background-image: url('images/shop-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.9);
  background-blend-mode: lighten;
}
.shop-page h1 { font-size: 36px; margin-bottom: 40px; color: #000000; }

.product-card {
  background: #ffffff;
  color: #000000;
  width: 260px;
  border-radius: 12px;
  border: 1px solid #dddddd;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.product-image-swap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-image-swap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-img-main { opacity: 1; z-index: 1; }
.product-img-hover { opacity: 0; z-index: 2; }

.product-card:hover .product-img-main { opacity: 0; transform: scale(1.03); }
.product-card:hover .product-img-hover { opacity: 1; transform: scale(1.03); }

.product-card h2 {
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 8px 0 4px;
}

.product-type {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777777;
  margin-bottom: 4px;
}

.price { font-weight: 700; font-size: 15px; margin: 4px 0 12px; }

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #000000;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000000;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
}
.btn:hover { background: #000000; color: #ffffff; }

/* ================================
   PRODUCT DETAIL PAGES
=================================== */

.product-body { background: #ffffff; color: #000000; }

.product-detail { padding: 80px 20px; background: #ffffff; }

.product-detail-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.product-image { flex: 1 1 320px; }

.product-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.product-info { flex: 1 1 320px; }

.product-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 6px;
}

.product-info .product-type {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777777;
  margin-bottom: 12px;
}

.product-info .product-desc {
  font-size: 14px;
  color: #555555;
  margin-bottom: 16px;
}

.product-sections details {
  border-top: 1px solid #eeeeee;
  padding: 10px 0;
}
.product-sections details:last-of-type { border-bottom: 1px solid #eeeeee; }
.product-sections summary { cursor: pointer; font-weight: 600; }
.product-sections p { font-size: 14px; color: #555555; margin-top: 6px; }

.product-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Shop page grid fix (your shop pages use .grid) */
.shop-page .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  justify-content: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.shop-page .product-card { width: 100%; max-width: 260px; }

@media (max-width: 900px) {
  .header { padding: 12px 16px; height: auto; }
  .header, .main-nav { flex-wrap: wrap; }
  .logo img { height: 160px; }

  .shop-page .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
  .shop-page .product-card { max-width: 100%; }

  .product-detail-inner { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 600px) {
  .logo img { height: 130px; }
  .shop-page .grid { grid-template-columns: 1fr; }

  .primary-btn, .outline-btn { width: 100%; text-align: center; }
}



/* =========================
   CUSTOM SIZE PILLS + QTY
========================= */
.shopify-hidden{ display:none !important; }

.size-block{ margin-top: 18px; }
.size-label{ font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity:.7; margin-bottom:8px; }
.size-options{ display:flex; gap:10px; flex-wrap:wrap; margin:8px 0 12px; }

.size-pill{
  border:1px solid #222;
  background:#fff;
  color:#000;
  padding:10px 16px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
}

.size-pill.active{
  background:#111;
  color:#fff;
  border-color:#111;
}

.variant-price{
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0 10px;
}

.qty-row{ margin: 10px 0 14px; }
.qty-label{ font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity:.7; margin-bottom:8px; }

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

.qty-btn{
  width:40px;
  height:40px;
  border-radius:10px;
  border:1px solid #222;
  background:#fff;
  color:#000;
  font-size:18px;
  cursor:pointer;
}

.qty-input{
  width:60px;
  height:40px;
  border-radius:10px;
  border:1px solid #222;
  text-align:center;
  font-weight:700;
}

.btn-primary{
  background:#111;
  color:#fff;
  border:none;
  padding:14px 18px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
  width:220px;
}

.btn-primary:disabled{ opacity:.5; cursor:not-allowed; }

.variant-note{ margin-top:8px; font-size:12px; opacity:.75; }

/* --- Fix Shopify cart buttons so they don't inherit giant site styles --- */
