:root {
  --white: #ffffff;
  --black: #111111;
  --grey-bg: #f6f6f6;
  --grey-border: #eeeeee;
  --red: #e03a2f;
  --text-muted: #777777;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

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

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  z-index: 1000;
  background: var(--white);
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);

}

.nav.scrolled {
  padding: 1rem 4rem;
  border-bottom: 1px solid var(--grey-border);
}

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

.policy-link {
  text-decoration: none;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: 0.3s;
}

.cart-btn {
  background: none;
  border: none;
  position: relative;
  cursor: pointer;
  color: inherit;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 10px;
  opacity: 0;
  transition: 0.3s;
}

.cart-count.visible {
  opacity: 1;
}

/* HERO */
.hero {
  height: calc(100vh - 80px);
  margin-top: 80px;
  width: 100%;
  background-image: url('images/hero.JPEG');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #E5E2E4;
  padding: 0;
  margin-bottom: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 0.85;
  text-transform: uppercase;
}

.hero-title .accent {
  color: var(--red);
}

.hero-title span.line {
  display: block;
}

/* MARQUEE */
.marquee-wrap {
  background: var(--black);
  padding: 1.5rem 0;
  overflow: hidden;
  margin-bottom: 6rem;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: scroll 30s linear infinite;
  width: max-content;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-track span {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2rem;
}

/* SHOP */
.shop {
  padding: 0 4rem 10rem 4rem;
  max-width: 1600px;
  margin: 0 auto;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--grey-border);
  padding: 0.6rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}

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

/* PRODUCT CARD */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5rem 2rem;
}

.product-img {
  position: relative;
  aspect-ratio: 1 / 1.7;
  background-color: #E6EAEB;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-img img {
  width: 85%;
  transition: 0.6s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--red);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  z-index: 10;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.btn-add {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 1rem;
}

.hero-btn {
  background: rgba(0, 0, 0, 0.847);
  color: var(--white);
  border: 1px solid var(--black);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  width: 150px;
}

.hero-btn:hover {
  background-color: black;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-track span {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2rem;
}

/* Mobile Fix for Gap and Hero Height */
@media (max-width: 768px) {
  .hero {
    background-size: 100% 100%;
    height: 100vh;
    margin-top: 1px;
    margin-bottom: 0;
  }
  
  .marquee-wrap {
    margin-bottom: 6rem;
  }
}

.section-title {
  font-size: 4rem; 
  font-family: Arial, Helvetica, sans-serif;
   font-weight: 900; 
   text-align: center; 
   margin-bottom: 2%;
        
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 3rem !important;
        text-align: left !important;
        margin-bottom: 2rem !important;
        font-weight: 900 !important;
    }
}

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

/* CART DRAWER */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 450px;
  max-width: 100%;
  background: var(--white);
  z-index: 2000;
  transform: translateX(100%);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--grey-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  text-transform: uppercase;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.cart-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--grey-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
}

.btn-primary.full {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  padding: 1.4rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.4s;
  letter-spacing: 0.1em;
}

.btn-primary.full:hover {
  background: transparent;
  color: var(--black);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: 0.5s;
  z-index: 1500;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--black);
  color: var(--white);
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  z-index: 3000;
  transition: 0.6s;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* FOOTER */
