:root {
  --primary: #5b35d5;
  --primary-dark: #39208d;
  --accent: #ff8a34;
  --ink: #17152b;
  --muted: #6f6d7c;
  --surface: #f6f5fb;
  --border: #e8e6f0;
  --success: #19a463;
}
* {
  box-sizing: border-box;
}
body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #fff;
}
a {
  text-decoration: none;
}
.top-strip {
  background: var(--ink);
  color: #ddd9ef;
  font-size: 0.82rem;
  padding: 0.48rem 0;
}
.top-strip a {
  color: #fff;
}
.shop-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(24, 20, 54, 0.07);
}
.navbar-brand {
  color: var(--ink);
}
.navbar-brand small {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), #9b63f0);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(91, 53, 213, 0.28);
}
.search-form {
  width: min(430px, 100%);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0 1rem;
}
.search-form input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}
.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 1.15rem;
}
.cart-link span {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  border: 2px solid #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.69rem;
  font-weight: 700;
}
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 32%, #a777ff 0, transparent 30%),
    linear-gradient(125deg, #211342, #5b35d5 60%, #8855e8);
  color: #fff;
  padding: 6.5rem 0;
}
.hero:before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 60px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  right: 5%;
  top: -90px;
}
.hero-kicker {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 1.2rem 0;
}
.hero p {
  font-size: 1.08rem;
  color: #e8e1ff;
  max-width: 630px;
}
.btn-shop {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 13px;
  padding: 0.86rem 1.2rem;
  font-weight: 700;
}
.btn-shop:hover {
  background: #ff7620;
  color: #fff;
  transform: translateY(-1px);
}
.hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 1.5rem;
  border-radius: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(10, 4, 35, 0.25);
}
.hero-card .mock {
  height: 280px;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #e8e0ff);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 7rem;
}
.section-space {
  padding: 5rem 0;
}
.section-soft {
  background: var(--surface);
}
.section-title {
  font-weight: 800;
  letter-spacing: -0.035em;
}
.section-subtitle {
  color: var(--muted);
}
.category-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  height: 100%;
  transition: 0.2s;
}
.category-card:hover {
  border-color: #b7a5ee;
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(29, 22, 64, 0.08);
}
.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #eee9ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  height: 100%;
  transition: 0.22s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(29, 22, 64, 0.1);
}
.product-image {
  position: relative;
  aspect-ratio: 1/0.82;
  background: #f0edf8;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-soft {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #fff;
  color: var(--primary);
  border-radius: 30px;
  padding: 0.42rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
.product-body {
  padding: 1.1rem;
}
.product-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
}
.product-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.03rem;
  display: block;
  margin: 0.35rem 0;
  min-height: 2.55rem;
}
.rating {
  color: #ffb020;
  font-size: 0.85rem;
}
.price {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
}
.stock-text {
  font-size: 0.76rem;
  color: var(--success);
}
.product-detail-image {
  border-radius: 26px;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--surface);
}
.variant-option {
  display: block;
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  cursor: pointer;
}
.variant-option:has(input:checked) {
  border-color: var(--primary);
  background: #f1edff;
}
.qty-input {
  width: 90px;
}
.auth-shell {
  min-height: 70vh;
  display: grid;
  place-items: center;
  background: var(--surface);
  padding: 4rem 0;
}
.auth-card {
  max-width: 520px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 2rem;
  box-shadow: 0 28px 60px rgba(29, 22, 64, 0.1);
}
.form-control,
.form-select {
  border-color: var(--border);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
}
.form-control:focus,
.form-select:focus {
  border-color: #a38aeb;
  box-shadow: 0 0 0 0.22rem rgba(91, 53, 213, 0.12);
}
.shop-footer {
  background: #17152b;
  color: #fff;
  padding: 4rem 0 1.5rem;
}
.shop-footer a,
.shop-footer span {
  display: block;
  color: #bcb8ce;
  margin: 0.65rem 0;
}
.shop-footer a:hover {
  color: #fff;
}
.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  color: #8f8b9f;
  font-size: 0.85rem;
}
.whatsapp-float {
  position: fixed;
  z-index: 1030;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #20bf6b;
  color: #fff;
  font-size: 1.65rem;
  box-shadow: 0 12px 30px rgba(18, 150, 82, 0.35);
}
.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.05);
}
.order-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
}
.status-pill {
  display: inline-flex;
  border-radius: 30px;
  padding: 0.35rem 0.7rem;
  font-size: 0.73rem;
  font-weight: 700;
}
.status-pending {
  background: #fff3cd;
  color: #8a6300;
}
.status-confirmed,
.status-processing {
  background: #e9e2ff;
  color: #5030af;
}
.status-completed {
  background: #dcf7e9;
  color: #167749;
}
.status-cancelled {
  background: #fde3e3;
  color: #a52a2a;
}
@media (max-width: 767px) {
  .top-strip {
    display: none;
  }
  .hero {
    padding: 4.5rem 0;
  }
  .hero-card {
    margin-top: 2rem;
  }
  .hero-card .mock {
    height: 210px;
  }
  .section-space {
    padding: 3.5rem 0;
  }
  .auth-card {
    border-radius: 20px;
    padding: 1.25rem;
  }
  .shop-navbar .navbar-collapse {
    padding-bottom: 1rem;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
img {
  max-width: 100%;
}
.navbar-brand {
  min-width: 0;
}
@media (max-width: 991px) {
  .shop-navbar .navbar-collapse {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    padding: 0 0.15rem 1rem;
  }
  .shop-navbar .navbar-nav {
    align-items: stretch !important;
  }
  .shop-navbar .nav-link {
    padding: 0.7rem 0.25rem;
  }
  .shop-navbar .cart-link {
    margin-top: 0.35rem;
  }
  .search-form {
    width: 100%;
    max-width: none;
  }
}
@media (max-width: 767px) {
  .hero {
    padding: 4rem 0;
  }
  .hero:before {
    width: 230px;
    height: 230px;
    right: -55px;
    border-width: 42px;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }
  .hero-card {
    padding: 1rem;
    border-radius: 22px;
  }
  .hero-card .mock {
    height: 200px;
    border-radius: 17px;
  }
  .section-space {
    padding: 3.2rem 0;
  }
  .auth-shell {
    padding: 2.2rem 0.25rem;
  }
  .product-detail-image {
    border-radius: 18px;
  }
  .shop-footer {
    padding-top: 3rem;
  }
}
@media (max-width: 575px) {
  .container {
    --bs-gutter-x: 1.25rem;
  }
  .hero {
    padding: 3.2rem 0;
  }
  .hero p {
    font-size: 0.96rem;
  }
  .section-space {
    padding: 2.6rem 0;
  }
  .section-title {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
  .product-body {
    padding: 0.9rem;
  }
  .product-name {
    min-height: 0;
  }
  .qty-input {
    width: 72px;
    flex: 0 0 72px;
  }
  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 14px;
    bottom: 14px;
    font-size: 1.4rem;
  }
  .order-card {
    padding: 0.95rem;
  }
  .shop-footer {
    padding-bottom: 4.6rem;
  }
}
