/* =============================================================================
   HERO SLIDER
   ============================================================================= */

/* ── hero-slider ── */
.hero-slider {
  position: relative;
  overflow: hidden;
}

/* ── hero-slide ── */
.hero-slide {
  position: relative;
  min-height: 620px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-slide .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ── hero-slide__content ── */
.hero-slide__content {
  width: 44%;
  padding: 80px 0;
}

/* ── hero-slide__badge ── */
.hero-slide__badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-slide__badge-pill {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}
.hero-slide__badge-pill--sale {
  background: rgba(229, 57, 53, 0.1);
  color: var(--color-sale);
}
.hero-slide__badge-pill--hits {
  background: rgba(125, 195, 59, 0.15);
  color: var(--color-primary-dark);
}
.hero-slide__badge-pill--new {
  background: rgba(28, 72, 56, 0.1);
  color: #1c4838;
}
.hero-slide__badge-pill--promo {
  background: rgba(255, 152, 0, 0.12);
  color: #e65100;
}
.hero-slide__badge-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  padding-top: 8px;
  max-width: 260px;
}

/* ── hero-slide__title ── */
.hero-slide__title {
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  color: #1c4838;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

/* ── hero-slide__desc ── */
.hero-slide__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 420px;
}

/* ── hero-slide__actions ── */
.hero-slide__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.hero-slide__btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 34px;
  background: #1c4838;
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.15s;
}
.hero-slide__btn:hover {
  background: #163a2d;
  transform: translateY(-2px);
}
.hero-slide__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

/* ── hero-slide__image-wrap ── */
.hero-slide__image-wrap {
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-slide__image-fade {
  position: absolute;
  left: 0;
  top: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(to right, #fff 30%, transparent 100%);
  z-index: 1;
}
.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Swiper pagination ── */
.hero-swiper__pagination {
  bottom: 22px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.hero-swiper__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background: rgba(28, 72, 56, 0.25);
  opacity: 1;
  border-radius: 4px;
  transition:
    width 0.35s ease,
    background 0.25s ease;
}
.hero-swiper__pagination .swiper-pagination-bullet-active {
  width: 28px;
  background: var(--color-primary);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero-slide__content {
    width: 50%;
  }
  .hero-slide__image-wrap {
    width: 54%;
  }
}
@media (max-width: 900px) {
  .hero-slide {
    min-height: 520px;
  }
  .hero-slide__content {
    width: 56%;
    padding: 60px 0;
  }
  .hero-slide__image-wrap {
    width: 48%;
  }
  .hero-slide__image-fade {
    width: 55%;
  }
}
@media (max-width: 640px) {
  .hero-slide {
    min-height: unset;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-slide__content {
    width: 100%;
    padding: 36px 0 24px;
    order: 1;
  }
  .hero-slide__image-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    order: 2;
  }
  .hero-slide__image-fade {
    display: none;
  }
  .hero-slide__badge-pill {
    width: 56px;
    height: 56px;
    font-size: 14px;
  }
  .hero-slide__title {
    font-size: 26px;
  }
  .hero-slide__desc {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .hero-slide__btn {
    padding: 12px 26px;
    font-size: 14px;
  }
  .hero-slide__price {
    font-size: 18px;
  }
}
@media (max-width: 420px) {
  .hero-slide__image-wrap {
    height: 200px;
  }
  .hero-slide__content {
    padding: 28px 0 20px;
  }
}

/* =============================================================================
   FEATURES STRIP
   ============================================================================= */

.features-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
  background: var(--color-bg);
}

.features-strip__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 32px;
  border-right: 1px solid var(--color-border);
}
.features-strip__item:first-child {
  padding-left: 0;
}
.features-strip__item:last-child {
  border-right: none;
  padding-right: 0;
}

.features-strip__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  margin-top: 2px;
}

.features-strip__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.features-strip__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-strip__item {
    padding: 0 20px;
    gap: 10px;
  }
  .features-strip__icon {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 700px) {
  .features-strip__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .features-strip__item {
    padding: 0;
    border-right: none;
  }
}
@media (max-width: 400px) {
  .features-strip__list {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   HEADER
   ============================================================================= */

/* ── site-header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── site-header__bar (notification, row 1) ── */
.site-header__bar {
  background: var(--color-notification-bg);
  text-align: center;
  padding: 7px 16px;
}
.site-header__bar-text {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-dark);
}

/* ── topbar (row 2) ── */
.topbar {
  border-bottom: 1px solid var(--color-border);
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar__link {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.topbar__link:hover {
  color: var(--color-primary);
}
.topbar__promo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
}

/* ── site-header__main (row 3) ── */
.site-header__main {
  padding: 14px 0;
}
.site-header__main .container {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ── site-logo ── */
.site-logo {
  flex-shrink: 0;
}
.site-logo img {
  height: 38px;
  width: auto;
}

/* ── header-location ── */
.header-location {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}
.header-location__icon {
  width: 34px;
  height: 34px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.header-location:hover .header-location__icon {
  background: var(--color-primary-dark);
}
.header-location__icon img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}
.header-location__text {
  line-height: 1.25;
}
.header-location__name {
  display: block;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-dark);
}
.header-location__city {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ── header-search ── */
.header-search {
  flex: 1;
  min-width: 0;
}
.header-search__form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-light);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  transition: border-color 0.2s;
}
.header-search__form:focus-within {
  border-color: var(--color-primary);
}
.header-search__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.45;
}
.header-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-dark);
}
.header-search__input::placeholder {
  color: var(--color-text-muted);
}
.header-search__input::-webkit-search-cancel-button {
  display: none;
}
.header-search--mobile {
  margin-bottom: 20px;
}
.header-search--mobile .header-search__form {
  border-radius: var(--radius-full);
  padding: 11px 18px;
}

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

/* ── header-action ── */
.header-action {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.header-action__icon {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.header-action:hover .header-action__icon {
  border-color: var(--color-primary);
}
.header-action__icon img {
  width: 19px;
  height: 19px;
}
.header-action--profile .header-action__icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.header-action--profile .header-action__icon img {
  filter: brightness(0) invert(1);
}
.header-action__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  background: var(--color-badge);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #fff;
  pointer-events: none;
}
.header-action__badge[data-count="0"] {
  display: none;
}
.header-action__total {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
}

/* ── site-nav (row 4) ── */
.site-nav {
  border-top: 1px solid var(--color-border);
}
.site-nav .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.site-nav__list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__item {
  position: relative;
  display: flex;
}
.site-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 15px;
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-dark);
  white-space: nowrap;
  transition: color 0.2s;
  cursor: pointer;
}
.site-nav__link:hover,
.site-nav__item--open > .site-nav__link {
  color: var(--color-primary);
}
.site-nav__chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.25s;
  flex-shrink: 0;
  opacity: 0.6;
}
.site-nav__item--open .site-nav__chevron {
  transform: rotate(180deg);
}

.site-nav__dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  z-index: var(--z-dropdown);
  padding: 6px 0;
  list-style: none;
  transform: translateY(6px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
}
.site-nav__item--open .site-nav__dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.site-nav__dropdown-link {
  display: block;
  padding: 9px 18px;
  font-size: var(--font-size-base);
  color: var(--color-text);
  transition:
    background 0.15s,
    color 0.15s;
}
.site-nav__dropdown-link:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.site-nav__extra {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
}
.site-nav__hits {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-dark);
  padding: 13px 0;
  white-space: nowrap;
  transition: color 0.2s;
}
.site-nav__hits:hover {
  color: var(--color-primary);
}
.site-nav__hits img {
  width: 15px;
  height: 15px;
}
.site-nav__sale {
  background: var(--color-sale);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.site-nav__sale:hover {
  opacity: 0.85;
}

/* ── hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger--active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger--active .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger--active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── mobile-menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: var(--z-mobile);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px var(--container-padding) 40px;
}
.mobile-menu--open {
  display: block;
}
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.mobile-menu__close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-dark);
  transition: border-color 0.2s;
}
.mobile-menu__close:hover {
  border-color: var(--color-primary);
}

/* ── mobile-nav ── */
.mobile-nav {
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
}
.mobile-nav__item > .mobile-nav__trigger,
.mobile-nav__item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}
.mobile-nav__item > a.mobile-nav__sale-link {
  color: var(--color-sale);
}
.mobile-nav__chevron {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.mobile-nav__item--open .mobile-nav__chevron {
  transform: rotate(180deg);
}
.mobile-nav__sub {
  display: none;
  padding: 4px 0 4px 16px;
  list-style: none;
}
.mobile-nav__item--open .mobile-nav__sub {
  display: block;
}
.mobile-nav__sub-link {
  display: block;
  padding: 11px 0;
  font-size: var(--font-size-base);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.15s;
}
.mobile-nav__sub-link:hover {
  color: var(--color-primary);
}
.mobile-nav__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 4px;
}
.mobile-nav__quick-link {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  transition: color 0.15s;
}
.mobile-nav__quick-link:hover {
  color: var(--color-primary);
}

/* =============================================================================
   RESPONSIVE — HEADER
   ============================================================================= */
@media (max-width: 1200px) {
  .topbar__promo {
    display: none;
  }
  .header-location__text {
    display: none;
  }
  .site-nav__link {
    padding: 13px 11px;
  }
}
@media (max-width: 900px) {
  .topbar {
    display: none;
  }
  .header-action__total {
    display: none;
  }
}
@media (max-width: 768px) {
  .site-header__bar {
    padding: 6px 12px;
    font-size: 11px;
  }
  .site-header__main .container {
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 4px;
  }
  .site-logo img {
    height: 32px;
  }
  .header-location {
    display: none;
  }
  .header-search {
    order: 4;
    flex: 0 0 100%;
  }
  .header-actions {
    gap: 6px;
  }
  .header-action__icon {
    width: 36px;
    height: 36px;
  }
  .site-nav__list {
    display: none;
  }
  .site-nav__extra {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .site-nav {
    border-top: none;
  }
  .site-nav .container {
    justify-content: flex-end;
    padding: 4px var(--container-padding);
  }
}
@media (max-width: 420px) {
  .header-action--wishlist {
    display: none;
  }
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer {
  background: #f9fafb;
  margin-top: auto;
}
.footer-hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ── newsletter ── */
.newsletter {
  padding: 48px 0;
}
.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.newsletter__content {
  flex: 1;
  max-width: 420px;
}
.newsletter__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.25;
  margin-bottom: 8px;
}
.newsletter__sub {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.newsletter__form-wrap {
  flex: 0 0 400px;
}
.newsletter__form {
  display: flex;
  align-items: stretch;
  margin-bottom: 10px;
}
.newsletter__input {
  flex: 1;
  min-width: 0;
  padding: 13px 20px;
  border: 1.5px solid #1c4838;
  border-right: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  outline: none;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-dark);
  background: var(--color-bg);
  transition: border-color 0.2s;
}
.newsletter__input:focus {
  border-color: var(--color-primary-dark);
}
.newsletter__input::placeholder {
  color: var(--color-text-muted);
}
.newsletter__btn {
  flex-shrink: 0;
  padding: 13px 24px;
  background: #1c4838;
  color: #fff;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  border: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.newsletter__btn:hover {
  background: #163a2d;
}
.newsletter__disclaimer {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.newsletter__disclaimer a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.newsletter__disclaimer a:hover {
  color: var(--color-primary);
}
.newsletter__disclaimer--success {
  color: var(--color-primary);
  font-weight: 500;
}
.newsletter__disclaimer--error {
  color: var(--color-sale);
}

/* ── footer-main ── */
.footer-main {
  padding: 48px 0 32px;
}
.footer-main__grid {
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}

/* ── footer-brand ── */
.footer-brand__logo {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-brand__logo img {
  height: 36px;
  width: auto;
}
.footer-brand__address {
  font-style: normal;
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.footer-brand__email {
  color: var(--color-primary);
  font-size: var(--font-size-base);
  transition: color 0.2s;
}
.footer-brand__email:hover {
  color: var(--color-primary-dark);
}

/* ── footer-col ── */
.footer-col__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}
.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col__link {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  transition: color 0.2s;
  line-height: 1.4;
}
.footer-col__link:hover {
  color: var(--color-dark);
}

/* ── footer-legal ── */
.footer-legal {
  padding: 20px 0 28px;
}
.footer-legal__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── footer-bottom ── */
.footer-bottom {
  padding: 18px 0;
}
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-bottom__copy {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ── payment-logos ── */
.payment-logos {
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment-logos__item {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* =============================================================================
   RESPONSIVE — FOOTER
   ============================================================================= */
@media (max-width: 1100px) {
  .footer-main__grid {
    grid-template-columns: 180px repeat(4, 1fr);
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .newsletter__inner {
    flex-direction: column;
    gap: 28px;
  }
  .newsletter__content {
    max-width: 100%;
  }
  .newsletter__form-wrap {
    flex: none;
    width: 100%;
  }
  .footer-main__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 32px;
  }
  .footer-brand__logo {
    margin-bottom: 0;
  }
}
@media (max-width: 600px) {
  .newsletter {
    padding: 32px 0;
  }
  .footer-main {
    padding: 32px 0 24px;
  }
  .newsletter__title {
    font-size: 20px;
  }
  .footer-brand {
    flex-direction: column;
    gap: 12px;
  }
  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hits-container {
    overflow: hidden;
  }
  .hits-swiper {
    overflow: unset;
  }
}
@media (max-width: 400px) {
  .footer-main__grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   HITS SECTION
   ============================================================================= */

.hits {
  padding: 64px 0 72px;
  background: #f8f9fa;
}

/* ── hits__head ── */
.hits__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hits__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-dark);
  white-space: nowrap;
  margin: 0;
}

/* ── hits__tabs ── */
.hits__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hits__tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s,
    color 0.18s;
  line-height: 1;
}
.hits__tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}
.hits__tab--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.hits__tab--active:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

/* ── hits__slider-wrap ── */
.hits__slider-wrap {
  position: relative;
}

.hits-swiper {
  width: 100%;
}

.hits__empty {
  padding: 32px 0;
  color: #888;
  font-size: 15px;
}

/* ── hits__arrow — overlay on slides ── */
.hits__arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s;
}
.hits__arrow:hover {
  background: var(--color-primary);
  color: #fff;
}
.hits__arrow.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.hits__arrow--prev {
  left: 6px;
}
.hits__arrow--next {
  right: 6px;
}

/* ── hits-swiper__pagination ── */
.hits-swiper__pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  position: static !important;
  bottom: auto !important;
}
.hits-swiper__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d0d0d0;
  opacity: 1;
  border-radius: 999px;
  margin: 0 !important;
  transition:
    width 0.22s,
    background 0.22s;
}
.hits-swiper__pagination .swiper-pagination-bullet-active {
  width: 24px;
  background: var(--color-primary);
  border-radius: 4px;
}

