/* KIKI — vivid editorial storefront theme */
:root {
  --color-bg: #fffdf8;
  --color-bg-secondary: #f4f0ff;
  --color-bg-tertiary: #fff7ec;
  --color-text: #171128;
  --color-text-secondary: #6c647c;
  --color-text-tertiary: #938aa4;
  --color-border: rgba(69, 43, 112, 0.14);
  --color-border-light: rgba(69, 43, 112, 0.08);
  --color-accent: #6d3df5;
  --color-accent-hover: #5324d6;
  --color-sale: #ef5c78;
  --color-success: #159d78;
  --font-heading: "Avenir Next", "Noto Sans Thai", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Avenir Next", "Noto Sans Thai", "Noto Sans SC", system-ui, sans-serif;
  --container-max: 1240px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
}

html { background: #fffdf8; }

body {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 207, 92, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 28%, rgba(141, 104, 255, 0.08), transparent 30rem),
    var(--color-bg);
}

::selection { color: #fff; background: #6d3df5; }

.site-header {
  height: 78px;
  background: rgba(255, 253, 248, 0.82);
  border-bottom: 1px solid rgba(69, 43, 112, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
}

.site-header.scrolled { box-shadow: 0 14px 36px rgba(63, 40, 101, 0.08); }

.header-inner { height: 78px; }

.header-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #241744;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.header-logo span,
.footer-logo span {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  color: #ff6b8a;
  font-size: 1rem;
  letter-spacing: 0;
}

.header-nav { gap: clamp(1rem, 2.4vw, 2rem); }

.header-nav a {
  color: #5d5470;
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.header-nav a:hover,
.header-nav a.active { color: #6d3df5; }

.header-nav a.active::after {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d3df5, #ff6b8a);
}

.lang-dropdown-trigger,
.cart-btn,
.user-btn {
  border: 1px solid rgba(83, 55, 129, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 18px rgba(63, 40, 101, 0.05);
}

.cart-count { background: #ff5b7b; }

.mobile-menu {
  background: #fffdf8;
  border-right: 1px solid rgba(83, 55, 129, 0.12);
}

.mobile-menu .menu-user {
  color: #fff;
  background: linear-gradient(135deg, #6d3df5, #9d6cff 55%, #ff7893);
}

.btn {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.btn-primary,
.add-to-cart-btn,
.cart-checkout-btn,
.sticky-cart-btn {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #6d3df5, #8c58fb 55%, #a76ef6);
  box-shadow: 0 14px 30px rgba(109, 61, 245, 0.24);
}

.btn-primary:hover,
.add-to-cart-btn:hover,
.cart-checkout-btn:hover,
.sticky-cart-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #5b2cdf, #7745e8 55%, #9458e7);
  box-shadow: 0 18px 38px rgba(109, 61, 245, 0.3);
}

.btn-outline {
  color: #342651;
  border-color: rgba(75, 48, 119, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline:hover {
  color: #6d3df5;
  border-color: rgba(109, 61, 245, 0.38);
  background: #fff;
}

.kiki-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  padding: clamp(5rem, 8vw, 7.5rem) 0 clamp(4rem, 7vw, 6rem);
  background:
    linear-gradient(115deg, rgba(255, 247, 226, 0.98), rgba(247, 241, 255, 0.95) 58%, rgba(255, 237, 242, 0.96));
}

.kiki-hero::before {
  position: absolute;
  inset: 20px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(109, 61, 245, 0.08);
  border-radius: 42px;
}

.kiki-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.72;
}

.kiki-orb-one {
  top: -90px;
  right: 10%;
  width: 270px;
  height: 270px;
  background: rgba(255, 196, 72, 0.24);
}

.kiki-orb-two {
  right: -100px;
  bottom: -130px;
  width: 390px;
  height: 390px;
  background: rgba(143, 92, 255, 0.17);
}

.kiki-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.kiki-kicker,
.section-label {
  color: #7a4ef0;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kiki-hero-copy h1 {
  max-width: 760px;
  margin: 1rem 0 1.35rem;
  color: #201537;
  font-size: clamp(3.25rem, 7vw, 6.8rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.kiki-hero-copy h1 em {
  color: #ff6382;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.kiki-hero-lead {
  max-width: 610px;
  color: #625873;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.75;
}

.kiki-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.kiki-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin-top: 2.2rem;
  color: #786e86;
  font-size: 0.78rem;
}

.kiki-hero-notes span { white-space: nowrap; }
.kiki-hero-notes strong { color: #332450; font-size: 1rem; }

.kiki-stage-card {
  position: relative;
  min-height: 480px;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 46px 46px 120px 46px;
  background:
    radial-gradient(circle at 50% 56%, rgba(255,255,255,0.96) 0 23%, rgba(255,255,255,0.58) 24% 48%, transparent 49%),
    linear-gradient(145deg, rgba(130, 82, 245, 0.86), rgba(93, 53, 209, 0.92) 58%, rgba(255, 102, 133, 0.86));
  box-shadow: 0 36px 80px rgba(69, 37, 132, 0.24);
  transform: rotate(1.5deg);
}

.kiki-stage-card::after {
  position: absolute;
  top: 36%;
  left: 50%;
  width: 270px;
  height: 270px;
  content: "";
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.kiki-stage-card > img {
  position: absolute;
  z-index: 2;
  top: 52%;
  left: 50%;
  width: min(84%, 420px);
  height: min(84%, 420px);
  object-fit: contain;
  filter: drop-shadow(0 28px 24px rgba(31, 13, 73, 0.3));
  transform: translate(-50%, -50%) rotate(-1.5deg);
}

.kiki-stage-label {
  position: relative;
  z-index: 3;
  color: rgba(255,255,255,0.92);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.2em;
}

.kiki-flavor-chip {
  position: absolute;
  z-index: 3;
  padding: 0.7rem 1rem;
  color: #3a265b;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(40, 18, 87, 0.16);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 800;
}

.chip-one { top: 25%; right: 6%; }
.chip-two { bottom: 22%; left: 5%; }

.kiki-stage-link {
  position: absolute;
  z-index: 4;
  right: 2rem;
  bottom: 1.8rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.usp-section { padding-top: clamp(3.5rem, 7vw, 6rem); background: transparent; }

.usp-grid { gap: 1rem; }

.usp-card,
.tip-card,
.faq-item,
.contact-form,
.cart-summary,
.cart-customer-info {
  border: 1px solid rgba(84, 51, 132, 0.1);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 48px rgba(68, 43, 102, 0.06);
}

.usp-card {
  padding: 1.55rem;
  border-radius: 24px;
}

.usp-card:nth-child(2n) { background: rgba(250, 246, 255, 0.88); }
.usp-card:nth-child(3n) { background: rgba(255, 248, 235, 0.9); }

.usp-icon {
  color: #6d3df5;
  border-radius: 16px;
  background: rgba(109, 61, 245, 0.1);
}

.section-title {
  color: #26193e;
  font-weight: 860;
  letter-spacing: -0.04em;
}

.featured-section,
.products-section { background: transparent; }

.product-grid { gap: clamp(1rem, 2vw, 1.6rem); }

.product-card {
  overflow: hidden;
  border: 1px solid rgba(83, 51, 131, 0.1);
  border-radius: 26px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 14px 40px rgba(66, 39, 102, 0.06);
}

.product-card:hover {
  border-color: rgba(109, 61, 245, 0.25);
  box-shadow: 0 24px 54px rgba(66, 39, 102, 0.13);
  transform: translateY(-7px);
}

.product-card-image {
  margin: 10px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, #f7f2ff, #fff8e8);
}

.product-card-body { padding: 0.9rem 1.2rem 1.4rem; }
.product-card-name { color: #2b1d45; font-weight: 760; }
.product-card-price { color: #6d3df5; }
.product-badge { background: #ff6382; border-radius: 999px; }

.brand-section {
  position: relative;
  overflow: hidden;
  background: #211538;
}

.brand-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 15% 50%, rgba(255, 193, 73, 0.18), transparent 35%), radial-gradient(circle at 86% 20%, rgba(141, 89, 255, 0.26), transparent 35%);
}

.brand-section .container { position: relative; }
.brand-content h2,
.brand-content p { color: #fff; }
.brand-content p { opacity: 0.72; }
.brand-image { border-radius: 34px; }

.faq-section { background: #f8f3ff; }
.faq-item { border-radius: 18px; }
.faq-question:hover { color: #6d3df5; }

.tips-section { background: #fff8eb; }
.tip-number { color: #ff6382; }

.site-footer {
  color: rgba(255,255,255,0.72);
  background: #1e1530;
}

.site-footer .footer-logo,
.site-footer .footer-col h4 { color: #fff; }
.site-footer a:hover { color: #ffb8c7; }

.about-hero,
.contact-section,
.cart-page,
.product-detail,
.order-status-page {
  background: transparent;
}

.about-hero {
  border-bottom: 1px solid rgba(83, 51, 131, 0.08);
  background: linear-gradient(135deg, #f7f0ff, #fff6e4);
}

.about-hero h1,
.contact-info h2,
.product-info h1 { color: #281b43; letter-spacing: -0.04em; }

.contact-item-icon { color: #6d3df5; background: rgba(109,61,245,0.1); }

.product-gallery-main,
.product-description,
.product-specs,
.cart-item,
.cart-items-wrap {
  border-color: rgba(83, 51, 131, 0.1);
  border-radius: 24px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 16px 46px rgba(66, 39, 102, 0.06);
}

.flavor-btn--active { color: #fff; border-color: #6d3df5; background: #6d3df5; }
.product-info-price .current { color: #6d3df5; }
.stock-dot { background: #16a47b !important; }

.cart-step.active .step-circle { background: #6d3df5; }
.cart-item-image { border-radius: 16px; background: #f7f2ff; }

input,
select,
textarea {
  border-radius: 12px !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #8a5df3 !important;
  box-shadow: 0 0 0 4px rgba(109, 61, 245, 0.1) !important;
}

.toast { border-radius: 16px; box-shadow: 0 20px 50px rgba(41, 23, 73, 0.2); }
.toast.success { background: #159d78; }

.line-float a { box-shadow: 0 16px 34px rgba(6, 199, 85, 0.24); }

@media (max-width: 980px) {
  .kiki-hero { min-height: auto; padding-top: 4rem; }
  .kiki-hero-grid { grid-template-columns: 1fr; }
  .kiki-hero-copy { text-align: center; }
  .kiki-hero-copy h1,
  .kiki-hero-lead { margin-left: auto; margin-right: auto; }
  .kiki-hero-actions,
  .kiki-hero-notes { justify-content: center; }
  .kiki-hero-visual { width: min(100%, 570px); margin: 0 auto; }
  .kiki-stage-card { min-height: 450px; }
}

@media (max-width: 640px) {
  .site-header,
  .header-inner { height: 68px; }
  .kiki-hero { padding: 3rem 0 3.5rem; }
  .kiki-hero::before { inset: 10px; border-radius: 28px; }
  .kiki-hero-copy h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .kiki-hero-lead { font-size: 0.98rem; }
  .kiki-hero-actions .btn { width: 100%; }
  .kiki-hero-notes { gap: 0.55rem 1rem; }
  .kiki-stage-card { min-height: 370px; padding: 1.3rem; border-radius: 32px 32px 78px 32px; }
  .kiki-stage-card > img { width: 88%; height: 78%; }
  .kiki-flavor-chip { padding: 0.55rem 0.75rem; font-size: 0.69rem; }
  .kiki-stage-link { right: 1.4rem; bottom: 1.35rem; }
  .product-card { border-radius: 20px; }
  .product-card-image { border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .kiki-stage-card { transform: none; }
}
