.nav-links a.active {
  color: var(--pink-strong);
}

.cart-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(173, 241, 249, 0.42);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.cart-icon-button:hover,
.cart-icon-button:focus-visible {
  background: var(--pink);
  outline: none;
  transform: translateY(-2px) rotate(-4deg);
}

.cart-icon-button svg {
  width: 23px;
  height: 23px;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  transition: transform 180ms ease;
}

.cart-badge[hidden] {
  display: none;
}

.cart-badge.pop {
  transform: scale(1.35);
}

.shop-page {
  background: linear-gradient(180deg, #fff 0%, #f8fdff 55%, #fff 100%);
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  margin-top: 46px;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--cyan) 0%, #f5fbff 50%, #ffe3fb 100%);
  box-shadow: var(--shadow);
}

.shop-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 14px 0 0 var(--cyan-deep), 28px 0 0 #b2f7ef;
}

.shop-hero h1 {
  max-width: 820px;
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 900;
  line-height: 0.95;
}

.shop-hero p {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(17px, 1.8vw, 21px);
}

.shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.shop-primary-link,
.shop-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.shop-primary-link {
  background: var(--pink);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(249, 177, 249, 0.36);
}

.shop-secondary-link {
  border: 2px solid rgba(33, 47, 95, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.shop-primary-link:hover,
.shop-secondary-link:hover {
  transform: translateY(-3px);
}

.shop-primary-link:hover {
  background: var(--ink);
  color: white;
}

.shop-hero-showcase {
  display: grid;
  gap: 18px;
}

.hero-product-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(33, 47, 95, 0.12);
}

.hero-product-card:nth-child(2) {
  transform: translateX(38px);
}

.hero-product-card img,
.shop-hero-photo img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.hero-product-card img {
  height: 110px;
}

.hero-product-card strong {
  display: block;
  font-size: 18px;
}

.hero-product-card span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 14px;
}

.shop-hero-photo {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(33, 47, 95, 0.18);
}

.shop-hero-photo img {
  height: 390px;
}

.shop-section,
.shop-categories,
.shop-cta {
  padding: 88px 0 0;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 30px;
}

.section-heading-row h2,
.shop-categories h2,
.shop-cta h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
}

.section-heading-row p,
.shop-cta p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  overflow: hidden;
  border: 2px solid rgba(33, 47, 95, 0.08);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.product-card-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.product-card:hover,
.product-card:focus-within {
  border-color: var(--pink);
  box-shadow: 0 24px 60px rgba(33, 47, 95, 0.15);
  transform: translateY(-7px);
}