/* =============================================================================
   PRODUCT CARD
   ============================================================================= */

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.22s;
}
.product-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* ── product-card__image-wrap ── */
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #f5f5f5;
  overflow: hidden;
  flex-shrink: 0;
}
.product-card__img-link {
  display: block;
  width: 100%;
  height: 100%;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.product-card__image-wrap:hover .product-card__img {
  transform: scale(1.04);
}

/* ── product-card__badge ── */
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-sale);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  pointer-events: none;
  line-height: 1;
}

/* ── product-card__btn — floating over image ── */
.product-card__btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  z-index: 2;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s;
}
.product-card__btn--add:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translate(-1px, -1px) scale(1.2);
}
.product-card__btn--detail:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ── product-card__body ── */
.product-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* ── product-card__rating ── */
.product-card__rating {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  padding: 10px 12px;
  border-radius: 0 8px 0 0;
  pointer-events: none;
}
.product-card__star {
  color: #f5a623;
  font-size: 16px;
  line-height: 1;
}
.product-card__rating-text {
  font-size: 13px;
  color: #888;
  line-height: 1;
}

/* ── product-card__title ── */
.product-card__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: calc(1.4em * 2); /* lock to exactly 2 lines */
}
.product-card__title a {
  color: var(--color-dark);
  text-decoration: none;
}
.product-card__title a:hover {
  color: var(--color-primary-dark);
}

/* ── product-card__prices ── */
.product-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.product-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
}
.product-card__price--sale {
  color: var(--color-primary-dark);
  font-size: 18px;
}
.product-card__price--old {
  font-size: 13px;
  font-weight: 400;
  color: #aaa;
  text-decoration: line-through;
}

/* ── product-card__stock ── */
.product-card__stock {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-card__stock-label {
  font-size: 13px;
  color: #aaa;
}
.product-card__stock-qty {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-sale);
}

/* =============================================================================
   CART TOAST
   ============================================================================= */

.cart-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-dark);
  color: #fff;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.22s,
    transform 0.22s;
}
.cart-toast--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cart-toast__icon {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* =============================================================================
   RESPONSIVE — HITS & PRODUCT CARD
   ============================================================================= */

@media (max-width: 900px) {
  .hits__head {
    gap: 16px;
  }
  .hits__title {
    font-size: 22px;
  }
}
@media (max-width: 600px) {
  .hits {
    padding: 40px 0 48px;
  }
  .hits__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hits__tabs {
    gap: 6px;
  }
  .hits__tab {
    padding: 7px 14px;
    font-size: 12px;
  }
  .hits__arrow {
    display: none;
  }
  .cart-toast {
    bottom: auto;
    right: 12px;
    left: 12px;
    top: 160px;
    border-radius: 10px;
    justify-content: center;
  }
}

/* =============================================================================
   PROMO TICKER
   ============================================================================= */

.promo-ticker {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  background: var(--color-bg);
  user-select: none;
}

.promo-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: promo-ticker-scroll 40s linear infinite;
}

.promo-ticker__item {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark);
  white-space: nowrap;
  padding: 0 22px;
}

.promo-ticker__sep {
  color: var(--color-primary);
  font-size: 10px;
  flex-shrink: 0;
}

@keyframes promo-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.promo-ticker:hover .promo-ticker__track {
  animation-play-state: paused;
}

/* =============================================================================
   PROMO SECTION
   ============================================================================= */

.promo-section {
  padding: 64px 0 72px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* ── promo-card ── */
.promo-card {
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.22s;
}
.promo-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* ── promo-card__body — flex:1 so it fills all space above the image ── */
.promo-card__body {
  flex: 1;
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── promo-card__title ── */
.promo-card__title {
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  margin: 0;
}

/* ── promo-card__desc — grows to push button to the bottom ── */
.promo-card__desc {
  flex: 1;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ── promo-card__btn ── */
.promo-card__btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition:
    background 0.18s,
    transform 0.15s;
}
.promo-card__btn:hover {
  background: var(--color-dark);
  transform: translateY(-1px);
}

/* ── promo-card__image-wrap — fixed height so all images are the same size ── */
.promo-card__image-wrap {
  flex: none;
  height: 240px;
  overflow: hidden;
}
.promo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s;
}
.promo-card:hover .promo-card__img {
  transform: scale(1.04);
}

/* =============================================================================
   RESPONSIVE — PROMO
   ============================================================================= */

@media (max-width: 1100px) {
  .promo-grid {
    gap: 16px;
  }
  .promo-card__body {
    padding: 26px 22px 20px;
  }
}
@media (max-width: 900px) {
  .promo-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .promo-card {
    flex-direction: row;
    height: auto;
  }
  .promo-card__body {
    padding: 28px 24px;
  }
  .promo-card__image-wrap {
    flex: none;
    width: 42%;
    height: auto;
    min-height: 220px;
  }
}
@media (max-width: 560px) {
  .promo-section {
    padding: 40px 0 48px;
  }
  .promo-card {
    flex-direction: column;
    height: 100%;
  }
  .promo-card__body {
    padding: 22px 18px 18px;
  }
  .promo-card__image-wrap {
    width: auto;
    height: 200px;
    min-height: unset;
  }
  .promo-card__title {
    font-size: 20px;
  }
  .promo-card__desc {
    font-size: 13px;
  }
}

/* =============================================================================
   CATEGORY STRIP
   ============================================================================= */

.cat-strip {
  padding: 48px 0 52px;
  background: var(--color-bg);
}

/* ── cat-strip__head ── */
.cat-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.cat-strip__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}
.cat-strip__all {
  font-size: 14px;
  color: #999;
  text-decoration: none;
  transition: color 0.18s;
}
.cat-strip__all:hover {
  color: var(--color-primary-dark);
}

/* ── scroll shell ── */
.cat-strip__scroll {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-strip__scroll::-webkit-scrollbar {
  display: none;
}

/* ── track: flex so items never wrap ── */
.cat-strip__track {
  display: flex;
  gap: 12px;
  /* Prevents any wrapping */
  flex-wrap: nowrap;
}

/* ── cat-item ── */
.cat-item {
  /* On desktop fill 1/8 of container; min-width prevents shrinking below */
  flex: 1 1 0;
  min-width: 100px;
  display: flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--color-dark);
}

/* ── cat-item__img-wrap ── */
.cat-item__img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: #f5f5f5;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cat-item:hover .cat-item__img-wrap {
  background: #edf7da;
}

/* ── cat-item__img ── */
.cat-item__img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s;
}
.cat-item:hover .cat-item__img {
  transform: scale(1.07);
}

/* ── placeholder when no image ── */
.cat-item__placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #ddd;
  display: block;
}

/* ── cat-item__name ── */
.cat-item__name {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  color: var(--color-dark);
  white-space: nowrap;
}

/* =============================================================================
   RESPONSIVE — CATEGORY STRIP
   ============================================================================= */

@media (max-width: 900px) {
  .cat-strip {
    padding: 36px 0 40px;
  }
  /* Items shrink to min-width → container overflows → elegant scroll */
  .cat-item {
    min-width: 88px;
  }
}
@media (max-width: 500px) {
  .cat-item {
    min-width: 76px;
  }
  .cat-item__name {
    font-size: 12px;
  }
}

/* =============================================================================
   BRAND SHOWCASE SECTION
   ============================================================================= */

.showcase-section {
  padding: 56px 0 64px;
}

