:root {
  --primary-50: #F2F7FD;
  --primary-100: #E0ECFA;
  --primary-200: #BED7F4;
  --primary-300: #8EB9EC;
  --primary-400: #5193E1;
  --primary-500: #226FC9;
  --primary-600: #1B4F8C;
  --primary-700: #15437A;
  --primary-800: #0F3057;
  --primary-900: #0A1F39;

  --gold-50: #FCF8F3;
  --gold-100: #F7EFE3;
  --gold-300: #E2C498;
  --gold-500: #C08B3B;
  --gold-600: #8F6629;
  --gold-700: #6E4E20;
  --gold-800: #4F3917;

  --bg-canvas: #FFFFFF;
  --bg-subtle: #FAFAFA;
  --bg-muted: #F2F2F2;
  --border-default: #E5E4E7;
  --border-strong: #CBCACE;
  --text-primary: #19181B;
  --text-secondary: #5E5D65;
  --text-tertiary: #7C7B84;

  --success: #1FA971;
  --warning: #E0A020;
  --error: #D94B4B;
  --info: #3B7DD8;

  --color1: var(--primary-600);
  --color1-dark: var(--primary-700);
  --color2: var(--gold-500);
  --color3: var(--error);
  --light_header: var(--gold-100);
  --bg_light: var(--bg-subtle);
  --bg_lighter: var(--bg-muted);
  --border_light: var(--border-default);
  --bg_body: var(--bg-canvas);
  --bg_text: var(--text-primary);
  --bg_footer: var(--primary-900);
  --bg_tabs: var(--bg-muted);
  --bg_lightback: var(--primary-100);
  --danger: var(--error);
  --success-bg: #e8f6ef;
  --error-bg: #fdecec;
  --muted: var(--text-secondary);
  --radius: 10px;
  --shadow: 0 2px 16px 0 rgba(27, 79, 140, 0.08);
  --shadow-hover: 0 15px 37px -16px rgba(27, 79, 140, 0.35);
  --container: 1400px;
  --font: "Yekan Bakh FaNum", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

::selection {
  color: #fff;
  background: var(--primary-600);
}

[data-theme="dark"] {
  --bg-canvas: #0A1F39;
  --bg-subtle: #0F3057;
  --bg-muted: #15437A;
  --border-default: #1B4F8C;
  --border-strong: #226FC9;
  --text-primary: #F2F7FD;
  --text-secondary: #BED7F4;
  --text-tertiary: #8EB9EC;
  --bg_body: var(--bg-canvas);
  --bg_footer: #0A1F39;
  --bg_text: var(--text-primary);
}

body {
  direction: rtl;
  text-align: right;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.9;
  background: var(--bg_body);
  letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6, strong, b {
  font-family: var(--font);
  font-weight: 700;
}

button, input, textarea, select {
  font-family: var(--font);
}

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

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--primary-500);
}

button,
input {
  font-family: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 56px 0;
}

.title-block h1,
.title-block h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 14px;
}

.title-block h1 span,
.title-block h2 span {
  color: var(--color1);
}

.title-block h1::after,
.title-block h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 90px;
  height: 5px;
  border-radius: 5px;
  background: var(--color2);
}

.title-block.center {
  text-align: center;
}

.title-block.center h1::after,
.title-block.center h2::after {
  right: 0;
  left: 0;
  margin: auto;
}

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.title-block p,
.subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: nowrap;
}

.section-head .title-block {
  flex: 1;
  min-width: 0;
}

.section-head .title-block h2 {
  margin-bottom: 0;
}

.section-head .more-link {
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 4px;
}

.more-link {
  color: var(--color1);
  border: 1px solid var(--color1);
  border-radius: 30px;
  padding: 8px 22px;
  white-space: nowrap;
}

.more-link:hover {
  background: var(--primary-700);
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-bar {
  background: #fff;
  border-bottom: 1px solid rgba(15, 48, 87, 0.08);
  box-shadow: 0 4px 16px rgba(15, 48, 87, 0.1);
  transition: box-shadow 0.25s;
}

.site-header.is-scrolled .header-bar {
  box-shadow: 0 6px 18px rgba(15, 48, 87, 0.12);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.header-nav-wrap {
  background: var(--primary-800);
  border-top: 3px solid var(--gold-500);
  position: relative;
  z-index: 120;
}

.header-nav-wrap > .container {
  position: relative;
}

.nav-drawer-head,
.nav-search-btn,
.nav-drawer-foot,
.nav-ico {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-text strong {
  font-size: 15px;
  font-weight: 800;
}

.logo-text small {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.logo.light {
  color: #fff;
}

.main-nav > ul {
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-height: 48px;
}

.main-nav > ul > li {
  display: flex;
  align-items: stretch;
}

.main-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active,
.main-nav > ul > li:focus-within > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  right: 18px;
  left: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}

.main-nav > ul > li > a.active::after,
.main-nav > ul > li:hover > a::after,
.main-nav > ul > li:focus-within > a::after {
  transform: scaleX(1);
}

.has-mega.is-mega-on > a,
.has-mega:hover > a,
.has-mega:focus-within > a {
  background: #fff;
  color: var(--primary-800);
  border-radius: 10px 10px 0 0;
  z-index: 140;
}

.has-mega.is-mega-on > a::after,
.has-mega:hover > a::after,
.has-mega:focus-within > a::after {
  transform: scaleX(0);
}

.has-sub > a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  order: 2;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.has-sub:hover > a::before,
.has-sub:focus-within > a::before,
.has-mega.is-mega-on > a::before {
  transform: rotate(225deg) translateY(-1px);
  opacity: 1;
}

.has-sub {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 48, 87, 0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.22s;
  z-index: 30;
}

.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sub-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  color: var(--text-primary);
}

.sub-menu a:hover {
  background: var(--primary-50);
  color: var(--text-primary);
}

.has-mega {
  position: static;
}

.mega-menu,
.mega-menu-sm {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  width: auto;
  max-width: none;
  background: #fff;
  border: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 22px 48px rgba(10, 31, 57, 0.18);
  padding: 22px 24px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 130;
  pointer-events: none;
}

.mega-menu::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: -8px;
  height: 8px;
}

.has-mega:hover > .mega-menu,
.has-mega:focus-within > .mega-menu,
.has-mega.is-mega-on > .mega-menu,
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu {
  pointer-events: auto;
}

.has-mega:hover > .mega-menu,
.has-mega:focus-within > .mega-menu,
.has-mega.is-mega-on > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.85fr) 220px;
  gap: 22px;
  align-items: start;
}
.mega-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.mega-col-head strong {
  font-size: 14px;
  color: var(--primary-800);
}
.mega-col-head a {
  font-size: 12px;
  color: var(--gold-600);
  font-weight: 700;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.mega-books {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mega-book {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--primary-100);
  color: inherit;
}
.mega-book:hover {
  border-color: var(--gold-300);
  background: var(--gold-50);
  color: inherit;
}
.mega-book img,
.mega-book-ph {
  width: 48px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--primary-50);
}
.mega-book strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.mega-book em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: var(--gold-600);
}
.mega-promo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 16px;
  min-height: 180px;
  background:
    radial-gradient(circle at 100% 0%, rgba(192, 139, 59, 0.3), transparent 46%),
    linear-gradient(165deg, var(--primary-700), var(--primary-900));
  color: #fff;
}
.mega-promo:hover { color: #fff; }
.mega-promo .ms { font-size: 28px; color: var(--gold-300); }
.mega-promo p { font-size: 13px; opacity: 0.88; line-height: 1.7; margin: 0; }
.mega-promo em { margin-top: auto; font-style: normal; font-size: 13px; font-weight: 800; color: var(--gold-300); }
.mega-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--primary-100);
  font-size: 13px;
  font-weight: 600;
}
.mega-link:hover { background: var(--primary-50); color: var(--primary-700); }
.mega-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.mega-tile {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--primary-100);
  background: var(--primary-50);
  color: inherit;
}
.mega-tile:hover {
  border-color: var(--gold-300);
  background: #fff;
  color: inherit;
  box-shadow: var(--shadow);
}
.mega-tile .mega-ico { margin-bottom: 10px; }
.mega-tile strong { display: block; margin-bottom: 6px; color: var(--primary-800); }
.mega-tile p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.mega-tile.is-accent {
  background: linear-gradient(165deg, var(--primary-700), var(--primary-900));
  border-color: transparent;
  color: #fff;
}
.mega-tile.is-accent:hover { color: #fff; }
.mega-tile.is-accent .mega-ico { background: rgba(255,255,255,.12); color: var(--gold-300); }
.mega-tile.is-accent strong,
.mega-tile.is-accent p { color: #fff; }
.mega-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.mega-post {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--primary-100);
  color: inherit;
}
.mega-post:hover { border-color: var(--gold-300); color: inherit; background: var(--gold-50); }
.mega-post img,
.mega-post .blog-cover {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  aspect-ratio: auto;
}
.mega-post em { display: block; font-style: normal; font-size: 12px; color: var(--gold-600); margin-bottom: 4px; }
.mega-post strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.55;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text-primary);
}

.mega-item:hover {
  background: var(--primary-50);
  border-color: var(--primary-100);
  color: inherit;
}

.mega-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-100);
  color: var(--color1);
  flex-shrink: 0;
}

.mega-pack .mega-ico {
  background: var(--gold-100);
  color: var(--gold-700);
}

.mega-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mega-copy strong {
  font-size: 13px;
  font-weight: 700;
}

.mega-copy em {
  font-size: 11px;
  color: var(--text-secondary);
  font-style: normal;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-sep {
  width: 1px;
  height: 28px;
  background: var(--border-default);
  flex-shrink: 0;
  margin: 0 2px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  padding-left: 12px;
  border-left: 1px solid var(--border-default);
}

.header-phone .ms {
  font-size: 20px;
}

.header-phone strong {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.header-search {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  max-width: 580px;
  height: 46px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 1px 2px rgba(15, 48, 87, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: right;
}

.header-search:hover {
  border-color: #d8d7db;
}

.header-search:focus-within {
  border-color: rgba(192, 139, 59, 0.55);
  box-shadow:
    0 1px 2px rgba(15, 48, 87, 0.04),
    0 0 0 4px rgba(192, 139, 59, 0.12);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 0 12px;
}

.header-search .search-ico {
  color: var(--gold-600);
  font-size: 20px;
  flex-shrink: 0;
}

.search-placeholder {
  min-width: 0;
  color: var(--text-tertiary);
  font-size: 13.5px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-btn,
.cart-btn,
.icon-btn,
.search-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-primary);
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  color: inherit;
}

.account-btn:hover,
.search-toggle:hover,
.burger:hover {
  background: var(--primary-50);
}

.account-btn .ms,
.search-toggle .ms,
.burger .ms {
  font-size: 22px;
}

.account-label {
  max-width: 14em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: #fff;
  color: var(--color1);
  display: grid;
  place-items: center;
}

.cart-btn:hover {
  background: var(--primary-50);
  color: var(--color1);
}

.cart-count[hidden] {
  display: none;
}

.cart-btn .ms {
  font-size: 20px;
}

.cart-count {
  position: absolute;
  top: -2px;
  left: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--color2);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  place-items: center;
}

.search-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  place-items: center;
}

/* Hero */
.hero {
  padding: 16px 0 20px;
}

