:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6c7280;
  --border: #e6e8ee;
  --accent: #111827;
  --brand: #111827;
  --toast: rgba(17, 24, 39, 0.92);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand span {
  font-weight: 300;
  color: var(--muted);
}

nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-group {
  position: relative;
}

.nav-toggle {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  padding: 0.25rem 0.5rem;
}

.nav-toggle:focus {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.mega-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.75rem);
  width: 320px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all 0.2s ease;
  background-clip: padding-box;
}

.nav-group:hover .mega-menu,
.nav-group:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu a {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.35rem 0;
}

.search-group {
  position: relative;
  flex: 1;
  max-width: 340px;
}

.search-group input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
}

.search-group input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
}

.cart-count {
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.brand-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem 0;
  margin-bottom: 3rem;
  background: linear-gradient(120deg, rgba(247, 248, 252, 0.85), rgba(255, 255, 255, 0.7));
}

.brand-marquee::before,
.brand-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.brand-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.brand-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.brand-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: marquee 32s linear infinite;
  width: max-content;
  padding-left: 4rem;
}

.brand-track img {
  height: 96px;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.brand-track img:hover {
  transform: scale(1.05);
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--muted);
  max-width: 640px;
  margin: 0.5rem auto 0;
  font-size: 1.05rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

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

.product-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
}

.product-card .image-wrap {
  position: relative;
  padding: 1.25rem;
}

.product-card img {
  border-radius: 0.75rem;
}

.brand-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 90px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(230, 232, 238, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
}

.brand-badge img {
  width: 100%;
  height: auto;
}

.product-card .body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.product-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.product-price {
  font-weight: 600;
  font-size: 1.05rem;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
}

.btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.55rem 1.25rem;
  font-size: 0.95rem;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn.primary:hover {
  opacity: 0.9;
}

.btn:hover {
  border-color: var(--accent);
}

