/* ============================================================
   KodS Beauty Market — design system
   Manba: design_handoff_kods_beauty_market (hifi etalon)
   ============================================================ */

:root {
  --rose: #B3155C;
  --rose-hover: #98104E;
  --rose-rgb: 179, 21, 92;
  --gold: #B8873B;
  --gold-text: #96691F;
  --green: #05893E;
  --page-bg: #FEF7F9;
  --card-bg: #ffffff;
  --announce-bg: #FBE9F0;
  --footer-bg: #F9EEF2;
  --input-bg: #F9EFF3;
  --dark-band: linear-gradient(160deg, #3E1428, #7A1244);
  --text-primary: #2E1A24;
  --text-secondary: #6E5260;
  --text-muted: #A87D93;
  --border-color: rgba(120, 60, 85, 0.10);
  --border-soft: rgba(120, 60, 85, 0.08);
  --border-mid: rgba(120, 60, 85, 0.09);
  --border-strong: rgba(120, 60, 85, 0.12);
  --border-hover: rgba(179, 21, 92, 0.45);
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 11px;
  --radius-md: 14px;
  --radius-card: 18px;
  --radius-panel: 20px;
  --radius-hero: 28px;
  --radius-pill: 999px;
  --container-max: 1280px;
  --container-narrow: 1180px;
  --shadow-btn: 0 14px 34px -14px var(--rose);
  --shadow-card-hover: 0 22px 45px -20px rgba(var(--rose-rgb), 0.30);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-hover); }

img { max-width: 100%; }

button { font-family: var(--font-body); }

input::placeholder { color: #B08D9C; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Material Symbols Outlined */
.msi {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.k-page { min-height: 100vh; display: flex; flex-direction: column; }
.k-main { flex: 1; }

.k-container { max-width: var(--container-max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.k-container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Announce bar ---------- */
.k-announce { background: var(--announce-bg); border-bottom: 1px solid var(--border-soft); }
.k-announce-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 8px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; font-size: 12.5px; color: var(--text-secondary);
}
.k-announce-left { display: flex; align-items: center; gap: 8px; }
.k-announce-left .msi { font-size: 16px; color: var(--rose); }
.k-announce-left strong { color: var(--text-primary); }
.k-announce-right { display: flex; align-items: center; gap: 18px; }
.k-announce-right .k-time { color: #BBA3AE; }

/* ---------- Header ---------- */
.k-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-mid);
}
.k-header-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}

/* Logo */
.k-logo { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.k-logo-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: linear-gradient(140deg, #D5487F, #98104E);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -8px var(--rose);
  flex: none;
}
.k-logo-icon .msi { font-size: 22px; color: #fff; }
.k-logo-text { line-height: 1; }
.k-logo-name { font-family: var(--font-heading); font-weight: 700; font-size: 23px; color: var(--text-primary); }
.k-logo-name .k-s { color: var(--rose); }
.k-logo-name .k-beauty { color: var(--gold); font-style: italic; }
.k-logo-sub {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 3px;
}

/* Search */
.k-search {
  flex: 1 1 260px; max-width: 560px;
  display: flex; align-items: center; gap: 8px;
  background: var(--input-bg); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 0 6px 0 14px;
}
.k-search .msi { font-size: 20px; color: var(--text-muted); flex: none; }
.k-search input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  font-family: var(--font-body); font-size: 14px; padding: 12px 0; color: var(--text-primary);
}
.k-search-btn {
  flex: none; border: none; background: var(--rose); color: #fff;
  font-weight: 600; font-size: 13.5px; padding: 9px 18px;
  border-radius: 10px; cursor: pointer; transition: background .2s var(--ease);
}
.k-search-btn:hover { background: var(--rose-hover); }

/* Header action buttons */
.k-header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.k-iconbtn {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 16px 0 12px;
  border-radius: 12px; border: 1px solid var(--border-strong);
  color: var(--text-secondary); font-weight: 600; font-size: 13.5px; cursor: pointer;
  background: transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.k-iconbtn:hover { color: var(--rose); border-color: var(--border-hover); }
.k-iconbtn .msi { font-size: 20px; }
.k-cart-badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 20px; height: 20px; border-radius: var(--radius-pill);
  background: var(--rose); color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* Category chips */
.k-chips {
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px 13px;
  display: flex; align-items: center; gap: 9px; overflow-x: auto;
  scrollbar-width: none;
}
.k-chips::-webkit-scrollbar { display: none; }
.k-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--radius-pill);
  font-size: 13px; white-space: nowrap; cursor: pointer; font-weight: 600;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-secondary);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.k-chip .msi { font-size: 17px; }
.k-chip:hover { color: var(--rose); border-color: var(--border-hover); }
.k-chip.active { border-color: var(--rose); background: rgba(var(--rose-rgb), .10); color: var(--rose); }

/* ---------- Buttons ---------- */
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; text-align: center;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.k-btn .msi { font-size: 20px; }
.k-btn-primary {
  padding: 15px 26px; border-radius: var(--radius-md);
  background: var(--rose); color: #fff; box-shadow: var(--shadow-btn);
}
.k-btn-primary:hover { background: var(--rose-hover); color: #fff; transform: translateY(-2px); }
.k-btn-outline {
  padding: 15px 26px; border-radius: var(--radius-md);
  background: rgba(120, 60, 85, .05); border: 1px solid rgba(120, 60, 85, .16);
  color: var(--text-primary); font-size: 15px;
}
.k-btn-outline:hover { border-color: var(--border-hover); background: rgba(var(--rose-rgb), .06); color: var(--text-primary); }

/* ---------- Hero ---------- */
.k-hero-section { padding: 30px 0 8px; }
.k-hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-hero); border: 1px solid var(--border-color);
  background: linear-gradient(125deg, #F6D0DF 0%, #FADFE9 55%, #FEF5F8 100%);
}
.k-hero-glow {
  position: absolute; top: -120px; right: -60px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--rose-rgb), .16), transparent 65%);
  filter: blur(20px);
}
.k-hero-inner {
  position: relative; display: flex; flex-wrap: wrap; align-items: center;
  gap: 30px; padding: clamp(28px, 4vw, 56px);
}
.k-hero-left { flex: 1 1 340px; min-width: 280px; }
.k-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: var(--radius-pill);
  background: rgba(184, 135, 59, .12); border: 1px solid rgba(184, 135, 59, .3);
  color: var(--gold-text);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.k-hero-badge .msi { font-size: 15px; }