.hero-banner {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-banner picture,
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Products */
.product-grid {
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.tab-panels .cover-stage,
.packages-section .cover-stage {
  min-height: 190px;
  padding: 14px 10px 12px;
}

.products-section .cover-stage {
  min-height: 195px;
  padding: 14px 10px 12px;
}

.products-section .cover-img {
  max-height: 175px;
}

.tab-panels .cover,
.packages-section .cover {
  width: min(82%, 138px);
}

.tab-panels .product-card h3,
.packages-section .product-card h3 {
  font-size: 13px;
  min-height: 2.8em;
  font-weight: 400;
}

.product-grid.active,
.product-grid.packages {
  display: grid;
}

.products-carousel {
  position: relative;
}

.product-hscroll {
  --product-cols: 6;
  --product-gap: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: calc((100% - (var(--product-cols) - 1) * var(--product-gap)) / var(--product-cols));
  gap: var(--product-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-behavior: auto;
  padding: 8px 4px 14px;
  cursor: grab;
  touch-action: pan-x;
  scrollbar-width: none;
}

.product-hscroll::-webkit-scrollbar {
  display: none;
}

.product-hscroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.product-hscroll.is-dragging .product-card,
.product-hscroll.is-dragging .blog-card {
  pointer-events: none;
}

.product-hscroll .product-card,
.product-hscroll .blog-card {
  scroll-snap-align: start;
  min-width: 0;
}

.products-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--color1);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.products-nav.prev { left: -6px; }
.products-nav.next { right: -6px; }

.products-nav:hover {
  background: var(--color1);
  color: #fff;
}

.tabs {
  display: flex;
  background: var(--bg_lightback);
  border-radius: 40px;
  padding: 4px;
  gap: 4px;
}

.tab {
  border: 0;
  background: transparent;
  padding: 8px 22px;
  border-radius: 40px;
  cursor: pointer;
  color: var(--color1);
  font-weight: 600;
}

.tab.active {
  background: #fff;
  color: var(--color2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: visible;
  border: 1px solid var(--border-default);
  box-shadow: none;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-300);
}

.product-card.oos {
  opacity: 0.88;
}

.product-card .thumb {
  display: block;
  color: inherit;
}

.product-card .thumb:hover {
  color: inherit;
}

.thumb-box,
.cover-stage {
  position: relative;
}

.thumb-box {
  border-radius: 12px;
  overflow: hidden;
}

.cover-stage {
  background:
    radial-gradient(circle at 50% 0%, #fff 0, transparent 55%),
    linear-gradient(180deg, var(--primary-50), var(--primary-100));
  padding: 18px 12px 16px;
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 12px;
}

.cover-stage.has-img {
  background: linear-gradient(180deg, #f4f7fb, #e7eef6);
}

.cover-img {
  width: auto;
  max-width: 78%;
  max-height: 200px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 8px 12px 24px rgba(18, 40, 56, 0.2);
}

.cover {
  width: min(72%, 168px);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 12px 16px;
  color: #fff;
  border-radius: 2px 10px 10px 2px;
  position: relative;
  box-shadow:
    10px 14px 28px rgba(18, 40, 56, 0.22),
    inset -1px 0 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.35s ease;
}

.product-card:hover .cover {
  transform: translateY(-8px) rotate(-2deg);
}

.cover em {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 14px;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  opacity: 0.75;
}

.cover strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover small {
  font-weight: 500;
  opacity: 0.82;
  font-size: 11px;
  margin-top: 8px;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.05));
}

.cover-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  background: #fff;
  color: var(--color1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.badge-hot { color: var(--gold-600); background: var(--gold-100); }
.badge-off { color: var(--error); background: var(--error-bg); }
.badge-soon { color: var(--text-secondary); background: var(--bg-muted); }

.hover-actions {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.hover-actions .ico-btn {
  width: 26px;
  height: 26px;
  opacity: 0;
  transform: translateY(-14px);
  background: #fff;
  box-shadow: 0 4px 10px rgba(18, 40, 56, 0.12);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s, color 0.2s;
}

.hover-actions .ico-btn .ms {
  font-size: 15px;
}

.product-card:hover .hover-actions,
.product-card:focus-within .hover-actions {
  pointer-events: auto;
}

.product-card:hover .hover-actions .ico-btn,
.product-card:focus-within .hover-actions .ico-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover .hover-actions .ico-btn:nth-child(1),
.product-card:focus-within .hover-actions .ico-btn:nth-child(1) {
  transition-delay: 0.02s;
}

.product-card:hover .hover-actions .ico-btn:nth-child(2),
.product-card:focus-within .hover-actions .ico-btn:nth-child(2) {
  transition-delay: 0.08s;
}

.product-card:hover .hover-actions .ico-btn:nth-child(3),
.product-card:focus-within .hover-actions .ico-btn:nth-child(3) {
  transition-delay: 0.14s;
}

.ico {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.ico-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color1);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
}

.ico-btn .ms {
  font-size: 20px;
}

.ico-btn:hover,
.ico-btn.active {
  background: var(--color2);
  color: #fff;
}

.ico-btn.disabled {
  cursor: default;
  color: var(--danger);
}

.ico-btn.disabled:hover {
  background: transparent;
  color: var(--danger);
}

.c-teal { background: linear-gradient(165deg, var(--primary-500), var(--primary-800)); }
.c-coral { background: linear-gradient(165deg, var(--gold-500), var(--gold-800)); }
.c-blue { background: linear-gradient(165deg, var(--primary-400), var(--primary-800)); }
.c-navy { background: linear-gradient(165deg, var(--primary-600), var(--primary-900)); }
.c-orange { background: linear-gradient(165deg, var(--gold-500), var(--gold-800)); }
.c-yellow { background: linear-gradient(165deg, var(--gold-300), var(--primary-600)); color: var(--primary-900); }
.c-black { background: linear-gradient(165deg, var(--text-secondary), var(--text-primary)); }
.c-rose { background: linear-gradient(165deg, var(--info), var(--primary-800)); }
.c-sky { background: linear-gradient(165deg, var(--primary-400), var(--primary-800)); }
.c-green { background: linear-gradient(165deg, var(--success), var(--primary-800)); }
.c-violet { background: linear-gradient(165deg, var(--primary-500), var(--primary-900)); }
.c-sand { background: linear-gradient(165deg, var(--gold-300), var(--gold-800)); }
.c-pack { background: linear-gradient(165deg, var(--primary-600), var(--gold-500)); }

.card-body {
  padding: 2px 2px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.card-cat {
  font-size: 11px;
  color: var(--color1);
  background: var(--bg_lightback);
  border-radius: 20px;
  padding: 3px 10px;
  font-weight: 600;
}

.card-rate {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-600);
  font-size: 12px;
  font-weight: 700;
}

.card-rate .stars {
  display: inline-flex;
  gap: 1px;
  color: var(--gold-500);
}

.card-rate .stars .ico {
  width: 13px;
  height: 13px;
}

.product-card h3 {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 6px;
  min-height: 3.2em;
  line-height: 1.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card h3 a {
  font-weight: 400;
}

.card-author {
  color: var(--color1);
  font-size: 12px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-author .ms {
  color: var(--color1);
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.price-box del {
  display: block;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 400;
}

.price {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.2;
}

.price small {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.oos-label {
  color: var(--danger);
  font-size: 14px;
}

.add-cart {
  border: 0;
  cursor: pointer;
  transition: 0.2s;
  color: var(--color1);
  background: #fff;
}

.add-cart-full {
  width: 42px;
  height: 42px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--color1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.add-cart-full .ms {
  font-size: 22px;
}

.add-cart-full:hover {
  background: var(--primary-700);
  color: #fff;
}

.add-cart-full.is-added,
.add-cart-full.is-added:hover {
  background: var(--success);
  color: #fff;
}

.add-cart-full.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.add-cart-full:disabled,
.add-cart-full:disabled:hover {
  background: var(--bg-muted);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .hover-actions {
    pointer-events: auto;
  }

  .hover-actions .ico-btn {
    opacity: 1;
    transform: none;
  }
}

/* Paths */
.paths-section {
  background:
    radial-gradient(circle at 8% 20%, var(--gold-100) 0, transparent 28%),
    radial-gradient(circle at 96% 80%, var(--primary-100) 0, transparent 32%),
    var(--bg_light);
}

.paths-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.paths-head .title-block {
  max-width: 560px;
}

.paths-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.paths-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-500);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.paths-carousel {
  position: relative;
}

.paths-grid {
  --paths-cols: 4;
  --paths-gap: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: calc((100% - (var(--paths-cols) - 1) * var(--paths-gap)) / var(--paths-cols));
  gap: var(--paths-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-behavior: auto;
  padding: 8px 4px 14px;
  cursor: grab;
  touch-action: pan-x;
  scrollbar-width: none;
}

.paths-grid::-webkit-scrollbar {
  display: none;
}

.paths-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.paths-grid.is-dragging .path-item {
  pointer-events: none;
}

.paths-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--color1);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.paths-nav.prev { left: -6px; }
.paths-nav.next { right: -6px; }

.paths-nav:hover {
  background: var(--color1);
  color: #fff;
}

.path-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 14px 14px 14px 12px;
  box-shadow: none;
  min-height: 84px;
  scroll-snap-align: start;
}

.path-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.path-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

.path-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-tertiary);
}

.path-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg_lightback);
  color: var(--color1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.path-ico .ms {
  font-size: 22px;
  color: var(--color1);
}

.path-go {
  color: var(--color1);
  opacity: 0;
  transform: translateX(6px);
  transition: 0.25s;
  font-size: 20px;
}

.path-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary-300);
  color: inherit;
}

.path-item:hover .path-text strong {
  color: var(--color1);
}

.path-item:hover .path-ico {
  background: var(--color1);
}

.path-item:hover .path-ico .ms {
  color: #fff;
}

.path-item:hover .path-go {
  opacity: 1;
  transform: none;
}

.banner-strip {
  padding-top: 40px;
}

.banner-strip img {
  width: 100%;
  border-radius: 16px;
}

.banner-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.banner-img {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--primary-50);
}

.banner-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.banner-wide {
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.banner-wide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}

.banner-card {
  display: block;
  border-radius: 16px;
  min-height: 160px;
  padding: 28px 32px;
  color: #fff;
  background: linear-gradient(100deg, var(--primary-700), var(--primary-500) 55%, var(--gold-500));
  font-size: 24px;
  font-weight: 800;
}

.banner-card.kids {
  background: linear-gradient(100deg, var(--gold-500), var(--gold-300) 50%, var(--primary-600));
  color: var(--primary-900);
}

@media (max-width: 800px) {
  .banner-pair { grid-template-columns: 1fr; }
}

/* Categories */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.cat-card {
  background: var(--color1-dark);
  color: #fff;
  border: 1.5px solid var(--color1-dark);
  border-radius: 14px;
  padding: 28px 12px 36px;
  text-align: center;
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  transition: 0.3s;
}

.cat-card:hover {
  background: #fff;
  color: var(--color1-dark);
  border-color: var(--color1);
}

.cat-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--color1);
  display: grid;
  place-items: center;
  color: #fff;
}

.cat-icon .ms {
  font-size: 30px;
  color: #fff;
}

.cat-card:hover .cat-icon {
  background: var(--bg_lightback);
}

.cat-card:hover .cat-icon .ms {
  color: var(--color1);
}

.cat-card strong {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
}

.cat-card em {
  position: absolute;
  bottom: -12px;
  background: var(--color2);
  color: #fff;
  font-style: normal;
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 50px;
}

