:root {
  --pink: #f73d82;
  --pink-dark: #ad1d58;
  --pink-pale: #ffe3ef;
  --blue: #68c9f2;
  --blue-dark: #126987;
  --blue-pale: #dff5ff;
  --yellow: #ffbd08;
  --purple: #9c5dca;
  --turquoise: #03a9ae;
  --navy: #164765;
  --ink: #29445b;
  --muted: #60798d;
  --line: #cfeaf4;
  --cream: #fff8fc;
  --green: #087f7f;
  --shadow: 0 15px 38px rgba(42, 113, 147, 0.13);
  font-family: "Trebuchet MS", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 4% 18%, rgba(255, 114, 179, .13) 0 75px, transparent 76px),
    radial-gradient(circle at 96% 30%, rgba(114, 211, 242, .16) 0 110px, transparent 111px),
    linear-gradient(180deg, #fff7fb 0 430px, #f5fcff 760px, #fff 1050px);
}
button, select, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 9px clamp(18px, 5vw, 72px);
  background: linear-gradient(100deg, rgba(213, 243, 255, .97), rgba(255, 222, 238, .97));
  border-bottom: 2px solid rgba(255, 255, 255, .92);
  box-shadow: 0 7px 24px rgba(69, 150, 181, .1);
  backdrop-filter: blur(14px);
}
.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--yellow), var(--turquoise), var(--blue));
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.45rem; font-weight: 900; letter-spacing: -0.04em; }
.brand-logo { width: 68px; height: 68px; flex: 0 0 auto; border: 3px solid #fff; border-radius: 18px; object-fit: cover; box-shadow: 0 7px 18px rgba(45, 122, 155, .22); }
.brand-name { white-space: nowrap; font-size: 1.25rem; letter-spacing: -.03em; }
.brand-susi { color: var(--pink-dark); }
.brand-kids { color: var(--blue-dark); }

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 12px 8px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-dark), var(--pink) 48%, var(--purple));
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(24, 50, 74, 0.2);
}

