:root {
  --primary: #0f6b4e;
  --primary-dark: #084b37;
  --accent: #e24b2d;
  --gold: #f8c84e;
  --bg: #f8fbf7;
  --soft: #eef7f1;
  --cream: #fff8e7;
  --text: #0e1726;
  --muted: #6b7280;
  --line: #dce8df;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(14, 23, 38, 0.08);
  --shadow-sm: 0 10px 25px rgba(14, 23, 38, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 14px;
}

.topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0.95;
}

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

.header-main {
  min-height: 82px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo img {
  width: 190px;
  height: auto;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.search-form input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 15px 18px;
  background: transparent;
  color: var(--text);
}

.search-form button {
  border: 0;
  padding: 14px 22px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  border-radius: 999px;
  margin-right: 4px;
}

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

.icon-link,
.menu-toggle {
  min-width: 44px;
  height: 44px;
  padding-inline: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  border: 2px solid var(--white);
}

.menu-toggle {
  display: none;
}

.nav-wrap {
  border-top: 1px solid var(--line);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}

.nav-menu a {
  padding: 11px 15px;
  border-radius: 999px;
  font-weight: 750;
  color: #203126;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--soft);
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(15, 107, 78, 0.22);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(226, 75, 45, 0.18);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--line);
}

.btn-full {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.badge-sale {
  background: var(--accent);
  color: var(--white);
}

.badge-gold {
  background: var(--cream);
  color: #8a5d00;
}

.hero {
  padding: 56px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 42px;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0;
  max-width: 590px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.hero-highlight {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.hero-highlight strong {
  display: block;
  font-size: 20px;
  color: var(--primary);
}

.hero-highlight span {
  color: var(--muted);
  font-size: 13px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  filter: drop-shadow(0 24px 44px rgba(14, 23, 38, 0.12));
}

.floating-card {
  position: absolute;
  left: 20px;
  bottom: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.floating-card strong {
  display: block;
  font-size: 18px;
}

.floating-card span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 44px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 107, 78, 0.35);
}

.category-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--soft);
  font-size: 26px;
}

.category-card strong {
  display: block;
  font-size: 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-media {
  background: var(--soft);
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  position: relative;
}

.product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.product-body {
  padding: 14px 4px 4px;
}

.product-category {
  font-size: 13px;
  color: var(--primary);
  font-weight: 900;
}

.product-title {
  margin: 6px 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

.rating {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 14px;
}

.price {
  font-size: 20px;
  font-weight: 950;
  color: var(--text);
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 14px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
}

.add-cart {
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 999px;
  border: 0;
  background: var(--primary);
  color: var(--white);
  font-weight: 900;
}

.wish-btn,
.quick-btn {
  width: 46px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 900;
}

.deal-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 32px;
  padding: 34px;
  overflow: hidden;
  position: relative;
}

.deal-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(248, 200, 78, 0.18);
}

.deal-copy h2 {
  margin: 12px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.deal-copy p {
  color: rgba(255,255,255,0.78);
}

.timer {
  display: flex;
  gap: 10px;
  margin: 22px 0 24px;
}

.timer-box {
  min-width: 72px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 12px;
  text-align: center;
}

.timer-box strong {
  display: block;
  font-size: 24px;
}

.timer-box span {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.deal-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  position: relative;
  z-index: 1;
}

.mini-product {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--white);
  color: var(--text);
  border-radius: 22px;
  padding: 12px;
}

.mini-product img {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  object-fit: cover;
}

.mini-product h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.trust-card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--soft);
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 12px;
}

.trust-card h3 {
  margin: 0 0 8px;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
}

.banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: center;
  background: var(--cream);
  border: 1px solid #f3e2b2;
  border-radius: 32px;
  padding: 34px;
}

.banner h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.035em;
}

.banner p {
  margin: 0 0 20px;
  color: #77570f;
}

.banner-stat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--white);
  border-radius: 22px;
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  color: var(--accent);
  font-size: 30px;
}

.newsletter {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 34px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.newsletter h2 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.035em;
}

.newsletter p {
  margin: 0;
  color: var(--muted);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
}

.newsletter-form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 14px;
}