/* About */
.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto 1fr;
  gap: 8px 40px;
  align-items: start;
}

.about-heading {
  grid-column: 1;
  grid-row: 1;
}

.about-text {
  grid-column: 1;
  grid-row: 2;
}

.about-media {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.about-text p {
  color: var(--muted);
  line-height: 2.2;
  margin-top: 8px;
}

.about-text .more-link {
  display: inline-flex;
  margin-top: 16px;
}

.about-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.about-art {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.blog-section .product-hscroll {
  --product-cols: 4;
  --product-gap: 16px;
}

.blog-grid-page {
  grid-template-columns: repeat(3, 1fr);
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--primary-100);
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 0;
}
.blog-card-body {
  padding: 10px 2px 2px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 0;
}
.blog-card-meta span:first-child { color: var(--gold-600); }
.blog-card-excerpt {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}
.blog-card-date {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(15, 48, 87, 0.88);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(15, 48, 87, 0.2);
}

.blog-card .thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.blog-cover {
  aspect-ratio: 4/3;
  display: grid;
  place-items: end start;
  padding: 14px;
  color: #fff;
  font-weight: 700;
}

.b1 { background: linear-gradient(160deg, var(--primary-600), var(--primary-900)); }
.b2 { background: linear-gradient(160deg, var(--gold-500), var(--gold-800)); }
.b3 { background: linear-gradient(160deg, var(--primary-700), var(--primary-900)); }
.b4 { background: linear-gradient(160deg, var(--info), var(--primary-800)); }
.b5 { background: linear-gradient(160deg, var(--success), var(--primary-800)); }
.b6 { background: linear-gradient(160deg, var(--primary-500), var(--gold-700)); }

.article-wrap {
  max-width: 760px;
}

.article-hero {
  margin: 18px 0 22px;
  border-radius: 14px;
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.single-article .article-cat {
  color: var(--color2);
  font-weight: 700;
  margin-bottom: 8px;
}

.single-article .article-meta {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 8px;
}

.entry-content p {
  margin: 0 0 14px;
  line-height: 1.9;
}

.blog-card h3 {
  font-size: 13px;
  font-weight: 400;
  padding: 0;
  margin: 0;
  min-height: 2.8em;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: auto 0 0;
  padding: 0;
  color: var(--color1);
  font-size: 13px;
}

/* Newsletter */
.newsletter {
  background: var(--bg_light);
  padding: 50px 0;
}

.newsletter-wrap {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 30px;
  align-items: center;
}

.newsletter-form-wrap h3 {
  font-size: 24px;
  color: var(--color1);
  margin-bottom: 8px;
}

.newsletter-form-wrap p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 2.2;
}

.newsletter-form {
  display: flex;
  border: 1px solid var(--color1);
  border-radius: 40px;
  padding: 4px;
  max-width: 560px;
  background: #fff;
}

.newsletter-form input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 10px 16px;
  border-radius: 30px;
}

.newsletter-form input::placeholder {
  color: var(--color1);
}

.newsletter-form button {
  border: 0;
  background: var(--color1);
  color: #fff;
  border-radius: 40px;
  padding: 8px 16px;
  min-width: 180px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.newsletter-form button .ms {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--color1);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.form-msg {
  color: var(--success);
  margin-top: 10px;
}

/* Footer */
.site-footer {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(192, 139, 59, 0.12), transparent 55%),
    linear-gradient(180deg, var(--primary-800) 0%, var(--primary-900) 100%);
  color: var(--primary-200);
  padding-top: 52px;
  margin-top: 48px;
}

.site-footer a {
  color: var(--primary-200);
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-footer a:hover {
  color: var(--gold-300);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.25fr 1.6fr 1.15fr;
  gap: 36px 40px;
  padding-bottom: 36px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-tagline {
  margin: 0;
  color: var(--gold-300);
  font-size: 14px;
  font-weight: 700;
}

.footer-excerpt {
  margin: 0;
  color: var(--primary-300);
  font-size: 13px;
  line-height: 1.9;
  max-width: 36ch;
}

.footer-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff !important;
  min-height: 52px;
}

.footer-phone-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  border-color: rgba(192, 139, 59, 0.45);
}

.footer-phone-cta .ms {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-500);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.footer-phone-cta small {
  display: block;
  font-size: 11px;
  color: var(--primary-300);
  font-weight: 500;
}

.footer-phone-cta strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.logo.light {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  background: #fff;
  border-radius: 12px;
}
.logo.light img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
}

.footer-col h4,
.footer-contact h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: 0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-200);
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.footer-contact-list > li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.footer-contact-list .ms {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-300);
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-top: 2px;
}

.footer-contact-list small {
  display: block;
  font-size: 11px;
  color: var(--primary-300);
  margin-bottom: 2px;
}

.footer-contact-list span,
.footer-contact-list a {
  font-size: 13px;
  line-height: 1.7;
  color: var(--primary-100);
}

.footer-phones {
  display: block;
  line-height: 1.8;
}

.footer-phones a {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--primary-200);
  font-size: 11px;
  font-weight: 600;
}

.footer-trust-chip .ms {
  font-size: 15px;
  color: var(--gold-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  font-size: 12px;
  color: var(--primary-300);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.footer-bottom-inner p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-legal a {
  color: var(--primary-300);
  font-size: 12px;
}

.footer-legal a:hover {
  color: var(--gold-300);
}

/* Mobile bottom dock */
.mobile-dock {
  display: none;
}

@media (max-width: 992px) {
  .mobile-dock {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 190;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 8px 6px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border-default);
    box-shadow: 0 12px 36px rgba(15, 48, 87, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  body.is-nav-open .mobile-dock,
  body.is-search-open .mobile-dock,
  body.is-shop-filters-open .mobile-dock,
  body:has(.cart-drawer.open) .mobile-dock,
  body.woocommerce-checkout .mobile-dock,
  body.woocommerce-order-received .mobile-dock {
    display: none;
  }

  .mobile-dock-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    padding: 4px 2px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text-tertiary);
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-dock-item .ms {
    font-size: 22px;
    line-height: 1;
    color: inherit;
  }

  .mobile-dock-item.is-active,
  .mobile-dock-item:hover {
    color: var(--primary-700);
    background: var(--primary-50);
  }

  .mobile-dock-item.is-active .ms {
    font-variation-settings: "FILL" 1;
  }

  .mobile-dock-badge {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-18px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gold-500);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
  }
}

/* legacy helpers kept for other templates */
.socials {
  display: flex;
  gap: 8px;
}
.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--primary-800);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary-200);
}
.socials a .ms { font-size: 18px; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tel-list { unicode-bidi: isolate; }
.tel-list a { color: inherit; }
.contact-list .ms {
  color: var(--color2);
  margin-top: 6px;
}

.newsletter-art {
  min-height: 180px;
  border-radius: 20px;
  background: radial-gradient(circle at 40% 40%, var(--gold-100), var(--primary-100));
  display: grid;
  place-items: center;
  color: var(--color1);
}
.newsletter-art .ms { font-size: 64px; }

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 48, 87, 0.2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  position: fixed;
  z-index: 220;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  width: min(560px, calc(100% - 32px));
  right: 50%;
  top: 18%;
  transform: translateX(50%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}

.auth-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) scale(1);
}

.auth-modal input {
  width: 100%;
  border: 1px solid var(--color1);
  border-radius: 30px;
  padding: 12px 16px;
  outline: none;
  margin: 12px 0;
}

.search-sheet {
  position: fixed;
  inset: auto 0 0;
  z-index: 220;
  display: flex;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.32s;
}

.search-sheet.show {
  visibility: visible;
  transition: visibility 0s;
}

.search-sheet-panel {
  width: min(760px, 100%);
  max-height: min(90dvh, 740px);
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 48px rgba(15, 48, 87, 0.18);
  transform: translateY(108%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px 20px calc(16px + env(safe-area-inset-bottom, 0px));
}

.search-sheet.show .search-sheet-panel {
  transform: translateY(0);
}

.search-sheet-handle {
  width: 44px;
  height: 4px;
  border-radius: 99px;
  background: var(--border-default);
  margin: 4px auto 12px;
}

.search-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
}

.search-sheet-head h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.search-sheet-head p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.search-sheet .close-x {
  position: static;
  flex-shrink: 0;
}

.search-sheet-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg_light);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 4px 4px 4px 12px;
  margin-bottom: 16px;
}

.search-sheet-form:focus-within {
  background: #fff;
  border-color: rgba(192, 139, 59, 0.55);
  box-shadow: 0 0 0 4px rgba(192, 139, 59, 0.12);
}

.search-sheet-form .ms {
  color: var(--gold-600);
  font-size: 22px;
}

.search-sheet-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 15px;
  padding: 10px 0;
  color: var(--text-primary);
}

.search-sheet-form input[type="search"]::-webkit-search-decoration,
.search-sheet-form input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-sheet-form button {
  border: 0;
  background: var(--gold-500);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.search-sheet-form button:hover {
  background: var(--gold-600);
}

.search-sheet-body {
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.search-group-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  margin: 4px 0 10px;
}

.search-hot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.search-hot a {
  background: var(--bg_light);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

.search-hot a:hover {
  border-color: var(--gold-300);
  background: var(--gold-50);
}

.search-hits {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-hit {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  color: inherit;
}

.search-hit:hover {
  background: var(--bg_light);
}

.search-hit img,
.search-hit-ph {
  width: 52px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--primary-50);
}

.search-hit strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.search-hit em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.search-hit b {
  font-size: 13px;
  color: var(--color1);
  white-space: nowrap;
}

.search-empty,
.search-all {
  display: block;
  text-align: center;
  padding: 18px 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.search-all {
  margin-top: 8px;
  color: var(--gold-600);
  font-weight: 700;
}

.quick-view-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}

.quick-view-hero {
  display: grid;
  grid-template-columns: minmax(110px, 168px) minmax(0, 1fr);
  gap: clamp(12px, 3vw, 20px);
  align-items: start;
}

.quick-view-cover {
  min-width: 0;
}

.quick-view-cover img,
.quick-view-ph {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: var(--primary-50);
  display: block;
}

.quick-view-info {
  min-width: 0;
}

.quick-view-info h3 {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 6px;
}

.quick-view-info .author {
  color: var(--text-tertiary);
  font-size: 13px;
  margin: 0 0 12px;
}

.quick-view-price {
  margin: 0;
}

.quick-view-price .price {
  display: block;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 800;
  color: var(--primary-800);
  line-height: 1.4;
}

.quick-view-price .price small {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-tertiary);
}

.quick-view-price del {
  display: block;
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 2px;
}

.quick-view-excerpt {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7f1e6;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.9;
}

.quick-view-attrs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.quick-view-attr {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--primary-50);
  border: 1px solid rgba(15, 48, 87, 0.06);
}

.quick-view-attr dt {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
}

.quick-view-attr dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-800);
  line-height: 1.6;
  word-break: break-word;
}

.quick-view-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  position: sticky;
  bottom: 0;
  padding-top: 4px;
  background: linear-gradient(#fff0, #fff 28%);
}

.quick-view-actions .btn-primary {
  width: auto;
  border-radius: 12px;
  padding: 11px 18px;
}

.quick-view-more {
  color: var(--gold-600);
  font-weight: 700;
  font-size: 13px;
}

#quickViewModal .search-sheet-panel {
  max-height: min(92dvh, 820px);
}