.k-hero-title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.01em;
  margin: 18px 0 0; color: var(--text-primary);
}
.k-hero-title em {
  background: linear-gradient(100deg, var(--rose), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.k-hero-desc {
  font-size: 16px; line-height: 1.6; color: var(--text-secondary);
  margin: 18px 0 0; max-width: 440px; text-wrap: pretty;
}
.k-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.k-hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; }
.k-hero-stat-num { font-family: var(--font-heading); font-weight: 700; font-size: 26px; }
.k-hero-stat-num.gold { color: var(--gold); }
.k-hero-stat-label { font-size: 12.5px; color: var(--text-muted); }
.k-hero-divider { width: 1px; background: var(--border-strong); }

.k-hero-right { flex: 0 1 360px; min-width: 260px; display: flex; justify-content: center; }
.k-hero-card {
  position: relative; width: 100%; max-width: 360px; cursor: pointer;
  animation: floaty 7s ease-in-out infinite; color: inherit; display: block;
}
.k-hero-card:hover { color: inherit; }
.k-hero-card-img {
  position: relative; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(120, 60, 85, .14);
  background: radial-gradient(130% 120% at 30% 20%, #F6D0DF, #fff);
  box-shadow: 0 40px 80px -30px rgba(120, 60, 85, .20);
}
.k-hero-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-hero-top-pill {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: #fff; font-weight: 700; font-size: 12px;
  padding: 5px 11px; border-radius: var(--radius-pill);
}
.k-hero-info {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  width: 88%; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--border-color); border-radius: 16px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 20px 40px -20px rgba(120, 60, 85, .18);
}
.k-hero-info-name { font-weight: 600; font-size: 13px; color: var(--text-primary); }
.k-hero-info-price { font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: var(--rose); }
.k-hero-info .msi { color: var(--rose); font-size: 24px; }

/* ---------- Trust strip ---------- */
.k-trust-section { padding: 40px 0 8px; }
.k-trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.k-trust-card {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border-soft);
}
.k-trust-icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: rgba(var(--rose-rgb), .10);
  display: flex; align-items: center; justify-content: center;
}
.k-trust-icon .msi { font-size: 24px; color: var(--rose); }
.k-trust-title { font-weight: 700; font-size: 14px; }
.k-trust-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ---------- Lifestyle band ---------- */
.k-life-section { padding: 44px 0 8px; }
.k-life { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.k-life-img {
  flex: 1 1 300px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border-color); min-height: 320px; position: relative;
}
.k-life-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-life-panel {
  flex: 1 1 340px; border-radius: 22px;
  background: var(--dark-band); color: #FBEAF1;
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.k-life-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: #DFAF6B; }
.k-life-title { font-family: var(--font-heading); font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.15; }
.k-life-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.k-life-step { display: flex; gap: 12px; align-items: flex-start; }
.k-life-step-num {
  min-width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #F2C6D8;
}
.k-life-step-text { font-size: 14px; line-height: 1.55; color: #F4DCE6; }

/* ---------- Catalog ---------- */
.k-catalog-section { scroll-margin-top: 180px; padding: 44px 0 48px; }
.k-catalog-head { margin-bottom: 20px; }
.k-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rose);
}
.k-h1, .k-h2 {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(26px, 3vw, 34px); margin: 8px 0 0; color: var(--text-primary);
}
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