/* ── 2-column grid ── */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── card shell ── */
.showcase-card {
  background: #f7f9f4;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── header row: brand info left, meta right ── */
.showcase-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* ── brand block (logo + name/desc) ── */
.showcase-card__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.showcase-card__logo-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8eee0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase-card__logo {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.showcase-card__logo-placeholder {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.showcase-card__brand-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.showcase-card__brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-card__brand-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── meta block (rating + count) ── */
.showcase-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.showcase-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #e8eee0;
  border-radius: 10px;
  padding: 4px 10px;
}

.showcase-card__star {
  color: #f59e0b;
  font-size: 14px;
  line-height: 1;
}

.showcase-card__rating-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

.showcase-card__count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.showcase-card__count-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.showcase-card__count-label {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── products 2-col grid ── */
.showcase-card__products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* product cards inside showcase: override swiper-inherited min-widths */
.showcase-card__products .product-card {
  min-width: 0;
}

/* =============================================================================
   RESPONSIVE — BRAND SHOWCASE
   ============================================================================= */

@media (max-width: 1100px) {
  .showcase-card__brand-name {
    font-size: 16px;
  }
  .showcase-card__count-num {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .showcase-section {
    padding: 40px 0 48px;
  }
}

@media (max-width: 600px) {
  .showcase-card {
    padding: 18px 16px;
  }
  .showcase-card__logo-wrap {
    width: 48px;
    height: 48px;
  }
  .showcase-card__brand-name {
    font-size: 15px;
  }
  .showcase-card__products {
    gap: 8px;
  }
}

/* =============================================================================
   MID-PAGE PROMO BANNER
   ============================================================================= */

.mid-banner {
  padding: 0 0 48px;
}

.mid-banner__card {
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  background-color: #efefef;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  padding: 60px 56px;
  display: flex;
  align-items: center;
  position: relative;
}

/* left-to-right fade so text stays readable over the photo */
.mid-banner__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #efefef 38%,
    rgba(239, 239, 239, 0.75) 60%,
    transparent 82%
  );
  pointer-events: none;
}

.mid-banner__content {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.mid-banner__title {
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: 12px;
}

.mid-banner__sub {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.mid-banner__btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 30px;
  background: #1c4838;
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
}
.mid-banner__btn:hover {
  background: #163a2d;
  transform: translateY(-2px);
}

/* =============================================================================
   RESPONSIVE — MID-PAGE PROMO BANNER
   ============================================================================= */

@media (max-width: 1100px) {
  .mid-banner__card {
    padding: 52px 48px;
  }
}

@media (max-width: 900px) {
  .mid-banner {
    padding-bottom: 40px;
  }
  .mid-banner__card {
    padding: 48px 36px;
    min-height: 240px;
    background-size: auto 110%;
  }
}

@media (max-width: 640px) {
  .mid-banner__card {
    /* image shifts right so text area stays clean */
    background-position: right -60px center;
    background-size: auto 120%;
    padding: 40px 24px;
  }
  .mid-banner__card::before {
    background: linear-gradient(
      to right,
      #efefef 50%,
      rgba(239, 239, 239, 0.85) 72%,
      transparent 92%
    );
  }
  .mid-banner__title {
    font-size: 22px;
  }
  .mid-banner__sub {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .mid-banner__btn {
    padding: 11px 24px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  /* on very small phones hide image, keep the clean card look */
  .mid-banner__card {
    background-image: none !important;
    min-height: unset;
    padding: 32px 20px;
    background-color: #f4f9ed;
  }
  .mid-banner__card::before {
    display: none;
  }
}

/* =============================================================================
   DEAL SET SECTION
   ============================================================================= */

.deal-set {
  padding: 56px 0 64px;
}

/* ── section header ── */
.deal-set__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.deal-set__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
}

.deal-set__all {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.deal-set__all:hover {
  color: var(--color-primary-dark);
}

/* ── 3-column grid: left | center | right ── */
.deal-set__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 16px;
  align-items: stretch;
}

/* ── panels ── */
.deal-set__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

/* ── left: discounted product cards stacked ── */
.deal-set__cards {
  flex: 1; /* grow so footer is pushed to the bottom */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* compact horizontal product card inside the set */
.deal-set__panel--left .product-card {
  position: relative; /* positioning context for badge + btn */
  display: grid;
  grid-template-columns: 88px 1fr;
  border-radius: 14px;
  min-height: unset;
}

/*
 * Make image-wrap non-positioned so the absolutely placed badge and button
 * become relative to .product-card instead, allowing the button to sit
 * at the far-right of the whole card.
 */
.deal-set__panel--left .product-card__image-wrap {
  position: static;
  border-radius: 12px 0 0 12px;
  height: auto;
  min-height: 88px;
}

/* button now anchors to product-card (bottom-right of full card) */
.deal-set__panel--left .product-card__btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

/* badge anchors to product-card top-left (over the image area) */
.deal-set__panel--left .product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
}

.deal-set__panel--left .product-card__body {
  padding: 10px 44px 10px 12px; /* right padding keeps text clear of the button */
  gap: 4px;
}

.deal-set__panel--left .product-card__title {
  font-size: 13px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.deal-set__panel--left .product-card__price {
  font-size: 15px;
}

/* hide stock / rating in the compact left card to save space */
.deal-set__panel--left .product-card__stock {
  display: none;
}
.deal-set__panel--left .product-card__rating {
  display: none;
}

/* ── left footer: button + note ── */
.deal-set__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.deal-set__buy-all {
  width: 100%;
  padding: 13px 20px;
  background: #1c4838;
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}
.deal-set__buy-all:hover:not(:disabled) {
  background: #163a2d;
  transform: translateY(-1px);
}
.deal-set__buy-all:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.deal-set__save-note {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ── center: promo card with background image ── */
.deal-set__panel--center {
  height: 100%;
}

.deal-set__promo {
  height: 100%;
  min-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background-color: #eef5e6;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  display: flex;
  align-items: flex-start;
  padding: 28px 24px;
  position: relative;
}

/* soft top gradient so text is always readable */
.deal-set__promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(238, 245, 230, 0.92) 40%,
    rgba(238, 245, 230, 0.3) 100%
  );
  border-radius: inherit;
  pointer-events: none;
}

.deal-set__promo-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deal-set__promo-title {
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

.deal-set__promo-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 220px;
}

.deal-set__promo-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 11px 22px;
  background: #1c4838;
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
  align-self: flex-start;
}
.deal-set__promo-btn:hover {
  background: #163a2d;
  transform: translateY(-1px);
}

/* ── right: 2×2 product grid ── */
.deal-set__products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.deal-set__panel--right .product-card {
  min-width: 0;
}

/* =============================================================================
   RESPONSIVE — DEAL SET
   ============================================================================= */

@media (max-width: 1100px) {
  .deal-set__grid {
    grid-template-columns: 1fr 1fr 1.3fr;
  }
  .deal-set__promo-title {
    font-size: 20px;
  }
}

@media (max-width: 900px) {
  /* stack: left + center side by side, right below */
  .deal-set__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .deal-set__panel--left {
    grid-column: 1;
    grid-row: 1;
  }
  .deal-set__panel--center {
    grid-column: 2;
    grid-row: 1;
  }
  .deal-set__panel--right {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .deal-set__products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .deal-set__promo {
    min-height: 320px;
  }
  .deal-set {
    padding: 40px 0 48px;
  }
}

@media (max-width: 640px) {
  /* fully stacked, single column */
  .deal-set__grid {
    grid-template-columns: 1fr;
  }
  .deal-set__panel--left,
  .deal-set__panel--center,
  .deal-set__panel--right {
    grid-column: 1;
    grid-row: auto;
  }

  /* horizontal card style is intentionally preserved on mobile */

  .deal-set__products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .deal-set__promo {
    min-height: 260px;
  }
}

@media (max-width: 420px) {
  .deal-set__products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* =============================================================================
   FAQ SECTION
   ============================================================================= */

.faq-section {
  padding: 0 0 64px;
}

/* ── 2-column layout ── */
.faq-section__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: flex-start;
}

/* ── left: person image ── */
.faq-section__image-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.faq-section__img {
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

/* ── right: accordion ── */
.faq-section__accordion {
  display: flex;
  flex-direction: column;
}

/* ── single FAQ item ── */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

/* question button resets */
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color 0.15s;
}
.faq-item__question:hover {
  color: var(--color-primary);
}

/* chevron via SVG background */
.faq-item__question::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke='%23333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.faq-item--open > .faq-item__question::after {
  transform: rotate(180deg);
}

/*
 * Smooth height animation via grid-template-rows trick:
 * collapsed  → grid-template-rows: 0fr  (inner div is 0 height)
 * expanded   → grid-template-rows: 1fr  (inner div fills natural height)
 */
.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item--open > .faq-item__answer {
  grid-template-rows: 1fr;
}

/* inner wrapper clips overflow during animation */
.faq-item__answer-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 0;
  transition: padding-bottom 0.35s ease;
}

.faq-item--open > .faq-item__answer > .faq-item__answer-inner {
  padding-bottom: 20px;
}

.faq-item__answer p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* =============================================================================
   RESPONSIVE — FAQ SECTION
   ============================================================================= */

@media (max-width: 1000px) {
  .faq-section__grid {
    gap: 32px;
  }
  .faq-item__question {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  /* hide image, full-width accordion */
  .faq-section__grid {
    grid-template-columns: 1fr;
  }
  .faq-section__image-wrap {
    display: none;
  }
  .faq-section {
    padding-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .faq-item__question {
    font-size: 15px;
    padding: 16px 0;
  }
  .faq-item__answer p {
    font-size: 13px;
  }
}

/* =============================================================================
   QUOTE SECTION
   ============================================================================= */

.quote-section {
  padding: 0 0 56px;
}

.quote-section__inner {
  background: #faf6ee;
  border-radius: 20px;
  padding: 64px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

/* ── 3 star badges ── */
.quote-section__stars {
  display: flex;
  gap: 8px;
}

.quote-section__star-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #1c4838;
  border-radius: 12px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

/* ── quote text ── */
.quote-section__text {
  margin: 0;
  max-width: 680px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.6;
}

/* ── author ── */
.quote-section__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.quote-section__author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
}

.quote-section__author-role {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* =============================================================================
   RESPONSIVE — QUOTE SECTION
   ============================================================================= */

@media (max-width: 900px) {
  .quote-section__inner {
    padding: 52px 48px;
    gap: 24px;
  }
  .quote-section__text {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .quote-section__inner {
    padding: 40px 28px;
  }
  .quote-section__text {
    font-size: 18px;
  }
  .quote-section__star-badge {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 10px;
  }
}

@media (max-width: 420px) {
  .quote-section__inner {
    padding: 32px 20px;
    gap: 20px;
  }
  .quote-section__text {
    font-size: 16px;
  }
}

/* =============================================================================
   PROMO SUBSCRIBE BAR
   ============================================================================= */

.promo-subscribe {
  padding: 0 0 56px;
}

.promo-subscribe__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #fff5f5;
  border-radius: 16px;
  padding: 28px 40px;
  position: relative;
}

.promo-subscribe__label {
  font-size: 20px;
  font-weight: 600;
  color: #e03131;
  white-space: nowrap;
  flex-shrink: 0;
}

.promo-subscribe__form {
  display: flex;
  align-items: stretch;
  flex: 1;
  max-width: 540px;
  margin-left: auto;
}

.promo-subscribe__input {
  flex: 1;
  min-width: 0;
  padding: 12px 20px;
  border: 1.5px solid #e03131;
  border-right: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  font-size: 15px;
  font-family: inherit;
  color: var(--color-dark);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.promo-subscribe__input:focus {
  border-color: #c92a2a;
}
.promo-subscribe__input::placeholder {
  color: #adb5bd;
}

.promo-subscribe__btn {
  flex-shrink: 0;
  padding: 12px 28px;
  background: #e03131;
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.promo-subscribe__btn:hover {
  background: #c92a2a;
}
.promo-subscribe__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.promo-subscribe__msg {
  position: absolute;
  bottom: 8px;
  right: 40px;
  font-size: 12px;
  min-height: 1em;
}
.promo-subscribe__msg.newsletter__disclaimer--success {
  color: #2f9e44;
}
.promo-subscribe__msg.newsletter__disclaimer--error {
  color: #e03131;
}

/* =============================================================================
   RESPONSIVE — PROMO SUBSCRIBE BAR
   ============================================================================= */

@media (max-width: 900px) {
  .promo-subscribe__inner {
    padding: 24px 28px;
    gap: 20px;
  }
  .promo-subscribe__label {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .promo-subscribe__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px 20px 32px;
  }
  .promo-subscribe__form {
    max-width: 100%;
    margin-left: 0;
  }
  .promo-subscribe__msg {
    position: static;
    margin-top: 4px;
  }
}

@media (max-width: 420px) {
  .promo-subscribe__btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  .promo-subscribe__input {
    font-size: 14px;
  }
}

/* =============================================================================
   VIDEO SECTION
   ============================================================================= */

.video-section {
  padding: 60px 0 64px 20px;
  overflow: hidden;
}

.video-section__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 32px;
}

/* Swiper overrides — full-bleed with padding */
.video-swiper {
  padding: 0 var(--container-pad) 40px 20px !important;
  overflow: visible;
}

.video-swiper .swiper-wrapper {
  align-items: flex-start;
}

/* Pagination */
.video-swiper__pagination {
  bottom: 0 !important;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.video-swiper__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
  border-radius: 50%;
  transition:
    background 0.2s,
    width 0.2s;
}

.video-swiper__pagination .swiper-pagination-bullet-active {
  background: var(--color-primary);
  width: 20px;
  border-radius: 4px;
}

/* ── Video card ── */
.video-card {
  cursor: pointer;
}

.video-card__thumb {
  position: relative;
  width: 100%;
  padding-top: 133%; /* 3:4 portrait ratio */
  border-radius: 16px;
  overflow: hidden;
  background: #e5e7eb;
}

.video-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.video-card:hover .video-card__thumb img {
  transform: scale(1.04);
}

/* Dark overlay on hover */
.video-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.video-card:hover .video-card__thumb::after {
  background: rgba(0, 0, 0, 0.25);
}

/* Play button */
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.video-card__play img {
  position: static !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  object-fit: contain !important;
}

.video-card:hover .video-card__play img {
  transform: scale(1.12);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

/* Zoom icon — top-right */
.video-card__zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: var(--color-primary, #1c4838);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-card:hover .video-card__zoom {
  opacity: 1;
}

/* Card title */
.video-card__title {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================================================
   VIDEO LIGHTBOX
   ============================================================================= */

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-lightbox[hidden] {
  display: none;
}

.video-lightbox--visible {
  opacity: 1;
}

.video-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}

.video-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.video-lightbox__inner {
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.video-lightbox__iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================================================================
   RESPONSIVE — VIDEO SECTION
   ============================================================================= */

@media (max-width: 900px) {
  .video-section {
    padding: 44px 52px 20px;
  }
}

@media (max-width: 640px) {
  .video-section {
    padding: 32px 0 44px 16px;
  }
  .video-card__play img {
    width: 44px !important;
    height: 44px !important;
  }
  .video-lightbox__inner {
    width: 96vw;
  }
}

/* =============================================================================
   APP DOWNLOAD BAR
   ============================================================================= */

.app-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
  background: var(--color-bg);
}

.app-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ── Left side ── */
.app-bar__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.app-bar__badge-link {
  display: block;
  line-height: 0;
  transition: opacity 0.2s;
}

.app-bar__badge-link:hover {
  opacity: 0.85;
}

.app-bar__badge {
  height: 40px;
  width: auto;
  display: block;
}

.app-bar__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-bar__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
}

.app-bar__sub {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* ── Right side ── */
.app-bar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.app-bar__phone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.app-bar__contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-bar__phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.3px;
  text-decoration: none;
  transition: color 0.2s;
}

.app-bar__phone:hover {
  color: var(--color-primary-dark);
}

.app-bar__phone-note {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* =============================================================================
   RESPONSIVE — APP BAR
   ============================================================================= */

@media (max-width: 900px) {
  .app-bar__label {
    font-size: 14px;
  }
  .app-bar__phone {
    font-size: 18px;
  }
}

@media (max-width: 700px) {
  .app-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .app-bar__right {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .app-bar__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .app-bar__badges {
    gap: 8px;
  }
  .app-bar__badge {
    height: 36px;
  }
}

/* =============================================================================
   SHOP PAGE
   ============================================================================= */

.shop-page {
  padding-bottom: 80px;
}

/* ── Mobile filter bar (hidden on desktop) ── */
.shop-filter-bar {
  display: none;
}

/* ── Layout: sidebar + main ── */
.shop-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 32px;
}

/* ── Sidebar overlay (mobile only) ── */
.shop-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.shop-sidebar-overlay--visible {
  opacity: 1;
}

/* ── Sidebar ── */
.shop-sidebar {
  position: sticky;
  top: 190px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
.shop-sidebar::-webkit-scrollbar {
  width: 4px;
}
.shop-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.shop-sidebar::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 2px;
}

.shop-sidebar__head {
  display: none; /* shown on mobile */
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
}

.shop-sidebar__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
}

.shop-sidebar__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: color 0.2s;
}
.shop-sidebar__close:hover {
  color: var(--color-dark);
}

/* ── Filter groups ── */
.shop-filter-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.shop-filter-group:first-child {
  padding-top: 0;
}
.shop-filter-group:last-child {
  border-bottom: none;
}

.shop-filter-group__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}

/* ── Category list ── */
.shop-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-cat-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 0;
}

.shop-cat-item__label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-dark);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

/* Custom checkbox */
.shop-cat-check,
.shop-brand-check,
.shop-avail-check {
  appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 4px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  background-repeat: no-repeat;
  background-position: center;
}
.shop-cat-check:checked,
.shop-brand-check:checked,
.shop-avail-check:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Toggle arrow button */
.shop-cat-item__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.shop-cat-item__toggle svg {
  transition: transform 0.25s ease;
}
.shop-cat-item--open > .shop-cat-item__row .shop-cat-item__toggle svg {
  transform: rotate(180deg);
}
.shop-cat-item__toggle:hover {
  color: var(--color-primary);
}

/* Subcategory accordion */
.shop-cat-sub-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.shop-cat-item--open > .shop-cat-sub-wrap {
  grid-template-rows: 1fr;
}
.shop-cat-sub {
  overflow: hidden;
  list-style: none;
  padding: 0;
  margin: 0;
}
.shop-cat-sub__item {
  padding: 4px 0 4px 26px;
}
.shop-cat-sub__item .shop-cat-item__label {
  font-size: 13px;
  color: var(--color-text-muted);
}
.shop-cat-sub__item .shop-cat-item__label:hover {
  color: var(--color-dark);
}

/* ── Brand & availability check lists ── */
.shop-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shop-check-count {
  font-size: 12px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* ── Price range slider ── */
.shop-price-slider {
  position: relative;
  padding: 12px 0 8px;
  margin-bottom: 14px;
}

.shop-price-track {
  position: relative;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 10px 0;
}

.shop-price-fill {
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  border-radius: 2px;
}

.shop-price-range {
  position: absolute;
  top: -6px;
  left: 0;
  width: 100%;
  height: 20px;
  appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
}
.shop-price-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s;
}
.shop-price-range::-webkit-slider-thumb:hover,
.shop-price-range::-webkit-slider-thumb:active {
  transform: scale(1.15);
}
.shop-price-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  cursor: pointer;
}

.shop-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.shop-price-input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-dark);
  text-align: center;
  transition: border-color 0.2s;
}
.shop-price-input:focus {
  outline: none;
  border-color: var(--color-primary);
}
/* hide number input spinners */
.shop-price-input::-webkit-outer-spin-button,
.shop-price-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
.shop-price-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.shop-price-sep {
  font-size: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.shop-price-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.shop-price-apply {
  margin-top: 12px;
  width: 100%;
  padding: 9px 16px;
  background: #fff;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.shop-price-apply:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ── Sidebar footer (mobile) ── */
.shop-sidebar__footer {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0 8px;
}

.shop-filter-submit {
  width: 100%;
  padding: 13px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.shop-filter-submit:hover {
  background: #163a2d;
}

.shop-filter-reset {
  width: 100%;
  padding: 11px;
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.shop-filter-reset:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
}

/* ── Toolbar ── */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.shop-toolbar__count {
  font-size: 14px;
  color: var(--color-text-muted);
}
.shop-toolbar__count strong {
  color: var(--color-dark);
}

.shop-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Grid / list toggle */
.shop-view-toggle {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.shop-view-btn {
  background: none;
  border: none;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  transition:
    background 0.15s,
    color 0.15s;
  line-height: 0;
}
.shop-view-btn + .shop-view-btn {
  border-left: 1px solid var(--color-border);
}
.shop-view-btn:hover {
  background: #f3f4f6;
  color: var(--color-dark);
}
.shop-view-btn--active {
  background: var(--color-primary);
  color: #fff;
}
.shop-view-btn--active:hover {
  background: #163a2d;
  color: #fff;
}

/* Sort / per-page selects */
.shop-select-wrap {
  position: relative;
}
.shop-select-wrap::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;
  pointer-events: none;
}
.shop-select {
  appearance: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 7px 30px 7px 12px;
  font-size: 13px;
  color: var(--color-dark);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}
.shop-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ── Product grid ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  min-height: 200px;
  transition: opacity 0.25s ease;
}

/* List view */
.shop-grid--list {
  grid-template-columns: 1fr;
  gap: 12px;
}
.shop-grid--list .shop-grid__item .product-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 0;
}
.shop-grid--list .shop-grid__item .product-card__image-wrap {
  position: static;
  border-radius: 12px 0 0 12px;
}
.shop-grid--list .shop-grid__item .product-card__btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
}
.shop-grid--list .shop-grid__item .product-card {
  position: relative;
}
.shop-grid--list .shop-grid__item .product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ── Pagination ── */
.shop-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.shop-pagination__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  color: var(--color-dark);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.shop-pagination__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.shop-pagination__btn--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.shop-pagination__btn--active:hover {
  background: #163a2d;
  border-color: #163a2d;
  color: #fff;
}