.footer {
  padding: 8rem 4rem 4rem;
  border-top: 1px solid var(--grey-border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border: 1px solid var(--black);
  padding: 0.6rem 1.2rem;
  transition: 0.3s;
  text-transform: uppercase;
}

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

.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-info-label {
  color: var(--black);
  margin-bottom: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid var(--grey-border);
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* MODAL STYLES */
.size-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 4000;
  backdrop-filter: blur(8px);
}

.size-modal-overlay.active {
  display: flex;
}

.size-modal {
  background: var(--white);
  padding: 3rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.size-modal h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.size-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.size-options button {
  padding: 1.2rem;
  border: 1px solid var(--grey-border);
  background: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
}

.size-options button:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.close-modal {
  margin-top: 2rem;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.5;
  text-transform: uppercase;
}

/* PDP SPECIFIC STYLES */
.pdp-wrapper {
  padding: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.pdp-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

/* Compact Left Visual Card */
.pdp-visual {
  background: var(--grey-bg);
  position: sticky;
  top: 100px;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  padding: 2rem;
  overflow: hidden;
}

/* Image Container - Fixed in exact center */
.pdp-main-img-box {
  width: 75%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.pdp-main-img-box img,
.main-image {
  width: 100%;
  height: 80%;
  object-fit: contain;
  transition: var(--transition);
  display: block;
}

.option-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* Image Swatches */
.image-swatch-grid {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.color-swatch-item {
  width: 60px;
  height: 75px;
  background: white;
  cursor: pointer;
  border: 1px solid var(--grey-border);
  transition: 0.3s;
  padding: 4px;
}

.color-swatch-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.color-swatch-item.active {
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}

/* Size Controls */
.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.guide-link {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-decoration: underline;
  cursor: pointer;
  color: var(--text-muted);
}

.size-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.size-btn {
  padding: 1rem;
  border: 1px solid var(--grey-border);
  background: none;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: 0.3s;
}

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

/* Size Chart Table */
.size-chart-content {
  display: none;
  background: #fafafa;
  padding: 1rem;
  margin-bottom: 2rem;
  border: 1px solid var(--grey-border);
}

.size-chart-content.active {
  display: block;
}

.size-chart-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.size-chart-content th {
  text-align: left;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
}

.size-chart-content td {
  padding: 0.5rem 0;
  border-bottom: 1px dotted #eee;
}

.guide-img {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--grey-border);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 900px) {
  .pdp-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pdp-wrapper {
    padding: 1.5rem;
  }

  .pdp-visual {
    position: relative;
    top: auto;
    max-width: 100%;
    aspect-ratio: 1 / 1.1;
    padding: 1.5rem;
  }

  .pdp-main-img-box {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .shop {
    padding: 0 1rem 6rem 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 0.8rem;
  }

  .product-img {
    aspect-ratio: 1 / 1.4;
    margin-bottom: 0.8rem;
  }

  .product-img img {
    width: 90%;
    height: 100%;
    object-fit: contain;
  }

  .product-name {
    font-size: 1.2rem;
  }

  .btn-add {
    width: 100%;
    padding: 0.8rem;
  }

  .hero {
    background-color: transparent;
    background-position: top center;
    height: auto;
    aspect-ratio: 1 / 1.2;
    margin-bottom: 20px;
    background-size: contain;
    height: 50vh;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* LARGE DEVICE: smaller and perfectly centered PDP image card */
/* Desktop only — product image card */
@media (min-width: 901px) {

  .pdp-visual {
    width: 380px;
    max-width: 380px;
    aspect-ratio: 1 / 1.5;
    margin: 0 auto;
    padding: 2rem;

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

    overflow: hidden;
  }

  .pdp-main-img-box {
    width: 85%;
    height: 85%;
    margin: 0;

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

    position: relative;
  }

  .pdp-main-img-box img,
  .main-image {
    width: 100%;
    /* height: 100%; */

    object-fit: contain;
    object-position: center;

    display: block;
    margin: 0;
  }
}

/* Container holding the product details on the PDP */
.product-details-container {
  display: flex;
  flex-direction: column;
}

/* Mobile adjustments (adjust max-width if your breakpoint is different) */
@media (max-width: 768px) {
  /* Bring the swatches container to the top */
  #imageSwatches,
  .color-swatch-container {
    order: 1;
    margin-bottom: 12px;
  }

  /* Place product name directly below colors */
  #pName {
    order: 2;
  }

  /* Order remaining elements as needed */
  #shoulderType {
    order: 3;
  }

  #pPrice {
    order: 4;
  }

  #pDesc {
    order: 5;
  }

  .size-selector-grid,
  #sizeGuideTableContainer {
    order: 6;
  }

  .btn-add,
  .add-to-cart-container {
    order: 7;
  }
}

/* Keep homepage sections hidden while viewing a collection */
body.collection-page .hero,
body.collection-page .hero-section,
body.collection-page .marquee-wrap,
body.collection-page .category-cards-section,
body.collection-page .shop,
body.collection-page #dropShoulderGrid,
body.collection-page #normalSleeveGrid,
body.collection-page #productsGrid,
body.collection-page .footer {
    display: none !important;
}


/* =========================================
   HYSS — PREMIUM PRODUCT PAGE REDESIGN
   Existing product data and functionality kept
========================================= */


/* =====================================================
   HYSS — PREMIUM STREETWEAR PRODUCT PAGE REDESIGN
   Paste at the VERY BOTTOM of index.css
   ===================================================== */

:root {
    --hyss-ink: #171717;
    --hyss-muted: #777772;
    --hyss-paper: #f8f8f6;
    --hyss-line: #e5e5e0;
    --hyss-accent: #b9ff66;
}

/* PAGE CANVAS */
body:has(.pdp-wrapper) {
    background: #fff;
    color: var(--hyss-ink);
}

/* MAIN TWO-COLUMN EDITORIAL LAYOUT */
.pdp-wrapper {
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 115px 5.2% 100px !important;
}

.pdp-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr) !important;
    gap: clamp(36px, 6vw, 105px) !important;
    align-items: start !important;
}

