/* BIGBROSTUDIO · Crown & Paw Storefront, Mega Menu & PDP Styles */

/* ---------- Header Mega Menu ---------- */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; }
.nav-caret { font-size: .72em; opacity: .75; transition: transform .18s ease; }
.nav-dropdown:hover .nav-caret,
.nav-dropdown.is-open .nav-caret { transform: rotate(180deg); }

.nav-mega-menu {
  display: none;
  position: fixed;
  top: var(--header, 72px);
  left: 0;
  right: 0;
  background: #fffdf9;
  border-top: 1px solid rgba(24, 32, 31, .08);
  border-bottom: 1px solid rgba(24, 32, 31, .14);
  box-shadow: 0 18px 42px rgba(24, 32, 31, .12);
  padding: 26px 24px 30px;
  z-index: 900;
}
.nav-dropdown:hover .nav-mega-menu,
.nav-dropdown:focus-within .nav-mega-menu,
.nav-dropdown.is-open .nav-mega-menu {
  display: block;
}
.nav-mega-inner {
  width: min(100%, var(--max, 1220px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}
.nav-mega-col { display: flex; flex-direction: column; gap: 8px; }
.nav-mega-heading {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(24, 32, 31, .1);
  margin-bottom: 4px;
}
.nav-mega-col a:not(.nav-mega-heading) {
  font-size: .86rem;
  color: var(--ink-soft);
  padding: 3px 0;
  border-bottom: none !important;
}
.nav-mega-col a:hover { color: var(--accent, #e46f7c); }
.nav-mega-all { margin-top: 6px; font-weight: 700; color: var(--ink) !important; }

@media (max-width: 960px) {
  .nav-dropdown { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-mega-menu { position: static; box-shadow: none; border: none; background: transparent; padding: 8px 0 12px 14px; }
  .nav-mega-inner { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Collection Grid Inline Filter Bar (Non-Blocking) ---------- */
.shop-catalog-section { padding-top: 28px; background: var(--paper, #f7f4ed); }
.shop-inline-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(24, 32, 31, .12);
}
.shop-subcat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.shop-inline-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.shop-subcat-pill {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(139, 105, 20, .35);
  background: #faf6ec;
  color: #6b4e0b;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.shop-subcat-pill.is-active { background: #8b6914; color: #fff; border-color: #8b6914; }

.shop-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.shop-search-input {
  flex: 1 1 260px;
  padding: 9px 14px;
  border: 1px solid rgba(24, 32, 31, .2);
  border-radius: 8px;
  font-size: .88rem;
  background: #fff;
}
.shop-sort-select {
  padding: 9px 12px;
  border: 1px solid rgba(24, 32, 31, .2);
  border-radius: 8px;
  font-size: .86rem;
  background: #fff;
}
.shop-result-count { font-size: .82rem; color: var(--ink-soft); font-weight: 600; margin-left: auto; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.shop-card {
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border: 1px solid rgba(24, 32, 31, .12);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(24, 32, 31, .1); }
.shop-card-media { position: relative; overflow: hidden; background: #ede7da; }
.shop-card-media img { width: 100%; height: auto; aspect-ratio: 3 / 4 !important; object-fit: cover; object-position: center 18%; display: block; transition: transform .28s ease; }
.shop-card:hover .shop-card-media img { transform: scale(1.03); }
.shop-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(24, 32, 31, .84);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.shop-card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.shop-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; color: #8b6914; font-weight: 700; margin-bottom: 5px; }
.shop-card-stars { color: #c58b1a; }
.shop-card-title { font-family: var(--serif); font-size: 1rem; font-weight: 400; line-height: 1.32; color: var(--ink); margin: 0 0 10px; flex: 1; }
.shop-card-price { display: flex; align-items: baseline; gap: 8px; }
.shop-card-price strong { font-size: .98rem; color: var(--ink); }
.shop-card-price span { font-size: .8rem; color: var(--ink-soft); text-decoration: line-through; }

@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------- PDP Layout ---------- */
.pdp-section { padding: calc(var(--header, 72px) + 26px) 0 48px; background: var(--paper, #f7f4ed); }
.pdp-shell { width: min(calc(100% - 36px), var(--max, 1220px)); margin: 0 auto; }
.pdp-breadcrumb { margin-bottom: 20px; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 42px; align-items: start; }
.pdp-gallery { position: sticky; top: calc(var(--header, 72px) + 18px); }
.pdp-main-frame { position: relative; border-radius: 12px; overflow: hidden; background: #ede7da; box-shadow: 0 16px 38px rgba(24, 32, 31, .1); }
.pdp-main-frame img { width: 100%; height: auto; display: block; object-fit: cover; }
.pdp-frame-badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 6px; background: rgba(24, 32, 31, .86); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }

.pdp-trust-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.pdp-trust-bar > div { background: #fffdf9; border: 1px solid rgba(24, 32, 31, .12); border-radius: 8px; padding: 10px 12px; }
.pdp-trust-bar strong { display: block; font-size: .8rem; color: var(--ink); }
.pdp-trust-bar span { display: block; font-size: .72rem; color: var(--ink-soft); margin-top: 2px; }

.pdp-buybox { background: #fffdf9; border: 1px solid rgba(24, 32, 31, .12); border-radius: 14px; padding: 26px 28px; box-shadow: 0 12px 30px rgba(24, 32, 31, .05); }
.pdp-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8b6914; margin-bottom: 6px; }
.pdp-title { font-family: var(--serif); font-size: clamp(1.6rem, 2.5vw, 2.2rem); line-height: 1.18; font-weight: 400; color: var(--ink); margin: 0 0 10px; }
.pdp-rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .84rem; }
.pdp-stars { color: #c58b1a; letter-spacing: 1px; }
.pdp-rating-num { color: var(--ink-soft); }
.pdp-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.pdp-price-now { font-size: 1.65rem; font-family: var(--serif); color: var(--ink); }
.pdp-price-was { font-size: .95rem; color: var(--ink-soft); text-decoration: line-through; }
.pdp-price-save { font-size: .72rem; font-weight: 700; background: #fdebed; color: #b83b4a; padding: 3px 8px; border-radius: 999px; }
.pdp-desc { font-size: .92rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 20px; }

.pdp-step { margin-bottom: 18px; }
.pdp-step-label { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.pdp-req { font-size: .72rem; font-weight: 600; color: #b83b4a; }
.pdp-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-pill { padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(24, 32, 31, .2); background: #fff; color: var(--ink); font-size: .84rem; font-weight: 600; cursor: pointer; }
.pdp-pill small { font-size: .7rem; color: #8b6914; margin-left: 3px; }
.pdp-pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pdp-pill.is-active small { color: #f5d380; }

.pdp-upload-zone { position: relative; border: 2px dashed rgba(139, 105, 20, .45); border-radius: 10px; background: #faf7f0; padding: 18px; text-align: center; cursor: pointer; transition: border-color .16s ease; }
.pdp-upload-zone.is-dragover { border-color: var(--ink); background: #f3ede0; }
.pdp-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.pdp-upload-empty strong { display: block; font-size: .9rem; color: var(--ink); }
.pdp-upload-empty span { display: block; font-size: .76rem; color: var(--ink-soft); margin-top: 4px; }
.pdp-upload-previews { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: relative; z-index: 2; }
.pdp-thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(24, 32, 31, .16); position: relative; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp-textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(24, 32, 31, .2); border-radius: 8px; font-size: .86rem; font-family: inherit; resize: vertical; }
.pdp-cta-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pdp-btn-primary, .pdp-btn-instant, .pdp-btn-submit { width: 100%; text-align: center; justify-content: center; }

.pdp-instant-form { margin-top: 14px; padding: 14px; border-radius: 10px; background: #f8f5ec; border: 1px solid rgba(139, 105, 20, .25); }
.pdp-instant-hint { font-size: .8rem; color: var(--ink-soft); margin: 0 0 10px; }
.pdp-instant-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pdp-instant-fields input { padding: 9px 11px; border: 1px solid rgba(24, 32, 31, .2); border-radius: 6px; font-size: .84rem; background: #fff; }
.pdp-instant-status { font-size: .82rem; margin: 8px 0 0; font-weight: 600; }
.pdp-guarantee-foot { font-size: .76rem; color: var(--ink-soft); text-align: center; margin: 14px 0 0; }
.pdp-related-section { padding-top: 36px; background: #fff; }

@media (max-width: 900px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 24px; }
  .pdp-gallery { position: static; }
  .pdp-trust-bar { grid-template-columns: 1fr; }
  .pdp-instant-fields { grid-template-columns: 1fr; }
}

/* ---------- Crown & Paw PDP Enhancements (Digital Download Edition) ---------- */
.pdp-thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.pdp-thumb-btn {
  padding: 0 !important;
  border: 2px solid transparent;
  border-radius: 8px !important;
  overflow: hidden;
  background: #ede7da;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  transition: border-color .16s ease, transform .16s ease;
}
.pdp-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb-btn.is-active { border-color: #0ca678; }

.pdp-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(24, 32, 31, .14);
  background: rgba(255, 255, 255, .92);
  color: #18201f;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
.pdp-carousel-arrow.prev { left: 12px; }
.pdp-carousel-arrow.next { right: 12px; }

.pdp-create-heading {
  font-family: var(--serif);
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--ink);
  margin: 14px 0 14px;
}
.pdp-digital-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 2px solid #0ca678;
  border-radius: 8px;
  background: #f4fbf8;
  margin-bottom: 12px;
}
.pdp-digital-box strong { display: block; font-size: .92rem; color: var(--ink); }
.pdp-digital-box span { display: block; font-size: .76rem; color: var(--ink-soft); margin-top: 2px; }
.pdp-digital-box .pdp-digital-price { font-weight: 700; font-size: .98rem; color: var(--ink); white-space: nowrap; }

.pdp-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: .74rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.pdp-or-divider::before,
.pdp-or-divider::after { content: ""; flex: 1; height: 1px; background: rgba(24, 32, 31, .12); }

.pdp-later-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(24, 32, 31, .16);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.pdp-later-box strong { display: block; font-size: .86rem; color: var(--ink); }
.pdp-later-box span { display: block; font-size: .75rem; color: var(--ink-soft); }

.pdp-rush-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1.5px solid #f08a96;
  border-radius: 8px;
  background: #fff7f8;
  cursor: pointer;
}
.pdp-rush-box.is-checked { border-color: #d94e61; background: #fff0f2; }
.pdp-rush-left { display: flex; align-items: flex-start; gap: 10px; }
.pdp-rush-left strong { display: block; font-size: .88rem; color: var(--ink); }
.pdp-rush-left span { display: block; font-size: .76rem; color: var(--ink-soft); margin-top: 2px; }
.pdp-rush-price { font-weight: 700; font-size: .88rem; color: #0ca678; white-space: nowrap; }

.pdp-summary-table {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: #faf9f6;
  border: 1px solid rgba(24, 32, 31, .1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .84rem;
}
.pdp-summary-row { display: flex; justify-content: space-between; color: var(--ink-soft); }
.pdp-summary-row.is-was span:last-child { text-decoration: line-through; }
.pdp-summary-row.is-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(24, 32, 31, .1);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.pdp-summary-row.is-total span:last-child { color: #d94e61; }
.pdp-summary-row.is-save { color: #d94e61; font-weight: 600; font-size: .8rem; }

.pdp-btn-cp-green {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  background: #0ca678 !important;
  color: #fff !important;
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease;
}
.pdp-btn-cp-green:hover { background: #099268 !important; }

.pdp-timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(24, 32, 31, .1);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.pdp-timeline-grid span { display: block; font-size: .72rem; color: var(--ink-soft); }
.pdp-timeline-grid strong { display: block; font-size: .82rem; color: var(--ink); margin-top: 2px; }

.pdp-tabs-wrap { margin-top: 22px; border-top: 1px solid rgba(24, 32, 31, .12); padding-top: 16px; }
.pdp-tab-nav { display: flex; gap: 18px; border-bottom: 1px solid rgba(24, 32, 31, .12); margin-bottom: 14px; }
.pdp-tab-btn {
  background: none;
  border: none;
  padding: 8px 0;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.pdp-tab-btn.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.pdp-tab-panel { display: none; font-size: .88rem; line-height: 1.7; color: var(--ink-soft); }
.pdp-tab-panel.is-active { display: block; }
.pdp-tab-panel h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin: 0 0 8px; }
.pdp-tab-panel ul { margin: 8px 0 12px 18px; }