/* ── Sidebar hint (no widgets yet) ── */
.shop-sidebar__hint {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  padding: 12px 0;
}
.shop-sidebar__hint strong {
  color: var(--color-dark);
}

/* =============================================================================
   SHOP FILTER WIDGETS
   ============================================================================= */

/* ── Widget wrapper ── */
.shop-widget {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}
.shop-widget:last-child {
  border-bottom: none;
}

/* ── Widget title — обычный вес, без uppercase ── */
.shop-filter-group__title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-dark);
  margin: 0 0 14px;
}

/* ── Сброс WC дефолтов ── */
.shop-widget ul,
.shop-widget li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.shop-widget a {
  text-decoration: none;
}

/* =============================================================================
   КАТЕГОРИИ ТОВАРОВ
   ============================================================================= */

.shop-widget .product-categories > li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Ссылка категории */
.shop-widget .product-categories li a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--color-dark);
  transition: color 0.15s;
}
.shop-widget .product-categories li a:hover {
  color: var(--color-primary);
}

/* Круглый чекбокс через ::before */
.shop-widget .product-categories li a::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.shop-widget .product-categories li a:hover::before {
  border-color: var(--color-primary);
}

/* Активная/текущая категория */
.shop-widget .product-categories .current-cat > a,
.shop-widget .product-categories .current-cat-parent > a {
  color: var(--color-primary);
  font-weight: 500;
}
.shop-widget .product-categories .current-cat > a::before,
.shop-widget .product-categories .current-cat-parent > a::before {
  background: var(--color-primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9l3 3 7-7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E")
    center/12px no-repeat;
  border-color: var(--color-primary);
}

/* Счётчик категорий — скрыт (нет в дизайне) */
.shop-widget .product-categories .count {
  display: none;
}

/* + / − кнопка аккордеона (инжектируется JS-ом) */
.wf-toggle {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px 6px;
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
  color: var(--color-dark);
  cursor: pointer;
  transition: color 0.15s;
  user-select: none;
}
.wf-toggle:hover {
  color: var(--color-primary);
}

/* Обёртка для аккордеона */
.wf-children-wrap {
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.28s ease;
}
.wf-children-wrap--open {
  grid-template-rows: 1fr;
}

/* Подкатегории */
.shop-widget .product-categories .children {
  min-height: 0;
  padding-left: 28px;
}
.shop-widget .product-categories .children li a {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 5px 0;
}
.shop-widget .product-categories .children li a::before {
  width: 16px;
  height: 16px;
}
.shop-widget .product-categories .children .current-cat > a {
  color: var(--color-primary);
}
.shop-widget .product-categories .children .current-cat > a::before {
  background: var(--color-primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9l3 3 7-7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E")
    center/12px no-repeat;
  border-color: var(--color-primary);
}

/* =============================================================================
   ФИЛЬТР ПО ЦЕНЕ
   ============================================================================= */

/* Трек слайдера */
.shop-widget.widget_price_filter .ui-slider,
.shop-widget .widget_price_filter .ui-slider {
  position: relative !important;
  height: 3px !important;
  background: #e0e0e0 !important;
  border: none !important;
  border-radius: 2px !important;
  margin: 18px 8px !important;
  cursor: default;
}
.shop-widget.widget_price_filter .ui-slider-range,
.shop-widget .widget_price_filter .ui-slider-range {
  position: absolute !important;
  top: 0 !important;
  height: 3px !important;
  background: var(--color-primary) !important;
  border: none !important;
  border-radius: 2px !important;
}

/* Ползунки — закрашенные круги фирменного цвета */
.shop-widget.widget_price_filter .ui-slider-handle,
.shop-widget .widget_price_filter .ui-slider-handle {
  position: absolute !important;
  top: 50% !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: var(--color-primary) !important;
  border: none !important;
  box-shadow: none !important;
  cursor: grab !important;
  transform: translateY(-50%) !important;
  outline: none !important;
  margin-left: -7px !important;
}
.shop-widget.widget_price_filter .ui-slider-handle:active,
.shop-widget .widget_price_filter .ui-slider-handle:active {
  cursor: grabbing !important;
  background: var(--color-primary) !important;
}

/* Блок с инпутами и кнопкой */
.shop-widget .price_slider_amount {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* Поля ввода min / max */
.shop-widget .price_slider_amount input[type="text"],
.shop-widget .price_slider_amount input[type="number"] {
  width: 80px;
  flex-shrink: 0;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-dark);
  background: #fff;
  text-align: left;
  -moz-appearance: textfield;
  appearance: textfield;
}
.shop-widget .price_slider_amount input[type="text"]:focus,
.shop-widget .price_slider_amount input[type="number"]:focus {
  outline: none;
  border-color: var(--color-primary);
}
.shop-widget
  .price_slider_amount
  input[type="number"]::-webkit-inner-spin-button {
  display: none;
}

/* Метка с диапазоном цены */
.shop-widget .price_slider_amount .price_label {
  font-size: 13px;
  color: var(--color-text-muted);
  flex: 1;
  white-space: nowrap;
}

/* Кнопка "Применить" / "Filter" */
.shop-widget .price_slider_amount .button {
  padding: 8px 18px !important;
  background: #fff !important;
  color: var(--color-dark) !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition:
    border-color 0.15s,
    color 0.15s !important;
  flex-shrink: 0;
  margin-left: auto;
}
.shop-widget .price_slider_amount .button:hover {
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
}

/* =============================================================================
   АТРИБУТЫ (Бренды / Наличие / Layered Nav)
   ============================================================================= */

.shop-widget .woocommerce-widget-layered-nav-list__item {
  display: flex;
  align-items: center;
}
.shop-widget .woocommerce-widget-layered-nav-list__item a {
  flex: 1;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--color-dark);
  transition: color 0.15s;
}
.shop-widget .woocommerce-widget-layered-nav-list__item a:hover {
  color: var(--color-primary);
}

/* Квадратный чекбокс */
.shop-widget .woocommerce-widget-layered-nav-list__item a::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.shop-widget .woocommerce-widget-layered-nav-list__item a:hover::before {
  border-color: var(--color-primary);
}

/* Активный фильтр */
.shop-widget .woocommerce-widget-layered-nav-list__item--chosen a {
  color: var(--color-primary);
}
.shop-widget .woocommerce-widget-layered-nav-list__item--chosen a::before {
  content: "" !important;
  font-family: inherit !important;
  background: var(--color-primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9l3 3 7-7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E")
    center/12px no-repeat !important;
  border-color: var(--color-primary) !important;
}

/* Счётчик — справа */
.shop-widget .woocommerce-widget-layered-nav-list__item .count {
  font-size: 13px !important;
  color: var(--color-text-muted) !important;
  display: inline !important;
  margin-left: auto;
}

/* =============================================================================
   WooCommerce PAGINATION
   ============================================================================= */

.shop-pagination-wrap {
  margin-top: 48px;
}

.woocommerce-pagination ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  gap: 4px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: none !important;
}

.woocommerce-pagination ul.page-numbers li {
  display: flex !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.woocommerce-pagination ul.page-numbers li::before {
  display: none !important;
}

.woocommerce-pagination .page-numbers {
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  border: none !important;
  background: none !important;
  font-size: 14px !important;
  color: var(--color-text-muted) !important;
  text-decoration: none !important;
  transition:
    background 0.15s,
    color 0.15s !important;
  line-height: 1 !important;
}

.woocommerce-pagination .page-numbers.current {
  background: var(--color-dark) !important;
  color: #fff !important;
}

.woocommerce-pagination .page-numbers.dots {
  background: none !important;
  cursor: default !important;
  letter-spacing: 1px !important;
}

.woocommerce-pagination .prev.page-numbers {
  display: none !important;
}

.woocommerce-pagination .next.page-numbers {
  font-size: 18px !important;
  color: var(--color-dark) !important;
  width: auto !important;
  padding: 0 6px !important;
}

/* =============================================================================
   RESPONSIVE — SHOP PAGE
   ============================================================================= */

@media (max-width: 1100px) {
  .shop-layout {
    grid-template-columns: 230px 1fr;
    gap: 28px;
  }
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 210px 1fr;
    gap: 20px;
  }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet — sidebar becomes overlay */
@media (max-width: 768px) {
  .shop-filter-bar {
    display: block;
    background: #f3f4f6;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    margin-bottom: 0;
  }
  .shop-filter-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .shop-filter-bar__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
    cursor: pointer;
    transition: border-color 0.2s;
  }
  .shop-filter-bar__btn:hover {
    border-color: var(--color-primary);
  }
  .shop-filter-bar__count {
    font-size: 13px;
    color: var(--color-text-muted);
  }

  .shop-sidebar-overlay {
    display: block;
    pointer-events: none;
  }
  .shop-sidebar-overlay--visible {
    pointer-events: auto;
  }

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(340px, 88vw);
    max-height: none;
    z-index: 1101;
    background: #fff;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 0 20px 40px;
  }
  .shop-sidebar.shop-sidebar--open {
    transform: translateX(0) !important;
  }

  .shop-sidebar__head {
    display: flex;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    margin: 0 -20px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 4px;
  }

  .shop-sidebar__footer {
    display: flex;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 16px 0 0;
    border-top: 1px solid var(--color-border);
    margin: 0 0 0;
  }

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

  .shop-sidebar-col {
    display: none;
  }
}

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .shop-toolbar__controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .shop-grid--list .shop-grid__item .product-card {
    grid-template-columns: 100px 1fr;
  }
}