/* =====================================================
   LEFT SIDE — LARGE EDITORIAL PRODUCT GALLERY
   ===================================================== */

.pdp-visual {
    position: sticky !important;
    top: 105px !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 0.83 !important;
    margin: 0 !important;
    padding: clamp(20px, 4vw, 65px) !important;
    background: #f2f2ef !important;
    border: 0 !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.pdp-main-img-box {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
}

.pdp-main-img-box img,
.pdp-main-img-box .main-image,
.pdp-visual > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
    filter: none !important;
    transform: none;
}

/* Gentle image hover */
@media (hover: hover) {
    .pdp-main-img-box img,
    .pdp-main-img-box .main-image {
        transition: transform 0.45s ease !important;
    }

    .pdp-visual:hover .pdp-main-img-box img,
    .pdp-visual:hover .pdp-main-img-box .main-image {
        transform: scale(1.025);
    }
}

/* Gallery navigation */
.slider-arrow {
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: #171717 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.slider-arrow:hover {
    background: #171717 !important;
    color: #fff !important;
    /* transform: scale(1.05); */
}

.slider-dots {
    gap: 7px !important;
}

.slider-dots span,
.slider-dots button {
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

/* =====================================================
   RIGHT SIDE — PREMIUM PRODUCT INFORMATION
   ===================================================== */

.pdp-content {
    width: 100% !important;
    max-width: 570px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px 0 0 !important;
    color: var(--hyss-ink) !important;
}

/* Product title */
#pName.section-title,
.pdp-content h1 {
    margin: 0 0 13px !important;
    color: #171717 !important;
    font-family: var(--font-display), sans-serif !important;
    font-size: clamp(38px, 4.1vw, 66px) !important;
    font-weight: 800 !important;
    line-height: 0.98 !important;
    letter-spacing: -0.055em !important;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

/* Collection / shoulder-type label */
#shoulderType {
    display: inline-block !important;
    margin: 0 0 23px !important;
    padding: 7px 10px !important;
    background: #f2f2ef !important;
    color: #55554f !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
}

/* Price */
#pPrice {
    margin: 0 0 20px !important;
    color: #171717 !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.035em !important;
}

/* Product description */
#pDesc {
    max-width: 440px !important;
    margin: 0 0 30px !important;
    color: #6c6c66 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.85 !important;
    letter-spacing: 0 !important;
}

/* Existing green information / product note */
.pdp-content > p[style*="green"],
.pdp-content > p[style*="color: green"],
.pdp-content > p[style*="color:green"] {
    margin: 0 0 25px !important;
    padding: 13px 15px !important;
    background: #f5f7f0 !important;
    color: #555d4b !important;
    border-left: 2px solid #a7bd8a !important;
    font-size: 12px !important;
    line-height: 1.75 !important;
}

/* =====================================================
   OPTION LABELS AND SECTIONS
   ===================================================== */

.option-label {
    display: block !important;
    margin: 0 0 13px !important;
    color: #252520 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
}

#imageSwatches,
.image-swatch-grid {
    gap: 10px !important;
    margin: 0 0 30px !important;
}

/* Color swatches */
.color-swatch-item,
.color-swatch {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer;
}

.color-swatch-item:hover,
.color-swatch:hover {
    transform: translateY(-2px);
}

/* Swatch images, if used */
#imageSwatches img {
    object-fit: cover !important;
}

/* Sleeve / style options */
.sleeve-selector-grid,
#sleeveSelectorGrid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    margin: 0 0 28px !important;
}

.sleeve-btn {
    min-height: 48px !important;
    padding: 12px 15px !important;
    background: #fff !important;
    color: #30302c !important;
    border: 1px solid #deded8 !important;
    border-radius: 2px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease !important;
}

.sleeve-btn:hover {
    border-color: #171717 !important;
}

