/* =========================================================
   SHOP — Gucci Child Theme
   archive-product, category pages, product card (gc-card)
   ========================================================= */

/* =========================================================
   SUBCAT STRIP
   ========================================================= */
.gc-subcat-strip {
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}

.gc-subcat-strip__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gc-subcat-strip__inner::-webkit-scrollbar { display: none; }

.gc-subcat-chip {
  flex-shrink: 0;
  display: inline-block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  color: #444;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.gc-subcat-chip.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}
@media (hover: hover) {
  .gc-subcat-chip:hover {
    background: #111;
    color: #fff;
    border-color: #111;
  }
}

/* Sale chip — leaves the archive for /sale/, so its label carries the same sale
   accent as the header link. Rules sit after the base hover to win on equal
   specificity. */
.gc-subcat-chip--sale {
  color: var(--gc-sale);
  font-weight: 500;
}
@media (hover: hover) {
  .gc-subcat-chip--sale:hover {
    background: var(--gc-sale);
    color: #fff;
    border-color: var(--gc-sale);
  }
}

/* Separator between bag subs and wallets/sunglasses */
.gc-subcat-strip__sep {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: #d8d8d8;
  align-self: center;
  flex-shrink: 0;
  margin: 0 4px;
}

/* Alt chips (Wallets / Sunglasses in Bags bar) — same style as regular chips */

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.gc-breadcrumbs {
  padding: 20px 0 0;
}
.gc-breadcrumbs .woocommerce-breadcrumb,
.gc-breadcrumbs .woocommerce-breadcrumb a {
  font-size: 11px !important;
  color: #999 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  font-family: inherit !important;
}
.gc-breadcrumbs .woocommerce-breadcrumb a:hover { color: #111 !important; }

/* =========================================================
   CATEGORY HERO
   ========================================================= */
.gc-shop__hero {
  padding: 24px 0 16px;
}

.gc-shop__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(32px, 5vw, 54px) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  letter-spacing: -.01em !important;
  color: #111 !important;
  margin: 0 0 10px !important;
}

.gc-shop__desc {
  font-size: 14px;
  color: #555;
  max-width: 640px;
  line-height: 1.7;
  margin: 0;
}

/* =========================================================
   TOOLBAR
   ========================================================= */
.gc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 20px;
  gap: 16px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 20px;
}

.gc-toolbar__left {}

.gc-toolbar__count {
  font-size: 12px;
  color: #6b6b6b;
  letter-spacing: .1em;
}

.gc-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gc-toolbar__filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid #d0d0d0;
  background: #fff;
  color: #111;
  cursor: pointer;
  transition: border-color .2s ease;
}
.gc-toolbar__filter-btn:hover { border-color: #111; }
.gc-toolbar__filter-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.gc-toolbar__sort-wrap { position: relative; }
.gc-toolbar__sort-wrap::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid #555;
  border-bottom: 1px solid #555;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.gc-toolbar__sort {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 34px 10px 16px;
  border: 1px solid #d0d0d0;
  background: #fff;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #111;
  cursor: pointer;
  transition: border-color .2s ease;
}
.gc-toolbar__sort:hover,
.gc-toolbar__sort:focus { border-color: #111; outline: none; }

/* =========================================================
   ACTIVE FILTER CHIPS
   ========================================================= */
.gc-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.gc-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid #111;
  color: #111;
  background: transparent;
  transition: background .2s ease;
  cursor: pointer;
}
.gc-active-chip span { font-size: 13px; line-height: 1; }

.gc-active-chip--clear {
  border-color: #aaa;
  color: #888;
}
@media (hover: hover) {
  .gc-active-chip:hover { background: #f5f5f5; }
  .gc-active-chip--clear:hover {
    background: #f5f5f5;
    color: #111;
    border-color: #111;
  }
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.gc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding-bottom: 40px;
  min-height: 200px;
  transition: opacity .25s ease;
}

.gc-grid.is-loading {
  opacity: .5;
  pointer-events: none;
}

.gc-shop__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: #999;
  font-size: 14px;
  letter-spacing: .06em;
}

/* =========================================================
   PRODUCT CARD  (.gc-card)
   ========================================================= */
.gc-card {
  position: relative;
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;            /* let the 1-line title clip instead of stretching the grid track */
}

/* Desktop: entire card navigates to product (wishlist + slider stay interactive) */
@media (hover: hover) {
  .gc-card {
    cursor: pointer;
  }
  .gc-card__cover-link {
    position: absolute;
    inset: 0;
    z-index: 1;
  }
  .gc-card__image-wrap {
    z-index: 2;
  }
  .gc-card__body {
    position: relative;
    z-index: 2;
    pointer-events: none;
  }
}

