/* Journey Apparel - Mobile-first styles */
:root {
  --bg: #fff;
  --text: #000;
  --muted: #666;
  --border: #e5e5e5;
  --accent: #e11900;
  --primary: #000;
  --secondary: #fff;
  --shop-pay: #5a31f4;
  --radius: 6px;
  --gap: 14px;
  --max: 1200px;
}
* {
  box-sizing: border-box;
}
html {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
select,
input {
  font: inherit;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
.hide {
  display: none;
}

/* Sticky Header */
.announcement {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 6px 12px;
}
.header {
  position: sticky;
  top: 24px;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo {
  text-align: center;
  font-weight: 800;
  letter-spacing: 2px;
}
.logo a {
  display: inline-block;
  padding: 8px 10px;
}
.icon-btn {
  background: none;
  border: 0;
  padding: 6px;
  line-height: 0;
}
.wish { width:44px; height:44px; border:1px solid var(--border); border-radius:8px; background:#fff; font-size:18px; }
.wish.active { color:#e11d48; border-color:#e11d48; }
.installments { color: var(--muted); font-size: 12px; margin-top: 4px; }

.badge {
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  padding: 2px 6px;
  margin-left: 4px;
}

/* Mobile nav */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
}

/* Mobile Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 95;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 80vw;
  max-width: 420px;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.drawer-close {
  appearance: none;
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.drawer-nav .row-item,
.drawer .accordion.row-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 0;
  background: none;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.drawer .accordion .chev {
  float: right;
  transition: transform 0.2s ease;
}
.drawer [aria-expanded="true"] .chev {
  transform: rotate(90deg);
}
.drawer .sub {
  display: none;
  padding: 8px 0 8px 16px;
}
.drawer .sub a {
  display: block;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.drawer-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #000;
}
.nav {
  position: fixed;
  inset: 0 35% 0 0;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 70;
  padding: 16px;
  overflow: auto;
  border-right: 1px solid var(--border);
}
.nav.open {
  transform: translateX(0);
}
.nav a {
  display: block;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

/* Mega menu (desktop) */
.mega {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  padding: 20px;
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mega h4 {
  margin: 8px 0;
}
.header-item {
  position: relative;
}
.header-item:hover .mega {
  display: none;
}
@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
  .nav {
    position: static;
    transform: none;
    display: flex;
    gap: 18px;
    border: 0;
    padding: 0;
  }
  .nav a {
    border: 0;
    padding: 8px 0;
  }
  .header {
    top: 0;
  }
  .header-inner {
    height: 72px;
  }
  .header-item:hover .mega {
    display: block;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.1);
}
.hero-overlay {
  position: relative;
  text-align: center;
  padding: 48px 16px;
}
.hero .title {
  font-size: 28px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero .subtitle {
  margin-top: 8px;
  font-size: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid #000;
  background: #000;
  color: #fff;
  transition: transform 0.1s ease, background 0.2s;
}
.btn:active {
  transform: scale(0.98);
}
.btn.secondary {
  background: #fff;
  color: #000;
  border-color: #000;
}
.btn.outline {
  background: #fff;
  border: 1px solid #000;
  color: #000;
}
.btn.pill {
  border-radius: 999px;
}
.btn.sp {
  background: var(--shop-pay);
}
.btn-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

/* Grids */
.grid {
  display: grid;
  gap: var(--gap);
}
.grid.products {
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 768px) {
  .grid.products {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .grid.products {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card {
  position: relative;
}
.card .img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f7f7;
}
.card img {
  /* Removed hover transition effects */
}
/* Removed hover image swap functionality */
.card { cursor: default; }

.price {
  font-weight: 600;
}
.badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
}
.badges .tag {
  background: #000;
  color: #fff;
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 999px;
}
.tag.red {
  background: var(--accent);
}

/* Quick Shop functionality removed */
.size-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.size {
  border: 1px solid var(--border);
  padding: 10px 0;
  text-align: center;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
}
.size[aria-pressed="true"], .size.selected {
  background: #fff;
  color: #111;
  border-color: #111;
  border-width: 2px;
  font-weight: 700;
}

/* Category panels */
.panels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 10px;
  overflow: auto;
  padding: 4px;
}
@media (min-width: 768px) {
  .panels {
    grid-auto-columns: 1fr;
    grid-template-columns: repeat(6, 1fr);
  }

  /* Category panels: text below image and centered */
  .panel .caption {
    text-align: center;
    padding: 10px 8px;
  }

  /* Category carousel controls: black chevrons, visible on mobile */
  .category-carousel .ctrl {
    display: inline-flex;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: #fff; /* white chevrons */
    box-shadow: none;
    font-size: 28px;
    line-height: 1;
  }
  /* Slightly wider cards on mobile for categories */
  .category-carousel .carousel-track {
    grid-auto-columns: 80%;
  }
  /* Make sure category carousel arrows are positioned and visible */
  .category-carousel { position: relative; }
  .category-carousel .prev { left: 8px; }
  .category-carousel .next { right: 8px; }
  .category-carousel .ctrl { position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex !important; z-index: 5; }
    .category-carousel .ctrl {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      display: inline-flex !important;
      z-index: 5;
    }
  }
}
.panel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.panel img {
  height: 160px;
  width: 100%;
  object-fit: cover;
}
.panel .overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
}

/* Editorial split */
.split {
  display: grid;
  gap: 10px;
}
.split img {
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

/* Ensure panels snap as well */
.carousel-track > .panel {
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

/* Carousel */
.carousel {
  position: relative;
}
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70%;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

/* Mobile 2x1 layout for product page carousels */
.carousel-track.mobile-2x1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: row;
  gap: 12px;
  overflow-x: visible;
  scroll-snap-type: none;
  padding: 0;
}
.carousel-track.mobile-2x1 .card {
  width: 100%;
  min-width: 0;
  scroll-snap-align: none;
}
/* Ensure category arrows show on mobile and keep minimal style */
.category-carousel .ctrl {
  display: inline-flex;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #fff; /* white chevrons */
  box-shadow: none;
  font-size: 28px;
  line-height: 1;
  z-index: 3;
}
.carousel-track > .card {
  scroll-snap-align: start;
}
.carousel .ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: #fff; /* default: white chevrons */
  box-shadow: none;
  font-size: 28px;
  line-height: 1;
  z-index: 3;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.carousel .prev {
  left: 8px;
}
.carousel .next {
  right: 8px;
}
.carousel .ctrl:hover,
.carousel .ctrl:active {
  background: rgba(255, 255, 255, 0.96);
  color: #000;
  border: 1px solid var(--border);
  padding: 8px; /* show circular button on interaction */
}

@media (min-width: 992px) {
  .carousel .ctrl {
    display: inline-flex;
  }
}
/* Category carousel overrides (apply on all breakpoints) */
.category-carousel { position: relative; }
.category-carousel .ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #fff; /* white chevrons */
  box-shadow: none;
  font-size: 28px;
  line-height: 1;
  z-index: 6;
}
.category-carousel .prev { left: 8px; }
.category-carousel .next { right: 8px; }


/* Arrivals carousel tweaks: 2x2 layout with taller images */
.arrivals-carousel .carousel-track {
  grid-auto-columns: 50%;
}
/* rows for arrivals: independent tracks */
.arrivals-carousel .carousel-row {
  position: relative;
  margin-bottom: var(--gap);
}
.arrivals-carousel .carousel-row:last-child {
  margin-bottom: 0;
}
/* position arrows centered per row */
.arrivals-carousel .carousel-row > .ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.arrivals-carousel .carousel-row > .ctrl.prev {
  left: 8px;
}
.arrivals-carousel .carousel-row > .ctrl.next {
  right: 8px;
}

.arrivals-carousel .ctrl {
  display: inline-flex;
  z-index: 3; /* ensure arrows sit above images */
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #fff; /* white chevrons per global design */
  box-shadow: none;
  font-size: 28px;
  line-height: 1;
}
.arrivals-carousel .card .img-wrap {
  aspect-ratio: 3/4;
}
.arrivals-carousel .card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Position four arrows to align with each row */
.arrivals-carousel {
  position: relative;
}
.arrivals-carousel .ctrl.top {
  top: 25%;
}
.arrivals-carousel .ctrl.bottom {
  top: 75%;
}


/* Best Sellers carousel: uniform image size */
.best-sellers .card .img-wrap {
  aspect-ratio: 3/4;
}
.best-sellers .card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 28px 0;
}
.section h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 10px;
}
.section .desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: #fafafa;
  margin-top: 32px;
}
.footer .top {
  display: grid;
  gap: 16px;
  padding: 24px 0;
}
.footer h4 {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}
.links {
  display: grid;
  gap: 6px;
}
.newsletter {
  display: grid;
  gap: 8px;
}
.input {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.input input {
  flex: 1;
  border: 0;
  padding: 10px;
}
.input button {
  border: 0;
  background: #000;
  color: #fff;
  padding: 10px 14px;
}
.footer .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 12px 0;

/* Center footer content */
.footer .top {
  text-align: center;
  justify-items: center;
}
.footer .newsletter {
  max-width: 420px;
  margin: 0 auto;
}
.footer .bottom {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
}

/* Ensure footer link lists are centered too */
.footer .top .links { justify-items: center; text-align: center; }
.footer .top h4 { text-align: center; }

/* Strong centering rules to ensure all footer text is centered */
.footer .top > div { text-align: center; }
.footer .top .links { place-items: center; }
.footer .top .links a { display: block; width: 100%; text-align: center; }


.currency {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 16px;
}
.modal.open {
  display: flex;
}
.modal .box {
  background: #fff;
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  padding: 20px;
}
.modal h3 {
  margin: 0 0 8px;
}

/* Toolbar & filters */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 12px;
}
.filters {
  display: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
}
.filters.open {
  display: block;
}