.sleeve-btn.active,
.sleeve-btn.selected {
    background: #171717 !important;
    color: #fff !important;
    border-color: #171717 !important;
}

/* Size guide row */
.flex-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    margin: 0 0 12px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--hyss-line) !important;
}

/* Size guide link / button */
#sizeChart,
.size-chart-btn,
.size-guide-btn {
    color: #33332e !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    cursor: pointer;
}

/* Size options */
.size-selector-grid,
#sizeSelectorGrid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 0 25px !important;
}

.size-btn {
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 10px 5px !important;
    background: #fff !important;
    color: #272723 !important;
    border: 1px solid #deded8 !important;
    border-radius: 2px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.size-btn:hover {
    border-color: #171717 !important;
}

.size-btn.active,
.size-btn.selected {
    background: #171717 !important;
    color: #fff !important;
    border-color: #171717 !important;
}

/* Custom-size inputs */
.pdp-content input,
.pdp-content select,
.pdp-content textarea {
    max-width: 100%;
    border-radius: 2px !important;
}

.pdp-content input:focus,
.pdp-content select:focus,
.pdp-content textarea:focus {
    outline: none !important;
    border-color: #171717 !important;
    box-shadow: 0 0 0 1px #171717 !important;
}

/* Validation message */
#sizeError {
    margin: 10px 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* =====================================================
   ADD TO CART — STRONG, FULL-WIDTH CTA
   ===================================================== */

.btn-add {
    width: 100% !important;
    min-height: 58px !important;
    margin: 25px 0 0 !important;
    padding: 17px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    background: #171717 !important;
    color: #fff !important;
    border: 1px solid #171717 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.17em !important;
    text-align: center !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.25s ease, color 0.25s ease !important;
}

.btn-add:hover {
    background: var(--hyss-accent) !important;
    color: #171717 !important;
    border-color: var(--hyss-accent) !important;
    transform: none !important;
}

/* Remove the old decorative spacer after the purchase section */
.pdp-content > div[style*="height: 100px"] {
    display: none !important;
}

/* =====================================================
   SIZE GUIDE MODAL
   ===================================================== */

.size-chart-content {
    background: #fff !important;
    border: 1px solid var(--hyss-line) !important;
    border-radius: 3px !important;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.12) !important;
}

.size-chart-content table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.size-chart-content th {
    background: #f4f4f1 !important;
    color: #171717 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.size-chart-content th,
.size-chart-content td {
    padding: 13px 10px !important;
    border: 1px solid var(--hyss-line) !important;
}

/* =====================================================
   RESPONSIVE — TABLETS
   ===================================================== */

@media (max-width: 1000px) {
    .pdp-wrapper {
        padding: 105px 4% 70px !important;
    }

    .pdp-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) !important;
        gap: 30px !important;
    }

    .pdp-visual {
        top: 95px !important;
        padding: 22px !important;
    }

    #pName.section-title,
    .pdp-content h1 {
        font-size: clamp(34px, 4.5vw, 48px) !important;
    }

    #pPrice {
        font-size: 21px !important;
    }
}

/* =====================================================
   RESPONSIVE — MOBILE PRODUCT PAGE
   ===================================================== */