.about {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fafafa;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter-chip {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.4rem 1.15rem;
  background: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}

.product-gallery {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
}

.product-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.product-info h1 {
  margin-top: 0;
  font-size: 2rem;
  font-weight: 500;
}

.product-info .meta {
  color: var(--muted);
  margin: 0.75rem 0;
}

.product-info .price {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 1rem 0;
}

.product-info select {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  margin-bottom: 1rem;
}

.product-info .actions {
  display: flex;
  gap: 1rem;
}

.cart-table {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.cart-row {
  display: grid;
  grid-template-columns: 120px 1.4fr 0.8fr 0.6fr 0.4fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.cart-row:last-child {
  border-bottom: none;
}

.cart-row img {
  border-radius: 0.75rem;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.cart-qty button {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  align-items: center;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  background: #ffffff;
}

.card h2 {
  margin-top: 0;
  font-weight: 500;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input, select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

input:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.order-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.summary-items {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.toast {
  background: var(--toast);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  background: #f9f9fb;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.footer-brand h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
}

.footer-brand p {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-legal a {
  color: var(--muted);
}

.footer-bottom {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid #d1fae5;
  background: #ecfdf5;
  color: #047857;
}

.card-brand {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: -0.5rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  color: var(--muted);
}

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

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

  .product-info .actions {
    flex-direction: column;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .search-group {
    order: 3;
    width: 100%;
    max-width: none;
  }

  .brand-track {
    gap: 3rem;
    animation-duration: 28s;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

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

  .cart-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cart-row > * {
    justify-self: start;
  }

  .cart-summary {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-inner {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .brand-marquee {
    padding: 1.25rem 0;
  }

  .brand-track {
    gap: 2rem;
    padding-left: 2rem;
    animation-duration: 24s;
  }

  .brand-track img {
    height: 72px;
  }
}

/* =========================================================
   BAG EDIT THEME — vibrant luxury refresh
   ========================================================= */
:root {
  --bg: #f3b6d1;
  --text: #281322;
  --muted: #6f3d59;
  --border: rgba(77, 24, 58, 0.14);
  --accent: #5a1745;
  --brand: #5a1745;
  --toast: rgba(45, 10, 32, 0.94);
  --surface: #fff8fb;
  --vivid: #ff3f78;
  --violet: #8b35d9;
}

body {
  background:
    radial-gradient(circle at 85% 5%, rgba(255,255,255,.35), transparent 28%),
    linear-gradient(135deg, #f7c2dc 0%, #ee9fc5 45%, #e5a8e8 100%);
  color: var(--text);
}

header {
  background: rgba(243, 182, 209, 0.82);
  border-bottom-color: rgba(77, 24, 58, 0.12);
}

.brand span,
.product-meta,
.footer-brand p,
.footer-legal a {
  color: var(--muted);
}

.search-group input,
.cart-btn {
  background: rgba(255, 248, 251, 0.82);
  border-color: rgba(77, 24, 58, 0.16);
  color: var(--text);
}

.cart-count {
  background: var(--accent);
}

.mega-menu {
  background: var(--surface);
  border-color: var(--border);
}

.brand-marquee {
  background: rgba(255, 248, 251, 0.48);
  border-color: var(--border);
  box-shadow: 0 18px 50px rgba(94, 23, 69, 0.08);
}

.brand-marquee::before {
  background: linear-gradient(90deg, #f3b6d1, transparent);
}

.brand-marquee::after {
  background: linear-gradient(270deg, #e5a8e8, transparent);
}

.hero-bags {
  min-height: 520px;
  margin: 0 0 4rem;
  padding: 3.5rem;
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  background: linear-gradient(120deg, #ff3f78 0%, #e8429d 48%, #8b35d9 100%);
  color: #fff;
  box-shadow: 0 30px 70px rgba(105, 26, 84, .22);
}

.hero-bags::before,
.hero-bags::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-bags::before {
  width: 340px;
  height: 340px;
  right: -80px;
  top: -120px;
  background: rgba(255,255,255,.11);
}

.hero-bags::after {
  width: 260px;
  height: 260px;
  left: 38%;
  bottom: -170px;
  background: rgba(255,255,255,.09);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.hero-eyebrow,
.section-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero-eyebrow {
  margin-bottom: 1rem;
  opacity: .82;
}

.hero-bags h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: .92;
  font-weight: 500;
  letter-spacing: -.045em;
}

.hero-bags h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-bags p {
  max-width: 460px;
  margin: 1.5rem 0 2rem;
  color: rgba(255,255,255,.84);
  font-size: 1.05rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  background: #fff8fb;
  color: #5a1745;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(44, 9, 31, .15);
  text-decoration: none;
}

.hero-cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.hero-bag-stage {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  width: min(80%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  filter: blur(2px);
}

.hero-bag-image {
  position: relative;
  width: min(88%, 560px);
  max-height: 470px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 30px 25px rgba(49, 8, 35, .25));
  transform: rotate(-4deg) translateY(8px);
  transition: transform .45s ease;
}

.hero-bag-stage:hover .hero-bag-image {
  transform: rotate(-1deg) translateY(-4px) scale(1.025);
}

.hero-sticker {
  position: absolute;
  right: 4%;
  bottom: 4%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff8fb;
  color: #5a1745;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.35;
  transform: rotate(10deg);
  box-shadow: 0 15px 35px rgba(50, 8, 34, .18);
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-kicker {
  color: var(--muted);
  margin-bottom: .25rem;
}

.section-title {
  margin-top: 0;
  margin-bottom: 0;
}

.view-all {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.product-card,
.card,
.about {
  background: rgba(255, 248, 251, 0.9);
  border-color: var(--border);
  box-shadow: 0 14px 40px rgba(91, 24, 69, .06);
}

.product-card:hover {
  box-shadow: 0 24px 45px rgba(91, 24, 69, .13);
}

.btn.primary,
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
}

.about {
  background: rgba(255, 248, 251, 0.6);
}

footer {
  background: #4d123c;
  color: #fff8fb;
  border-top-color: rgba(255,255,255,.12);
}

footer .footer-brand p,
footer .footer-legal a,
footer .footer-bottom {
  color: rgba(255,248,251,.68);
}

footer a:hover {
  color: #fff;
}

@media (max-width: 800px) {
  .hero-bags {
    grid-template-columns: 1fr;
    padding: 2.25rem;
    min-height: auto;
  }

  .hero-bag-stage {
    min-height: 330px;
    margin-top: 1rem;
  }

  .hero-bag-image {
    width: 100%;
    max-height: 340px;
  }

  .hero-sticker {
    right: 0;
    bottom: 0;
  }
}

@media (max-width: 640px) {
  .hero-bags {
    padding: 1.75rem;
    border-radius: 1.35rem;
  }

  .hero-bags h1 {
    font-size: 3.15rem;
  }

  .hero-bag-stage {
    min-height: 270px;
  }

  .hero-sticker {
    width: 74px;
    height: 74px;
    font-size: .52rem;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