/* =============================================================================
   SINGLE PRODUCT PAGE
   ============================================================================= */

.sp-page {
  padding: 28px 0 72px;
}

/* Breadcrumbs (WC default .woocommerce-breadcrumb) */
.woocommerce-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}
.woocommerce-breadcrumb a {
  color: var(--color-text-muted);
  transition: color 0.15s;
}
.woocommerce-breadcrumb a:hover {
  color: var(--color-primary);
}

/* Two-column layout */
.sp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Gallery ── */
.sp-gallery {
  position: relative;
  min-width: 0; /* grid item: prevent overflow expanding the cell */
}

.sp-info {
  min-width: 0; /* grid item: prevent overflow expanding the cell */
}

.sp-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--color-sale);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.sp-gallery__main {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-light);
}
.sp-gallery__main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-gallery__img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  display: block;
}

.sp-gallery__thumbs {
  margin-top: 12px;
}
.sp-gallery__thumbs .swiper-slide {
  width: 80px !important;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--color-bg-light);
  flex-shrink: 0;
}
.sp-gallery__thumbs .swiper-slide-thumb-active {
  border-color: var(--color-primary);
}
.sp-gallery__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Info ── */
.sp-info__title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.sp-info__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.sp-info__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.sp-info__sku {
  font-size: 13px;
  color: var(--color-text-muted);
}

.sp-info__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.sp-info__desc p {
  margin: 0;
}

/* Price row */
.sp-info__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.sp-info__prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.sp-info__price {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}
.sp-info__price--sale {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary);
}
.sp-info__price--old {
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* WC price amount inside our spans */
.sp-info__price .woocommerce-Price-amount,
.sp-info__price--sale .woocommerce-Price-amount,
.sp-info__price--old .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.sp-info__stock {
  font-size: 13px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}
.sp-info__stock--in {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}
.sp-info__stock--out {
  border: 1px solid var(--color-text-muted);
  color: var(--color-text-muted);
}

/* Qty + add to cart */
.sp-info__actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 36px;
}
.sp-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  justify-content: center;
}
.sp-qty__btn {
  width: 46px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 300;
  color: var(--color-dark);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1;
  user-select: none;
}
.sp-qty__btn:hover {
  background: var(--color-bg-light);
}

.sp-qty__input {
  width: 52px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-size: 15px;
  font-family: var(--font-primary);
  color: var(--color-dark);
  height: 54px;
  -moz-appearance: textfield;
  appearance: textfield;
  background: #fff;
}
.sp-qty__input::-webkit-inner-spin-button,
.sp-qty__input::-webkit-outer-spin-button {
  display: none;
}
.sp-qty__input:focus {
  outline: none;
}

.sp-info__add-btn {
  flex: 1;
  height: 54px;
  background: var(--color-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.sp-info__add-btn:hover {
  opacity: 0.85;
}
.sp-info__add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sp-info__add-btn--link {
  display: inline-flex;
}

/* Meta */
.sp-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.sp-meta__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}
.sp-meta__label {
  color: var(--color-text-muted);
  min-width: 90px;
  flex-shrink: 0;
  padding-top: 2px;
}
.sp-meta__value {
  color: var(--color-dark);
}
.sp-meta__value a {
  color: var(--color-dark);
  transition: color 0.15s;
}
.sp-meta__value a:hover {
  color: var(--color-primary);
}

.sp-meta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sp-meta__tags a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--color-dark);
  transition:
    border-color 0.15s,
    color 0.15s;
}
.sp-meta__tags a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Share */
.sp-share {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sp-share__label {
  font-size: 14px;
  color: var(--color-text-muted);
}
.sp-share__btns {
  display: flex;
  gap: 8px;
}
.sp-share__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-light);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s;
}
.sp-share__btn--fb:hover {
  background: #1877f2;
  color: #fff;
}
.sp-share__btn--vk:hover {
  background: #0077ff;
  color: #fff;
}
.sp-share__btn--wa:hover {
  background: #25d366;
  color: #fff;
}
.sp-share__btn--ok:hover {
  background: #ee8208;
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sp-layout {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .sp-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sp-gallery__img {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .sp-info__title {
    font-size: 22px;
  }
  .sp-info__price,
  .sp-info__price--sale {
    font-size: 24px;
  }
  .sp-info__price-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .sp-info__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .sp-info__add-btn {
    flex: none;
    width: 100%;
    height: 54px;
  }
  .sp-gallery__img {
    height: 260px;
  }
  .sp-qty__input,
  .sp-qty__btn {
    width: 100%;
    flex: 1;
  }
}

/* =============================================================================
   SINGLE PRODUCT — TABS (Description + Reviews)
   ============================================================================= */

.sp-tabs {
  margin-top: 100px;
}

.related.products,
.upsells.products {
  margin-top: 80px;
}

.related.products h2,
.upsells.products h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.related.products ul.products,
.upsells.products ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.related.products ul.products > li,
.upsells.products ul.products > li {
  padding: 0;
  margin: 0;
}

.related.products ul.products > li::before,
.upsells.products ul.products > li::before {
  display: none;
}

/* WooCommerce clearfix pseudo-elements break CSS Grid — reset them */
.related.products ul.products::before,
.related.products ul.products::after,
.upsells.products ul.products::before,
.upsells.products ul.products::after {
  display: none;
  content: none;
}

@media (max-width: 900px) {
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: 1fr;
  }
}

/* ── Tab nav ── */
.sp-tabs .wc-tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--color-border);
  gap: 0;
}
.sp-tabs .wc-tabs li {
  margin: 0;
  padding: 0;
}
.sp-tabs .wc-tabs li::before {
  display: none;
}
.sp-tabs .wc-tabs li a {
  display: block;
  padding: 16px 28px;
  font-size: 15px;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.sp-tabs .wc-tabs li.active a {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 500;
}
.sp-tabs .wc-tabs li a:hover {
  color: var(--color-primary);
}

/* ── Tab panels ── */
.sp-tabs .woocommerce-Tabs-panel {
  padding: 0;
  background: none;
  border: none;
  outline: none;
}
.sp-tabs .woocommerce-Tabs-panel > h2:first-child {
  display: none;
}
.sp-tabs .woocommerce-Tabs-panel p,
.sp-tabs .woocommerce-Tabs-panel li {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ── Reviews section ── */
#reviews {
  margin: 0;
}

.woocommerce-Reviews-title {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--color-dark) !important;
  margin-bottom: 28px !important;
  display: block !important;
}

/* Review list */
.commentlist {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 40px !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.commentlist li {
  padding: 0 !important;
  border: none !important;
}
.commentlist li::before {
  display: none !important;
}

.commentlist .comment_container {
  display: flex;
  gap: 20px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}
.commentlist .comment_container:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
}
.commentlist .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--color-border);
  top: 6px !important;
  left: 6px !important;
}
.commentlist .comment-text {
  flex: 1;
  min-width: 0;
}

.commentlist .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.commentlist .woocommerce-review__author {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-dark);
}
.commentlist .woocommerce-review__dash {
  display: none;
}
.commentlist .woocommerce-review__published-date {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: auto;
}
.commentlist .star-rating {
  margin-bottom: 10px;
  font-size: 15px;
}
.commentlist .description p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.75;
  margin: 0;
}

/* Star rating display */
.star-rating {
  color: var(--color-primary);
}
.star-rating::before {
  color: var(--color-border) !important;
}
.star-rating span::before {
  color: var(--color-primary) !important;
}

/* ── Review form ── */
#review_form_wrapper {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--color-border);
}
#reply-title,
.comment-reply-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--color-dark) !important;
  margin-bottom: 24px !important;
  display: block !important;
}

/* Star selector (WC converts <select> to .stars) */
.comment-form-rating {
  margin-bottom: 20px;
}
.comment-form-rating label {
  font-size: 13px;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 8px;
}
.stars {
  display: flex;
  align-items: center;
}
.stars span {
  display: flex;
  gap: 2px;
}
.stars a {
  display: inline-block;
  position: relative;
  width: 1.4em;
  height: 1.4em;
  font-size: 20px;
  text-indent: -9999px;
  color: var(--color-border);
  transition: color 0.1s;
}
.stars a::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: "star";
  content: "\73";
  text-indent: 0;
}
/* Hover preview: our JS adds .sp-star-lit to stars 1-N */
.stars a.sp-star-lit {
  color: var(--color-primary);
}
/* Selected: all stars green, then gray out stars after the active one */
.stars.selected a {
  color: var(--color-primary);
}
.stars.selected a.active ~ a {
  color: var(--color-border);
}
/* Hover while selected: lit stars override */
.stars.selected a.sp-star-lit {
  color: var(--color-primary);
}
.stars.selected:hover a:not(.sp-star-lit) {
  color: var(--color-border);
}

/* Fallback: if WC star font not loaded, show ★ */
.stars a::before {
  content: "★";
  font-family: inherit;
}