/* ---------- Product card ---------- */
.k-card {
  background: var(--card-bg); border: 1px solid var(--border-mid);
  border-radius: var(--radius-card); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.k-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--rose-rgb), .5);
  box-shadow: var(--shadow-card-hover);
}
.k-card-img {
  position: relative; aspect-ratio: 1 / 1; display: block;
  background: radial-gradient(130% 120% at 28% 18%, #F6D0DF, #fff);
  overflow: hidden; cursor: pointer;
}
.k-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-ph {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, #FAE3EB 0 14px, #FDF0F4 14px 28px);
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px; text-align: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
}
.k-disc-pill {
  position: absolute; top: 11px; left: 11px;
  background: var(--rose); color: #fff; font-weight: 700; font-size: 12px;
  padding: 4px 9px; border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px -6px var(--rose); z-index: 2;
}
.k-card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.k-card-cat {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--rose);
}
.k-card-title {
  font-weight: 600; font-size: 14.5px; line-height: 1.35;
  color: var(--text-primary); min-height: 40px; cursor: pointer;
  display: block;
}
.k-card-title:hover { color: var(--rose); }
.k-card-rating { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-secondary); }
.k-card-rating .msi { font-size: 15px; color: var(--gold); }
.k-card-rating strong { font-weight: 600; color: var(--text-primary); }
.k-card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 9px; padding-top: 9px; }
.k-price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.k-price { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--text-primary); }
.k-price-old { font-size: 11.5px; color: var(--text-muted); text-decoration: line-through; }
.k-addbtn {
  width: 100%; height: 40px; border: none; border-radius: 12px;
  background: var(--rose); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: 13.5px;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.k-addbtn .msi { font-size: 18px; }
.k-addbtn:hover { background: var(--rose-hover); box-shadow: 0 10px 22px -8px var(--rose); }

/* ---------- Product page ---------- */
.k-product-page { padding: 26px 0 48px; }
.k-crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted); margin-bottom: 18px;
}
.k-crumbs a { color: var(--text-secondary); }
.k-crumbs a:hover { color: var(--rose); }
.k-crumbs .msi { font-size: 16px; }
.k-crumbs .current { color: var(--text-primary); }