/* Product page */
.product {
  display: grid;
  gap: 16px;
}
.gallery {
  display: grid;
  gap: 8px;
}
.gallery-main {
  border-radius: 12px;
  overflow: hidden;
  background: #f6f6f6;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.thumbs img {
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.p-details h1 {
  font-size: 22px;
  margin: 0;
  text-transform: uppercase;
  font-weight: 800;
}
.p-price {
  font-weight: 700;
  margin: 8px 0;
  font-size: 18px;
}
.collapsible {
  border-top: 1px solid var(--border);
}
.collapsible button {
  width: 100%;
  text-align: center;
  padding: 12px 0;
  background: none;
  border: 0;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  font-size: 14px;
  color: inherit;
  letter-spacing: .3px;
}
.collapsible button:hover { color: #111; }
.collapsible + .collapsible { border-top: 1px solid var(--border); }
.collapsible:last-of-type { border-bottom: 1px solid var(--border); }
.collapsible .content {
  height: 0;
  overflow: hidden;
  padding-bottom: 0;
  color: var(--muted);
  transition: height 0.25s ease;
}
.trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.trust .pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.cross-sell {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
@media (min-width: 900px) {
  .product {
    grid-template-columns: 1.2fr 1fr;
  }
  .gallery {
    grid-template-columns: 0.25fr 1fr;
    align-items: start;
  }
  .thumbs {
    grid-column: 1;
  }
  .gallery-main {
    grid-column: 2;
  }
}
/* Collapsible chevron for product sections */
.collapsible button::after {
  content: "\203A"; /* › */
  float: right;
  transition: transform .2s ease;
}
.collapsible button[aria-expanded="true"]::after {
  transform: rotate(90deg);
}

/* Trust list rows */
.trust-list {
  margin: 20px 0;
  padding: 0;
  border: none;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  padding: 8px 0;
  color: inherit;
  line-height: 1.4;
}
.trust-item .ico {
  width: 20px;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Product page edge-peek gallery */
.edge-gallery .edge {
  position: relative;
  height: min(65vh, 540px);
  border-radius: 12px;
  overflow: hidden;
  background: #f6f6f6;
}
.edge-gallery .edge img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  width: auto;
  object-fit: cover;
}
.edge-gallery .edge img.main {
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.edge-gallery .edge img.adj.left { left: 0; width: 42%; opacity: 0.9; }
.edge-gallery .edge img.adj.right { right: 0; left: auto; width: 42%; opacity: 0.9; }


/* Chat widget */
.chat {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 80;
}
.chat .bubble {
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 12px 14px;
}
.chat .panel {
  position: absolute;
  right: 0;
  bottom: 54px;
  width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: none;
}
.chat.open .panel { display: block; }

/* Focus states */
.btn:focus-visible, .icon-btn:focus-visible, .size:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.btn:hover { filter: brightness(0.92); }
.btn.sp:hover { filter: brightness(0.96); }

/* FORCE: Mobile-first centering and button width matching */
.p-details .size-grid,
.p-details .cta-row,
.p-details .sp-row,
.p-details .more-pay,
.p-details .trust-list,
.p-details .collapsible {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
}

/* FORCE: Buttons match size grid width exactly */
.p-details .cta-row .btn,
.p-details .sp-row .btn {
  width: 100% !important;
  flex: 1 !important;
}

.p-details .cta-row,
.p-details .sp-row,
.p-details .more-pay {
  text-align: center !important;
}

/* FORCE: Trust badges styling */
.trust-list {
  margin: 20px 0 !important;
  padding: 0 !important;
  border: none !important;
}
.trust-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  font-size: 14px !important;
  padding: 8px 0 !important;
  color: inherit !important;
  line-height: 1.4 !important;
}
.trust-item .ico {
  width: 20px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

/* FORCE: Collapsible buttons centered */
.collapsible button {
  width: 100% !important;
  text-align: center !important;
  padding: 12px 0 !important;
  background: none !important;
  border: 0 !important;
  font-weight: 700 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-size: 14px !important;
  color: inherit !important;
  letter-spacing: .3px !important;
}

/* Desktop split layout for product page */
@media (min-width: 992px) {
  main.product { display: grid; grid-template-columns: minmax(380px, 55%) 1fr; gap: 24px; align-items: start; }
}

/* Utilities */
.muted {
  color: var(--muted);
}
.upper {
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
/* Center all titles sitewide */
.section h2, .section h3, .product h1, header h1, header h2 {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}
.center {
  text-align: center !important;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mt-0 {
  margin-top: 0;
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.fade-in {
  animation: fade 0.5s ease both;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