/* Form layout */
.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.comment-form .comment-form-comment,
.comment-form .comment-form-rating,
.comment-form .form-submit {
  grid-column: 1 / -1;
}
.comment-form label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.comment-form .required {
  color: var(--color-sale);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--color-dark);
  background: #fff;
  transition: border-color 0.15s;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.comment-form textarea {
  height: 120px;
  resize: vertical;
}
.comment-form .form-submit {
  margin: 8px 0 0;
}
.comment-form .submit {
  padding: 13px 36px;
  background: var(--color-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-primary);
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.comment-form .submit:hover {
  opacity: 0.85;
}

/* No reviews yet message */
.woocommerce-noreviews {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 640px) {
  .sp-tabs .wc-tabs li a {
    padding: 12px 16px;
    font-size: 14px;
  }
  .comment-form {
    grid-template-columns: 1fr;
  }
  .comment-form .comment-form-comment,
  .comment-form .comment-form-rating,
  .comment-form .form-submit {
    grid-column: auto;
  }
  .commentlist .comment_container {
    flex-direction: column;
    gap: 12px;
    padding: 6px;
  }
  .commentlist .avatar {
    width: 44px;
    height: 44px;
  }
  .commentlist .woocommerce-review__published-date {
    margin-left: 0;
  }
}

/* =============================================================================
   CART PAGE
   ============================================================================= */

.cart-page {
  padding: 32px 0 80px;
}

.cart-page .woocommerce-breadcrumb {
  margin-bottom: 32px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* ── Empty cart ── */
.cart-empty {
  text-align: center;
  padding: 64px 0;
}

/* ── Table ── */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table thead th {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.cart-table .cart-col-qty,
.cart-table .cart-col-total {
  text-align: center;
}
.cart-table .cart-col-remove {
  text-align: right;
}
.cart-table .cart-col-product {
  width: 40%;
}
.cart-table .cart-col-price {
  width: 18%;
}
.cart-table .cart-col-qty {
  width: 22%;
}
.cart-table .cart-col-total {
  width: 15%;
}
.cart-table .cart-col-remove {
  width: 5%;
}

.cart-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.cart-table tbody td {
  padding: 20px 0;
  font-size: 14px;
  color: var(--color-dark);
  vertical-align: middle;
}

.cart-table tbody .cart-col-qty,
.cart-table tbody .cart-col-total {
  text-align: center;
}
.cart-table tbody .cart-col-remove {
  text-align: right;
}

/* Product cell: image + info */
.cart-table__product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-table__img-link {
  display: block;
  flex-shrink: 0;
}

.cart-table__img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-bg-light);
  display: block;
}

.cart-table__product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* Product name */
.cart-table__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  transition: color 0.15s;
}
a.cart-table__name:hover {
  color: var(--color-primary);
}

/* Woo price output */
.cart-col-price .woocommerce-Price-amount,
.cart-col-total .woocommerce-Price-amount {
  font-weight: 400;
  font-size: 14px;
}

/* ── Custom qty control ── */
.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #fff;
}

.cart-qty__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--color-dark);
  flex-shrink: 0;
  transition: background 0.15s;
}
.cart-qty__btn:hover {
  background: var(--color-bg-light);
}

.cart-qty__input {
  width: 40px;
  text-align: center;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  font-family: var(--font-primary);
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0;
}
.cart-qty__input::-webkit-inner-spin-button,
.cart-qty__input::-webkit-outer-spin-button {
  display: none;
}
.cart-qty__input:focus {
  outline: none;
}

/* ── Remove button ── */
.cart-table__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--color-text-muted);
  transition:
    color 0.15s,
    background 0.15s;
}
.cart-table__remove:hover {
  color: var(--color-sale);
  background: #fef2f2;
}

/* ── Cart actions bar ── */
.cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

.cart-coupon {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 380px;
}

.cart-coupon__input {
  flex: 1;
  padding: 11px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--color-dark);
  background: #fff;
  transition: border-color 0.15s;
}
.cart-coupon__input::placeholder {
  color: var(--color-text-muted);
}
.cart-coupon__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.cart-coupon__btn {
  padding: 11px 24px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: var(--font-primary);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.cart-coupon__btn:hover {
  opacity: 0.82;
}

.cart-clear-btn {
  display: inline-block;
  padding: 11px 24px;
  background: #fff;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: var(--font-primary);
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.15s,
    color 0.15s;
  cursor: pointer;
}
.cart-clear-btn:hover {
  border-color: var(--color-sale);
  color: var(--color-sale);
}

/* ── Cart totals sidebar ── */
.cart-totals {
  background: #fff;

  position: sticky;
  top: 110px;
}

.cart-totals__title {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.cart-totals__rows {
  display: flex;
  flex-direction: column;
}

.cart-totals__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.cart-totals__row:last-child {
  border-bottom: none;
}

.cart-totals__label {
  font-size: 14px;
  color: var(--color-text-muted);
}

.cart-totals__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  text-align: right;
}

/* Shipping output from WC */
.cart-totals__shipping-wrap {
  text-align: right;
  font-size: 14px;
}
.cart-totals__shipping-wrap .woocommerce-Price-amount {
  font-weight: 600;
}
.cart-totals__shipping-wrap .free-shipping,
.cart-totals__shipping-wrap li .amount:empty ~ *,
.cart-totals__shipping-wrap ul li {
  list-style: none;
}
.cart-totals__shipping-wrap ul {
  padding: 0;
  margin: 0;
}
.cart-totals__shipping-wrap .woocommerce-shipping-destination {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}
/* "Бесплатно" label */
.cart-totals__shipping-wrap li label {
  font-weight: 600;
  color: var(--color-primary);
}

/* Discount */
.cart-totals__value--discount {
  color: var(--color-sale);
}

/* Total row */
.cart-totals__row--total {
  border-top: 2px solid var(--color-border);
  margin-top: 4px;
  padding-top: 18px;
}
.cart-totals__label--total {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-dark);
}
.cart-totals__value--total {
  font-size: 20px;
  font-weight: 700;
}

/* Checkout button */
.cart-totals__checkout {
  margin-top: 20px;
}
.cart-totals__checkout .checkout-button,
.cart-totals__checkout a.checkout-button {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--color-cta) !important
  ;
  color: #fff;
  text-align: center;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-primary);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cart-totals__checkout .checkout-button:hover {
  opacity: 0.85;
}

/* WC woocommerce-message coupon notifications */
.cart-page .woocommerce-message,
.cart-page .woocommerce-error,
.cart-page .woocommerce-info {
  margin-bottom: 24px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr 300px;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cart-totals {
    position: static;
  }
}

@media (max-width: 640px) {
  .cart-table thead {
    display: none;
  }

  .cart-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .cart-table tbody td {
    padding: 0;
    border: none;
  }

  .cart-col-product {
    width: 100%;
    font-weight: 500;
  }
  .cart-col-price {
    flex: 1;
  }
  .cart-col-qty {
    flex: 1;
    text-align: left;
  }
  .cart-col-total {
    flex: 1;
    text-align: right;
    font-weight: 700;
  }
  .cart-col-remove {
    text-align: right;
  }

  .cart-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-coupon {
    max-width: 100%;
  }
  .cart-actions__right {
    display: flex;
    justify-content: flex-end;
  }
}

/* =============================================================================
   CHECKOUT PAGE
   ============================================================================= */

.checkout-page {
  padding: 32px 0 80px;
}

.checkout-page .woocommerce-breadcrumb {
  margin-bottom: 24px;
}

/* ── Coupon toggle bar ── */
.checkout-coupon-bar {
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  overflow: hidden;
}

.checkout-coupon-bar__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text);
  text-align: left;
  transition: color 0.15s;
}

.checkout-coupon-bar__toggle:hover {
  color: var(--color-primary-dark);
}

.checkout-coupon-bar__link {
  color: var(--color-primary-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-coupon-bar__panel {
  padding: 0 20px 16px;
}

/* WooCommerce hides .checkout_coupon via inline style="display:none" — override it */
.checkout-coupon-bar__panel form.checkout_coupon,
.checkout-coupon-bar__panel .woocommerce-form-coupon {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  margin: 0 !important;
}

.checkout-coupon-bar__fields {
  display: flex;
  gap: 10px;
}

.checkout-coupon-bar__input {
  flex: 1;
  padding: 11px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--color-dark);
  background: #fff;
  transition: border-color 0.15s;
}

.checkout-coupon-bar__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.checkout-coupon-bar__btn {
  padding: 11px 24px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: var(--font-primary);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.checkout-coupon-bar__btn:hover {
  opacity: 0.82;
}

/* ── 2-column layout ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* ── Left: form ── */
.checkout-main {
  min-width: 0;
}

.checkout-section {
  margin-bottom: 32px;
}

.checkout-section:last-child {
  margin-bottom: 0;
}

.checkout-section__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 20px;
}

/* ── Suppress WooCommerce auto-generated headings (we use our own) ── */
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3 {
  display: none;
}

/* "Ship to a different address?" — keep as-is, just style it */
.woocommerce-checkout #ship-to-different-address {
  margin-bottom: 16px;
}

.woocommerce-checkout #ship-to-different-address h3,
.woocommerce-checkout #ship-to-different-address p {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

.woocommerce-checkout .woocommerce-shipping-fields > h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 16px;
}

/* ── WooCommerce form fields ── */

/* Grid wrapper for billing/shipping */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

/* Full-width rows */
.woocommerce-checkout .form-row-wide,
.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #billing_state_field,
.woocommerce-checkout #billing_postcode_field,
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_company_field,
.woocommerce-checkout #shipping_address_1_field,
.woocommerce-checkout #shipping_address_2_field,
.woocommerce-checkout #shipping_city_field,
.woocommerce-checkout #shipping_state_field,
.woocommerce-checkout #shipping_postcode_field,
.woocommerce-checkout #shipping_country_field,
.woocommerce-checkout #shipping_company_field {
  grid-column: 1 / -1;
}

/* Each field row */
.woocommerce-checkout .form-row {
  margin-bottom: 14px;
}

.woocommerce-checkout .form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.woocommerce-checkout .form-row label .required {
  color: var(--color-sale);
  font-weight: 400;
  margin-left: 2px;
}

/* Text inputs */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--color-dark);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(125, 195, 59, 0.12);
}

.woocommerce-checkout .form-row input.input-text::placeholder,
.woocommerce-checkout .form-row textarea::placeholder {
  color: var(--color-text-muted);
}

/* Select */
.woocommerce-checkout .form-row select {
  display: block;
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--color-dark);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 16px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.woocommerce-checkout .form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(125, 195, 59, 0.12);
}

/* Textarea for notes */
.woocommerce-checkout .form-row textarea {
  min-height: 90px;
  resize: vertical;
}

/* Select2 override */
.woocommerce-checkout .select2-container .select2-selection--single {
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 46px;
  padding-left: 16px;
  color: var(--color-dark);
  font-size: 14px;
}

.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 44px;
  right: 12px;
}

.woocommerce-checkout
  .select2-container--default.select2-container--open
  .select2-selection--single,
.woocommerce-checkout
  .select2-container--default.select2-container--focus
  .select2-selection--single {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(125, 195, 59, 0.12);
}

/* Validation states */
.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select,
.woocommerce-checkout .form-row.woocommerce-invalid textarea {
  border-color: var(--color-sale);
}

.woocommerce-checkout .form-row.woocommerce-validated input.input-text,
.woocommerce-checkout .form-row.woocommerce-validated select {
  border-color: var(--color-primary);
}

/* Inline errors */
.woocommerce-checkout .woocommerce-error li,
.woocommerce-checkout .woocommerce-invalid .woocommerce-error {
  color: var(--color-sale);
  font-size: 12px;
  margin-top: 4px;
}

/* Checkbox: different shipping address */
.woocommerce-checkout .woocommerce-form__input-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--color-primary);
  cursor: pointer;
  margin-right: 8px;
}

.woocommerce-checkout #ship-to-different-address label,
.woocommerce-checkout .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  gap: 6px;
}

/* Additional fields section (order notes) */
.woocommerce-checkout .woocommerce-additional-fields {
  margin-top: 8px;
}

.woocommerce-checkout .woocommerce-additional-fields h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 16px;
}

/* ── Right: Order summary wrapper ── */
.checkout-sidebar {
  position: sticky;
  top: 110px;
}

.checkout-order-wrap {
  background: #fff;
}

/* ── Order review: title ── */
.checkout-order-review__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 20px;
}

/* ── Order items list ── */
.checkout-order-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4px;
}

.checkout-order-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.checkout-order-item__thumb {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.checkout-order-item__img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-bg-light);
  display: block;
}

.checkout-order-item__qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--color-badge);
  color: #fff;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
}

.checkout-order-item__info {
  min-width: 0;
}

.checkout-order-item__name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.4;
}

.checkout-order-item__desc {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.checkout-order-item__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
  text-align: right;
}

.checkout-order-item__price .woocommerce-Price-amount {
  font-weight: 600;
}

/* ── Order totals ── */
.checkout-order-totals {
  margin-top: 4px;
}

.checkout-order-totals__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.checkout-order-totals__row:last-child {
  border-bottom: none;
}

.checkout-order-totals__label {
  font-size: 14px;
  color: var(--color-text-muted);
}

.checkout-order-totals__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  text-align: right;
}

.checkout-order-totals__value--discount {
  color: var(--color-sale);
}

/* Shipping: free */
#shipping_total_row .checkout-order-totals__value,
#shipping_total_row .woocommerce-Price-amount,
#shipping_total_row li label {
  color: var(--color-primary);
  font-weight: 600;
}

#shipping_total_row ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
  font-size: 14px;
}

/* Total row */
.checkout-order-totals__row--total {
  border-bottom: none;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 2px solid var(--color-border);
}