.k-pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 34px; align-items: start; }
.k-pimg {
  position: relative; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(120, 60, 85, .11);
  background: radial-gradient(130% 120% at 30% 20%, #F6D0DF, #fff);
}
.k-pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-pimg .k-ph { font-size: 11px; }
.k-pimg .k-disc-pill { top: 16px; left: 16px; font-size: 14px; padding: 6px 13px; box-shadow: none; }

.k-pthumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.k-pthumb {
  width: 68px; height: 68px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-color); cursor: pointer; padding: 0;
  background: radial-gradient(130% 120% at 28% 18%, #F6D0DF, #fff);
  opacity: .65; transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.k-pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-pthumb:hover, .k-pthumb.active { opacity: 1; border-color: var(--rose); }

.k-ptitle {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 10px 0 0;
}
.k-pmeta { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 13.5px; }
.k-pmeta-rating { display: flex; align-items: center; gap: 5px; }
.k-pmeta-rating .msi { font-size: 18px; color: var(--gold); }
.k-pmeta-dot { color: var(--text-muted); }
.k-instock { display: flex; align-items: center; gap: 5px; color: var(--green); }
.k-instock .msi { font-size: 17px; }

.k-price-panel {
  display: flex; align-items: flex-end; gap: 14px; margin-top: 22px;
  padding: 18px 20px; border-radius: 16px;
  background: var(--card-bg); border: 1px solid var(--border-mid);
}
.k-price-panel-main { display: flex; flex-direction: column; gap: 3px; }
.k-price-panel-old { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.k-price-panel-cur { font-family: var(--font-heading); font-weight: 700; font-size: 36px; line-height: 1.1; }
.k-save-pill {
  margin-bottom: 6px; background: rgba(184, 135, 59, .16); color: var(--gold-text);
  font-weight: 700; font-size: 13px; padding: 4px 11px; border-radius: var(--radius-pill);
}

.k-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; }
.k-benefit {
  display: flex; align-items: center; gap: 11px; padding: 13px 15px;
  border-radius: 13px; background: var(--card-bg); border: 1px solid var(--border-soft);
}
.k-benefit .msi { font-size: 22px; color: var(--rose); }
.k-benefit-title { font-size: 13px; font-weight: 700; }
.k-benefit-sub { font-size: 11.5px; color: var(--text-muted); }

.k-desc-block { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border-color); }
.k-desc-title { font-family: var(--font-heading); font-weight: 700; font-size: 19px; margin-bottom: 10px; }
.k-desc-text { font-size: 14.5px; line-height: 1.7; color: var(--text-secondary); margin: 0; text-wrap: pretty; }
.k-desc-text p { margin: 0 0 10px; }
.k-desc-text p:last-child { margin-bottom: 0; }

.k-buy-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.k-buy-row .k-btn { flex: 1; min-width: 200px; height: 54px; padding-top: 0; padding-bottom: 0; }
.k-buy-row .k-btn-primary { font-size: 16px; box-shadow: 0 16px 34px -14px var(--rose); }
.k-buy-row .k-btn-primary:hover { transform: none; }

/* ---------- Cart / Order ---------- */
.k-cart-page { padding: 26px 0 48px; }
.k-cart-page .k-h1 { margin: 0 0 24px; }

.k-cart-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 70px 20px; background: var(--card-bg);
  border: 1px dashed rgba(120, 60, 85, .20); border-radius: var(--radius-panel);
}
.k-cart-empty > .msi { font-size: 48px; color: #C7A9B7; }
.k-cart-empty-title { font-family: var(--font-heading); font-weight: 700; font-size: 21px; margin-top: 14px; }
.k-cart-empty .k-btn-primary { margin-top: 18px; padding: 12px 22px; border-radius: 12px; font-size: 13.5px; box-shadow: none; }
.k-cart-empty .k-btn-primary:hover { transform: none; }

.k-cart-layout { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.k-cart-list { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }

.k-cart-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-bg); border: 1px solid var(--border-mid);
  border-radius: 16px; padding: 12px 16px 12px 12px;
}
.k-cart-item-img {
  width: 70px; height: 70px; flex: none; border-radius: 12px; overflow: hidden;
  background: radial-gradient(130% 120% at 28% 18%, #F6D0DF, #fff); position: relative;
}
.k-cart-item-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-cart-item-info { flex: 1; min-width: 0; }
.k-cart-item-title { font-weight: 700; font-size: 14px; line-height: 1.3; }
.k-cart-item-price { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.k-cart-item-total {
  font-family: var(--font-heading); font-weight: 700; font-size: 17px;
  min-width: 100px; text-align: right;
}
.k-cart-item-remove {
  width: 34px; height: 34px; border: none; border-radius: 10px;
  background: transparent; color: #C7A9B7; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.k-cart-item-remove .msi { font-size: 19px; }
.k-cart-item-remove:hover { color: var(--rose); background: rgba(var(--rose-rgb), .08); }

.k-qty {
  display: flex; align-items: center; gap: 2px;
  background: var(--input-bg); border: 1px solid var(--border-color);
  border-radius: 12px; padding: 4px;
}
.k-qty button {
  width: 32px; height: 32px; border: none; border-radius: 8px;
  background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 16px;
  transition: background .2s var(--ease);
}
.k-qty button:hover { background: rgba(120, 60, 85, .08); }
.k-qty-val { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }

.k-order-panel {
  flex: 1 1 340px; max-width: 440px;
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: var(--radius-panel); padding: 24px;
}
.k-order-title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin-bottom: 16px; }
.k-order-row {
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--text-secondary); margin-bottom: 6px;
}
.k-order-row strong { font-weight: 700; color: var(--text-primary); }
.k-order-row.bordered { padding-bottom: 14px; border-bottom: 1px solid var(--border-color); margin-bottom: 14px; }
.k-order-row .free { color: var(--green); font-weight: 700; }
.k-order-total { display: flex; justify-content: space-between; align-items: center; font-size: 15px; margin-bottom: 20px; }
.k-order-total-label { font-weight: 700; }
.k-order-total-val { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--rose); }