.gc-card__image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.gc-card--slider {
  overflow: visible;
}

.gc-card--slider .gc-card__image-wrap {
  overflow: visible;
}

/* Full-cover link — only shown in non-slider cards */
.gc-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Slider styles are in main.css (loaded globally) */

/* Sale badge */
.gc-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 6px 10px;
  font-weight: 500;
  z-index: 3;
  pointer-events: none;
  line-height: 1;
}
.gc-card__badge--sale { background: #111; color: #fff; }
.gc-card__badge--oos  { background: #111; color: #fff; }

/* Sold-out card: heavily dim the imagery, keep title/price legible */
.gc-card--oos .gc-card__image-wrap { opacity: .35; }
.gc-card--oos .gc-card__title { color: #767676; }

/* Wishlist button */
.gc-card__wishlist {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  color: #111;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease;
  background: transparent;
  border: none;
  padding: 0;
  pointer-events: auto;
}
.gc-card__wishlist svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  transition: fill .2s ease, stroke .2s ease, transform .2s ease;
}
@media (hover: hover) {
  .gc-card__wishlist:hover svg { transform: scale(1.15); }
}

/* Active / saved state — matches homepage style */
.gc-card__wishlist.is-active,
.gc-card__wishlist[aria-pressed="true"] {
  color: #c00;
}
.gc-card__wishlist.is-active svg,
.gc-card__wishlist[aria-pressed="true"] svg {
  fill: #c00;
  stroke: #c00;
}

/* Card body */
.gc-card__body {
  padding: 12px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  flex: 1;
}

.gc-card__title {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .02em;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
  margin: 0;
}
.gc-card__title:hover { color: #555; }

/* ── Corner tags (sale + random highlight) stacked over the image ── */
.gc-card__tags {
  position: absolute;
  top: 14px;
  left: 14px;
  min-height: 32px;          /* match the wishlist button so both sit on one row */
  z-index: 3;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;       /* vertically centre badges against the heart */
  gap: 6px;
  pointer-events: none;
  max-width: calc(100% - 60px); /* keep clear of the wishlist heart; wraps if too wide */
}
.gc-card__tags .gc-card__badge {
  position: static;   /* stack inside the wrapper instead of pinning to the corner */
  top: auto;
  left: auto;
}
/* Random highlight labels — same shape as the sale badge, distinct accents */
.gc-card__highlight--stock { background: #8a2b21; color: #fff; }
.gc-card__highlight--offer { background: #7a6326; color: #fff; }
.gc-card__highlight--best  { background: #111;    color: #fff; }

/* Price */
.gc-card__price { font-size: 13px; }
.gc-card .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  margin: 0;
}
.gc-card .price del {
  text-decoration: line-through;
  color: #9b9b9b;
  font-size: 12px;
}
.gc-card .price del .woocommerce-Price-amount { color: #9b9b9b; }
.gc-card .price ins {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}
.gc-card .price ins .woocommerce-Price-amount { color: #111; }
.gc-card .price .woocommerce-Price-amount { font-size: 13px; }

/* =========================================================
   LOAD MORE
   ========================================================= */
.gc-loadmore {
  display: flex;
  justify-content: center;
  padding: 16px 0 64px;
}

.gc-loadmore__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 16px 44px;
  border: 1px solid #111;
  background: transparent;
  color: #111;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
@media (hover: hover) {
  .gc-loadmore__btn:hover { background: #111; color: #fff; }
}
.gc-loadmore__btn.is-loading {
  opacity: .6;
  pointer-events: none;
}

/* =========================================================
   FILTER DRAWER
   ========================================================= */
.gc-filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
}
.gc-filter-drawer.is-open { pointer-events: auto; }

.gc-filter-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .3s ease;
}
.gc-filter-drawer.is-open .gc-filter-drawer__overlay { opacity: 1; }

.gc-filter-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.gc-filter-drawer.is-open .gc-filter-drawer__panel { transform: translateX(0); }

/* Drawer head */
.gc-filter-drawer__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #ececec;
  flex-shrink: 0;
}
.gc-filter-drawer__title {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  margin-right: auto;
}
.gc-filter-drawer__clear {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
  color: #111;
  flex-shrink: 0;
}
.gc-filter-drawer__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #111;
}
.gc-filter-drawer__close svg { width: 18px; height: 18px; }

/* Drawer body */
.gc-filter-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Drawer footer */
.gc-filter-drawer__foot {
  padding: 16px 24px 24px;
  border-top: 1px solid #ececec;
  flex-shrink: 0;
}
.gc-filter-drawer__apply {
  width: 100%;
  background: #111;
  color: #fff;
  padding: 16px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
}
.gc-filter-drawer__apply:hover { background: #333; }

/* =========================================================
   FILTER GROUPS
   ========================================================= */
.gc-filter-group {
  border-bottom: 1px solid #ececec;
}

.gc-filter-group__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  color: #111;
}
.gc-filter-group__head::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  margin-left: 8px;
  flex-shrink: 0;
}
.gc-filter-group.is-open .gc-filter-group__head::after { content: "−"; }

.gc-filter-group__body {
  display: none;
  padding: 0 24px 20px;
}
.gc-filter-group.is-open .gc-filter-group__body { display: block; }

.gc-filter-group__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Two-column layout (e.g. Sale discount buckets) */
.gc-filter-group__list--cols2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

/* Checkbox row */
.gc-filter-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 0;
  color: #111;
}
.gc-filter-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #c0c0c0;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  background: #fff;
  transition: background .15s, border-color .15s;
}
.gc-filter-check input[type="checkbox"]:checked {
  background: #111;
  border-color: #111;
}
.gc-filter-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
}
.gc-filter-check__label { flex: 1; }
.gc-filter-check__count { color: #aaa; font-size: 12px; flex-shrink: 0; transition: color .15s; }

/* Unavailable filter option (count = 0) — hidden entirely */
.gc-filter-check.is-unavailable {
  display: none !important;
}

/* Color swatch */
.gc-filter-check__swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  transition: box-shadow .15s;
}
.gc-filter-check--color input[type="checkbox"]:checked ~ .gc-filter-check__swatch,
.gc-filter-check--color:has(input:checked) .gc-filter-check__swatch {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #111;
}