@media (max-width: 700px) {
  .search-sheet-panel {
    width: 100%;
    max-height: 92dvh;
    padding: 8px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  #quickViewModal .search-sheet-head p {
    display: none;
  }

  .quick-view-hero {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .quick-view-excerpt {
    font-size: 13px;
    line-height: 1.8;
    padding: 10px 12px;
  }

  .quick-view-attrs {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .quick-view-attr {
    padding: 8px 10px;
  }

  .quick-view-actions .btn-primary {
    flex: 1 1 140px;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .quick-view-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .quick-view-cover {
    width: min(150px, 46%);
  }

  .quick-view-attrs {
    grid-template-columns: 1fr;
    text-align: right;
  }

  .quick-view-actions {
    justify-content: center;
    width: 100%;
  }
}

body.is-search-open {
  overflow: hidden;
}

.hint {
  color: var(--text-tertiary);
  margin: 8px 0;
}

.hot-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-searches a {
  background: var(--bg_lightback);
  color: var(--color1);
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 13px;
}

.auth-modal h3 {
  color: var(--color1);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.auth-links button {
  background: none;
  border: 0;
  color: var(--color1);
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  border: 0;
  background: var(--color1);
  color: #fff;
  border-radius: 30px;
  padding: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.close-x {
  position: absolute;
  left: 14px;
  top: 10px;
  border: 1px solid var(--color2);
  background: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color2);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -440px;
  width: min(400px, 94vw);
  background: #fff;
  z-index: 230;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  box-shadow: 8px 0 32px rgba(15, 48, 87, 0.12);
}

.cart-drawer.open {
  left: 0;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--light_header);
  padding: 14px 16px;
  position: relative;
}

.cart-head .close-x {
  position: static;
  flex-shrink: 0;
}

.cart-head-text {
  min-width: 0;
  text-align: right;
}

.cart-head-text strong {
  display: block;
  color: var(--primary-800);
  font-size: 16px;
  line-height: 1.4;
}

.cart-head-text small {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.cart-alert {
  margin: 0;
  padding: 10px 16px;
  background: var(--error-bg);
  color: var(--danger);
  font-size: 13px;
}

.cart-alert[hidden] {
  display: none !important;
}

.cart-body {
  flex: 1;
  overflow: auto;
  padding: 12px 16px 20px;
}

.cart-body .empty {
  text-align: center;
  color: var(--text-tertiary);
  margin-top: 40px;
}

.cart-empty {
  text-align: center;
  padding: 48px 12px 24px;
  color: var(--text-secondary);
}

.cart-empty .ms {
  font-size: 40px;
  color: var(--gold-500);
  display: block;
  margin-bottom: 10px;
}

.cart-empty strong {
  display: block;
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 6px;
}

.cart-empty p {
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.cart-empty .btn-primary {
  max-width: 220px;
  margin: 0 auto;
  border-radius: 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
  transition: opacity 0.2s;
}

.cart-line.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.cart-line img,
.cart-line .cover {
  width: 64px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-muted);
}

.cart-line .meta {
  min-width: 0;
}

.cart-line .meta a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.55;
}

.cart-line .meta a:hover {
  color: var(--primary-700);
}

.cart-line .unit {
  display: block;
  color: var(--text-tertiary);
  font-size: 12px;
  margin-top: 4px;
}

.cart-line-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  min-height: 32px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 32px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.cart-qty button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--primary-700);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.cart-qty button:disabled {
  color: var(--text-tertiary);
  cursor: default;
}

.cart-qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  line-height: 32px;
}

.cart-line-sum {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 32px;
  color: var(--primary-800);
  text-align: center;
  white-space: nowrap;
}

.cart-remove {
  flex-shrink: 0;
  height: 32px;
  border: 0;
  background: none;
  color: var(--danger);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 32px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.cart-suggest {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-default);
}

.cart-suggest[hidden] {
  display: none !important;
}

.cart-suggest > strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.cart-suggest > p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.cart-suggest > p a {
  color: var(--gold-600);
  font-weight: 700;
}

.cart-suggest .next-book {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.cart-suggest .next-book img,
.cart-suggest .next-book-ph {
  width: 40px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-muted);
}

.cart-suggest .next-book strong {
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.cart-suggest .next-book em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--text-tertiary);
}

.cart-foot {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border-default);
  background: #fff;
  box-shadow: 0 -8px 24px rgba(15, 48, 87, 0.06);
}

.cart-summary {
  margin-bottom: 12px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 4px 0;
}

.cart-summary-row.is-muted {
  color: var(--text-tertiary);
}

.cart-summary-row.is-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-default);
  font-size: 14px;
}

.cart-foot > .btn-primary {
  border-radius: 12px;
  font-weight: 700;
  min-height: 48px;
}

.cart-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 10px;
}

.cart-foot-links a,
.cart-foot-links button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-700);
  cursor: pointer;
}

.cart-foot-links #cartClear {
  color: var(--danger);
}

.cart-total {
  margin-bottom: 10px;
}

.cart-foot-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

.cart-foot-actions .btn-primary,
.cart-foot-actions .btn-ghost {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-200);
  background: #fff;
  color: var(--primary-700);
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-ghost:hover {
  background: var(--primary-50);
  color: var(--primary-800);
}

/* Mobile nav */
@media (max-width: 1200px) {
  .header-phone { display: none; }
  .mega-cols { grid-template-columns: 1fr 200px; }
  .mega-col-feat { display: none; }
  .mega-tiles { grid-template-columns: repeat(2, 1fr); }
  .mega-posts { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .header-search { display: none; }
  .search-toggle { display: grid; }
  .account-label { display: none; }
  .account-btn { padding: 8px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-hscroll {
    --product-cols: 3;
    grid-template-columns: none;
  }
  .blog-section .product-hscroll {
    --product-cols: 2;
  }
  .blog-grid:not(.product-hscroll) { grid-template-columns: repeat(3, 1fr); }
  .paths-grid { --paths-cols: 3; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 992px) {
  .header-main {
    min-height: 58px;
    gap: 6px;
  }
  .header-nav-wrap {
    border: 0;
    background: none;
    height: 0;
    overflow: visible;
  }
  .burger { display: grid; }
  .account-btn,
  .header-sep { display: none; }
  .logo {
    flex: 1;
    min-width: 0;
    gap: 8px;
  }
  .logo img { height: 40px; width: auto; max-width: 150px; }
  .logo-text { min-width: 0; }
  .logo-text strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo-text small { display: none; }
  .header-actions { gap: 0; }
  .search-toggle,
  .cart-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    box-shadow: none;
  }
  .search-toggle:hover,
  .cart-btn:hover {
    background: var(--primary-50);
  }
  .cart-count {
    top: 2px;
    left: 2px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    border-width: 1px;
  }
  .nav-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 14px 16px;
    background: #fff;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-default);
    margin: 0;
  }
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    min-width: 0;
  }
  .nav-brand:hover { color: var(--text-primary); }
  .nav-brand img {
    width: auto;
    height: 36px;
    max-width: 148px;
    background: none;
    border-radius: 0;
    padding: 0;
  }
  .nav-brand strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
  }
  .nav-brand small {
    display: block;
    font-size: 11px;
    opacity: 0.78;
    margin-top: 2px;
  }
  .nav-close {
    color: var(--text-secondary);
    background: var(--bg-subtle);
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .nav-close:hover { background: var(--primary-50); color: var(--color1); }
  .nav-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 16px 4px;
    width: calc(100% - 32px);
    border: 1px solid var(--border-default);
    background: var(--bg-subtle);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text-tertiary);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
  }
  .nav-search-btn .ms { color: var(--text-tertiary); font-size: 20px; }
  .nav-ico {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 20px;
    flex-shrink: 0;
  }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    height: 100dvh;
    background: #fff;
    z-index: 240;
    transform: translate3d(110%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0;
    box-shadow: -8px 0 28px rgba(15, 48, 87, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .main-nav.open { transform: none; }
  .main-nav > ul > li {
    display: block;
    width: 100%;
  }
  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    flex: 1;
    overflow: auto;
    overflow-x: hidden;
    padding: 4px 8px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
  }
  .main-nav > ul > li > a::after { display: none; }
  .has-mega.is-mega-on > a,
  .has-mega:hover > a,
  .has-mega:focus-within > a {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border-radius: 10px;
  }
  .has-sub > a::before {
    margin-right: auto;
    transform: rotate(45deg);
  }
  .has-sub.open > a::before,
  .has-sub:hover > a::before,
  .has-sub:focus-within > a::before,
  .has-mega.is-mega-on > a::before {
    transform: rotate(225deg);
  }
  .main-nav > ul > li > a.active,
  .main-nav > ul > li:hover > a,
  .main-nav > ul > li:focus-within > a {
    background: var(--bg-subtle);
    color: var(--text-primary);
  }
  .sub-menu,
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    border: 0;
    border-radius: 10px;
    background: var(--bg-subtle);
    padding: 8px;
    margin-top: 0;
    pointer-events: auto;
  }
  .has-sub.open > .sub-menu,
  .has-sub.open > .mega-menu { display: block; }
  .has-sub.open > a::before { transform: rotate(225deg); }
  .has-mega:not(.open) > .mega-menu,
  .has-sub:not(.open) > .sub-menu {
    display: none !important;
    opacity: 0;
    visibility: hidden;
  }
  .has-mega.open > .mega-menu,
  .has-sub.open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .mega-cols,
  .mega-tiles,
  .mega-posts,
  .mega-grid { grid-template-columns: 1fr; gap: 6px; }
  .mega-col-feat { display: none; }
  .mega-item {
    padding: 8px 10px;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: 10px;
  }
  .mega-item .mega-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .mega-item .mega-ico .ms { font-size: 16px; }
  .mega-item .mega-copy strong {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
  }
  .mega-item .mega-copy em {
    font-size: 10px;
  }
  .mega-promo { min-height: auto; }
  .mega-menu,
  .mega-menu-sm {
    position: static;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    transform: none;
    overflow: hidden;
  }
  .mega-inner,
  .mega-cols,
  .mega-col {
    width: 100%;
    min-width: 0;
  }
  .mega-col-cats {
    padding: 0;
  }
  .mega-col-head {
    padding: 0 2px;
    margin-bottom: 8px;
  }
  .mega-col-head strong { font-size: 12px; }
  .mega-col-head a { font-size: 11px; }
  .mega-grid {
    gap: 6px;
  }
  .nav-drawer-foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-default);
    background: #fff;
  }
  .nav-call {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    padding: 4px 2px;
    font-size: 13px;
  }
  .nav-call .ms {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-subtle);
    color: var(--text-tertiary);
    display: grid;
    place-items: center;
    font-size: 18px;
  }
  .nav-call small {
    display: block;
    font-size: 10px;
    color: var(--text-tertiary);
  }
  .nav-call strong { font-size: 13px; font-weight: 700; }
  .nav-login {
    border-radius: 12px;
    min-height: 42px;
    font-size: 13px;
    font-weight: 700;
  }
  body.is-nav-open { overflow: hidden; }
  body.is-nav-open .site-header {
    z-index: 250;
  }
  .about-wrap,
  .newsletter-wrap {
    grid-template-columns: 1fr;
  }
  .about-wrap {
    grid-template-rows: auto;
    gap: 16px;
  }
  .about-heading,
  .about-text,
  .about-media {
    grid-column: auto;
    grid-row: auto;
  }

  .paths-grid { --paths-cols: 2; }
}