@media (max-width: 700px) {
    .pdp-wrapper {
        padding: 84px 0 55px !important;
        max-width: 100% !important;
    }

    .pdp-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .pdp-visual {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        aspect-ratio: 0.92 !important;
        margin: 0 !important;
        padding: 22px 28px !important;
        background: #f2f2ef !important;
        border-radius: 0 !important;
    }

    .pdp-main-img-box {
        width: 100% !important;
        height: 100% !important;
    }

    .pdp-main-img-box img,
    .pdp-main-img-box .main-image,
    .pdp-visual > img {
        width: 90% !important;
        height: 90% ;
        object-fit: contain !important;
    }

    .pdp-content {
        width: 100% !important;
        max-width: none !important;
        padding: 28px 21px 0 !important;
    }

    #pName.section-title,
    .pdp-content h1 {
        font-size: clamp(36px, 10vw, 49px) !important;
        line-height: 0.98 !important;
        letter-spacing: -0.055em !important;
        margin-bottom: 12px !important;
    }

    #shoulderType {
        margin-bottom: 17px !important;
    }

    #pPrice {
        font-size: 22px !important;
        margin-bottom: 15px !important;
    }

    #pDesc {
        font-size: 13px !important;
        line-height: 1.8 !important;
        margin-bottom: 25px !important;
    }

    .option-label {
        font-size: 10px !important;
        margin-bottom: 12px !important;
    }

    .sleeve-selector-grid,
    #sleeveSelectorGrid {
        gap: 8px !important;
    }

    .sleeve-btn {
        min-height: 46px !important;
        padding: 11px 8px !important;
    }

    .size-selector-grid,
    #sizeSelectorGrid {
        gap: 7px !important;
    }

    .size-btn {
        min-height: 46px !important;
    }

    .btn-add {
        min-height: 56px !important;
        margin-top: 22px !important;
    }

    .slider-arrow {
        width: 36px !important;
        height: 36px !important;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .pdp-content {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    #pName.section-title,
    .pdp-content h1 {
        font-size: 34px !important;
    }

    .pdp-visual {
        padding: 16px !important;
    }
}



/* Make product image card smaller on desktop */
@media (min-width: 701px) {
    .pdp-wrapper {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }

    .pdp-container {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr) !important;
        gap: clamp(28px, 4vw, 65px) !important;
    }

    .pdp-visual {
        width: 100% !important;
        max-width: 530px !important;
        aspect-ratio: 1 / 1.08 !important;
        height: auto !important;
        padding: 28px !important;
        top: 95px !important;
        margin: 0 auto !important;
    }

    .pdp-main-img-box {
        width: 100% !important;
        height: 100% !important;
    }

    .pdp-main-img-box img,
    .pdp-main-img-box .main-image {
        width: 100% !important;
        height:90% !important;
        object-fit: contain !important;
    }
}

/* Extra compact for regular laptop screens */
@media (min-width: 701px) and (max-height: 850px) {
    .pdp-wrapper {
        padding-top: 90px !important;
    }

    .pdp-visual {
        max-width: 460px !important;
        aspect-ratio: 1 / 1.02 !important;
        padding: 22px !important;
    }
}


/* T-shirt collection cards — match hoodie collection */

#dropShoulderGrid,
#normalSleeveGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

#dropShoulderGrid .h-item-card,
#normalSleeveGrid .h-item-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

#dropShoulderGrid .h-item-img-wrap,
#normalSleeveGrid .h-item-img-wrap {
    position: relative;
    background: #f6f6f6;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dropShoulderGrid .h-item-img-wrap img,
#normalSleeveGrid .h-item-img-wrap img {
    width: 100%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

#dropShoulderGrid .h-item-card:hover .h-item-img-wrap img,
#normalSleeveGrid .h-item-card:hover .h-item-img-wrap img {
    transform: scale(1.04);
}

#dropShoulderGrid .h-badge-rating,
#normalSleeveGrid .h-badge-rating {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #111;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

#dropShoulderGrid .h-btn-choose,
#normalSleeveGrid .h-btn-choose {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#dropShoulderGrid .h-item-card:hover .h-btn-choose,
#normalSleeveGrid .h-item-card:hover .h-btn-choose {
    opacity: 1;
}

#dropShoulderGrid .h-item-info,
#normalSleeveGrid .h-item-info {
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#dropShoulderGrid .h-item-title,
#normalSleeveGrid .h-item-title {
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0;
    color: #111;
}

#dropShoulderGrid .h-item-price,
#normalSleeveGrid .h-item-price {
    font-size: 0.95rem;
    font-weight: 900;
    color: #333;
}

/* Mobile layout */
/* Mobile: 2 T-shirt cards per row */
@media (max-width: 768px) {
    #dropShoulderGrid,
    #normalSleeveGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 0.8rem;
    }

    #dropShoulderGrid .h-item-img-wrap,
    #normalSleeveGrid .h-item-img-wrap {
        aspect-ratio: 1 / 1.4;
        border-radius: 12px;
    }

    #dropShoulderGrid .h-item-img-wrap img,
    #normalSleeveGrid .h-item-img-wrap img {
        width: 90%;
        height: 100%;
        object-fit: contain;
    }

    #dropShoulderGrid .h-btn-choose,
    #normalSleeveGrid .h-btn-choose {
        display: none;
    }

    #dropShoulderGrid .h-item-title,
    #normalSleeveGrid .h-item-title {
        font-size: 1rem;
    }

    #dropShoulderGrid .h-item-price,
    #normalSleeveGrid .h-item-price {
        font-size: 0.85rem;
    }
}

    #dropShoulderGrid .h-item-img-wrap,
    #normalSleeveGrid .h-item-img-wrap {
        aspect-ratio: 1 / 1.25;
        border-radius: 20px;
    }

    #dropShoulderGrid .h-btn-choose,
    #normalSleeveGrid .h-btn-choose {
        display: none;
    }

    
    