.product-image {
  background: linear-gradient(135deg, #f3fcff, #ffe9fb);
}

.product-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.product-card-body {
  padding: 22px;
}

.tag,
.product-note {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag {
  padding: 5px 11px;
  color: var(--ink);
  background: #b2f7ef;
}

.product-note {
  margin: 14px 0 10px;
  padding: 6px 12px;
  background: #ffe3fb;
}

.product-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.14;
}

.product-card .price {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.product-card .desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-grid article {
  padding: 30px;
  border-radius: 16px;
  background: linear-gradient(135deg, white, #f4fdff);
  box-shadow: var(--shadow);
}

.category-grid article:nth-child(2) {
  background: linear-gradient(135deg, #ffe7fb, white);
}

.category-grid article:nth-child(3) {
  background: linear-gradient(135deg, #d9fbf7, white);
}

.category-grid span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--pink);
  font-weight: 900;
}

.category-grid h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.shop-cta {
  margin-top: 88px;
  margin-bottom: 110px;
  padding: 58px 34px;
  border-radius: 22px;
  color: white;
  text-align: center;
  background: linear-gradient(135deg, var(--ink), #37498a);
}

.shop-cta h2 {
  color: white;
}

.shop-cta p {
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.82);
}

.product-overlay,
.cart-sidebar-overlay,
.stripe-checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(33, 47, 95, 0.52);
}

.product-overlay.open,
.cart-sidebar-overlay.open,
.stripe-checkout-overlay.open {
  display: flex;
}

.product-overlay {
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-detail-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  width: min(900px, 100%);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: 0 30px 90px rgba(33, 47, 95, 0.28);
}

.product-detail-close,
.cart-sidebar-close,
.stripe-x-btn {
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.product-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  font-size: 26px;
}

.product-detail-image {
  min-height: 360px;
  background: linear-gradient(135deg, #f4fdff, #ffe8fb);
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.product-detail-info {
  overflow-y: auto;
  padding: 38px;
}

.product-detail-info h2 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.05;
}

.product-detail-info .price {
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 900;
}

.product-detail-info .desc {
  color: var(--ink-soft);
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 2px solid rgba(33, 47, 95, 0.1);
  border-radius: 999px;
}

.quantity-selector button {
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.qty-value {
  min-width: 42px;
  text-align: center;
  font-weight: 900;
}

.add-to-cart-btn,
.cart-checkout-btn,
.stripe-primary-btn,
.stripe-secondary-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.add-to-cart-btn {
  flex: 1;
  min-width: 180px;
  padding: 15px 24px;
  color: var(--ink);
  background: var(--pink);
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -430px;
  z-index: 101;
  display: flex;
  flex-direction: column;
  width: 410px;
  max-width: 92vw;
  height: 100%;
  background: white;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.12);
  transition: right 240ms ease;
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar-header,
.cart-sidebar-footer {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(33, 47, 95, 0.08);
}

.cart-sidebar-footer {
  border-top: 1px solid rgba(33, 47, 95, 0.08);
  border-bottom: 0;
}

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-sidebar-header h3 {
  margin: 0;
  font-size: 22px;
}

.cart-sidebar-close {
  width: 36px;
  height: 36px;
  font-size: 24px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 24px;
}

.cart-empty {
  padding: 70px 20px;
  color: var(--ink-soft);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(33, 47, 95, 0.08);
}

.cart-item-image {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #f3fcff, #ffe8fb);
}

.cart-item h4 {
  margin: 4px 0;
  font-size: 15px;
}

.cart-item-tag,
.cart-item-qty {
  color: var(--ink-soft);
  font-size: 12px;
}

.cart-item-price {
  display: block;
  font-weight: 900;
}

.cart-item-remove {
  border: 0;
  color: #b7b7b7;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 900;
}

.cart-checkout-btn {
  width: 100%;
  padding: 15px;
  color: var(--ink);
  background: var(--pink);
}

.floating-checkout {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 20px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  box-shadow: 0 20px 40px rgba(33, 47, 95, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-checkout.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-checkout-label,
.floating-checkout-title {
  display: block;
  text-align: left;
}

.floating-checkout-label {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.floating-checkout-title {
  font-weight: 900;
}

.floating-checkout-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-checkout-count {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--pink);
  font-size: 12px;
  font-weight: 900;
}

.stripe-checkout-overlay {
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.stripe-checkout-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 30px 90px rgba(33, 47, 95, 0.28);
}

.stripe-x-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 38px;
  height: 38px;
  font-size: 24px;
}

.stripe-main,
.stripe-summary {
  overflow-y: auto;
  padding: clamp(26px, 4vw, 44px);
}

.stripe-summary {
  border-left: 1px solid rgba(33, 47, 95, 0.08);
  background: linear-gradient(160deg, #f3fdff, #ffe8fb);
}

.stripe-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #b2f7ef;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stripe-main h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.stripe-main p,
.stripe-note {
  color: var(--ink-soft);
}

.stripe-flow-card {
  display: grid;
  gap: 0;
  margin: 24px 0;
  border: 2px solid rgba(33, 47, 95, 0.08);
  border-radius: 18px;
  background: white;
}

.stripe-flow-card div,
.stripe-line-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(33, 47, 95, 0.08);
}

.stripe-flow-card div:last-child,
.stripe-line-item:last-child {
  border-bottom: 0;
}

.stripe-flow-card span,
.stripe-line-item span {
  color: var(--ink-soft);
  font-size: 13px;
}

.stripe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stripe-primary-btn,
.stripe-secondary-btn {
  padding: 14px 22px;
}

.stripe-primary-btn {
  color: var(--ink);
  background: var(--pink);
}

.stripe-secondary-btn {
  border: 2px solid rgba(33, 47, 95, 0.1);
  background: white;
}

.stripe-summary h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.stripe-line-item h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.stripe-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 2px solid rgba(33, 47, 95, 0.1);
  font-size: 20px;
  font-weight: 900;
}

.stripe-note {
  margin-top: 20px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  z-index: 120;
  padding: 14px 24px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(80px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.success-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  margin-top: 54px;
  padding: clamp(30px, 5vw, 62px);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--cyan) 0%, #f8fdff 52%, #ffe3fb 100%);
  box-shadow: var(--shadow);
}

.success-hero h1 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.95;
}

.success-hero p {
  max-width: 680px;
  color: var(--ink-soft);
}

.success-panel {
  padding: 28px;
  border: 2px solid rgba(33, 47, 95, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.success-panel h2 {
  margin: 0 0 12px;
}

.success-panel span {
  display: block;
  word-break: break-all;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(173, 241, 249, 0.44);
  font-size: 13px;
  font-weight: 700;
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 34px 0 110px;
}

.next-steps article {
  padding: 24px;
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}

.next-steps strong,
.next-steps span {
  display: block;
}

.next-steps span {
  margin-top: 8px;
  color: var(--ink-soft);
}

.reveal-ready {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 500ms ease;
}

@media (max-width: 1060px) {
  .shop-hero,
  .product-detail-card,
  .stripe-checkout-panel,
  .success-hero {
    grid-template-columns: 1fr;
  }

  .shop-hero-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .hero-product-card {
    grid-template-columns: 1fr;
  }

  .hero-product-card:nth-child(2) {
    transform: none;
  }

  .stripe-summary {
    border-top: 1px solid rgba(33, 47, 95, 0.08);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .cart-icon-button {
    margin: 0 auto;
  }

  .shop-hero {
    margin-top: 28px;
    padding: 24px;
  }

  .shop-hero h1 {
    font-size: 42px;
  }

  .shop-hero-showcase,
  .product-grid,
  .category-grid,
  .next-steps {
    grid-template-columns: 1fr;
  }

  .product-image img {
    height: 210px;
  }

  .product-detail-card,
  .stripe-checkout-panel {
    max-height: 94vh;
  }

  .product-detail-image,
  .product-detail-image img {
    min-height: 230px;
  }

  .product-detail-info {
    padding: 26px;
  }

  .section-heading-row {
    display: block;
  }

  .floating-checkout {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: space-between;
  }

  .stripe-checkout-overlay {
    align-items: flex-start;
    padding: 10px;
  }
}