@media (max-width: 700px) {
  .section { padding: 36px 0; }
  .title-block h2 { font-size: 20px; }
  .section-head {
    margin-bottom: 18px;
    gap: 8px;
  }
  .section-head .more-link,
  .about-text .more-link {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 999px;
  }
  .section-head .more-link {
    margin-bottom: 2px;
  }
  .about-text .more-link {
    margin-top: 12px;
  }
  .product-grid,
  .blog-grid:not(.product-hscroll),
  .cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cats-grid {
    gap: 10px;
    margin-top: 18px;
  }
  .cat-card {
    min-height: 118px;
    padding: 14px 8px 22px;
    gap: 6px;
    border-radius: 12px;
  }
  .cat-icon {
    width: 44px;
    height: 44px;
  }
  .cat-icon .ms {
    font-size: 22px;
  }
  .cat-card strong {
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cat-card em {
    bottom: -8px;
    font-size: 11px;
    padding: 2px 10px;
  }
  .product-hscroll {
    --product-cols: 2;
    grid-template-columns: none;
  }
  .blog-section .product-hscroll {
    --product-cols: 2;
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
  }
  .product-hscroll,
  .paths-grid,
  .blog-section .product-hscroll {
    touch-action: auto;
    cursor: default;
  }
  .paths-grid { --paths-cols: 2; }
  .paths-head { align-items: stretch; }
  .paths-grid {
    --paths-gap: 6px;
    grid-template-rows: repeat(2, 72px);
    align-items: stretch;
    padding: 4px 4px 8px;
  }
  .path-item {
    height: 100%;
    min-height: 0;
    padding: 6px 8px;
    gap: 6px;
  }
  .path-text strong {
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .path-text em {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .path-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .path-ico .ms {
    font-size: 16px;
  }
  .path-go {
    display: none;
  }
  .paths-nav,
  .products-nav { display: none; }
  .add-cart-full {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .add-cart-full .ms {
    font-size: 18px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }
  .footer-brand,
  .footer-contact { grid-column: auto; }
  .footer-excerpt { max-width: none; }
  .footer-phone-cta { width: 100%; }
  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }
  .footer-nav .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .footer-nav .footer-col:last-child ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .newsletter-form {
    flex-direction: column;
    border-radius: 20px;
  }
  .newsletter-form button { justify-content: center; }
}

/* Single book */
.book-single {
  --book-sticky-top: 124px;
  background: var(--bg-subtle);
  padding: 20px 0 80px;
}
.admin-bar .book-single { --book-sticky-top: calc(124px + 32px); }
.book-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}
.book-crumb a { color: var(--text-secondary); }
.book-crumb a:hover { color: var(--color1); }
.book-crumb .ms { font-size: 16px; opacity: 0.55; }
.book-hero {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
  margin-bottom: 28px;
}
.book-gallery { position: sticky; top: calc(var(--book-sticky-top) + 16px); }
.book-stage {
  position: relative;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--border-default);
  padding: 22px;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.book-stage img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.book-stage-empty {
  color: var(--text-tertiary);
  font-weight: 700;
}
.book-wish {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-default);
  color: var(--text-tertiary);
  box-shadow: 0 6px 16px rgba(15, 48, 87, 0.08);
}
.book-single .book-wish:hover,
.book-single .book-wish.active {
  background: #fff;
  color: var(--error);
}
.book-wish.active .ms { color: var(--error); }
.book-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}
.book-thumb {
  flex: 0 0 72px;
  height: 88px;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
}
.book-thumb.is-active { border-color: var(--color2); box-shadow: 0 0 0 2px rgba(192, 139, 59, 0.25); }
.book-thumb img { width: 100%; height: 100%; object-fit: contain; }
.book-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.book-meta-line {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.book-meta-line span { color: var(--text-tertiary); font-weight: 600; }
.book-excerpt {
  position: relative;
  margin: 16px 0 12px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 2;
}
.book-excerpt-text {
  max-height: 9.2em;
  overflow: hidden;
}
.book-excerpt.is-open .book-excerpt-text { max-height: none; }
.book-excerpt:not(.is-open)::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 28px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--bg-subtle));
  pointer-events: none;
}
.book-more {
  border: 0;
  background: none;
  color: var(--gold-600);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}
.book-sample {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color1);
  font-weight: 700;
  font-size: 14px;
  margin: 8px 0 16px;
}
.book-sample .ms { color: var(--color1); }
.book-buy {
  background: var(--bg-muted);
  border-radius: 20px;
  padding: 18px;
  margin: 8px 0 16px;
}
.book-price strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}
.book-price small { font-size: 14px; font-weight: 700; }
.book-price del {
  display: block;
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 4px;
}
.book-stock {
  margin: 8px 0 14px;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}
.book-stock.is-out,
.book-buy.is-oos .book-price { color: var(--error); }
.book-buy-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}
.book-qty {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  overflow: hidden;
  flex-shrink: 0;
}
.book-qty button {
  width: 40px;
  height: 42px;
  border: 0;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.book-qty input {
  width: 42px;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 800;
  background: none;
  color: var(--text-primary);
  -moz-appearance: textfield;
  appearance: textfield;
}
.book-qty input::-webkit-outer-spin-button,
.book-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.book-add {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border-radius: 999px;
  height: 46px;
  gap: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.book-add.is-added,
.book-add.is-added:hover { background: var(--success); }
.book-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.book-cat a { color: var(--text-primary); font-weight: 700; }
.book-tabs-sentinel {
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.book-tabs-bar {
  position: sticky;
  top: var(--book-sticky-top);
  z-index: 90;
  transition: top 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.28s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 18px;
  padding: 8px 12px 8px 10px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(15, 48, 87, 0.06);
}
body.is-book-tabs-sticky .site-header {
  transform: translateY(-100%);
  pointer-events: none;
}
body.is-book-tabs-sticky .book-single {
  --book-sticky-top: var(--book-tabs-h, 72px);
}
body.is-book-tabs-sticky .book-tabs-bar {
  top: 0;
  z-index: 120;
}
.admin-bar.is-book-tabs-sticky .book-tabs-bar { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar.is-book-tabs-sticky .book-tabs-bar { top: 46px; }
}
.book-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  min-width: 0;
}
.book-tabs a {
  flex-shrink: 0;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
}
.book-tabs a.is-active {
  color: var(--gold-600);
  border-bottom-color: var(--gold-500);
}
.book-tabs em { font-style: normal; font-weight: 600; color: var(--text-tertiary); }
.book-fabs { display: flex; gap: 8px; flex-shrink: 0; }
.book-fab {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--primary-600);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.book-fab.is-gold { background: var(--gold-500); }
.book-share-wrap { position: relative; }
.book-share-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 48, 87, 0.14);
  min-width: 170px;
  padding: 8px;
  z-index: 5;
}
.book-share-pop a,
.book-share-pop button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 10px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  text-align: right;
}
.book-share-pop a:hover,
.book-share-pop button:hover { background: var(--primary-50); }
.book-panel {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--border-default);
  overflow: hidden;
  margin-bottom: 22px;
  scroll-margin-top: calc(var(--book-sticky-top) + 72px);
}
.book-panel.is-story {
  background: linear-gradient(180deg, #fffdf8 0%, #fff 42%);
  border-color: rgba(192, 139, 59, 0.2);
}
.book-panel.is-specs {
  border-color: rgba(27, 79, 140, 0.14);
}
.book-panel.is-files {
  background: linear-gradient(180deg, #f6fbf8 0%, #fff 48%);
  border-color: rgba(31, 169, 113, 0.18);
}
.book-panel.is-reviews {
  border-color: rgba(192, 139, 59, 0.16);
}
.book-panel-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--primary-800);
  font-weight: 800;
  font-size: 18px;
  padding: 18px 22px 4px;
}
.book-panel-label .ms {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--bg-muted);
  color: var(--gold-600);
}
.book-panel.is-story .book-panel-label .ms { background: var(--gold-50); color: var(--gold-600); }
.book-panel.is-specs .book-panel-label .ms { background: var(--primary-50); color: var(--primary-600); }
.book-panel.is-files .book-panel-label .ms { background: #e8f6ef; color: var(--success); }
.book-panel.is-reviews .book-panel-label .ms { background: var(--gold-50); color: var(--gold-600); }
.book-reviews { padding: 12px 22px 24px; }
.book-story {
  padding: 10px 26px 30px;
  font-size: 15.5px;
  line-height: 2.15;
  color: var(--text-primary);
}
.book-story h2,
.book-story h3 {
  font-size: 18px;
  margin: 28px 0 10px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--primary-800);
}
.book-story h2:first-child,
.book-story h3:first-child { margin-top: 8px; }
.book-story p { margin-bottom: 14px; color: var(--text-secondary); }
.book-story p:first-of-type {
  font-size: 16px;
  color: var(--text-primary);
}
.book-empty { color: var(--text-tertiary); font-size: 14px; }
.book-empty-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 28px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 48, 87, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-secondary);
}
.book-empty-card .ms { font-size: 34px; color: var(--gold-500); }
.book-panel.is-files .book-empty-card .ms { color: var(--success); }
.book-empty-card strong { font-size: 15px; color: var(--text-primary); }
.book-empty-card p { margin: 0; font-size: 13px; }
.book-specs-wrap { padding: 14px 22px 24px; }
.book-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.book-spec {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--primary-50);
  border: 1px solid rgba(27, 79, 140, 0.08);
}
.book-spec.is-wide { grid-column: 1 / -1; background: #fff; border-color: var(--border-default); }
.book-spec dt {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
}
.book-spec dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.7;
}
.book-spec.is-wide dd { font-weight: 600; direction: ltr; text-align: left; color: var(--text-secondary); }
.book-spec .is-empty { color: var(--border-strong); font-weight: 500; }
.book-files-body { padding: 14px 22px 24px; }
.book-files-list {
  display: grid;
  gap: 10px;
}
.book-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(31, 169, 113, 0.2);
  border-radius: 16px;
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 10px 24px -20px rgba(15, 48, 87, 0.5);
}
.book-file:hover { background: #f3faf6; color: var(--text-primary); }
.book-file-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e8f6ef;
  color: var(--success);
  flex-shrink: 0;
}
.book-file-ico .ms { font-size: 26px; }
.book-file-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.book-file-txt strong { font-size: 15px; }
.book-file-txt small { font-size: 12px; color: var(--text-tertiary); }
.book-file-dl { color: var(--success); }
.book-related { margin-top: 36px; }
.book-related .title-block h2 { font-size: clamp(18px, 2vw, 24px); }
.book-related .title-block p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 14px;
}
.book-related .title-block p a {
  color: var(--gold-600);
  font-weight: 700;
}

.next-books {
  position: fixed;
  right: 16px;
  left: 16px;
  bottom: 16px;
  z-index: 230;
  max-width: 420px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--primary-100);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(10, 31, 57, 0.2);
  padding: 16px 18px 12px;
}
.next-books[hidden] { display: none !important; }
.next-books .close-x {
  position: absolute;
  top: 10px;
  left: 10px;
}
.next-books-kicker {
  margin: 0 0 4px;
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}
.next-books > strong {
  display: block;
  padding-left: 32px;
  margin-bottom: 6px;
  color: var(--primary-800);
  font-size: 14px;
  line-height: 1.7;
}
.next-books-cat {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.next-books-cat a { color: var(--gold-600); font-weight: 700; }
.next-book {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--primary-50);
}
.next-book img,
.next-book-ph {
  width: 44px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--primary-50);
}
.next-book a { color: inherit; min-width: 0; }
.next-book strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}
.next-book em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: var(--text-tertiary);
}
@media (min-width: 800px) {
  .next-books {
    right: 24px;
    left: auto;
    width: 380px;
    margin: 0;
  }
}
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
}
.woocommerce-message { background: var(--success-bg); color: var(--success); }
.woocommerce-info { background: var(--primary-50); color: var(--primary-700); }
.woocommerce-error { background: var(--error-bg); color: var(--error); list-style: none; }