.k-label {
  display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-muted); margin-bottom: 7px;
}
.k-input {
  display: flex; align-items: center; gap: 9px;
  background: var(--input-bg); border: 1px solid var(--border-color);
  border-radius: 13px; padding: 0 14px; margin-bottom: 14px;
}
.k-input .msi { font-size: 20px; color: var(--text-muted); flex: none; }
.k-input input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  padding: 14px 0; font-family: var(--font-body); font-size: 14.5px; color: var(--text-primary);
}
.k-input-phone { margin-bottom: 18px; }
.k-input.has-error { border-color: var(--border-hover); }
.k-field-error { font-size: 12px; color: var(--rose); margin: -8px 0 12px; }
.k-field-error:empty { display: none; }

.k-submit {
  width: 100%; height: 54px; border: none; border-radius: var(--radius-md);
  background: var(--rose); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 16px 34px -14px var(--rose);
  transition: background .2s var(--ease);
}
.k-submit .msi { font-size: 20px; }
.k-submit:hover { background: var(--rose-hover); }
.k-submit[disabled] { opacity: .6; cursor: not-allowed; }

.k-secure {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 12px; color: var(--text-muted);
}
.k-secure .msi { font-size: 16px; color: var(--green); }

/* ---------- Success ---------- */
.k-success-page { max-width: 760px; margin: 0 auto; padding: 60px 24px 48px; }
.k-success-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 26px; padding: clamp(32px, 5vw, 52px);
  box-shadow: 0 30px 70px -40px rgba(var(--rose-rgb), .15);
}
.k-success-icon {
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(5, 137, 62, .12);
  display: flex; align-items: center; justify-content: center;
  animation: floaty 5s ease-in-out infinite;
}
.k-success-icon .msi { font-size: 54px; color: var(--green); }
.k-success-title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(28px, 4vw, 40px); margin: 24px 0 0;
}
.k-success-text { font-size: 16px; line-height: 1.6; color: var(--text-secondary); margin-top: 12px; max-width: 400px; }
.k-success-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.k-success-actions .k-btn-primary:hover { transform: none; }