.checkout-order-totals__label--total {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-dark);
}

.checkout-order-totals__value--total {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
}

/* ── Payment section (inside sidebar) ── */
#payment {
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

/* Payment methods list */
#payment .wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

#payment .wc_payment_method {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s;
}

.woocommerce form .form-row {
  width: 100% !important;
}

#payment .wc_payment_method:has(input:checked) {
  border-color: var(--color-primary);
}

#payment .wc_payment_method > label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  user-select: none;
}

#payment .wc_payment_method > label img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

/* Radio button */
#payment .wc_payment_method input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

/* Payment box (description) */
#payment .payment_box {
  padding: 0 16px 14px;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Privacy policy text */
.woocommerce-privacy-policy-text {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: 12px;
  margin-bottom: 16px;
}

.woocommerce-privacy-policy-text a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Place order button ── */
#payment .place-order {
  margin-top: 4px;
}

#place_order {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--color-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-primary);
  text-align: center;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.15s;
}

#place_order:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

#place_order:active {
  transform: translateY(0);
}

/* Checkout notices */
.checkout-page .woocommerce-message,
.checkout-page .woocommerce-error,
.checkout-page .woocommerce-info {
  margin-bottom: 20px;
}

/* Processing overlay */
.checkout-page form.processing {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .checkout-layout {
    grid-template-columns: 1fr 340px;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .checkout-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .checkout-coupon-bar__fields {
    flex-direction: column;
  }

  .checkout-coupon-bar__btn {
    width: 100%;
    text-align: center;
  }

  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    grid-column: 1 / -1;
  }
}

/* =============================================================================
   ORDER TRACKING PAGE
   ============================================================================= */

.order-tracking-page {
  padding: 64px 0 100px;
  display: flex;
  justify-content: center;
}

.order-tracking-page__inner {
  width: 100%;
  max-width: 480px;
  padding: 0 24px;
}

.order-tracking-page__header {
  text-align: center;
  margin-bottom: 40px;
}

.order-tracking-page__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.order-tracking-page__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto;
}

/* Form fields */
.order-tracking-form__field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
  border-radius: 24px;
}

.order-tracking-form__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.order-tracking-form__input {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--color-dark);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.order-tracking-form__input::placeholder {
  color: var(--color-text-muted);
  font-size: 13px;
}

.order-tracking-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(125, 195, 59, 0.12);
}

/* Submit button */
.order-tracking-form__submit {
  margin-top: 28px;
  text-align: center;
}

.order-tracking-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background: var(--color-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.15s;
  white-space: nowrap;
}

.order-tracking-form__btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.order-tracking-form__btn:active {
  transform: translateY(0);
}

/* WooCommerce notices within tracking page */
.order-tracking-page .woocommerce-message,
.order-tracking-page .woocommerce-error,
.order-tracking-page .woocommerce-info {
  margin-bottom: 24px;
  border-radius: var(--radius-md);
}

@media (max-width: 480px) {
  .order-tracking-page {
    padding: 40px 0 64px;
  }

  .order-tracking-form__btn {
    width: 100%;
  }
}

/* =============================================================================
   ACCOUNT — LOGIN / REGISTER
   ============================================================================= */

.account-login-page {
  padding: 60px 0 100px;
  display: flex;
  justify-content: center;
}

/* ── Single login card (no registration) ── */
.account-login-card--solo {
  width: 100%;
  max-width: 440px;
  padding: 0 24px;
}

/* ── 2-column: login + register ── */
.account-login-page--with-register {
  align-items: flex-start;
}

.account-login-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: 860px;
  padding: 0 24px;
}

.account-login-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 36px 40px;
}

/* Card header */
.account-login-card__header {
  margin-bottom: 28px;
}

.account-login-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.account-login-card__sub {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Solo card: no border, centered heading */
.account-login-card--solo {
  border: none;
  padding: 0;
  text-align: center;
}

.account-login-card--solo .account-login-card__header {
  margin-bottom: 32px;
}

.account-login-card--solo .account-login-card__title {
  font-size: 28px;
}

/* ── Form fields ── */
.account-form__field {
  margin-bottom: 18px;
  text-align: left;
}

.account-form__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.account-form__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 7px;
}

.account-form__label-row .account-form__label {
  margin-bottom: 0;
}

.account-form__required {
  color: var(--color-sale);
  font-weight: 400;
}

.account-form__forgot {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
  white-space: nowrap;
}

.account-form__forgot:hover {
  color: var(--color-primary-dark);
}

.account-form__input {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--color-dark);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.account-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(125, 195, 59, 0.12);
}

/* Remember me */
.account-form__row {
  margin-bottom: 22px;
}

.account-form__checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
}

.account-form__checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

/* Note text (auto-generated password) */
.account-form__note {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
  padding: 12px 16px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
}

/* Buttons */
.account-form__btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--color-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-primary);
  text-align: center;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.15s;
}

.account-form__btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.account-form__btn:active {
  transform: translateY(0);
}

/* Register button — outlined variant */
.account-form__btn--outline {
  background: transparent;
  color: var(--color-cta);
  border: 2px solid var(--color-cta);
}

.account-form__btn--outline:hover {
  background: var(--color-cta);
  color: #fff;
  opacity: 1;
}

/* WooCommerce notices on login page */
.account-login-page .woocommerce-error,
.account-login-page .woocommerce-message,
.account-login-page .woocommerce-info {
  max-width: 440px;
  width: 100%;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
}

.account-login-page--with-register .woocommerce-error,
.account-login-page--with-register .woocommerce-message,
.account-login-page--with-register .woocommerce-info {
  max-width: 860px;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .account-login-wrap {
    grid-template-columns: 1fr;
  }

  .account-login-card {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .account-login-page {
    padding: 40px 0 64px;
  }
}

/* =============================================================================
   ACCOUNT PAGE
   ============================================================================= */

/* ── account-page ── */
.account-page {
  padding: 40px 0 80px;
}

/* ── account-layout ── */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── account-sidebar ── */
.account-sidebar {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  position: sticky;
  top: 110px;
}

/* ── account-nav__user ── */
.account-nav__user {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

/* ── account-nav__avatar ── */
.account-nav__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

/* ── account-nav__name ── */
.account-nav__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

/* ── account-nav__email ── */
.account-nav__email {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ── account-nav__list ── */
.account-nav__list {
  list-style: none;
  padding: 12px 0;
  margin: 0;
}

/* ── account-nav__item a ── */
.account-nav__item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 0;
  transition:
    background 0.15s,
    color 0.15s;
}

.account-nav__item a:hover {
  background: var(--color-bg-light);
  color: var(--color-dark);
}

/* ── active nav item ── */
.account-nav__item.is-active a {
  background: rgba(125, 195, 59, 0.1);
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* ── account-nav__icon ── */
.account-nav__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-nav__icon svg {
  width: 16px;
  height: 16px;
}

/* ── logout item ── */
.account-nav__item.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: var(--color-text-muted);
}

.account-nav__item.woocommerce-MyAccount-navigation-link--customer-logout
  a:hover {
  background: rgba(229, 57, 53, 0.08);
  color: #e53935;
}

/* ── account-content ── */
.account-content {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 36px 40px;
  min-width: 0;
}

/* ── content headings ── */
.account-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

/* ── WooCommerce tables ── */
.account-content table {
  width: 100%;
  border-collapse: collapse;
}

.account-content table th {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.account-content table td {
  padding: 16px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}

/* ── buttons inside account-content ── */
.account-content .woocommerce-button,
.account-content .button {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.account-content .woocommerce-button:hover,
.account-content .button:hover {
  opacity: 0.9;
  color: #fff;
}

/* =============================================================================
   ACCOUNT DASHBOARD
   ============================================================================= */

.account-dashboard__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.account-dashboard__sub {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

/* ── cards grid ── */
.account-dashboard__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.account-dashboard__card {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  background: #fff;
}

.account-dashboard__card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(125, 195, 59, 0.12);
  transform: translateY(-2px);
}

.account-dashboard__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(125, 195, 59, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  transition: background 0.2s;
}

.account-dashboard__card:hover .account-dashboard__card-icon {
  background: rgba(125, 195, 59, 0.18);
}

.account-dashboard__card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

.account-dashboard__card-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* =============================================================================
   ACCOUNT — RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .account-dashboard__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .account-content {
    padding: 24px 20px;
  }

  .account-nav__user {
    padding: 20px;
  }
}

/* =============================================================================
   ACCOUNT — ORDERS EMPTY STATE
   ============================================================================= */

.account-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
}

.account-empty-state__icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(125, 195, 59, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.account-empty-state__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

.account-empty-state__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 280px;
  line-height: 1.55;
}

.account-empty-state__btn {
  margin-top: 8px;
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  transition:
    background 0.2s,
    transform 0.15s;
}

.account-empty-state__btn:hover {
  background: #152e21;
  transform: translateY(-1px);
}

/* =============================================================================
   ACCOUNT — ORDERS TABLE
   ============================================================================= */

.account-orders__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.account-orders__table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--color-border);
}

.account-orders__table tbody td,
.account-orders__table tbody th {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text);
}

.account-orders__table tbody tr:last-child td,
.account-orders__table tbody tr:last-child th {
  border-bottom: none;
}

.account-orders__table tbody tr:hover td,
.account-orders__table tbody tr:hover th {
  background: var(--color-bg-light);
}

.account-orders__table .woocommerce-orders-table__cell-order-number a {
  font-weight: 600;
  color: var(--color-primary-dark);
}

.account-orders__table .woocommerce-orders-table__cell-order-number a:hover {
  text-decoration: underline;
}

/* Status badges */
.account-orders__status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--color-bg-light);
  color: var(--color-text-muted);
}

.account-orders__status--processing,
.account-orders__status--on-hold {
  background: rgba(125, 195, 59, 0.12);
  color: var(--color-primary-dark);
}

.account-orders__status--completed {
  background: rgba(29, 61, 46, 0.08);
  color: var(--color-cta);
}

.account-orders__status--cancelled,
.account-orders__status--failed,
.account-orders__status--refunded {
  background: rgba(229, 57, 53, 0.08);
  color: var(--color-sale);
}

/* Action buttons */
.account-orders__action {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  color: var(--color-dark);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.account-orders__action:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* Pagination */
.account-orders__pagination {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.account-orders__pagination-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  padding: 8px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.account-orders__pagination-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

@media (max-width: 600px) {
  .account-orders__table thead {
    display: none;
  }

  .account-orders__table tbody td,
  .account-orders__table tbody th {
    display: block;
    padding: 8px 16px;
  }

  .account-orders__table tbody td::before {
    content: attr(data-title) ": ";
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 12px;
  }

  .account-orders__table tbody tr {
    border-bottom: 1px solid var(--color-border);
    display: block;
    padding: 12px 0;
  }

  .account-orders__table tbody tr:last-child {
    border-bottom: none;
  }
}

/* =============================================================================
   ACCOUNT — ADDRESS LIST
   ============================================================================= */

.address-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.address-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  transition: border-color 0.2s;
}

.address-card:hover {
  border-color: rgba(125, 195, 59, 0.4);
}

.address-card__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(125, 195, 59, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  margin-top: 2px;
}

.address-card__body {
  flex: 1;
  min-width: 0;
}

.address-card__type {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 4px;
}

.address-card__text {
  font-style: normal;
  font-size: 14px;
  color: var(--color-dark);
  line-height: 1.55;
}

.address-card__text br {
  display: block;
}

.address-card__empty {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.address-card__edit {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition:
    background 0.2s,
    color 0.2s;
}

.address-card__edit:hover {
  background: rgba(125, 195, 59, 0.1);
  color: var(--color-primary-dark);
}

/* =============================================================================
   ACCOUNT — ADDRESS FORM
   ============================================================================= */

.address-form-wrap__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  transition: color 0.2s;
}

.address-form-wrap__back:hover {
  color: var(--color-dark);
}

.address-form-wrap__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 24px;
}

/* WooCommerce form-row fields */
.woocommerce-account .woocommerce-address-fields .form-row {
  margin-bottom: 16px;
}

.woocommerce-account .woocommerce-address-fields .form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.woocommerce-account .woocommerce-address-fields .form-row label .required {
  color: var(--color-sale);
  margin-left: 2px;
}

.woocommerce-account .woocommerce-address-fields .form-row input.input-text,
.woocommerce-account .woocommerce-address-fields .form-row textarea {
  display: block;
  width: 100% !important;
  height: 48px;
  padding: 0 16px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-primary) !important;
  font-size: 14px !important;
  color: var(--color-dark) !important;
  background: var(--color-bg) !important;
  box-shadow: none !important;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.woocommerce-account
  .woocommerce-address-fields
  .form-row
  input.input-text:focus,