.book-reviews {
  display: grid;
  gap: 20px;
}
.book-reviews.has-reviews {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}
.book-reviews-summary {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px 22px;
  padding: 18px 22px;
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(192, 139, 59, 0.16), transparent 46%),
    linear-gradient(135deg, var(--gold-50) 0%, #fff 52%, var(--primary-50) 100%);
  border: 1px solid rgba(192, 139, 59, 0.22);
}
.book-reviews-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 84px;
  padding: 10px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px -18px rgba(15, 48, 87, 0.45);
}
.book-reviews-score span {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-800);
}
.book-reviews-score small {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-600);
}
.book-reviews-summary-meta p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.giva-stars {
  display: inline-flex;
  gap: 1px;
  color: #e4d3b4;
}
.giva-stars .ms {
  font-size: 22px;
  color: #e4d3b4;
}
.giva-stars .ms.fill { color: var(--gold-500); }

.book-reviews-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 16px;
  border: 1px dashed rgba(192, 139, 59, 0.35);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--gold-50), #fff);
  color: var(--text-secondary);
}
.book-reviews-empty .ms {
  font-size: 36px;
  color: var(--gold-500);
}
.book-reviews-empty strong {
  font-size: 16px;
  color: var(--text-primary);
}
.book-reviews-empty p { font-size: 13px; margin: 0; }

.book-reviews .commentlist { list-style: none; display: grid; gap: 12px; }
.book-reviews .book-review,
.book-reviews .review,
.book-reviews .comment { list-style: none; }
.book-review-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border-default);
  box-shadow: 0 10px 28px -24px rgba(15, 48, 87, 0.55);
}
.book-review-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--gold-100);
}
.book-review-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 16px;
}
.book-review-name { display: block; font-size: 15px; font-weight: 800; color: var(--text-primary); }
.book-review-date,
.book-review-wait {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.book-review-wait { color: var(--gold-600); }
.book-review-text {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-secondary);
}
.book-review-text p { margin: 0; }