/* ---------- Footer ---------- */
.k-footer { margin-top: 40px; border-top: 1px solid var(--border-mid); background: var(--footer-bg); }
.k-footer-grid {
  max-width: var(--container-max); margin: 0 auto; padding: 46px 24px 30px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
}
.k-footer-brand { max-width: 280px; }
.k-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.k-footer-logo-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, #D5487F, #98104E);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.k-footer-logo-icon .msi { font-size: 20px; color: #fff; }
.k-footer-logo-name { font-family: var(--font-heading); font-weight: 700; font-size: 19px; color: var(--text-primary); }
.k-footer-logo-name .k-s { color: var(--rose); }
.k-footer-desc { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.k-footer-heading {
  font-weight: 700; font-size: 13px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-secondary); margin-bottom: 14px;
}
.k-footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.k-footer-links a { color: var(--text-muted); }
.k-footer-links a:hover { color: var(--rose); }
.k-footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--text-muted); }
.k-footer-contact .msi { font-size: 16px; color: var(--rose); vertical-align: middle; margin-right: 6px; }
.k-footer-bottom { border-top: 1px solid var(--border-soft); }
.k-footer-bottom-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 18px 24px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--text-muted);
}
.k-footer-pay { display: flex; align-items: center; gap: 14px; }

/* ---------- Alert (flash) ---------- */
.k-alert {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0; padding: 14px 18px;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 600;
}
.k-alert-success {
  background: rgba(5, 137, 62, .10); color: var(--green);
  border: 1px solid rgba(5, 137, 62, .25);
}
.k-alert .msi { font-size: 20px; flex: none; }

/* ---------- Pagination ---------- */
.k-pagination-wrap { margin-top: 30px; }
.k-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.k-pagination li a, .k-pagination li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px;
  border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--card-bg); color: var(--text-secondary);
  font-weight: 600; font-size: 13.5px; cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.k-pagination li a:hover { color: var(--rose); border-color: var(--border-hover); }
.k-pagination li.active a, .k-pagination li.active span {
  background: var(--rose); border-color: var(--rose); color: #fff;
}
.k-pagination li.disabled a, .k-pagination li.disabled span { opacity: .45; cursor: default; }

/* ---------- Empty state ---------- */
.k-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 70px 20px; background: var(--card-bg);
  border: 1px dashed rgba(120, 60, 85, .20); border-radius: var(--radius-panel);
}
.k-empty > .msi { font-size: 48px; color: #C7A9B7; }
.k-empty-title { font-family: var(--font-heading); font-weight: 700; font-size: 21px; margin-top: 14px; }
.k-empty-text { font-size: 14px; color: var(--text-muted); margin-top: 6px; max-width: 380px; }

/* ---------- Error page ---------- */
.k-error-page { max-width: 760px; margin: 0 auto; padding: 60px 24px 48px; }

/* ---------- Toast (savatga qo'shildi) ---------- */
.k-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text-primary); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 20px 40px -16px rgba(46, 26, 36, .5);
  opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  z-index: 100;
}
.k-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.k-toast .msi { font-size: 18px; color: #7BE0A4; }

/* ---------- Load more ---------- */
.k-loadmore-msg {
  text-align: center; padding: 20px 0; display: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .k-hero-stats { gap: 20px; }
  .k-pgrid { gap: 24px; }
  .k-price-panel-cur { font-size: 30px; }

  /* Kirish va Savat tugmalari doim logo qatorida o'ngda qoladi;
     qidiruv maydoni to'liq kenglikda o'z qatoriga tushadi */
  .k-header-inner { row-gap: 12px; }
  .k-logo { order: 1; }
  .k-header-actions { order: 2; }
  .k-search { order: 3; flex: 1 1 100%; max-width: none; }
}

@media (max-width: 640px) {
  .k-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .k-announce-right { display: none; }
  .k-cart-item { flex-wrap: wrap; }
  .k-iconbtn .k-btn-text { display: none; }
  .k-header-inner { gap: 10px; }
  .k-card-body { padding: 11px 12px 13px; }
  .k-card-title { font-size: 13.5px; min-height: 37px; }
  .k-addbtn { height: 38px; font-size: 12.5px; }
}

@media (max-width: 480px) {
  .k-container, .k-container-narrow { padding-left: 16px; padding-right: 16px; }
  .k-announce-inner, .k-header-inner, .k-chips,
  .k-footer-grid, .k-footer-bottom-inner { padding-left: 16px; padding-right: 16px; }
  .k-hero-section { padding-top: 20px; }
  .k-trust-section { padding-top: 28px; }
  .k-life-section, .k-catalog-section { padding-top: 32px; }
  .k-life-img { min-height: 240px; }
  .k-order-panel { padding: 20px 16px; }
  .k-success-page { padding-top: 40px; }
}