.footer {
  background: #071f18;
  color: var(--white);
  margin-top: 46px;
  padding: 52px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 30px;
}

.footer-logo img {
  width: 190px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 16px;
}

.footer p,
.footer a,
.footer li {
  color: rgba(255,255,255,0.72);
}

.footer h3 {
  margin: 0 0 16px;
}

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

.payment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.payment-pills span {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255,255,255,0.62);
  font-size: 14px;
}

.page-hero {
  padding: 36px 0 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 800;
}

.page-title {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 150px;
  box-shadow: var(--shadow-sm);
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-head h3 {
  margin: 0;
}

.close-filter {
  display: none;
  border: 0;
  background: var(--soft);
  border-radius: 50%;
  width: 38px;
  height: 38px;
}

.filter-group {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.filter-group h4 {
  margin: 0 0 12px;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.shop-content {
  min-width: 0;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.filter-open {
  display: none;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-weight: 900;
  padding: 10px 14px;
}

.sort-select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
  background: var(--white);
  outline: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 900;
}

.pagination a.active,
.pagination a:hover {
  background: var(--primary);
  color: var(--white);
}

.product-detail {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
}

.gallery {
  display: grid;
  gap: 14px;
}

.main-image {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.main-image img {
  width: 100%;
  border-radius: 24px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.thumb {
  border: 2px solid transparent;
  background: var(--white);
  border-radius: 18px;
  padding: 6px;
}

.thumb.active,
.thumb:hover {
  border-color: var(--primary);
}

.product-info {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.product-info h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.review-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.product-price-large {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0;
}

.product-price-large .price {
  font-size: 34px;
}

.short-desc {
  color: var(--muted);
  margin-bottom: 20px;
}

.stock-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.stock-line span {
  background: var(--soft);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.buy-row {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}

.qty-control {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: var(--bg);
}

.qty-control button {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 20px;
  font-weight: 900;
}

.qty-control input {
  width: 46px;
  text-align: center;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 900;
}

.delivery-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.delivery-item {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 18px;
  padding: 14px;
}

.delivery-item strong {
  display: block;
}

.delivery-item span {
  color: var(--muted);
  font-size: 14px;
}

.details-tabs {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 8px;
}

.tab-btn {
  border: 0;
  background: var(--bg);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
}

.tab-panel {
  display: none;
  padding: 24px;
}

.tab-panel.active {
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
}

.spec-table td:first-child {
  color: var(--muted);
  width: 34%;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.cart-card,
.summary-card,
.checkout-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.cart-card {
  overflow: hidden;
}

.cart-row {
  display: grid;
  grid-template-columns: 92px 1fr 130px 124px 110px 46px;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

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

.cart-row img {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
}

.cart-name h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.cart-name span {
  color: var(--muted);
  font-size: 13px;
}

.remove-btn {
  border: 0;
  background: #fff1f1;
  color: var(--accent);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 900;
}

.summary-card,
.checkout-card {
  padding: 24px;
}

.summary-card {
  position: sticky;
  top: 150px;
}

.summary-card h2,
.checkout-card h2 {
  margin: 0 0 18px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.summary-line strong {
  color: var(--text);
}

.total-line {
  font-size: 22px;
  color: var(--text);
}

.coupon-form {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.coupon-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  outline: 0;
}

.coupon-form button {
  border: 0;
  background: var(--text);
  color: var(--white);
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 900;
}

.secure-note {
  margin-top: 16px;
  padding: 14px;
  background: var(--soft);
  border-radius: 18px;
  color: var(--primary);
  font-weight: 850;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 850;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: var(--bg);
  outline: 0;
}

.form-field textarea {
  min-height: 104px;
  resize: vertical;
}

.payment-options {
  display: grid;
  gap: 10px;
}

.payment-option {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--bg);
  cursor: pointer;
}

.payment-option input {
  width: 18px;
  height: 18px;
}

.payment-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--soft);
}

.order-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.order-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
}

.order-item strong {
  display: block;
  font-size: 14px;
}

.order-item span {
  color: var(--muted);
  font-size: 13px;
}

.bottom-mobile-cart {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1080px) {
  .header-main {
    grid-template-columns: 190px 1fr auto;
    gap: 14px;
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .deal-panel,
  .product-detail,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

  .cart-row {
    grid-template-columns: 86px 1fr 100px;
  }

  .cart-row .cart-price,
  .cart-row .cart-subtotal,
  .cart-row .remove-btn {
    justify-self: end;
  }
}

@media (max-width: 860px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .topbar-links {
    display: none;
  }

  .header-main {
    grid-template-columns: 1fr auto;
    padding: 14px 0;
  }

  .logo img {
    width: 170px;
  }

  .header-main .search-form {
    grid-column: 1 / -1;
    order: 3;
  }

  .header-actions .hide-mobile {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    display: none;
    border-top: 1px solid var(--line);
  }

  .nav-wrap.open {
    display: block;
  }

  .nav-menu {
    padding: 12px 0 18px;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-grid,
  .banner,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: fixed;
    inset: 0 18% 0 0;
    z-index: 90;
    top: 0;
    border-radius: 0 24px 24px 0;
    transform: translateX(-110%);
    transition: 0.25s ease;
    overflow: auto;
  }

  .filter-sidebar.open {
    transform: translateX(0);
  }

  .close-filter,
  .filter-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .shop-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-left {
    justify-content: space-between;
  }

  .delivery-box,
  .buy-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .buy-row {
    gap: 12px;
  }

  .bottom-mobile-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 10px 16px;
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    box-shadow: 0 -12px 30px rgba(14, 23, 38, 0.08);
  }

  body {
    padding-bottom: 76px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .section {
    padding: 34px 0;
  }

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

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    border-radius: 18px;
    padding: 9px;
  }

  .product-title {
    font-size: 14px;
  }

  .price {
    font-size: 17px;
  }

  .old-price,
  .product-category,
  .rating {
    font-size: 12px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .wish-btn {
    display: none;
  }

  .deal-panel,
  .banner,
  .newsletter,
  .page-title,
  .product-info,
  .summary-card,
  .checkout-card {
    border-radius: 24px;
    padding: 22px;
  }

  .deal-products,
  .trust-grid,
  .banner-stat {
    grid-template-columns: 1fr;
  }

  .timer {
    flex-wrap: wrap;
  }

  .timer-box {
    min-width: 66px;
  }

  .newsletter-form,
  .coupon-form {
    flex-direction: column;
    border-radius: 22px;
  }

  .newsletter-form button,
  .coupon-form button {
    min-height: 46px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .filter-sidebar {
    inset-right: 9%;
  }

  .cart-row {
    grid-template-columns: 76px 1fr;
    align-items: start;
  }

  .cart-row img {
    width: 76px;
    height: 76px;
  }

  .cart-row .qty-control,
  .cart-row .cart-price,
  .cart-row .cart-subtotal,
  .cart-row .remove-btn {
    grid-column: 2;
    justify-self: stretch;
  }

  .cart-row .remove-btn {
    width: 100%;
    border-radius: 999px;
  }

  .tab-panel {
    padding: 18px 8px;
  }
}


/* Extra pages */
.link-green { color: var(--primary); font-weight: 900; }
.small-muted { color: var(--muted); font-size: 14px; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.content-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.content-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.info-card, .policy-card, .auth-card, .account-card, .blog-card, .status-card, .seller-card, .empty-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.info-card h3, .policy-card h2, .auth-card h2, .account-card h2, .blog-card h3, .seller-card h3 { margin-top: 0; }
.info-card p, .policy-card p, .blog-card p, .seller-card p, .empty-card p { color: var(--muted); }
.icon-bubble { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: var(--soft); color: var(--primary); font-size: 25px; margin-bottom: 14px; }
.about-story { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; align-items: center; }
.story-panel { background: var(--white); border: 1px solid var(--line); border-radius: 32px; padding: 34px; box-shadow: var(--shadow-sm); }
.story-panel h2 { margin-top: 0; font-size: clamp(28px,4vw,44px); letter-spacing: -0.035em; line-height: 1.1; }
.story-panel p { color: var(--muted); }
.visual-panel { min-height: 360px; background: linear-gradient(135deg, var(--soft), var(--cream)); border: 1px solid var(--line); border-radius: 32px; padding: 28px; display: grid; align-content: center; gap: 14px; overflow: hidden; position: relative; }
.visual-panel::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -70px; border-radius: 50%; background: rgba(15,107,78,.12); }
.visual-chip { position: relative; z-index: 1; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-sm); font-weight: 900; }
.step-list { display: grid; gap: 14px; }
.step-item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.step-num { width: 48px; height: 48px; display: grid; place-items: center; background: var(--primary); color: var(--white); border-radius: 50%; font-weight: 950; }
.step-item h3, .step-item h4 { margin: 0 0 5px; }
.step-item p { margin: 0; color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.support-list { display: grid; gap: 12px; }
.support-item { display: flex; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-sm); }
.support-item strong { display: block; }
.support-item span { color: var(--muted); font-size: 14px; }
.order-status-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.timeline { display: grid; gap: 16px; margin-top: 18px; }
.timeline-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; position: relative; }
.timeline-dot { width: 42px; height: 42px; border-radius: 50%; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-weight: 950; }
.timeline-item.active .timeline-dot { background: var(--primary); color: var(--white); }
.timeline-item h4 { margin: 0 0 4px; }
.timeline-item p { margin: 0; color: var(--muted); }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.account-menu { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); position: sticky; top: 150px; }
.account-menu a { display: flex; justify-content: space-between; gap: 10px; padding: 13px 14px; border-radius: 14px; font-weight: 850; color: var(--muted); }
.account-menu a.active, .account-menu a:hover { background: var(--soft); color: var(--primary); }
.table-wrap { overflow-x: auto; }
.clean-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.clean-table th, .clean-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.clean-table th { color: var(--muted); font-size: 13px; }
.status-pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; background: var(--soft); color: var(--primary); }
.category-card-large small { display: block; margin-top: 6px; color: var(--muted); }
.category-banner { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--primary); color: var(--white); border-radius: 32px; padding: 28px; }
.category-banner p { color: rgba(255,255,255,.78); }
.policy-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.policy-nav { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); position: sticky; top: 150px; }
.policy-nav a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 800; }
.policy-nav a:hover { background: var(--soft); color: var(--primary); }
.policy-content { display: grid; gap: 18px; }
.policy-card ul { color: var(--muted); margin-bottom: 0; }
.deal-hero { background: linear-gradient(135deg, var(--accent), #ab2c17); color: var(--white); border-radius: 32px; padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.deal-hero p { color: rgba(255,255,255,.78); }
.coupon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.coupon-card { background: var(--white); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.coupon-code { display: inline-flex; margin-top: 8px; background: var(--cream); color: #8a5d00; padding: 8px 12px; border-radius: 999px; font-weight: 950; }
.search-big { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 18px; box-shadow: var(--shadow-sm); }
.search-big form { display: flex; gap: 10px; }
.search-big input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 14px 16px; outline: 0; }
.error-page { min-height: 58vh; display: grid; place-items: center; text-align: center; }
.error-code { font-size: clamp(90px, 20vw, 180px); line-height: .85; font-weight: 950; color: var(--primary); letter-spacing: -.08em; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm); }
.faq-item h3 { margin: 0 0 8px; }
.faq-item p { margin: 0; color: var(--muted); }
.seller-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.blog-thumb { min-height: 170px; border-radius: 20px; background: linear-gradient(135deg, var(--soft), var(--cream)); display: grid; place-items: center; font-size: 46px; margin-bottom: 16px; }
.sidebar-list { display: grid; gap: 10px; }
.sidebar-list a { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 0; color: var(--muted); font-weight: 800; }
.wishlist-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 1080px) { .content-grid-4 { grid-template-columns: repeat(2, 1fr); } .policy-layout, .account-layout, .blog-layout { grid-template-columns: 1fr; } .policy-nav, .account-menu { position: static; } }
@media (max-width: 860px) { .content-grid, .about-story, .contact-layout, .order-status-layout, .auth-layout, .seller-layout, .deal-hero { grid-template-columns: 1fr; } .coupon-grid, .content-grid-3, .blog-grid { grid-template-columns: 1fr; } .category-banner { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .content-grid-4, .address-grid { grid-template-columns: 1fr; } .search-big form { flex-direction: column; } .visual-panel { min-height: 260px; } }