.book-review-form {
  padding: 18px 18px 20px;
  border-radius: 20px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, rgba(192, 139, 59, 0.35), rgba(27, 79, 140, 0.12)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 14px 36px -28px rgba(15, 48, 87, 0.7);
}
.book-reviews.has-reviews .book-review-form {
  position: sticky;
  top: calc(var(--book-sticky-top, 72px) + 78px);
}
.book-review-form .comment-reply-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  margin-bottom: 6px;
}
.book-review-form .comment-reply-title .ms { color: var(--gold-500); font-size: 22px; }
.book-review-form .comment-notes {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.8;
}
.book-review-form .comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.book-review-form .comment-form-comment,
.book-review-form .comment-form-rating,
.book-review-form .form-submit,
.book-review-form .must-log-in,
.book-review-form .comment-notes { grid-column: 1 / -1; }
.book-review-form label,
.book-stars-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.book-review-form .required { color: var(--gold-600); }
.book-review-form input,
.book-review-form textarea {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 11px 13px;
  font: inherit;
  background: var(--bg-subtle);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.book-review-form textarea { min-height: 132px; resize: vertical; }
.book-review-form input:focus,
.book-review-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary-300);
  box-shadow: 0 0 0 4px rgba(27, 79, 140, 0.08);
}
.book-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gold-50);
  border: 1px solid rgba(192, 139, 59, 0.2);
}
.book-stars input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.book-star {
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #e0cda8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}
.book-star:hover { transform: translateY(-2px) scale(1.06); }
.book-star .ms {
  font-size: 26px;
  line-height: 1;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-star.is-on,
.book-star.is-hover,
.book-stars:has(#book-star-1:checked) label[for="book-star-1"],
.book-stars:has(#book-star-2:checked) label[for="book-star-1"],
.book-stars:has(#book-star-2:checked) label[for="book-star-2"],
.book-stars:has(#book-star-3:checked) label[for="book-star-1"],
.book-stars:has(#book-star-3:checked) label[for="book-star-2"],
.book-stars:has(#book-star-3:checked) label[for="book-star-3"],
.book-stars:has(#book-star-4:checked) label[for="book-star-1"],
.book-stars:has(#book-star-4:checked) label[for="book-star-2"],
.book-stars:has(#book-star-4:checked) label[for="book-star-3"],
.book-stars:has(#book-star-4:checked) label[for="book-star-4"],
.book-stars:has(#book-star-5:checked) label[for="book-star-1"],
.book-stars:has(#book-star-5:checked) label[for="book-star-2"],
.book-stars:has(#book-star-5:checked) label[for="book-star-3"],
.book-stars:has(#book-star-5:checked) label[for="book-star-4"],
.book-stars:has(#book-star-5:checked) label[for="book-star-5"] {
  color: var(--gold-500);
}
.book-star.is-on .ms,
.book-star.is-hover .ms,
.book-stars:has(#book-star-1:checked) label[for="book-star-1"] .ms,
.book-stars:has(#book-star-2:checked) label[for="book-star-1"] .ms,
.book-stars:has(#book-star-2:checked) label[for="book-star-2"] .ms,
.book-stars:has(#book-star-3:checked) label[for="book-star-1"] .ms,
.book-stars:has(#book-star-3:checked) label[for="book-star-2"] .ms,
.book-stars:has(#book-star-3:checked) label[for="book-star-3"] .ms,
.book-stars:has(#book-star-4:checked) label[for="book-star-1"] .ms,
.book-stars:has(#book-star-4:checked) label[for="book-star-2"] .ms,
.book-stars:has(#book-star-4:checked) label[for="book-star-3"] .ms,
.book-stars:has(#book-star-4:checked) label[for="book-star-4"] .ms,
.book-stars:has(#book-star-5:checked) label[for="book-star-1"] .ms,
.book-stars:has(#book-star-5:checked) label[for="book-star-2"] .ms,
.book-stars:has(#book-star-5:checked) label[for="book-star-3"] .ms,
.book-stars:has(#book-star-5:checked) label[for="book-star-4"] .ms,
.book-stars:has(#book-star-5:checked) label[for="book-star-5"] .ms {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.book-stars-error { color: var(--error); font-size: 13px; margin-top: 8px; }
.comment-form-rating { position: relative; }
.book-review-form .form-submit { margin-top: 2px; }
.book-review-form .btn-primary,
.book-review-form [type="submit"] {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--color1);
  color: #fff;
  gap: 8px;
  font-weight: 800;
}
.book-review-form .btn-primary .ms { font-size: 18px; }

@media (max-width: 992px) {
  .book-single { --book-sticky-top: 58px; padding-top: 12px; }
  .admin-bar .book-single { --book-sticky-top: calc(58px + 46px); }
  .book-hero { grid-template-columns: 1fr; gap: 18px; }
  .book-gallery { position: static; }
  .book-stage { min-height: 280px; padding: 16px; }
  .book-stage img { max-height: 360px; }
  .book-title { font-size: 22px; }
  .book-tabs-bar { border-radius: 14px; padding: 6px; }
  .book-tabs a { padding: 10px 10px; font-size: 13px; }
  .book-reviews.has-reviews { grid-template-columns: 1fr; }
  .book-reviews.has-reviews .book-review-form { position: static; }
}

@media (max-width: 700px) {
  .book-buy-row { flex-direction: row; align-items: center; }
  .book-qty button { width: 36px; height: 42px; }
  .book-qty input { width: 34px; }
  .book-add { width: auto; padding-inline: 12px; font-size: 13px; }
  .book-fabs .book-fab:first-child { display: none; }
  .book-specs { grid-template-columns: 1fr; }
  .book-reviews.has-reviews,
  .book-review-form .comment-form { grid-template-columns: 1fr; }
  .book-reviews.has-reviews .book-review-form { position: static; }
  .book-review-card { grid-template-columns: 48px 1fr; padding: 14px; }
  .book-review-avatar img { width: 48px; height: 48px; }
  .book-reviews-summary { padding: 14px 16px; }
  .book-reviews-score { min-width: 72px; min-height: 72px; }
  .book-reviews-score span { font-size: 30px; }
  .book-review-head { flex-direction: column; }
}

/* ——— Shop archive ——— */
.shop-archive {
  padding: 18px 0 72px;
  background:
    radial-gradient(ellipse 80% 40% at 100% 0%, rgba(192, 139, 59, 0.08), transparent 55%),
    linear-gradient(180deg, var(--primary-50) 0%, var(--bg-canvas) 320px);
}
.shop-archive .book-crumb { margin-bottom: 14px; }
.shop-heading { margin: 0 0 22px; }
.shop-heading h1 {
  color: var(--primary-800);
}
.shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.shop-side {
  position: sticky;
  top: 88px;
  max-height: calc(100dvh - 104px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--primary-100);
  border-radius: 20px;
  padding: 16px 14px 18px;
  box-shadow: var(--shadow);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shop-side::-webkit-scrollbar {
  display: none;
}
.admin-bar .shop-side { top: 120px; }
.shop-side-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -16px -14px 14px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, var(--gold-50), #fff);
  border-bottom: 1px solid var(--gold-100);
  border-radius: 20px 20px 0 0;
}
.shop-side-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--primary-800);
}
.shop-side-head .ms { color: var(--gold-500); }
.shop-filters-close { display: none; }
.shop-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 14px;
  color: var(--text-primary);
  font-weight: 400;
  font-size: 14px;
  border-bottom: 1px solid var(--primary-100);
  margin-bottom: 8px;
}
.shop-switch-track {
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: var(--primary-200);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.shop-switch-track i {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 48, 87, 0.2);
  transition: 0.2s;
}
.shop-switch.is-on .shop-switch-track { background: var(--gold-500); }
.shop-switch.is-on .shop-switch-track i { right: 20px; }
.shop-filter {
  border-bottom: 1px solid var(--primary-100);
  padding: 4px 0 10px;
}
.shop-filter[open] {
  background: linear-gradient(180deg, var(--primary-50), transparent 80%);
  margin: 0 -8px;
  padding: 4px 8px 10px;
  border-radius: 12px;
}
.shop-filter summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 2px;
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  color: var(--primary-700);
}
.shop-filter summary::-webkit-details-marker { display: none; }
.shop-filter summary .ms { transition: transform 0.2s; color: var(--gold-500); }
.shop-filter:not([open]) summary .ms { transform: rotate(90deg); }
.shop-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.shop-price-inputs label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
}
.shop-price-inputs input {
  width: 100%;
  border: 1px solid var(--primary-100);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 400;
  color: var(--text-primary);
  background: #fff;
}
.shop-price-inputs input:focus {
  outline: 0;
  border-color: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(192, 139, 59, 0.18);
}
.shop-price-hint {
  margin: 8px 0 10px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.shop-price-apply {
  min-height: 42px;
  border-radius: 12px;
  font-weight: 500;
}
.shop-author-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary-100);
  border-radius: 12px;
  padding: 0 10px;
  margin-bottom: 10px;
  background: #fff;
}
.shop-author-search .ms { color: var(--gold-500); }
.shop-author-search input {
  flex: 1;
  border: 0;
  background: none;
  padding: 10px 0;
  font: inherit;
  min-width: 0;
}
.shop-filter-list {
  display: flex;
  flex-direction: column;
  max-height: 280px;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shop-filter-list::-webkit-scrollbar {
  display: none;
}
.shop-cat,
.shop-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 400;
}
.shop-cat:hover,
.shop-check:hover { background: #fff; color: var(--primary-600); }
.shop-cat.is-active {
  background: #fff;
  color: var(--primary-700);
  box-shadow: inset 3px 0 0 var(--gold-500);
}
.shop-cat small,
.shop-check small {
  margin-right: auto;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 400;
}
.shop-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--primary-200);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: #fff;
}
.shop-check.is-on .shop-box {
  background: var(--gold-500);
  border-color: var(--gold-500);
}
.shop-check.is-on .shop-box .ms { font-size: 14px; }
.shop-clear {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: var(--gold-600);
  font-weight: 400;
  font-size: 13px;
}
.shop-clear:hover { color: var(--gold-700); }
.shop-main { min-width: 0; }
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--primary-100);
  border-radius: 40px;
  box-shadow: var(--shadow);
}
.shop-count {
  margin: 0;
  margin-inline-start: auto;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: left;
}
.shop-count strong {
  color: var(--primary-800);
  font-size: 15px;
  margin-inline-end: 4px;
}
.shop-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}
.shop-sort-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.shop-sort-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.shop-sort-list a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
}
.shop-sort-list a:hover { color: var(--primary-700); background: var(--primary-50); }
.shop-sort-list a.is-active {
  color: #fff;
  background: var(--color1);
}
.shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}
.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--gold-50);
  border: 1px solid var(--gold-300);
  color: var(--gold-700);
  font-size: 12px;
  font-weight: 400;
}
.shop-chip .ms { font-size: 16px; }
.product-grid.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.shop-grid .product-card {
  box-shadow: 0 2px 12px rgba(15, 48, 87, 0.04);
}
.shop-grid .product-card:hover {
  border-color: var(--gold-300);
  box-shadow: var(--shadow-hover);
}
.shop-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}
.shop-page {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--primary-100);
  background: #fff;
  color: var(--primary-800);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.shop-page.is-dots {
  width: auto;
  min-width: 20px;
  border: 0;
  background: none;
  color: var(--text-tertiary);
}
.shop-page.is-current {
  background: var(--color1);
  border-color: var(--color1);
  color: #fff;
}
.shop-page.is-nav {
  font-size: inherit;
  color: var(--primary-600);
}
.shop-page .ms {
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}
a.shop-page:hover {
  border-color: var(--gold-300);
  color: var(--gold-600);
}
.shop-empty {
  text-align: center;
  padding: 56px 20px;
  background: #fff;
  border: 1px dashed var(--gold-300);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.shop-empty .ms {
  font-size: 42px;
  color: var(--gold-500);
  display: block;
  margin-bottom: 10px;
}
.shop-empty strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary-800);
}
.shop-empty p {
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.shop-empty .btn-primary {
  width: auto;
  display: inline-flex;
  padding: 12px 22px;
  border-radius: 12px;
}
.shop-seo {
  margin-top: 40px;
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--gold-50), var(--primary-50));
  border: 1px solid var(--gold-100);
  border-radius: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
}
.shop-mobile-bar { display: none; }

@media (max-width: 1200px) {
  .product-grid.shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-toolbar { display: none; }
  .shop-mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }
  .shop-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--primary-100);
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 400;
    color: var(--primary-800);
    cursor: pointer;
    box-shadow: var(--shadow);
  }
  .shop-filter-btn .ms { color: var(--gold-500); }
  .shop-filter-btn em {
    min-width: 20px;
    height: 20px;
    border-radius: 99px;
    background: var(--gold-500);
    color: #fff;
    font-style: normal;
    font-size: 11px;
    display: grid;
    place-items: center;
  }
  .shop-sort-mobile {
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
  }
  .shop-sort-mobile .shop-sort-label { display: none; }
  .shop-sort-mobile .shop-sort-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .shop-sort-mobile .shop-sort-list::-webkit-scrollbar { display: none; }
  .shop-side {
    position: fixed;
    inset: auto 0 0;
    z-index: 221;
    width: 100%;
    max-height: 90dvh;
    border-radius: 24px 24px 0 0;
    transform: translateY(110%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -16px 48px rgba(15, 48, 87, 0.18);
  }
  .shop-side-head {
    margin: -12px -16px 14px;
    border-radius: 24px 24px 0 0;
  }
  .shop-side.is-open { transform: translateY(0); }
  .shop-filters-close {
    display: grid;
    position: static;
    width: 36px;
    height: 36px;
  }
  body.is-shop-filters-open { overflow: hidden; }
}

@media (max-width: 700px) {
  .product-grid.shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shop-heading { margin-bottom: 14px; }
}

/* ——— Site pages: blog, about, contact ——— */
.site-page {
  padding: 18px 0 72px;
  background:
    radial-gradient(ellipse 80% 40% at 100% 0%, rgba(192, 139, 59, 0.08), transparent 55%),
    linear-gradient(180deg, var(--primary-50) 0%, var(--bg-canvas) 280px);
}
.site-page.is-login {
  padding: 28px 0 72px;
  min-height: 58vh;
}
.site-page.is-login .container {
  max-width: 480px;
}
.shop-heading p {
  margin-top: 10px;
  color: var(--text-secondary);
  max-width: 640px;
}
.page-layout,
.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.article-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
}
.page-main { min-width: 0; }
.page-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 88px;
}
.admin-bar .page-side { top: 120px; }
.page-side-card,
.contact-panel,
.faq-item,
.plain-page {
  background: #fff;
  border: 1px solid var(--primary-100);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.page-side-card { padding: 16px; }
.page-side-card h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-800);
  margin: 0 0 12px;
}
.page-side-list a,
.page-side-posts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
}
.page-side-list a:hover,
.page-side-posts a:hover,
.page-side-list a.is-active {
  background: var(--primary-50);
  color: var(--primary-700);
}
.page-side-list small { color: var(--text-tertiary); }
.page-side-posts a {
  flex-direction: column;
  align-items: flex-start;
}
.page-side-posts strong { font-weight: 600; line-height: 1.6; }
.page-side-posts small { color: var(--text-tertiary); }
.page-side-cta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--primary-800), var(--primary-600) 70%, var(--gold-500));
  color: #fff;
}
.page-side-cta:hover { color: #fff; }
.page-side-cta .ms { color: var(--gold-300); font-size: 26px; }
.page-side-cta strong { font-size: 15px; }
.page-side-cta em { font-style: normal; font-size: 13px; opacity: 0.9; line-height: 1.7; }
.single-article {
  background: #fff;
  border: 1px solid var(--primary-100);
  border-radius: 20px;
  padding: 28px 28px 32px;
  box-shadow: var(--shadow);
}
.article-head h1 {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--primary-800);
  line-height: 1.6;
  margin: 0 0 10px;
}
.article-cat {
  display: inline-block;
  color: var(--gold-600);
  font-size: 13px;
  margin-bottom: 8px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--text-tertiary);
  font-size: 13px;
  margin: 0 0 18px;
}
.article-meta .ms { color: var(--gold-500); font-size: 18px; }
.article-hero {
  margin: 0 0 22px;
  border-radius: 14px;
  overflow: hidden;
}
.editor-content h2,
.editor-content h3 {
  color: var(--primary-800);
  margin: 22px 0 10px;
}
.editor-content ul,
.editor-content ol {
  margin: 0 1.2em 14px 0;
  list-style: disc;
}
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--primary-100);
}
.post-navigation a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary-800);
}
.post-navigation span {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.article-related { margin-top: 40px; }
.entry-comments { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--primary-100); }
.entry-comments h2,
.entry-comments h3 { color: var(--primary-800); margin-bottom: 14px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.comment-list .comment-body {
  padding: 14px;
  border-radius: 14px;
  background: var(--primary-50);
}
.comment-form label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text-secondary); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--primary-100);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: var(--bg-subtle);
  margin-bottom: 12px;
}
.comment-form input:focus,
.comment-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(192, 139, 59, 0.16);
  background: #fff;
}
.comment-form .btn-primary,
.contact-form .btn-primary {
  width: auto;
  min-width: 160px;
  border-radius: 12px;
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 28px;
}
.about-lead {
  background: #fff;
  border: 1px solid var(--primary-100);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.about-lead p {
  line-height: 2;
  margin: 0 0 14px;
  color: var(--text);
}
.about-lead p:last-child { margin-bottom: 0; }
.about-blocks {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}
.about-block {
  background: #fff;
  border: 1px solid var(--primary-100);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.about-block h2 {
  font-size: 18px;
  color: var(--primary-800);
  margin: 0 0 12px;
}
.about-block p {
  line-height: 2;
  margin: 0 0 12px;
  color: var(--text);
}
.about-block p:last-child { margin-bottom: 0; }
.about-stats {
  display: grid;
  gap: 12px;
}
.about-stats div {
  background: #fff;
  border: 1px solid var(--primary-100);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.about-stats strong {
  display: block;
  font-size: 28px;
  color: var(--primary-800);
}
.about-stats span { color: var(--text-secondary); font-size: 13px; }
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.about-values article {
  background: #fff;
  border: 1px solid var(--primary-100);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.about-values .ms { color: var(--gold-500); font-size: 28px; display: block; margin-bottom: 10px; }
.about-values h2 { font-size: 16px; color: var(--primary-800); margin-bottom: 8px; }
.about-values p { color: var(--text-secondary); margin: 0; }
.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.about-cta .btn-primary { width: auto; padding: 12px 22px; border-radius: 12px; }
.about-cta-link { color: var(--gold-600); font-weight: 700; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.contact-cards { display: grid; gap: 10px; }
.contact-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--primary-100);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: inherit;
}
.contact-card .ms { grid-row: 1 / span 2; color: var(--gold-500); font-size: 26px; }
.contact-card strong { color: var(--primary-800); }
.contact-card em { font-style: normal; color: var(--text-secondary); font-size: 13px; }
.contact-card em a { color: inherit; }
.contact-card em a:hover { color: var(--primary-700); }
.contact-panel { padding: 22px; }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-notice {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.contact-notice.is-ok { background: var(--success-bg); color: var(--success); }
.contact-notice.is-err { background: var(--error-bg); color: var(--error); }
.contact-form { position: relative; }
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.contact-map {
  border-radius: 18px;
  overflow: hidden;
  max-width: 100%;
  border: 1px solid var(--primary-100);
  min-height: 280px;
  box-shadow: var(--shadow);
}
.contact-map iframe {
  width: 100%;
  max-width: 100%;
  height: 280px;
  border: 0;
  display: block;
}
.is-faq .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.is-faq .book-crumb,
.is-faq .shop-heading,
.is-faq .faq-list,
.is-faq .faq-more {
  width: 100%;
  max-width: 760px;
}
.is-faq .shop-heading p { margin-inline: auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { padding: 4px 16px 10px; }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 2px;
  cursor: pointer;
  color: var(--primary-800);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ms { color: var(--gold-500); }
.faq-item:not([open]) summary .ms { transform: rotate(90deg); }
.faq-item p { color: var(--text-secondary); margin: 0 0 10px; }
.faq-more { margin-top: 22px; color: var(--text-secondary); text-align: center; }
.faq-more a { color: var(--gold-600); font-weight: 700; }
.empty-page { text-align: center; padding: 48px 16px 20px; }
.empty-page > .ms { font-size: 56px; color: var(--gold-500); display: block; margin-bottom: 8px; }
.plain-page { padding: 28px; max-width: 860px; }

@media (max-width: 992px) {
  .page-layout,
  .article-layout,
  .about-hero-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .page-side { position: static; }
  .about-values { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr; }
  .single-article { padding: 18px 16px 22px; }
}

@media (max-width: 700px) {
  .blog-grid-page { grid-template-columns: 1fr; }
}

/* ——— Cart & checkout ——— */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--primary-100);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: max-content;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 700;
}
.checkout-step + .checkout-step::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--primary-100);
  margin-inline-end: 4px;
}
.checkout-step-n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 12px;
}
.checkout-step.is-current { color: var(--primary-800); }
.checkout-step.is-current .checkout-step-n,
.checkout-step.is-done .checkout-step-n {
  background: var(--primary-600);
  color: #fff;
}
.checkout-step.is-done { color: var(--success); }
.checkout-step a { color: inherit; }