/* Color list — 2-column grid */
.gc-filter-group__list--colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
}

/* =========================================================
   PRICE FILTER (kept for legacy, hidden)
   ========================================================= */
.gc-filter-price { padding: 4px 0 8px; }

.gc-filter-price__row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.gc-filter-price__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.gc-filter-price__label {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #999;
}
.gc-filter-price__sep {
  padding-bottom: 10px;
  color: #aaa;
  font-size: 14px;
  flex-shrink: 0;
}
.gc-filter-price__input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d0d0d0;
  transition: border-color .2s ease;
  background: #fff;
}
.gc-filter-price__input-wrap:focus-within { border-color: #111; }
.gc-filter-price__currency {
  padding: 0 4px 0 10px;
  font-size: 12px;
  color: #888;
  flex-shrink: 0;
  line-height: 1;
}
.gc-filter-price__input {
  flex: 1;
  padding: 10px 10px 10px 0;
  font-size: 13px;
  background: transparent;
  border: none;
  outline: none;
  min-width: 0;
  color: #111;
}
.gc-filter-price__input::-webkit-inner-spin-button,
.gc-filter-price__input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* =========================================================
   BODY LOCK
   ========================================================= */
body.gc-drawer-open { overflow: hidden; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
  .gc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .gc-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .gc-shop__hero { padding: 14px 0 10px; }

  /* Chips — smaller on mobile */
  .gc-subcat-strip__inner {
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 6px;
  }
  .gc-subcat-chip {
    font-size: 10px;
    padding: 8px 13px;
    letter-spacing: .14em;
  }

  /* Toolbar: count full-width first row, then filter+sort side by side */
  .gc-toolbar {
    flex-wrap: wrap;
    padding: 12px 0 14px;
    margin-bottom: 14px;
    gap: 8px;
  }
  .gc-toolbar__left { width: 100%; }
  .gc-toolbar__count { font-size: 11px; }
  .gc-toolbar__right {
    width: 100%;
    gap: 8px;
  }

  /* Sort visible on mobile, same size as filter button */
  .gc-toolbar__sort-wrap {
    display: block;
    flex: 1;
  }
  .gc-toolbar__sort {
    width: 100%;
    padding: 11px 28px 11px 12px;
    font-size: 10px;
    letter-spacing: .14em;
  }

  .gc-toolbar__filter-btn {
    flex: 1;
    padding: 11px 12px;
    font-size: 10px;
    letter-spacing: .14em;
    justify-content: center;
  }
}

@media (max-width: 479px) {
  .gc-grid { gap: 2px; }
  .gc-card__body { padding: 10px 12px 14px; }
  .gc-card__title { font-size: 12px; }
}

/* Collection-card swatches / price / add-to-cart styles live in main.css so
 * they load site-wide (shop grid, search panel on any page, and the PDP
 * You May Also Like / Recently Viewed blocks). */