.cart-count { display: grid; place-items: center; min-width: 29px; height: 29px; padding: 0 6px; border: 2px solid #fff; border-radius: 50%; color: var(--navy); background: var(--yellow); font-size: 0.82rem; box-shadow: 0 3px 0 rgba(0,0,0,.08); }

main { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }
.welcome {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 34px;
  align-items: center;
  overflow: hidden;
  margin-top: 34px;
  padding: clamp(42px, 7vw, 76px) clamp(26px, 5vw, 62px);
  border: 4px solid #fff;
  border-radius: 38px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255,255,255,.74) 0 6px, transparent 7px),
    radial-gradient(circle at 19% 76%, rgba(255,255,255,.62) 0 4px, transparent 5px),
    repeating-conic-gradient(from -18deg at 24% 52%, rgba(255,255,255,.24) 0 12deg, rgba(104,201,242,.08) 12deg 24deg),
    linear-gradient(125deg, #bfeaff 0%, #e7f8ff 43%, #ffdaea 100%);
  box-shadow: 0 22px 52px rgba(63, 146, 180, .17);
}
.welcome::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -80px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 134, 187, .19);
}
.welcome-copy, .promo-card { position: relative; z-index: 2; }
.decor-star { position: absolute; z-index: 1; color: var(--yellow); line-height: 1; filter: drop-shadow(0 3px 0 rgba(255,255,255,.8)); }
.star-one { top: 18px; right: 38%; font-size: 2.5rem; transform: rotate(12deg); }
.star-two { bottom: 23px; left: 43%; color: var(--pink); font-size: 2rem; }
.star-three { top: 34px; left: 22px; color: var(--turquoise); font-size: 1.55rem; transform: rotate(-12deg); }
.eyebrow { margin: 0 0 8px; color: var(--pink-dark); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.12em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; max-width: 760px; color: var(--navy); font-size: clamp(2.35rem, 5.6vw, 4.7rem); line-height: 1; letter-spacing: -0.055em; text-shadow: 0 3px 0 rgba(255,255,255,.88); }
.welcome-copy > p:last-child { max-width: 720px; margin: 22px 0 0; color: #48677e; font-size: 1.08rem; line-height: 1.65; }

.promo-card { display: grid; gap: 10px; padding: 25px; border: 3px solid rgba(255,255,255,.95); border-radius: 26px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); transform: rotate(1deg); }
.promo-card strong { color: var(--pink-dark); font-size: 1.08rem; }
.promo-card strong span { color: var(--yellow); text-shadow: 0 1px 0 #b88900; }
.promo-card > span { padding: 10px 12px; border-radius: 13px; color: var(--navy); background: var(--pink-pale); font-size: 0.92rem; }
.promo-card > span:last-child { background: var(--blue-pale); }

.category-bar { position: sticky; top: 84px; z-index: 20; display: flex; gap: 10px; overflow-x: auto; padding: 18px 0; background: linear-gradient(rgba(255,255,255,.96) 72%, rgba(255,255,255,.82)); scrollbar-width: none; }
.category-bar::-webkit-scrollbar { display: none; }
.category-chip { flex: 0 0 auto; padding: 11px 17px; border: 2px solid #bee8f7; border-radius: 999px; color: var(--blue-dark); background: var(--blue-pale); font-size: 0.9rem; font-weight: 900; }
.category-chip:nth-child(even) { border-color: #ffd0e5; color: var(--pink-dark); background: var(--pink-pale); }
.category-chip[aria-pressed="true"] { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--pink), var(--purple) 48%, var(--turquoise)); box-shadow: 0 8px 18px rgba(185, 36, 105, .2); }

.catalog { padding: 24px 0 76px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 8px 0 28px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -0.04em; }
.result-count { margin: 0; color: var(--muted); font-size: 0.92rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 3px solid #fff; outline: 1px solid #d9edf5; border-radius: 26px; background: #fff; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:nth-child(4n + 1) { outline: 3px solid #ffc9df; }
.product-card:nth-child(4n + 2) { outline: 3px solid #bdeaff; }
.product-card:nth-child(4n + 3) { outline: 3px solid #d9c2ef; }
.product-card:nth-child(4n + 4) { outline: 3px solid #ffe49a; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 19px 40px rgba(24, 50, 74, 0.14); }
.product-image-wrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(145deg, #fff1f7, #ffe4f1); }
.product-card[data-category="adult"] .product-image-wrap { background: var(--blue-pale); }
.product-card[data-category="summer"] .product-image-wrap { background: #ebf8f2; }
.product-image { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-code { position: absolute; top: 14px; left: 14px; padding: 7px 10px; border: 2px solid rgba(255,255,255,.9); border-radius: 999px; color: #fff; background: rgba(21, 59, 89, .9); font-size: .78rem; font-weight: 900; letter-spacing: .03em; }
.promo-badge { position: absolute; top: 14px; right: 14px; max-width: 145px; padding: 7px 10px; border: 2px solid rgba(255,255,255,.88); border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--pink-dark), var(--purple)); font-size: .72rem; font-weight: 900; text-align: center; }

.product-info { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 20px; }
.product-info h3 { margin: 0; color: var(--navy); font-size: 1.08rem; line-height: 1.25; }
.product-type { min-height: 21px; margin: -8px 0 0; color: var(--muted); font-size: .85rem; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; }
.price { color: var(--pink-dark); font-size: 1.55rem; font-weight: 900; letter-spacing: -.04em; }
.product-card[data-category="adult"] .price { color: var(--blue-dark); }
.product-card[data-category="summer"] .price { color: var(--turquoise); }
.unit { color: var(--muted); font-size: .76rem; }
.size-field { display: grid; gap: 7px; color: var(--ink); font-size: .83rem; font-weight: 800; }
.size-select { width: 100%; min-height: 45px; padding: 9px 38px 9px 12px; border: 1px solid #dbe1e7; border-radius: 13px; color: var(--ink); background: #fff; }
.add-button { min-height: 48px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--pink-dark), var(--pink)); font-weight: 900; box-shadow: 0 7px 16px rgba(185, 36, 105, .18); }
.product-card[data-category="adult"] .add-button { background: linear-gradient(135deg, var(--blue-dark), var(--turquoise)); }
.product-card[data-category="summer"] .add-button { background: linear-gradient(135deg, var(--turquoise), var(--purple)); }
.add-button:hover { filter: brightness(.94); }
.add-button:focus-visible, .category-chip:focus-visible, .cart-button:focus-visible, .checkout-button:focus-visible, .icon-button:focus-visible { outline: 3px solid #ffca55; outline-offset: 3px; }

.site-footer { position: relative; overflow: hidden; padding: 52px 20px; color: #eaf9ff; background: linear-gradient(125deg, #155675, var(--turquoise) 45%, var(--purple) 72%, var(--pink-dark)); text-align: center; }
.site-footer::before, .site-footer::after { position: absolute; color: rgba(255,255,255,.25); font-size: 4rem; line-height: 1; }
.site-footer::before { content: "★"; top: 24px; left: 7%; transform: rotate(-12deg); }
.site-footer::after { content: "✦"; right: 8%; bottom: 28px; transform: rotate(10deg); }
.footer-brand { justify-content: center; margin-bottom: 18px; font-size: 1.75rem; }
.footer-brand .brand-logo { width: 72px; height: 72px; }
.footer-brand .brand-name { font-size: 1.55rem; }
.footer-brand .brand-susi, .footer-brand .brand-kids { color: #fff; }
.site-footer p { margin: 7px 0; color: #fff; }
.site-footer small { display: block; margin-top: 18px; }

.cart-dialog { width: min(580px, 100%); max-width: none; height: 100%; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: #f4fbff; box-shadow: -16px 0 50px rgba(24, 50, 74, .22); }
.cart-dialog::backdrop { background: rgba(15, 32, 47, .52); backdrop-filter: blur(3px); }
.cart-shell { display: flex; flex-direction: column; height: 100%; background: linear-gradient(180deg, #e4f7ff 0, #fff2f8 260px, #fafdff 100%); }
.cart-header { position: relative; display: flex; align-items: center; justify-content: space-between; overflow: hidden; padding: 25px 24px 20px; border-bottom: 4px solid #fff; background: linear-gradient(120deg, #c8efff, #ffe0ed); }
.cart-header::before { content: "★"; position: absolute; top: 9px; right: 88px; color: var(--yellow); font-size: 1.9rem; transform: rotate(12deg); filter: drop-shadow(0 2px 0 #fff); }
.cart-header::after { content: "✦"; position: absolute; right: 138px; bottom: 7px; color: var(--turquoise); font-size: 1.25rem; }
.cart-header > * { position: relative; z-index: 1; }
.cart-header h2 { margin: 0; color: var(--navy); font-size: 2rem; }
.icon-button { display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--pink); box-shadow: 0 7px 16px rgba(173, 29, 88, .2); font-size: 1.8rem; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; }
.empty-cart { display: grid; place-items: center; min-height: 280px; padding: 24px; border: 3px dashed #bdeaff; border-radius: 26px; color: var(--muted); background: rgba(255,255,255,.76); text-align: center; }
.empty-cart-icon { display: block; margin-bottom: 12px; font-size: 3.1rem; filter: drop-shadow(0 5px 0 rgba(156, 93, 202, .12)); }
.empty-cart strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 1.25rem; }
.cart-item { display: grid; grid-template-columns: 86px 1fr auto; gap: 13px; align-items: center; margin-bottom: 14px; padding: 13px; border: 3px solid #fff; outline: 2px solid #c5ebf9; border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 9px 22px rgba(34, 112, 148, .1); }
.cart-item:nth-child(even) { outline-color: #ffc9df; }
.cart-item:nth-child(3n) { outline-color: #d9c2ef; }
.cart-thumb { width: 86px; height: 86px; border: 2px solid #fff; border-radius: 16px; object-fit: contain; background: linear-gradient(145deg, var(--pink-pale), var(--blue-pale)); box-shadow: 0 4px 12px rgba(42, 113, 147, .1); }
.cart-item h3 { margin: 0 0 5px; color: var(--navy); font-size: .96rem; }
.cart-meta { margin: 0; color: var(--muted); font-size: .78rem; }
.cart-line-price { display: block; margin-top: 5px; color: var(--pink-dark); font-size: .9rem; font-weight: 900; }
.quantity { display: grid; grid-template-columns: 32px 32px 32px; align-items: center; border: 2px solid #c9eaf6; border-radius: 999px; overflow: hidden; background: #fff; }
.quantity button { height: 34px; border: 0; color: var(--navy); background: var(--blue-pale); font-weight: 900; }
.quantity button:last-child { background: var(--pink-pale); }
.quantity span { text-align: center; font-size: .85rem; font-weight: 800; }
.remove-button { grid-column: 3; justify-self: end; padding: 4px 0; border: 0; color: #9a4c67; background: transparent; font-size: .76rem; text-decoration: underline; }

.checkout-panel { position: relative; padding: 22px 24px 24px; border-top: 4px solid transparent; background: linear-gradient(#fff8fc, #fff); box-shadow: 0 -10px 28px rgba(24, 50, 74, .07); }
.checkout-panel::before { content: ""; position: absolute; top: -4px; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--pink), var(--purple), var(--yellow), var(--turquoise), var(--blue)); }
.customer-fields { display: grid; grid-template-columns: 1fr 180px; gap: 12px; }
.customer-fields label { display: grid; gap: 6px; color: var(--ink); font-size: .78rem; font-weight: 800; }
.customer-fields input { min-height: 45px; width: 100%; padding: 9px 11px; border: 2px solid #cdeaf5; border-radius: 13px; color: var(--ink); background: #fff; }
.totals { display: grid; gap: 7px; margin: 17px 0 0; }
.total-row { display: flex; justify-content: space-between; gap: 20px; font-size: .9rem; }
.total-row.discount { color: var(--green); font-weight: 800; }
.total-row.grand { margin-top: 3px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--navy); font-size: 1.2rem; font-weight: 900; }
.shipping-note { margin: 9px 0 14px; color: var(--muted); font-size: .74rem; }
.checkout-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 57px; padding: 12px 18px; border: 3px solid #fff; border-radius: 17px; color: #fff; background: linear-gradient(135deg, #138c4e, #13a879 58%, var(--turquoise)); box-shadow: 0 9px 20px rgba(19, 140, 78, .22); font-weight: 900; }
.checkout-button:disabled { cursor: not-allowed; opacity: .45; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 26px; transform: translate(-50%, 30px); min-width: min(360px, calc(100% - 32px)); padding: 13px 18px; border-radius: 999px; color: #fff; background: var(--navy); text-align: center; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome { grid-template-columns: 1fr; }
  .promo-card { max-width: 540px; }
}

@media (max-width: 580px) {
  body { background: linear-gradient(180deg, #fff7fb 0 520px, #f5fcff 780px, #fff 1000px); }
  .site-header { min-height: 72px; padding: 7px 13px; }
  .brand { font-size: 1.2rem; }
  .brand-logo { width: 54px; height: 54px; border-radius: 15px; }
  .brand-name { display: none; }
  .cart-button { min-height: 43px; padding-left: 13px; }
  .cart-button > span:nth-child(2) { display: none; }
  main { width: min(100% - 24px, 1220px); }
  .welcome { gap: 24px; margin-top: 18px; padding: 42px 22px 28px; border-radius: 28px; }
  .welcome-copy > p:last-child { font-size: 1rem; }
  .promo-card { padding: 19px; transform: none; }
  .star-one { right: 18px; }
  .star-two { left: auto; right: 26px; bottom: 10px; }
  .category-bar { top: 72px; }
  .section-heading { align-items: start; }
  .result-count { padding-top: 9px; }
  .product-grid { grid-template-columns: 1fr; gap: 17px; }
  .product-card { display: grid; grid-template-columns: minmax(132px, 44%) 1fr; border-radius: 20px; }
  .product-image-wrap { height: 100%; min-height: 270px; aspect-ratio: auto; }
  .product-info { padding: 16px; gap: 12px; }
  .promo-badge { top: auto; right: 8px; bottom: 8px; left: 8px; max-width: none; }
  .price { font-size: 1.35rem; }
  .product-type { min-height: 0; }
  .add-button { min-height: 45px; }
  .cart-dialog { width: 100%; }
  .cart-header { padding: 18px 16px 14px; }
  .cart-items { padding: 12px 16px; }
  .cart-item { grid-template-columns: 70px 1fr; gap: 11px; padding: 12px; }
  .cart-thumb { width: 70px; height: 70px; }
  .quantity { grid-column: 2; grid-row: 2; justify-self: start; }
  .remove-button { grid-column: 2; grid-row: 2; justify-self: end; align-self: center; }
  .checkout-panel { padding: 14px 16px 18px; }
  .customer-fields { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .product-card { grid-template-columns: 1fr; }
  .product-image-wrap { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