.giva-cart,
.giva-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}
.giva-checkout > .woocommerce-NoticeGroup,
.giva-checkout > .woocommerce-error,
.giva-checkout > .woocommerce-message,
.giva-checkout > .woocommerce-info,
.giva-checkout > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}
.giva-cart-main,
.giva-checkout-main,
.giva-cart-side,
.giva-checkout-side,
.giva-cart-empty,
.giva-thankyou {
  background: #fff;
  border: 1px solid var(--primary-100);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.giva-cart-main,
.giva-checkout-main { padding: 8px 8px 16px; min-width: 0; }
.giva-checkout-items {
  margin: 8px 16px 8px;
  padding-top: 18px;
  border-top: 1px solid var(--primary-100);
}
.giva-checkout-items h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--primary-800);
}
.giva-checkout-items ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.giva-checkout-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--primary-100);
  border-radius: 14px;
  background: var(--bg-subtle);
}
.giva-checkout-item-cover img,
.giva-checkout-item-cover {
  width: 56px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--primary-50);
  display: block;
}
.giva-checkout-item-meta a,
.giva-checkout-item-meta strong {
  display: block;
  font-weight: 700;
  color: var(--primary-800);
  font-size: 14px;
  line-height: 1.5;
}
.giva-checkout-item-meta small {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 12px;
}
.giva-checkout-item-sum {
  font-size: 13px;
  color: var(--primary-800);
  white-space: nowrap;
}
.woocommerce-checkout-review-order-table.is-summary-only thead,
.woocommerce-checkout-review-order-table.is-summary-only tbody {
  display: none;
}
.giva-cart-side,
.giva-checkout-side { padding: 18px 18px 20px; position: sticky; top: 96px; }
.admin-bar .giva-cart-side,
.admin-bar .giva-checkout-side { top: 128px; }

.woocommerce-cart-form .shop_table {
  width: 100%;
  border-collapse: collapse;
}
.woocommerce-cart-form thead th {
  text-align: right;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 700;
  padding: 12px 10px;
  border-bottom: 1px solid var(--primary-100);
}
.woocommerce-cart-form td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--primary-50);
  vertical-align: middle;
}
.woocommerce-cart-form .product-thumbnail img {
  width: 64px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--primary-50);
}
.woocommerce-cart-form .product-name a {
  font-weight: 700;
  color: var(--primary-800);
}
.woocommerce-cart-form .product-remove .remove {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--primary-100);
  color: var(--text-tertiary);
}
.woocommerce-cart-form .product-remove .remove:hover {
  background: var(--error-bg);
  color: var(--error);
  border-color: transparent;
}
.woocommerce-cart-form .product-remove .ms { font-size: 16px; }
.woocommerce-cart-form .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--primary-100);
  border-radius: 12px;
  overflow: hidden;
  background: var(--primary-50);
}
.woocommerce-cart-form .qty-btn {
  width: 34px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--primary-700);
  cursor: pointer;
  font-size: 18px;
}
.woocommerce-cart-form .quantity input.qty {
  width: 42px;
  height: 40px;
  border: 0;
  background: #fff;
  text-align: center;
  font: inherit;
  font-weight: 700;
}
.woocommerce-cart-form .actions {
  padding-top: 16px;
}
.woocommerce-cart-form .coupon {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.woocommerce-cart-form .coupon .input-text,
.checkout_coupon .input-text,
.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-login input[type="email"],
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  width: 100%;
  border: 1px solid var(--primary-100);
  border-radius: 12px;
  padding: 11px 14px;
  font: inherit;
  color: var(--text-primary);
  background: #fff;
  min-height: 46px;
}
.woocommerce form .form-row textarea { min-height: 110px; resize: vertical; }
.woocommerce-cart-form .coupon .input-text { max-width: 220px; }
.woocommerce-cart-form .button,
.checkout_coupon .button,
.woocommerce-form-login .button,
.woocommerce-button,
.woocommerce #respond input#submit {
  border: 1px solid var(--primary-200);
  background: var(--primary-50);
  color: var(--primary-800);
  border-radius: 12px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.woocommerce-cart-form [name="update_cart"] { display: none; }
.cart_totals h2,
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
  font-size: 16px;
  color: var(--primary-800);
  margin: 0 0 14px;
}
.cart_totals .shop_table,
.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.cart_totals th,
.cart_totals td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--primary-50);
  font-size: 13px;
  text-align: right;
}
.cart_totals .order-total th,
.cart_totals .order-total td,
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  font-size: 15px;
  color: var(--primary-800);
  border-bottom: 0;
  padding-top: 14px;
}
.wc-proceed-to-checkout .checkout-button {
  width: 100%;
  border-radius: 14px;
  min-height: 48px;
  font-weight: 800;
}

.giva-cart-empty {
  text-align: center;
  padding: 56px 24px;
  max-width: 640px;
  margin-inline: auto;
}
.giva-cart-empty > .ms {
  font-size: 56px;
  color: var(--gold-500);
  display: block;
  margin-bottom: 8px;
}
.giva-cart-empty h2 { color: var(--primary-800); margin-bottom: 8px; }
.giva-cart-empty p { color: var(--text-secondary); }
.giva-cart-empty .btn-primary {
  max-width: 260px;
  margin-inline: auto;
  border-radius: 14px;
}

.woocommerce-form-coupon-toggle,
.woocommerce-form-login-toggle { margin-bottom: 12px; }
.checkout_coupon,
.woocommerce-form-login {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--primary-100);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
}
.woocommerce-form-login { grid-template-columns: 1fr 1fr auto; }
.woocommerce-form-login .clear { display: none; }

.woocommerce form .form-row {
  margin: 0 0 12px;
  min-width: 0;
}
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  align-items: start;
}
.woocommerce-billing-fields__field-wrapper > .clear,
.woocommerce-shipping-fields__field-wrapper > .clear {
  display: none;
}
.woocommerce form .form-row-wide { grid-column: 1 / -1; }
.woocommerce form .form-row-first { grid-column: 1; }
.woocommerce form .form-row-last { grid-column: 2; }
#billing_country_field,
#billing_address_2_field,
#shipping_country_field,
#shipping_address_2_field,
#billing_email_field,
.woocommerce form .form-row.giva-hide-field {
  display: none !important;
}
.woocommerce form .form-row .woocommerce-error,
.woocommerce form .form-row .checkout-inline-error-message {
  display: block;
  width: 100%;
  margin: 6px 0 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.6;
  box-sizing: border-box;
}
.woocommerce form .form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.woocommerce form .form-row .required { color: var(--error); border: 0; text-decoration: none; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(27, 79, 140, 0.12);
}
.woocommerce-invalid input.input-text,
.woocommerce-invalid select,
.woocommerce-invalid .select2-selection--single {
  border-color: var(--error) !important;
}
.woocommerce-validated input.input-text,
.woocommerce-validated select {
  border-color: var(--success);
}
.woocommerce form .select2-container {
  z-index: 2;
  width: 100% !important;
}
body > .select2-container,
.select2-container--open {
  width: auto !important;
  z-index: 1400;
}
.select2-dropdown {
  border: 1px solid var(--primary-100);
  border-radius: 12px;
  overflow: hidden;
  z-index: 1400;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
  background: var(--primary-600);
}
#ship-to-different-address {
  margin: 18px 0 10px;
}
#ship-to-different-address label,
.woocommerce-account-fields label,
.woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-800);
  cursor: pointer;
}
.woocommerce-shipping-fields .shipping_address {
  margin-top: 12px;
  padding-top: 4px;
}
.woocommerce-checkout-review-order-table .giva-shipping-cell {
  width: 100% !important;
  max-width: none !important;
  padding: 12px 0 10px;
  border-bottom: 0;
}
.giva-shipping-heading {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}
#shipping_method.woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100% !important;
  max-width: none !important;
}
#shipping_method li {
  margin: 0;
  position: relative;
  width: 100% !important;
  max-width: none !important;
}
#shipping_method input.shipping_method {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary-600);
  z-index: 1;
}
#shipping_method label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 42px 12px 14px;
  border: 1px solid var(--primary-100);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-800);
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s;
}
#shipping_method li:has(input:checked) label {
  border-color: var(--primary-600);
  background: var(--primary-50);
}
.giva-ship-name {
  display: block;
  font-size: 14px;
}
.giva-ship-collect {
  display: block;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 12px;
}
.giva-ship-note {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.7;
}
.wc_payment_methods {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.wc_payment_method {
  border: 1px solid var(--primary-100);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--primary-50);
}
.wc_payment_method label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
}
.payment_box {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}
#place_order {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--color1);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
#place_order:hover { background: var(--primary-700); }
.woocommerce-terms-and-conditions-wrapper { margin-bottom: 12px; font-size: 13px; color: var(--text-secondary); }
.woocommerce-checkout-review-order-table .product-name { font-weight: 600; }
.blockUI.blockOverlay {
  background: rgba(255, 255, 255, 0.72) !important;
}

.giva-thankyou { padding: 28px; }
.giva-thankyou-ok {
  text-align: center;
  margin-bottom: 22px;
}
.giva-thankyou-ok > .ms {
  font-size: 48px;
  color: var(--success);
  display: block;
  margin-bottom: 8px;
}
.woocommerce-thankyou-order-received {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-800);
}
.woocommerce-order-overview {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
}
.woocommerce-order-overview li {
  background: var(--primary-50);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-secondary);
}
.woocommerce-order-overview strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--primary-800);
}
.giva-thankyou-hooks .woocommerce-order-details,
.giva-thankyou-hooks .woocommerce-customer-details {
  margin-top: 18px;
}
.giva-thankyou-hooks table {
  width: 100%;
  border-collapse: collapse;
}
.giva-thankyou-hooks th,
.giva-thankyou-hooks td {
  padding: 10px 0;
  border-bottom: 1px solid var(--primary-50);
  text-align: right;
}

@media (max-width: 992px) {
  .giva-cart,
  .giva-checkout,
  .woocommerce-form-login { grid-template-columns: 1fr; }
  .giva-cart-side,
  .giva-checkout-side { position: static; }
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .checkout_coupon { grid-template-columns: 1fr; }
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .woocommerce-cart-form { overflow-x: auto; }
  .woocommerce-cart-form .shop_table { min-width: 640px; }
  .checkout-steps { padding: 10px 12px; }
}