/* =========================================
   HOMEPAGE T-SHIRT GRID
   Match Hoodies / Sweatshirts collection cards
   ========================================= */

/* Desktop and larger screens */
#dropShoulderGrid,
#normalSleeveGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

#dropShoulderGrid .h-item-card,
#normalSleeveGrid .h-item-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

#dropShoulderGrid .h-item-img-wrap,
#normalSleeveGrid .h-item-img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 16px;
}

#dropShoulderGrid .h-item-img-wrap img,
#normalSleeveGrid .h-item-img-wrap img {
    max-width: 100%;
    height: 90%;
    object-fit: contain;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    #dropShoulderGrid,
    #normalSleeveGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Mobile: two cards per row, like the collection pages */
@media (max-width: 768px) {
    #dropShoulderGrid,
    #normalSleeveGrid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px 10px !important;
        width: 100% !important;
    }

    #dropShoulderGrid .h-item-card,
    #normalSleeveGrid .h-item-card {
        min-width: 0;
        width: 100%;
    }

    #dropShoulderGrid .h-item-img-wrap,
    #normalSleeveGrid .h-item-img-wrap {
        width: 100% !important;
        height: 300px !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        border-radius: 12px !important;
    }

    #dropShoulderGrid .h-item-img-wrap img,
    #normalSleeveGrid .h-item-img-wrap img {
        width: 100% !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    #dropShoulderGrid .h-item-info,
    #normalSleeveGrid .h-item-info {
        padding-top: 10px !important;
        gap: 4px !important;
    }

    #dropShoulderGrid .h-item-title,
    #normalSleeveGrid .h-item-title {
        font-size: 0.95rem !important;
    }

    #dropShoulderGrid .h-item-price,
    #normalSleeveGrid .h-item-price {
        font-size: 0.85rem !important;
    }

    #dropShoulderGrid .h-btn-choose,
    #normalSleeveGrid .h-btn-choose {
        display: none !important;
    }
}



/* ========================================
   MOBILE NAVBAR ONLY
   ======================================== */

.mobile-menu-toggle,
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {

    .nav {
        position: sticky;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        z-index: 1000;
    }

    /* Hamburger on the left */
    .nav .mobile-menu-toggle {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        width: 27px;
        height: 19px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        z-index: 1002;
    }

    /* Three horizontal lines */
    .mobile-menu-toggle span {
        display: block;
        height: 2px;
        background: #111;
        border-radius: 2px;
        transition: width 0.2s ease, transform 0.2s ease;
    }

    .mobile-menu-toggle span:nth-child(1) {
        width: 27px;
    }

    .mobile-menu-toggle span:nth-child(2) {
        width: 17px;
    }

    .mobile-menu-toggle span:nth-child(3) {
        width: 23px;
    }

    /* Animate hamburger into an X when open */
    .mobile-menu-toggle.active {
        justify-content: center;
    }

    .mobile-menu-toggle.active span {
        position: absolute;
        width: 25px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        width: 25px;
        transform: rotate(-45deg);
    }

    /* Center the logo */
    .nav > .nav-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        line-height: 0;
        z-index: 1001;
    }

    .nav > .nav-logo img {
        display: block;
        width: 45px;
        height: auto;
    }

    /* Keep only the cart on the right */
    .nav .nav-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-left: auto;
        padding-right: 12px;
        gap: 0;
    }

    .nav .nav-right .policy-link {
        display: none !important;
    }

    .nav .nav-right > a:last-child {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .nav .cart-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 6px;
        margin: 0;
    }

    /* Dropdown below the navbar */
    .nav .mobile-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        background: #fff;
        border-top: 1px solid #e5e5e5;
        border-bottom: 1px solid #e5e5e5;
        padding: 0 20px;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0.2s ease;
        z-index: 1000;
    }

    .nav .mobile-menu.open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav .mobile-menu a {
        display: block;
        padding: 17px 0;
        color: #111;
        text-decoration: none;
        font-size: 15px;
        font-family: inherit;
        border-bottom: 1px solid #eee;
    }

    .nav .mobile-menu a:last-child {
        border-bottom: none;
    }
}