.woocommerce-account .woocommerce-address-fields .form-row textarea:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(125, 195, 59, 0.12) !important;
}

.woocommerce-account
  .woocommerce-address-fields
  .form-row
  input.input-text::placeholder,
.woocommerce-account
  .woocommerce-address-fields
  .form-row
  textarea::placeholder {
  color: var(--color-text-muted);
}

/* Native select (hidden by Select2 for country, visible for state) */
.woocommerce-account .woocommerce-address-fields .form-row select {
  display: block;
  width: 100% !important;
  height: 48px !important;
  padding: 0 40px 0 16px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-primary) !important;
  font-size: 14px !important;
  color: var(--color-dark) !important;
  background: var(--color-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 14px center !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
}

.woocommerce-account .woocommerce-address-fields .form-row select:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(125, 195, 59, 0.12) !important;
}

/* Select2 (country dropdown) */
.woocommerce-account
  .woocommerce-address-fields
  .select2-container
  .select2-selection--single {
  height: 48px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  background: var(--color-bg) !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
}

.woocommerce-account
  .woocommerce-address-fields
  .select2-container
  .select2-selection--single:focus,
.woocommerce-account
  .woocommerce-address-fields
  .select2-container--open
  .select2-selection--single {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(125, 195, 59, 0.12) !important;
  outline: none !important;
}

.woocommerce-account
  .woocommerce-address-fields
  .select2-container
  .select2-selection__rendered {
  line-height: 48px !important;
  padding-left: 16px !important;
  padding-right: 36px !important;
  font-size: 14px !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary) !important;
}

.woocommerce-account
  .woocommerce-address-fields
  .select2-container
  .select2-selection__arrow {
  height: 46px !important;
  right: 12px !important;
}

/* Two-column layout */
.woocommerce-account .woocommerce-address-fields .form-row-first,
.woocommerce-account .woocommerce-address-fields .form-row-last {
  display: inline-block;
  width: calc(50% - 8px);
}

.woocommerce-account .woocommerce-address-fields .form-row-first {
  margin-right: 16px;
}

/* Validation states */
.woocommerce-account
  .woocommerce-address-fields
  .form-row.woocommerce-invalid
  input.input-text,
.woocommerce-account
  .woocommerce-address-fields
  .form-row.woocommerce-invalid
  select {
  border-color: var(--color-sale) !important;
}

.woocommerce-account
  .woocommerce-address-fields
  .form-row.woocommerce-validated
  input.input-text,
.woocommerce-account
  .woocommerce-address-fields
  .form-row.woocommerce-validated
  select {
  border-color: var(--color-primary) !important;
}

/* Form action buttons */
.address-form__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.address-form__save {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  font-family: var(--font-primary);
}

.address-form__save:hover {
  background: #152e21;
  transform: translateY(-1px);
}

.address-form__cancel {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 13px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.address-form__cancel:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
}

@media (max-width: 600px) {
  .address-form__fields .form-row-first,
  .address-form__fields .form-row-last {
    display: block;
    width: 100%;
    margin-right: 0;
  }

  .address-form__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .address-form__save,
  .address-form__cancel {
    text-align: center;
    padding: 14px;
  }
}

/* =============================================================================
   ACCOUNT — EDIT ACCOUNT DETAILS
   ============================================================================= */

.edit-account-form__section {
  margin-bottom: 32px;
  padding-bottom: 32px;
}

.edit-account-form__section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.edit-account-form__section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 20px;
}

/* Two-column row */
.edit-account-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Single field */
.edit-account-form__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.edit-account-form__row .edit-account-form__field {
  margin-bottom: 0;
}

.edit-account-form__field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.edit-account-form__field label .required {
  color: var(--color-sale);
  margin-left: 2px;
}

/* Inputs */
.woocommerce-account
  .edit-account-form
  .edit-account-form__field
  input.input-text,
.woocommerce-account
  .edit-account-form
  .edit-account-form__field
  input[type="text"],
.woocommerce-account
  .edit-account-form
  .edit-account-form__field
  input[type="email"],
.woocommerce-account
  .edit-account-form
  .edit-account-form__field
  input[type="password"] {
  width: 100% !important;
  height: 48px !important;
  padding: 0 16px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-primary) !important;
  font-size: 14px !important;
  color: var(--color-dark) !important;
  background: var(--color-bg) !important;
  box-shadow: none !important;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.woocommerce-account .edit-account-form .edit-account-form__field input:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(125, 195, 59, 0.12) !important;
}

.woocommerce-account
  .edit-account-form
  .edit-account-form__field
  input::placeholder {
  color: var(--color-text-muted);
}

.edit-account-form__hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* Save button */
.edit-account-form__actions {
  margin-top: 28px;
}

.edit-account-form__save {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 36px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  transition:
    background 0.2s,
    transform 0.15s;
}

.edit-account-form__save:hover {
  background: #152e21;
  transform: translateY(-1px);
}

/* Hide WooCommerce fieldset default styling */
.woocommerce-account .edit-account-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.woocommerce-account .edit-account-form fieldset legend {
  display: none;
}

/* Password strength meter */
.woocommerce-account .edit-account-form .woocommerce-password-strength {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

.woocommerce-account .edit-account-form .woocommerce-password-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

@media (max-width: 600px) {
  .edit-account-form__row {
    grid-template-columns: 1fr;
  }

  .edit-account-form__save {
    width: 100%;
    text-align: center;
    padding: 14px;
  }
}

/* =============================================================================
   BLOG ARCHIVE
   ============================================================================= */

.blog-archive {
  padding: 48px 0 80px;
}

/* Breadcrumb */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.blog-breadcrumb a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.blog-breadcrumb a:hover {
  color: var(--color-dark);
}

.blog-breadcrumb span[aria-hidden] {
  color: var(--color-border);
}

/* Header */
.blog-archive__header {
  margin-bottom: 32px;
}

.blog-archive__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.blog-archive__sub {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Category filter pills */
.blog-archive__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.blog-filter-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  background: transparent;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
}

.blog-filter-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.blog-filter-pill.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Posts grid — 3 columns */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Blog card */
.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
  transition:
    box-shadow 0.25s,
    transform 0.2s,
    border-color 0.2s;
  color: inherit;
}

.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  border-color: transparent;
}

/* Image */
.blog-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-light);
  flex-shrink: 0;
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__image {
  transform: scale(1.04);
}

.blog-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border);
}

/* Category badge */
.blog-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Body */
.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  gap: 10px;
}

.blog-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__excerpt {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.blog-card__reading-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.blog-card__date {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: auto;
}

/* Pagination */
.blog-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.blog-pagination .page-numbers {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-pagination .page-numbers li a,
.blog-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}

.blog-pagination .page-numbers li a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.blog-pagination .page-numbers li span.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.blog-pagination .page-numbers li a.prev,
.blog-pagination .page-numbers li a.next {
  min-width: unset;
  padding: 0 20px;
  color: var(--color-dark);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-archive {
    padding: 32px 0 60px;
  }

  .blog-archive__title {
    font-size: 22px;
  }

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

  .blog-card__title {
    font-size: 15px;
  }
}

/* =============================================================================
   SINGLE POST
   ============================================================================= */

.single-post {
  padding: 40px 0 80px;
}

/* Two-column layout */
.single-post__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ---- Article ---- */
.single-post__header {
  margin-bottom: 28px;
}

.single-post__cat {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.single-post__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.single-post__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.single-post__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.single-post__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
}

/* Featured image */
.single-post__featured {
  margin-bottom: 36px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.single-post__featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Article content typography (prose) ---- */
.prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 32px 0 12px;
}

.prose p {
  margin: 0 0 20px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
  margin: 0 0 20px;
}

.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.prose blockquote {
  border-left: 3px solid var(--color-primary);
  margin: 28px 0;
  padding: 16px 24px;
  background: rgba(125, 195, 59, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 17px;
  color: var(--color-dark);
  font-style: italic;
}

.prose blockquote p {
  margin: 0;
}

.prose img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 8px 0 24px;
}

.prose a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--color-dark);
}

.prose strong {
  font-weight: 700;
  color: var(--color-dark);
}

.prose code {
  background: var(--color-bg-light);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-cta);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 36px 0;
}

/* Tags */
.single-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.single-post__tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.single-post__tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* Author card */
.author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--color-bg-light);
  border-radius: 16px;
  margin-top: 36px;
}

.author-card__avatar {
  flex-shrink: 0;
  display: block;
}

.author-card__avatar-img {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.author-card__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin: 0;
}

.author-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  transition: color 0.2s;
}

.author-card__name:hover {
  color: var(--color-primary-dark);
}

.author-card__bio {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Prev / Next navigation */
.single-post__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

.single-post__nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: calc(50% - 8px);
  transition: opacity 0.2s;
}

.single-post__nav-link:hover {
  opacity: 0.7;
}

.single-post__nav-link--next {
  text-align: right;
  margin-left: auto;
}

.single-post__nav-direction {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.single-post__nav-link--next .single-post__nav-direction {
  justify-content: flex-end;
}

.single-post__nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Sticky sidebar ---- */
.single-post__sidebar {
  position: sticky;
  top: 210px;
}

.related-panel {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}

.related-panel__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}

.related-panel__list {
  display: flex;
  flex-direction: column;
}

/* Related card in sidebar */
.related-card {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}

.related-card:last-child {
  border-bottom: none;
}

.related-card:hover {
  background: var(--color-bg-light);
}

.related-card__image-wrap {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg-light);
}

.related-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.related-card__cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-dark);
}

.related-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card__time {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ---- Mobile related (hidden on desktop, shown on mobile) ---- */
.related-mobile {
  display: none;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.related-mobile__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 24px;
}

.related-mobile__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .single-post__layout {
    grid-template-columns: 1fr 280px;
    gap: 28px;
  }

  .single-post__title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .single-post__layout {
    grid-template-columns: 1fr;
  }

  /* Hide sticky sidebar, show mobile related section instead */
  .single-post__sidebar {
    display: none;
  }

  .related-mobile {
    display: block;
  }

  .related-mobile__grid {
    grid-template-columns: 1fr;
  }

  .single-post__title {
    font-size: 22px;
  }

  .prose {
    font-size: 15px;
  }

  .single-post__nav {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   LIVE SEARCH DROPDOWN
   ============================================================================= */

/* Make search wrap the anchor for the dropdown */
.header-search {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  max-width: 960px;
  min-width: 500px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  z-index: 2000;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Two-column inner layout */
.search-dropdown__inner {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Left: categories ── */
.search-dropdown__cats {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid var(--color-border);
  padding: 16px 0;
  overflow-y: auto;
  background: var(--color-bg-light);
  border-radius: 16px 0 0 16px;
}

.search-dropdown__cats-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 10px 16px 6px;
  margin: 0;
}

.search-dropdown__cats-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
}

.search-dropdown__cat-link {
  display: block;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-dark);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown__cat-link:hover {
  background: rgba(125, 195, 59, 0.1);
  color: var(--color-primary-dark);
}

/* ── Right: results ── */
.search-dropdown__results {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 8px;
  min-width: 0;
}

.search-dropdown__section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 8px 20px 6px;
  margin: 0;
}

/* ── Product result row ── */
.search-result-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  transition: background 0.15s;
  cursor: pointer;
}

.search-result-product:hover {
  background: var(--color-bg-light);
}

.search-result-product__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.search-result-product__img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: block;
  background: var(--color-bg-light);
}

.search-result-product__img--empty {
  background: var(--color-bg-light);
  border: 1px dashed var(--color-border);
}

.search-result-product__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result-product__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.search-result-product__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0;
}

.search-result-product__price del {
  color: var(--color-text-muted);
  font-weight: 400;
  margin-right: 4px;
}

.search-result-product__go {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}

.search-result-product:hover .search-result-product__go {
  color: var(--color-primary-dark);
}

/* ── Post result row ── */
.search-result-post {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  transition: background 0.15s;
}

.search-result-post:hover {
  background: var(--color-bg-light);
}

.search-result-post__img {
  width: 60px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: block;
}

.search-result-post__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-result-post__cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-dark);
}

.search-result-post__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

.search-result-post__date {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ── States: loading / empty ── */
.search-dropdown__loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 24px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.search-dropdown__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.search-dropdown__empty {
  padding: 28px 24px;
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
}

.search-dropdown__empty strong {
  color: var(--color-dark);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .search-dropdown {
    width: 90vw;
    min-width: 0;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .search-dropdown {
    width: calc(100vw - 32px);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px;
    max-height: 80vh;
  }

  /* Hide category column on mobile */
  .search-dropdown__cats {
    display: none;
  }

  .search-dropdown__inner {
    flex-direction: column;
  }

  .search-result-product__name {
    max-width: 200px;
  }
}
