/*
Theme Name: estel
Theme URI: https://example.com/estel
Author: Developer
Author URI: https://example.com
Description: Mobile-first WordPress theme with WooCommerce support.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: estel
Tags: e-commerce, woocommerce, mobile-first, custom-menu
*/

/* ── CSS Variables ── */
:root {
  --estel-blue: #005bff;
  --estel-magenta: #f91155;
  --estel-blue-light: #e8f0ff;
  --estel-gray-100: #f5f5f5;
  --estel-gray-200: #eeeeee;
  --estel-gray-400: #9e9e9e;
  --estel-gray-700: #424242;
  --estel-white: #ffffff;
  --header-height: 56px;
  --bottom-nav-inner-height: 60px;
  --bottom-nav-safe-area: env(safe-area-inset-bottom, 0px);
  --bottom-nav-height: calc(var(--bottom-nav-inner-height) + var(--bottom-nav-safe-area));
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--estel-gray-700);
  background-color: var(--estel-gray-100);
  -webkit-font-smoothing: antialiased;
}

/* Site header */
.estel-site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--estel-white);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* WordPress admin bar — header sticks below it */
@media screen and (max-width: 782px) {
  body.admin-bar .estel-site-header {
    top: 46px;
  }

  #wpadminbar {
    z-index: 100000 !important;
  }
}

@media screen and (min-width: 783px) {
  body.admin-bar .estel-site-header {
    top: 32px;
  }
}

a {
  color: var(--estel-blue);
  text-decoration: none;
}

a:hover {
  color: var(--estel-magenta);
}

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

/* ── Layout ── */
.site-main {
  min-height: calc(100dvh - var(--header-height));
  padding: 16px;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
}

@media (min-width: 768px) {
  .site-main {
    padding-bottom: 16px;
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* ── WooCommerce catalog (Ozon-style) ── */
.estel-catalog .site-main,
.woocommerce-page.site-main {
  padding: 8px;
  padding-bottom: calc(var(--bottom-nav-height) + 8px);
}

@media (min-width: 768px) {
  .estel-catalog .site-main,
  .woocommerce-page.site-main {
    padding: 16px;
    padding-bottom: 16px;
  }
}

.woocommerce ul.products.estel-products-grid,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .woocommerce ul.products.estel-products-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
  content: none;
}

.woocommerce ul.products li.estel-product-card {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
}

.estel-card {
  transition: box-shadow 0.15s ease;
}

.estel-card:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.estel-product-card__image {
  aspect-ratio: 1 / 1;
  background: var(--estel-gray-100);
}

.estel-product-card__image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: var(--estel-gray-100);
}

.estel-product-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.06);
}

.estel-product-card__footer {
  align-items: flex-end;
}

.estel-product-card__price .estel-price {
  line-height: 1.2;
}

.estel-product-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.estel-price .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.estel-price__current .woocommerce-Price-amount {
  color: var(--estel-magenta);
}

.estel-price__regular .woocommerce-Price-amount {
  color: var(--estel-gray-400);
  font-size: 11px;
  font-weight: 400;
}

.estel-price .woocommerce-Price-currencySymbol {
  font-size: 0.85em;
}

.estel-add-to-cart-btn {
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.estel-cart-control {
  display: flex;
  justify-content: flex-end;
}

.estel-cart-control--loading {
  opacity: 0.65;
  pointer-events: none;
}

.estel-cart-control__stepper button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.estel-cart-control__add {
  padding: 0;
}

.estel-cart-badge.hidden,
.estel-favorites-badge.hidden,
[data-estel-cart-badge].hidden,
[data-estel-favorites-badge].hidden {
  display: none !important;
}

a.added_to_cart.wc-forward,
.woocommerce ul.products a.added_to_cart {
  display: none !important;
}

.estel-cart-badge.hidden {
  display: none !important;
}

.estel-add-to-cart-btn.added {
  background: var(--estel-magenta);
}

.estel-discount-badge {
  letter-spacing: -0.02em;
}

/* Hide default WC loop elements we replaced */
.woocommerce ul.products li.product .onsale,
.woocommerce ul.products li.product .star-rating {
  display: none !important;
}

.woocommerce-result-count,
.woocommerce-ordering {
  margin: 0;
}

/* ── Shop toolbar (count + sort) ── */
.estel-shop-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.estel-shop-toolbar__count {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--estel-gray-400);
  white-space: nowrap;
  flex-shrink: 0;
}

.estel-shop-toolbar__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.estel-shop-toolbar__sort {
  margin: 0;
  flex-shrink: 0;
}

/* View mode toggle — single button like sort */
.estel-shop-view-toggle {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--estel-white);
  color: var(--estel-gray-700);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.estel-shop-view-toggle.is-active {
  background: var(--estel-blue-light);
  color: var(--estel-blue);
  box-shadow: inset 0 0 0 1px rgba(0, 91, 255, 0.14);
}

.estel-shop-view-toggle:active {
  transform: scale(0.96);
}

.estel-shop-view-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Infinite scroll mode */
html.estel-shop-infinite .estel-shop-pagination {
  display: none !important;
}

.estel-shop-load-more {
  grid-column: 1 / -1;
  width: 100%;
  padding: 8px 0 4px;
  text-align: center;
}

.estel-shop-load-more[hidden] {
  display: none !important;
}

.estel-shop-load-more__loading,
.estel-shop-load-more__done {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--estel-gray-400);
}

.estel-shop-load-more__sentinel {
  width: 100%;
  height: 1px;
}

.estel-shop-sort__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 8px;
  background: var(--estel-white);
  color: var(--estel-gray-700);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.estel-shop-sort__trigger:active {
  background: var(--estel-gray-200);
}

.estel-shop-sort__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.estel-shop-sort__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
}

@media (min-width: 768px) {
  .estel-shop-toolbar {
    margin-bottom: 8px;
    gap: 12px;
  }

  .estel-shop-sort__trigger {
    width: 34px;
    height: 34px;
  }

  .estel-shop-sort__trigger:hover {
    background: var(--estel-gray-200);
    color: var(--estel-blue);
  }
}

/* ── Shop pagination ── */
.woocommerce nav.woocommerce-pagination.estel-shop-pagination,
.estel-shop-pagination.woocommerce-pagination {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 20px 0 28px;
  padding: 0 12px;
  clear: both;
  background: transparent !important;
  box-shadow: none;
}

.estel-shop-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
  box-shadow: none;
}

.estel-shop-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
}

.estel-shop-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--estel-gray-200);
  border-radius: 12px;
  background: var(--estel-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--estel-gray-700);
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.estel-shop-pagination a.page-numbers:hover,
.estel-shop-pagination a.page-numbers:focus-visible {
  border-color: var(--estel-blue);
  background: var(--estel-blue-light);
  color: var(--estel-blue);
  outline: none;
}

.estel-shop-pagination .page-numbers.current {
  border-color: var(--estel-blue);
  background: var(--estel-blue);
  color: var(--estel-white);
  box-shadow: 0 2px 8px rgba(0, 91, 255, 0.25);
  pointer-events: none;
}

.estel-shop-pagination .page-numbers.dots {
  min-width: 28px;
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--estel-gray-400);
  pointer-events: none;
}

.estel-shop-pagination .page-numbers.prev,
.estel-shop-pagination .page-numbers.next {
  min-width: 40px;
  padding: 0;
  color: var(--estel-gray-700);
}

.estel-shop-pagination .page-numbers.prev.disabled,
.estel-shop-pagination .page-numbers.next.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.estel-shop-pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .estel-shop-pagination.woocommerce-pagination {
    margin: 16px 0 24px;
    padding: 0 8px;
  }

  .estel-shop-pagination ul.page-numbers {
    gap: 4px;
  }

  .estel-shop-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 13px;
  }

  .estel-shop-pagination .page-numbers.prev,
  .estel-shop-pagination .page-numbers.next {
    min-width: 36px;
  }
}

.woocommerce-notices-wrapper {
  margin-bottom: 12px;
}

/* ── WooCommerce notices (global Ozon-style) ── */
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.estel-wc-notice::before {
  display: none !important;
  content: none !important;
}

.estel-wc-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 8px;
  padding: 14px 16px;
  border: none !important;
  border-radius: 12px;
  background: var(--estel-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 14px;
  line-height: 1.45;
  color: var(--estel-gray-700);
  list-style: none;
}

.estel-wc-notice:last-child {
  margin-bottom: 0;
}

.estel-wc-notice__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-top: 1px;
}

.estel-wc-notice--success .estel-wc-notice__icon {
  background: rgba(0, 91, 255, 0.1);
  color: var(--estel-blue);
}

.estel-wc-notice--info .estel-wc-notice__icon {
  background: var(--estel-blue-light);
  color: var(--estel-blue);
}

.estel-wc-notice--error .estel-wc-notice__icon {
  background: rgba(249, 17, 85, 0.1);
  color: var(--estel-magenta);
}

.estel-wc-notice__content {
  flex: 1;
  min-width: 0;
}

.estel-wc-notice__content p {
  margin: 0;
}

.estel-wc-notice .button,
.estel-wc-notice a.wc-forward,
.estel-wc-notice .restore-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none !important;
  min-height: 40px;
  margin-top: 10px;
  padding: 10px 16px !important;
  border: none !important;
  border-radius: 10px !important;
  background: var(--estel-blue) !important;
  color: var(--estel-white) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.estel-wc-notice .button:hover,
.estel-wc-notice a.wc-forward:hover,
.estel-wc-notice .restore-item:hover {
  background: var(--estel-magenta) !important;
  color: var(--estel-white) !important;
}

.woocommerce-error.estel-wc-notice--error {
  flex-direction: column;
  gap: 8px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.woocommerce-error.estel-wc-notice--error li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: none !important;
  border-radius: 12px;
  background: var(--estel-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: var(--estel-magenta);
}

@media (min-width: 640px) {
  .estel-wc-notice:not(.estel-wc-notice--error) {
    align-items: center;
  }

  .estel-wc-notice__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
  }

  .estel-wc-notice .button,
  .estel-wc-notice a.wc-forward,
  .estel-wc-notice .restore-item {
    margin-top: 0;
    margin-left: auto;
    flex-shrink: 0;
  }
}

.estel-single-product-page .woocommerce-notices-wrapper {
  margin-bottom: 8px;
}

.estel-cart-page .woocommerce-notices-wrapper,
.estel-checkout-page .woocommerce-notices-wrapper {
  margin-bottom: 12px;
}

.estel-icon {
  display: block;
  flex-shrink: 0;
}

/* ── Bottom navigation (mobile) ── */
.estel-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: 100%;
  padding-bottom: var(--bottom-nav-safe-area);
  border-top: 1px solid var(--estel-gray-200);
  background-color: var(--estel-white);
}

@media (min-width: 768px) {
  .estel-bottom-nav {
    display: none;
  }
}

.estel-mobile-above-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bottom-nav-height);
  z-index: 40;
  border-top: 1px solid var(--estel-gray-200);
  background: var(--estel-white);
  padding: 12px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .estel-mobile-above-nav {
    display: none;
  }
}

.estel-bottom-nav .estel-bottom-nav__list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  height: var(--bottom-nav-inner-height);
  align-items: stretch;
  justify-content: space-around;
  margin: 0;
  padding: 0;
  list-style: none;
}

.estel-bottom-nav .estel-bottom-nav__list > li {
  display: flex;
  flex: 1 1 0%;
  min-width: 0;
}

.estel-bottom-nav__item {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: var(--bottom-nav-inner-height);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--estel-gray-500);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.estel-bottom-nav__item.is-active,
.estel-bottom-nav__item[aria-expanded="true"] {
  color: var(--estel-blue);
}

.estel-bottom-nav__icon.estel-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
}

.estel-bottom-nav__badge {
  position: absolute;
  top: 14px;
  left: calc(50% + 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--estel-magenta);
  color: var(--estel-white);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.estel-bottom-nav__badge.hidden {
  display: none !important;
}

.estel-logo-link {
  line-height: 0;
  max-width: 68px;
}

.estel-logo-link img,
img.estel-logo {
  display: block;
  height: 18px !important;
  max-height: 18px !important;
  width: auto !important;
  max-width: 68px !important;
  object-fit: contain !important;
}

@media (min-width: 768px) {
  .estel-logo-link {
    max-width: 82px;
  }

  .estel-logo-link img,
  img.estel-logo {
    height: 22px !important;
    max-height: 22px !important;
    max-width: 82px !important;
  }
}

.post-card {
  background: var(--estel-white);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.post-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.post-card__meta {
  font-size: 12px;
  color: var(--estel-gray-400);
  margin-bottom: 8px;
}

.post-card__excerpt {
  font-size: 14px;
  color: var(--estel-gray-700);
}

/* ── Cart page (Ozon-style) ── */
.estel-cart-page .site-main {
  padding-bottom: calc(var(--bottom-nav-height) + 120px);
  background: var(--estel-gray-100);
}

@media (max-width: 767px) {
  .estel-cart-page .estel-main-cart {
    padding: 8px;
    padding-bottom: calc(var(--bottom-nav-height) + 120px);
    max-width: none;
  }

  .estel-cart-page .estel-cart-layout,
  .estel-cart-page .estel-cart-main,
  .estel-cart-page .estel-cart-sidebar,
  .estel-cart-page .cart-collaterals {
    margin: 0;
  }

  .estel-cart-page .estel-cart-items {
    gap: 8px;
  }

  .estel-cart-page .estel-cart-card,
  .estel-cart-page .estel-cart-panel {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }

  .estel-cart-page .estel-cart-sidebar {
    margin-top: 8px;
  }

  .estel-cart-page .estel-cart-totals-table.shop_table_responsive tr {
    display: table-row;
  }

  .estel-cart-page .estel-cart-totals-table.shop_table_responsive th,
  .estel-cart-page .estel-cart-totals-table.shop_table_responsive td {
    display: table-cell;
    width: auto;
    text-align: inherit;
  }

  .estel-cart-page .estel-cart-totals-table.shop_table_responsive tbody th {
    display: table-cell;
  }

  .estel-cart-page .estel-cart-totals-table.shop_table_responsive td::before {
    display: none !important;
    content: none !important;
  }

  .estel-cart-page .estel-cart-totals-table.shop_table_responsive td {
    text-align: right;
  }

  .estel-cart-page .estel-cart-totals-table.shop_table_responsive th {
    text-align: left;
  }
}

@media (min-width: 768px) {
  .estel-cart-page .estel-main-cart {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .estel-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
  }

  .estel-cart-main,
  .estel-cart-sidebar {
    min-width: 0;
  }

  .estel-cart-page .estel-cart-sidebar,
  .estel-cart-page .cart-collaterals {
    margin-top: 0;
  }

  .estel-cart-page .estel-cart-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 12px);
  }

  .estel-cart-page .cart_totals {
    float: none !important;
    width: 100% !important;
  }

  .estel-cart-totals {
    padding: 14px 16px !important;
    border-radius: 16px;
  }

  .estel-cart-totals__title {
    margin-bottom: 8px !important;
    font-size: 15px !important;
  }

  .estel-cart-page .estel-cart-totals-table th,
  .estel-cart-page .estel-cart-totals-table td {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .estel-cart-page .order-total th,
  .estel-cart-page .order-total td {
    padding-top: 10px !important;
    padding-bottom: 0 !important;
  }

  .estel-cart-totals .estel-delivery__panel {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .estel-cart-totals .estel-delivery-field {
    margin: 0 0 10px !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
  }

  .estel-cart-totals .estel-delivery-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--estel-gray-500);
  }

  .estel-cart-totals .estel-delivery-field .input-text,
  .estel-cart-totals .estel-delivery-field select {
    width: 100% !important;
    min-height: 44px;
    padding: 10px 12px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    background: var(--estel-gray-100) !important;
    color: var(--estel-gray-800) !important;
    transition: background 0.15s ease, box-shadow 0.15s ease;
  }

  .estel-cart-totals .estel-delivery-field .input-text:focus,
  .estel-cart-totals .estel-delivery-field select:focus {
    outline: none !important;
    background: var(--estel-white) !important;
    box-shadow: 0 0 0 2px rgba(0, 91, 255, 0.18) !important;
  }

  .estel-cart-totals .estel-delivery__submit {
    margin-top: 4px;
    min-height: 44px;
    padding: 10px 14px !important;
    border: none !important;
    border-radius: 12px !important;
    background: var(--estel-blue) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--estel-white) !important;
  }

  .estel-cart-page .checkout-button,
  .estel-cart-page .estel-checkout-btn {
    padding: 11px 14px !important;
    font-size: 14px !important;
  }
}

.estel-cart-page .woocommerce-cart-form,
.estel-cart-page .estel-cart-sidebar {
  max-width: 100%;
  margin: 0;
}

.estel-cart-form {
  margin: 0;
}

.estel-cart-page .estel-cart-totals-table th {
  width: 42%;
  vertical-align: top;
}

.estel-cart-page .estel-cart-totals-table td {
  width: 58%;
  vertical-align: top;
}

/* ── Cart delivery block (mobile app style) ── */
.estel-delivery-row__cell {
  padding: 8px 0 !important;
}

.estel-delivery {
  width: 100%;
}

.estel-delivery__form {
  margin: 0;
}

.estel-delivery__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--estel-gray-100);
  color: inherit;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.estel-delivery__head:hover,
.estel-delivery__head:focus-visible {
  background: #eceef2;
  outline: none;
}

.estel-delivery__head--static {
  cursor: default;
}

.estel-delivery--open .estel-delivery__head,
.estel-delivery__head[aria-expanded="true"] {
  border-radius: 14px 14px 0 0;
  background: #eceef2;
}

.estel-delivery__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--estel-white);
  color: var(--estel-blue);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.estel-delivery__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.estel-delivery__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.estel-delivery__line--sub {
  margin-top: 1px;
}

.estel-delivery__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--estel-gray-800);
}

.estel-delivery__price {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--estel-gray-800);
}

.estel-delivery__price--free {
  color: #16a34a;
}

.estel-delivery__address {
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--estel-blue);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.estel-delivery__address--set {
  color: var(--estel-gray-600);
}

.estel-delivery__chevron {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  color: var(--estel-gray-400);
  transition: transform 0.2s ease, color 0.15s ease;
}

.estel-delivery--open .estel-delivery__chevron,
.estel-delivery__head[aria-expanded="true"] .estel-delivery__chevron {
  transform: rotate(90deg);
  color: var(--estel-blue);
}

.estel-delivery__panel {
  overflow: hidden;
  margin: 0;
  padding: 0 12px 12px;
  border-radius: 0 0 14px 14px;
  background: #eceef2;
}

.estel-delivery__panel-title {
  margin: 0 0 10px;
  padding-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--estel-gray-700);
}

.estel-delivery-field {
  margin: 0 0 10px;
}

.estel-delivery-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--estel-gray-500);
}

.estel-delivery-field .input-text,
.estel-delivery-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--estel-white);
  font-size: 15px;
  line-height: 1.3;
  color: var(--estel-gray-800);
  transition: box-shadow 0.15s ease;
}

.estel-delivery-field .input-text:focus,
.estel-delivery-field select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 91, 255, 0.18);
}

.estel-delivery-field .required {
  color: var(--estel-magenta);
  text-decoration: none;
}

.estel-shipping-calc__toggle::after {
  display: none !important;
  content: none !important;
}

.estel-shipping-calc__actions {
  margin: 4px 0 0;
}

.estel-delivery__submit,
.estel-shipping-calc__submit {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px !important;
  border: none !important;
  border-radius: 12px !important;
  background: var(--estel-blue) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--estel-white) !important;
}

.estel-delivery__methods {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.estel-delivery-method {
  margin: 0;
}

.estel-delivery-method__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.estel-delivery-method__label {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1.5px solid var(--estel-gray-200);
  border-radius: 12px;
  background: var(--estel-white);
  font-size: 13px;
  font-weight: 500;
  color: var(--estel-gray-800);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.estel-delivery-method__input:checked + .estel-delivery-method__label {
  border-color: var(--estel-blue);
  background: var(--estel-blue-light);
  color: var(--estel-blue);
}

.estel-shipping-calc-wrap {
  margin-top: 8px;
  text-align: left;
}

.estel-cart-shipping-extra {
  margin: 0;
  padding: 0;
  border: 0;
}

.estel-cart-coupon-in-totals,
.estel-cart-coupon-sidebar,
.estel-cart-page .coupon {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  float: none !important;
  clear: both;
}

.estel-cart-coupon-in-totals .input-text,
.estel-cart-coupon-sidebar .input-text,
.estel-cart-page .coupon .input-text {
  flex: 1 1 auto;
  min-width: 0;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.estel-cart-coupon-in-totals .button,
.estel-cart-coupon-in-totals .estel-cart-coupon__btn,
.estel-cart-coupon-sidebar .button,
.estel-cart-coupon-sidebar .estel-cart-coupon__btn,
.estel-cart-page .coupon .button,
.estel-cart-page .coupon .estel-cart-coupon__btn {
  flex: 0 0 auto;
  float: none !important;
  margin: 0 !important;
  align-self: center;
}

.estel-cart-page .estel-cart-card,
.estel-cart-page .estel-cart-panel {
  border: 1px solid var(--estel-gray-200);
  background: var(--estel-white);
}

.estel-cart-totals__title {
  margin: 0 0 8px;
}

.estel-cart-card__footer {
  min-height: 36px;
}

@media (max-width: 767px) {
  .estel-cart-page .cart-collaterals {
    margin-top: 8px;
  }
}

.estel-cart-page .shop_table,
.estel-cart-page .estel-cart-totals-table {
  border: none;
}

.estel-cart-page .shop_table td,
.estel-cart-page .shop_table th {
  border: none;
  background: transparent;
}

.estel-cart-thumb {
  display: block;
  width: 80px !important;
  height: 80px !important;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.estel-cart-qty__input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.estel-cart-qty__input::-webkit-outer-spin-button,
.estel-cart-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.estel-single-product-page .estel-sp-qty {
  flex-shrink: 0;
}

.estel-single-product-page .quantity {
  float: none;
  margin: 0;
}

.estel-single-product-page .estel-sp-qty .estel-cart-qty__minus:disabled,
.estel-single-product-page .estel-sp-qty .estel-cart-qty__plus:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.estel-cart-page .product-thumbnail {
  display: block !important;
}

.estel-cart-page .product-thumbnail::before {
  display: none !important;
}

.estel-checkout-btn {
  text-decoration: none !important;
  border: none !important;
}

.estel-cart-page .checkout-button,
.estel-cart-page .estel-checkout-btn {
  display: block !important;
  width: 100% !important;
  border: none !important;
  border-radius: 12px !important;
  background: var(--estel-blue) !important;
  color: var(--estel-white) !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.estel-cart-page .checkout-button:hover,
.estel-cart-page .estel-checkout-btn:hover {
  background: var(--estel-magenta) !important;
  color: var(--estel-white) !important;
}

.estel-cart-coupon__btn {
  border: none !important;
  background: var(--estel-gray-100) !important;
  color: var(--estel-gray-700) !important;
  transition: background 0.15s ease;
}

.estel-cart-coupon__btn:hover {
  background: var(--estel-gray-200) !important;
}

.estel-cart-totals .woocommerce-shipping-totals ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
}

.estel-cart-totals .woocommerce-shipping-totals li {
  margin: 0;
}

.estel-cart-totals .woocommerce-shipping-destination,
.estel-cart-totals .woocommerce-shipping-contents {
  display: none;
}

.estel-cart-totals .shipping-calculator-form,
.estel-cart-totals .woocommerce-shipping-calculator {
  margin-top: 0;
}

.estel-cart-totals .estel-delivery__panel {
  font-size: 15px;
}

.estel-cart-checkout-bar {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.estel-cart-page .cart-empty {
  border-radius: 12px;
  background: var(--estel-white);
  padding: 24px;
  text-align: center;
}

/* ── Single product (Ozon-style) ── */
.estel-single-product-page .site-main {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: calc(var(--bottom-nav-height) + 72px);
  background: var(--estel-gray-100);
}

@media (min-width: 768px) {
  .estel-single-product-page .site-main {
    padding: 32px 16px;
    padding-bottom: 32px;
  }
}

.estel-single-product-page .estel-sp-gallery-wrap {
  width: 100%;
  overflow: visible;
}

.estel-single-product-page .woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  position: relative;
  background: var(--estel-white);
}

.estel-single-product-page .woocommerce-product-gallery.woocommerce-product-gallery--with-images {
  opacity: 1 !important;
}

.estel-single-product-page .woocommerce-product-gallery .flex-viewport {
  min-height: 280px;
  background: var(--estel-white);
}

.estel-single-product-page .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.estel-single-product-page .woocommerce-product-gallery__image a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 16px;
}

.estel-single-product-page .woocommerce-product-gallery__image img,
.estel-single-product-page .woocommerce-product-gallery__image a img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 320px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .estel-single-product-page .woocommerce-product-gallery .flex-viewport {
    min-height: 360px;
  }

  .estel-single-product-page .woocommerce-product-gallery__image a {
    min-height: 360px;
    padding: 24px;
  }

  .estel-single-product-page .woocommerce-product-gallery__image img {
    max-height: 420px;
  }
}

.estel-single-product-page .summary.entry-summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.estel-single-product-page .estel-sp-price .woocommerce-Price-amount {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.estel-single-product-page .estel-sp-price__regular .woocommerce-Price-amount {
  color: var(--estel-gray-400);
  font-size: 14px;
  font-weight: 400;
}

.estel-single-product-page .woocommerce-product-gallery__trigger {
  display: none;
}

.estel-single-product-page .flex-control-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 16px 16px;
  margin: 0;
  list-style: none;
}

.estel-single-product-page .flex-control-thumbs li img {
  border-radius: 8px;
  opacity: 0.6;
}

.estel-single-product-page .flex-control-thumbs li img.flex-active {
  opacity: 1;
  outline: 2px solid var(--estel-blue);
}

.estel-single-product-page .woocommerce-product-details__short-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--estel-gray-700);
}

/* Product info cards */
.estel-single-product-page .estel-sp-card {
  margin-top: 8px;
  padding: 16px;
  background: var(--estel-white);
}

@media (min-width: 768px) {
  .estel-single-product-page .estel-sp-card {
    margin-top: 16px;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }
}

.estel-single-product-page .estel-sp-card__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--estel-gray-700);
}

.estel-single-product-page .estel-sp-description__content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--estel-gray-700);
}

.estel-single-product-page .estel-sp-description__content .wp-block-heading {
  margin: 14px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--estel-gray-700);
}

.estel-single-product-page .estel-sp-description__content .wp-block-heading:first-child {
  margin-top: 0;
}

.estel-single-product-page .estel-sp-description__content p {
  margin: 0 0 10px;
}

.estel-single-product-page .estel-sp-description__content p:last-child {
  margin-bottom: 0;
}

.estel-single-product-page .estel-sp-description__content ul,
.estel-single-product-page .estel-sp-description__content ol {
  margin: 0 0 12px;
  padding-left: 18px;
}

.estel-single-product-page .estel-sp-description__content li {
  margin-bottom: 4px;
}

/* Reviews card — hide WC duplicate chrome */
.estel-single-product-page .estel-sp-reviews #reviews > h2,
.estel-single-product-page .estel-sp-reviews .woocommerce-Reviews-title {
  display: none;
}

.estel-single-product-page .estel-sp-reviews #comments {
  margin: 0 0 16px;
  padding: 0;
}

.estel-single-product-page .estel-sp-reviews #review_form_wrapper {
  margin: 0;
  padding: 0;
}

.estel-single-product-page .estel-sp-reviews .comment-reply-title {
  display: block;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--estel-gray-700);
}

.estel-single-product-page .estel-sp-reviews .comment-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--estel-gray-700);
}

.estel-single-product-page .estel-sp-reviews .comment-form textarea,
.estel-single-product-page .estel-sp-reviews .comment-form input[type="text"],
.estel-single-product-page .estel-sp-reviews .comment-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--estel-gray-200);
  border-radius: 12px;
  background: var(--estel-gray-100);
  font-size: 14px;
}

.estel-single-product-page .estel-sp-reviews .comment-form textarea:focus,
.estel-single-product-page .estel-sp-reviews .comment-form input[type="text"]:focus,
.estel-single-product-page .estel-sp-reviews .comment-form input[type="email"]:focus {
  outline: none;
  border-color: var(--estel-blue);
  background: var(--estel-white);
  box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.12);
}

.estel-single-product-page .estel-sp-reviews .form-submit input,
.estel-single-product-page .estel-sp-reviews .form-submit .submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px !important;
  border: none !important;
  border-radius: 12px !important;
  background: var(--estel-blue) !important;
  color: var(--estel-white) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.estel-single-product-page .estel-sp-reviews .woocommerce-noreviews {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--estel-gray-400);
}

/* Related products — same cards as catalog */
.estel-single-product-page .estel-sp-related {
  overflow: hidden;
}

.estel-single-product-page .estel-sp-related ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .estel-single-product-page .estel-sp-related ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.estel-single-product-page .estel-sp-related ul.products::before,
.estel-single-product-page .estel-sp-related ul.products::after {
  display: none;
  content: none;
}

.estel-single-product-page .estel-sp-related ul.products li.product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
}

.estel-single-product-page .estel-sp-related .estel-product-card__title {
  font-size: 12px;
}

@media (min-width: 768px) {
  .estel-single-product-page .estel-sp-related .estel-product-card__title {
    font-size: 14px;
  }
}

.estel-single-product-page .product_meta {
  display: none;
}

.estel-single-product-page .estel-sp-cart-btn,
.estel-single-product-page .single_add_to_cart_button {
  border: none !important;
  border-radius: 12px !important;
  background: var(--estel-blue) !important;
  color: var(--estel-white) !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  transition: background 0.15s ease;
}

.estel-single-product-page .estel-sp-cart-btn:hover,
.estel-single-product-page .single_add_to_cart_button:hover {
  background: var(--estel-magenta) !important;
}

.estel-single-product-page .onsale {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 10;
  border-radius: 8px;
  background: var(--estel-magenta);
  color: var(--estel-white);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  min-height: auto;
  min-width: auto;
  line-height: 1.2;
}

.estel-single-product-page .woocommerce-tabs {
  background: var(--estel-white);
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .estel-single-product-page .woocommerce-tabs {
    margin-top: 16px;
    border-radius: 16px;
    padding: 24px;
  }
}

.estel-sp-sticky-btn:disabled,
.estel-sp-sticky-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.estel-sp-in-cart-btn {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Mobile cart drawer ── */
.estel-cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--bottom-nav-height);
  z-index: 40;
  pointer-events: none;
}

.estel-cart-drawer.is-open {
  pointer-events: auto;
}

.estel-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.estel-cart-drawer.is-open .estel-cart-drawer__backdrop {
  opacity: 1;
}

.estel-cart-drawer__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-height: min(
    calc(88dvh - var(--bottom-nav-height)),
    calc(100dvh - var(--bottom-nav-height) - 16px)
  );
  background: var(--estel-white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.estel-cart-drawer.is-open .estel-cart-drawer__panel {
  transform: translateY(0);
}

.estel-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--estel-gray-200);
}

.estel-cart-drawer__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--estel-gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.estel-cart-drawer__count:empty {
  display: none;
}

.estel-cart-drawer__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--estel-magenta);
  color: var(--estel-white);
  font-size: 0.75rem;
  font-weight: 700;
}

.estel-cart-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--estel-gray-100);
  color: var(--estel-gray-600);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.estel-cart-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
}

.estel-cart-drawer__loading {
  padding: 32px 0;
  text-align: center;
  color: var(--estel-gray-500);
  font-size: 0.875rem;
}

.estel-cart-drawer.is-updating .estel-cart-drawer__body {
  opacity: 0.55;
  pointer-events: none;
}

.estel-cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 16px 24px;
  text-align: center;
}

.estel-cart-drawer__empty-text {
  margin: 0;
  font-size: 1rem;
  color: var(--estel-gray-600);
}

.estel-cart-drawer__empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--estel-blue);
  color: var(--estel-white) !important;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none !important;
}

.estel-cart-drawer__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.estel-cart-drawer__item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--estel-gray-200);
  border-radius: 14px;
  background: var(--estel-white);
}

.estel-cart-drawer__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}

.estel-cart-drawer__thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.estel-cart-drawer__img {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain;
  border-radius: 10px;
  background: var(--estel-gray-50);
}

.estel-cart-drawer__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.estel-cart-drawer__top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.estel-cart-drawer__name {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--estel-gray-900);
}

.estel-cart-drawer__name a {
  color: inherit;
  text-decoration: none;
}

.estel-cart-drawer__remove {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--estel-gray-400);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.estel-cart-drawer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.estel-cart-drawer__price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--estel-gray-900);
}

.estel-cart-drawer__qty {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 32px;
  border-radius: 10px;
  background: var(--estel-magenta);
  color: var(--estel-white);
}

.estel-cart-drawer__qty .estel-cart-qty__minus,
.estel-cart-drawer__qty .estel-cart-qty__plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.estel-cart-drawer__qty-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0 4px;
  font-size: 0.875rem;
  font-weight: 700;
}

.estel-cart-drawer__summary {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding: 16px 0 12px;
  border-top: 1px solid var(--estel-gray-200);
  background: var(--estel-white);
}

.estel-cart-drawer__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--estel-gray-700);
}

.estel-cart-drawer__subtotal strong {
  font-size: 1.125rem;
  color: var(--estel-gray-900);
}

.estel-cart-drawer__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  background: var(--estel-magenta);
  color: var(--estel-white) !important;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
}

.estel-cart-drawer__full-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  background: var(--estel-gray-100);
  color: var(--estel-blue) !important;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none !important;
}

body.estel-cart-drawer-open,
body.estel-favorites-drawer-open,
body.estel-catalog-drawer-open {
  overflow: hidden;
}

/* ── Mobile favorites drawer ── */
.estel-favorites-drawer,
.estel-sheet-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--bottom-nav-height);
  z-index: 40;
  pointer-events: none;
}

.estel-favorites-drawer.is-open,
.estel-sheet-drawer.is-open {
  pointer-events: auto;
}

.estel-sheet-drawer__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.estel-favorites-drawer.is-open .estel-sheet-drawer__backdrop,
.estel-sheet-drawer.is-open .estel-sheet-drawer__backdrop {
  opacity: 1;
}

.estel-sheet-drawer__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-height: min(
    calc(88dvh - var(--bottom-nav-height)),
    calc(100dvh - var(--bottom-nav-height) - 16px)
  );
  background: var(--estel-white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.estel-favorites-drawer.is-open .estel-sheet-drawer__panel,
.estel-sheet-drawer.is-open .estel-sheet-drawer__panel {
  transform: translateY(0);
}

.estel-sheet-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--estel-gray-200);
}

.estel-sheet-drawer__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--estel-gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.estel-sheet-drawer__count:empty {
  display: none;
}

.estel-sheet-drawer__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--estel-magenta);
  color: var(--estel-white);
  font-size: 0.75rem;
  font-weight: 700;
}

.estel-sheet-drawer__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.estel-sheet-drawer__close,
.estel-sheet-drawer__share {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--estel-gray-100);
  color: var(--estel-gray-600);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.estel-sheet-drawer__share:disabled {
  opacity: 0.4;
  cursor: default;
}

.estel-sheet-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
}

.estel-sheet-drawer__loading {
  padding: 32px 0;
  text-align: center;
  color: var(--estel-gray-500);
  font-size: 0.875rem;
}

.estel-favorites-drawer.is-updating .estel-sheet-drawer__body {
  opacity: 0.55;
  pointer-events: none;
}

/* ── Mobile catalog drawer ── */
.estel-catalog-drawer,
.estel-catalog-drawer.estel-sheet-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--bottom-nav-height);
  z-index: 40;
  pointer-events: none;
}

.estel-catalog-drawer.is-open {
  pointer-events: auto;
}

.estel-catalog-drawer__header {
  align-items: center;
  overflow: visible;
}

.estel-catalog-drawer__header-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}

.estel-catalog-drawer__search-wrap {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.estel-catalog-drawer__search-wrap.hidden {
  display: none !important;
}

.estel-catalog-drawer__title.hidden {
  display: none !important;
}

.estel-catalog-drawer__search-form {
  width: 100%;
}

.estel-catalog-drawer__search-field {
  position: relative;
  overflow: visible;
}

.estel-catalog-drawer__search-icon {
  pointer-events: none;
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--estel-gray-400);
}

.estel-catalog-drawer__search-input {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--estel-gray-100);
  padding: 10px 12px 10px 36px;
  font-size: 0.875rem;
  line-height: 1.25;
  color: var(--estel-gray-900);
  outline: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.estel-catalog-drawer__search-input:focus {
  background: var(--estel-white);
  box-shadow: inset 0 0 0 2px var(--estel-blue);
}

.estel-catalog-drawer__search-dropdown {
  z-index: 20;
  max-height: min(55vh, 360px);
}

.estel-catalog-drawer__search-dropdown .estel-search-dropdown__inner {
  max-height: min(55vh, 360px);
}

.estel-catalog-drawer__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--estel-gray-100);
  color: var(--estel-gray-600);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.estel-catalog-drawer__back.hidden {
  display: none !important;
}

.estel-catalog-drawer__body {
  padding-top: 8px;
}

.estel-catalog-drawer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 8px;
  padding-top: 4px;
}

.estel-catalog-drawer__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 104px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
  text-decoration: none;
  color: var(--estel-gray-700);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.estel-catalog-drawer__tile:active {
  opacity: 0.75;
}

.estel-catalog-drawer__tile-visual {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.estel-catalog-drawer__tile-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--estel-gray-100);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.estel-catalog-drawer__tile-media--all {
  background: linear-gradient(145deg, var(--estel-blue-light), var(--estel-gray-100));
  color: var(--estel-blue);
  box-shadow: inset 0 0 0 1px rgba(0, 91, 255, 0.12);
}

.estel-catalog-drawer__tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.estel-catalog-drawer__tile-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--estel-blue-light), var(--estel-gray-100));
  color: var(--estel-blue);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

.estel-catalog-drawer__tile-chevron {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--estel-white);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.estel-catalog-drawer__tile-chevron-icon.estel-icon {
  width: 11px !important;
  height: 11px !important;
  min-width: 11px;
  min-height: 11px;
}

.estel-catalog-drawer__tile-name {
  display: -webkit-box;
  width: 100%;
  max-width: 88px;
  min-height: 2.5em;
  margin: 0;
  overflow: hidden;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.estel-catalog-drawer__tile--all .estel-catalog-drawer__tile-name {
  color: var(--estel-blue);
}

.estel-catalog-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 16px 24px;
  text-align: center;
  color: var(--estel-gray-600);
}

@media (min-width: 768px) {
  .estel-cart-drawer,
  .estel-favorites-drawer,
  .estel-catalog-drawer {
    display: none;
  }
}

/* ── Checkout (Ozon-style) ── */
.estel-bottom-spacer {
  display: block;
  height: calc(var(--bottom-nav-height) + 16px);
  width: 100%;
}

.estel-bottom-spacer--cart {
  height: calc(var(--bottom-nav-height) + 64px);
}

@media (min-width: 768px) {
  .estel-bottom-spacer {
    display: none;
    height: 0;
  }
}

body.estel-checkout-page,
body.estel-cart-page {
  padding-bottom: 0;
}

.estel-checkout-page .site-main,
.estel-main-checkout {
  background: var(--estel-gray-100);
}

.estel-checkout-page .site-main {
  padding: 8px !important;
}

@media (min-width: 768px) {
  .estel-checkout-page .site-main {
    padding: 24px 16px !important;
    padding-bottom: 32px !important;
  }
}

.estel-checkout-page #payment .place-order {
  margin: 0;
  padding: 0 0 8px;
  float: none;
}

.estel-checkout-page .estel-checkout-form {
  max-width: 560px;
  margin: 0 auto;
}

.estel-checkout-page .woocommerce-billing-fields h3,
.estel-checkout-page .woocommerce-additional-fields {
  display: none;
}

.estel-checkout-page .estel-checkout-order-heading {
  margin: 0 0 12px;
  padding-top: 4px;
  border-top: 1px solid var(--estel-gray-200);
}

.estel-checkout-page .form-row {
  margin: 0 0 12px;
  padding: 0;
  width: 100%;
}

.estel-checkout-page .form-row-wide {
  float: none;
  width: 100%;
}

.estel-checkout-page .estel-checkout-label,
.estel-checkout-page .woocommerce-checkout label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--estel-gray-700);
}

.estel-checkout-page .estel-checkout-input,
.estel-checkout-page .woocommerce-checkout input.input-text,
.estel-checkout-page .woocommerce-checkout textarea,
.estel-checkout-page .woocommerce-checkout select {
  display: block;
  width: 100% !important;
  box-sizing: border-box;
  border: 1px solid var(--estel-gray-200) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  background: var(--estel-white) !important;
  color: var(--estel-gray-700) !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.estel-checkout-page .estel-checkout-input:focus,
.estel-checkout-page .woocommerce-checkout input.input-text:focus,
.estel-checkout-page .woocommerce-checkout textarea:focus,
.estel-checkout-page .woocommerce-checkout select:focus {
  outline: none !important;
  border-color: var(--estel-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.12) !important;
}

.estel-checkout-page .woocommerce-checkout-review-order-table {
  width: 100%;
  border: none;
  margin-bottom: 16px;
  font-size: 14px;
}

.estel-checkout-page .woocommerce-checkout-review-order-table th,
.estel-checkout-page .woocommerce-checkout-review-order-table td {
  border: none;
  border-bottom: 1px solid var(--estel-gray-200);
  padding: 10px 0;
}

.estel-checkout-page .woocommerce-checkout-review-order-table .order-total th,
.estel-checkout-page .woocommerce-checkout-review-order-table .order-total td {
  font-size: 16px;
  font-weight: 700;
  color: var(--estel-magenta);
  border-bottom: none;
  vertical-align: middle;
  white-space: nowrap;
}

.estel-checkout-page #payment {
  background: transparent;
  border-radius: 0;
}

.estel-checkout-page #payment .payment_methods {
  list-style: none;
  border: none;
  padding: 0;
  margin: 0 0 16px;
}

.estel-checkout-page #payment .payment_methods::before,
.estel-checkout-page #payment .payment_methods::after {
  display: none;
}

/* Payment gateway tiles */
.estel-checkout-page #payment .payment_methods > li.wc_payment_method,
.estel-checkout-page #payment .payment_methods > li.estel-payment-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  border: 2px solid var(--estel-gray-200);
  border-radius: 12px;
  margin: 0 0 12px;
  padding: 16px;
  background: var(--estel-white);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.estel-checkout-page #payment .payment_methods > li.wc_payment_method:last-child,
.estel-checkout-page #payment .payment_methods > li.estel-payment-tile:last-child {
  margin-bottom: 0;
}

.estel-checkout-page #payment .payment_methods > li.wc_payment_method:hover,
.estel-checkout-page #payment .payment_methods > li.estel-payment-tile:hover {
  border-color: #c5d9ff;
}

.estel-checkout-page #payment .payment_methods > li.wc_payment_method:has(input:checked),
.estel-checkout-page #payment .payment_methods > li.estel-payment-tile:has(input:checked) {
  border-color: var(--estel-blue);
  background: var(--estel-blue-light);
  box-shadow: 0 0 0 1px rgba(0, 91, 255, 0.12);
}

/* Hide default WooCommerce radio circles (keep accessible) */
.estel-checkout-page #payment .payment_methods li input.input-radio {
  position: fixed !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.estel-checkout-page #payment .payment_methods > li.wc_payment_method:has(input:focus-visible),
.estel-checkout-page #payment .payment_methods > li.estel-payment-tile:has(input:focus-visible) {
  border-color: var(--estel-blue);
  box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.2);
}

.estel-checkout-page #payment .payment_methods li label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--estel-gray-700);
  cursor: pointer;
}

.estel-checkout-page #payment .payment_methods li label img {
  max-height: 28px;
  width: auto;
  vertical-align: middle;
}

.estel-checkout-page #payment .payment_methods li:has(input:checked) label {
  color: var(--estel-blue);
}

/* Selected indicator (replaces radio) */
.estel-checkout-page #payment .payment_methods li label::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--estel-gray-200);
  border-radius: 50%;
  background: var(--estel-white);
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.estel-checkout-page #payment .payment_methods li:has(input:checked) label::after {
  border-color: var(--estel-blue);
  background: var(--estel-blue);
  box-shadow: inset 0 0 0 3px var(--estel-white);
}

/* Gateway description box */
.estel-checkout-page #payment .payment_methods li .payment_box {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.4;
  color: var(--estel-gray-700);
}

.estel-checkout-page #payment .payment_methods li .payment_box::before {
  display: none;
}

.estel-checkout-page #payment .payment_methods li .payment_box p {
  margin: 0;
  line-height: 1.4;
}

.estel-checkout-page #payment .payment_methods li.woocommerce-notice {
  cursor: default;
  background: var(--estel-gray-100);
  font-size: 14px;
  color: var(--estel-gray-700);
}

/* Override WooCommerce default payment row spacing */
.estel-checkout-page #payment ul.payment_methods li:not(.woocommerce-notice) {
  text-align: left;
}

.estel-checkout-page #payment ul.payment_methods li input[type="radio"] {
  float: none !important;
  margin: 0 !important;
}

.estel-checkout-page #place_order,
.estel-checkout-page .estel-checkout-submit {
  display: block !important;
  width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 16px 20px !important;
  border: none !important;
  border-radius: 12px !important;
  background: var(--estel-blue) !important;
  color: var(--estel-white) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 91, 255, 0.25);
  transition: background 0.15s ease, transform 0.1s ease;
}

.estel-checkout-page #place_order:hover,
.estel-checkout-page .estel-checkout-submit:hover {
  background: var(--estel-magenta) !important;
}

.estel-checkout-page #place_order:active,
.estel-checkout-page .estel-checkout-submit:active {
  transform: scale(0.99);
}

.estel-checkout-page .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--estel-gray-400);
}

.estel-checkout-page .col2-set {
  display: block;
  width: 100%;
}

.estel-checkout-page .col2-set .col-1,
.estel-checkout-page .col2-set .col-2 {
  float: none;
  width: 100%;
}

/* ── Header AJAX search dropdown ── */
.estel-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
  max-height: min(70vh, 420px);
  overflow: hidden;
  border: 1px solid var(--estel-gray-200);
  border-radius: 12px;
  background: var(--estel-white);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.estel-search-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.estel-search-dropdown__inner {
  max-height: min(70vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.estel-search-dropdown__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  font-size: 14px;
  color: var(--estel-gray-400);
}

.estel-search-dropdown__status--empty {
  display: block;
  text-align: center;
}

.estel-search-dropdown__spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--estel-blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: estel-search-spin 0.7s linear infinite;
}

@keyframes estel-search-spin {
  to {
    transform: rotate(360deg);
  }
}

.estel-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.estel-search-result:hover,
.estel-search-result:active {
  background: var(--estel-gray-100);
}

.estel-search-result__thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--estel-gray-200);
  border-radius: 8px;
  object-fit: cover;
  background: var(--estel-gray-100);
}

.estel-search-result__body {
  min-width: 0;
  flex: 1;
}

.estel-search-result__title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--estel-gray-700);
}

.estel-search-result__price {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.3;
}

.estel-search-result__price .woocommerce-Price-amount {
  font-weight: 700;
  color: var(--estel-magenta);
}

.estel-search-dropdown__all {
  display: block;
  border-top: 1px solid var(--estel-gray-200);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--estel-blue);
  transition: background-color 0.15s ease;
}

.estel-search-dropdown__all:hover {
  background: var(--estel-gray-100);
}

/* ── My Account (Ozon-style) ── */
.estel-account-page .site-main,
.estel-main-account {
  padding: 8px;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  background: var(--estel-gray-100);
}

@media (min-width: 768px) {
  .estel-account-page .site-main,
  .estel-main-account {
    padding: 24px 16px 32px;
    max-width: 560px;
    margin: 0 auto;
  }
}

.estel-account-page .entry-header,
.estel-account-page .entry-title,
.estel-account-page .page-title {
  display: none;
}

.estel-account-page .entry-content > .woocommerce,
.estel-account {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.estel-account-page .woocommerce-MyAccount-navigation,
.estel-account-page .woocommerce-MyAccount-content {
  float: none;
  width: 100%;
}

/* Navigation tiles */
.estel-account-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.estel-account-nav__item {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.estel-account-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--estel-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: var(--estel-gray-700);
  transition: box-shadow 0.15s ease, transform 0.1s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.estel-account-nav__link:active {
  transform: scale(0.99);
}

.estel-account-nav__item.is-active .estel-account-nav__link {
  box-shadow: 0 0 0 2px var(--estel-blue), 0 4px 12px rgba(0, 91, 255, 0.12);
}

.estel-account-nav__item.woocommerce-MyAccount-navigation-link--customer-logout .estel-account-nav__link {
  color: var(--estel-magenta);
}

.estel-account-nav__item.woocommerce-MyAccount-navigation-link--customer-logout .estel-account-nav__icon,
.estel-account-nav__item.woocommerce-MyAccount-navigation-link--customer-logout .estel-account-nav__chevron {
  color: var(--estel-magenta);
}

.estel-account-nav__link-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.estel-account-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--estel-blue-light);
  color: var(--estel-blue);
}

.estel-account-nav__item.woocommerce-MyAccount-navigation-link--customer-logout .estel-account-nav__icon {
  background: rgba(249, 17, 85, 0.1);
}

.estel-account-nav__label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.estel-account-nav__chevron {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--estel-gray-400);
}

/* Welcome card */
.estel-account-welcome {
  margin: 0;
}

.estel-account-welcome__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--estel-blue) 0%, var(--estel-magenta) 100%);
  box-shadow: 0 8px 24px rgba(0, 91, 255, 0.18);
}

.estel-account-welcome__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--estel-blue);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.estel-account-welcome__body {
  min-width: 0;
  flex: 1;
  color: var(--estel-white);
}

.estel-account-welcome__greeting {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.9;
}

.estel-account-welcome__name {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.estel-account-welcome__meta {
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.85;
}

.estel-account-welcome__logout {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--estel-white);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.estel-account-welcome__logout:hover {
  background: rgba(255, 255, 255, 0.28);
  color: var(--estel-white);
}

/* Content area reset */
.estel-account-page .woocommerce-MyAccount-content {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.estel-account-page .woocommerce-MyAccount-content fieldset {
  margin: 0 0 16px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: var(--estel-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.estel-account-page .woocommerce-MyAccount-content fieldset legend {
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--estel-gray-700);
}

.estel-account-page .woocommerce-MyAccount-content h2,
.estel-account-page .woocommerce-MyAccount-content h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--estel-gray-700);
}

.estel-account-page .woocommerce-MyAccount-content .woocommerce-message,
.estel-account-page .woocommerce-MyAccount-content .woocommerce-info,
.estel-account-page .woocommerce-MyAccount-content .woocommerce-error {
  margin: 0 0 12px;
}

.estel-account-page .woocommerce-MyAccount-content .form-row {
  margin: 0 0 12px;
  padding: 0;
}

.estel-account-page .woocommerce-MyAccount-content label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--estel-gray-700);
}

.estel-account-page .woocommerce-MyAccount-content input.input-text,
.estel-account-page .woocommerce-MyAccount-content textarea,
.estel-account-page .woocommerce-MyAccount-content select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--estel-gray-200);
  border-radius: 12px;
  background: var(--estel-gray-100);
  font-size: 15px;
  line-height: 1.4;
  color: var(--estel-gray-700);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.estel-account-page .woocommerce-MyAccount-content input.input-text:focus,
.estel-account-page .woocommerce-MyAccount-content textarea:focus,
.estel-account-page .woocommerce-MyAccount-content select:focus {
  outline: none;
  border-color: var(--estel-blue);
  background: var(--estel-white);
  box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.12);
}

.estel-account-page .woocommerce-MyAccount-content .button,
.estel-account-page .woocommerce-MyAccount-content button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: var(--estel-blue);
  color: var(--estel-white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.estel-account-page .woocommerce-MyAccount-content .button:hover,
.estel-account-page .woocommerce-MyAccount-content button[type="submit"]:hover {
  background: var(--estel-magenta);
  color: var(--estel-white);
}

.estel-account-page .woocommerce-MyAccount-content .button:active,
.estel-account-page .woocommerce-MyAccount-content button[type="submit"]:active {
  transform: scale(0.99);
}

/* Orders table → mobile cards */
.estel-account-page .woocommerce-orders-table,
.estel-account-page .shop_table {
  width: 100%;
  border: none !important;
  border-collapse: separate;
  border-spacing: 0 8px;
  background: transparent;
}

.estel-account-page .woocommerce-orders-table thead,
.estel-account-page .shop_table thead {
  display: none;
}

.estel-account-page .woocommerce-orders-table tbody tr,
.estel-account-page .shop_table tbody tr {
  display: block;
  margin-bottom: 8px;
  border: none;
  border-radius: 12px;
  background: var(--estel-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.estel-account-page .woocommerce-orders-table tbody td,
.estel-account-page .shop_table tbody td {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: none !important;
  border-bottom: 1px solid var(--estel-gray-100) !important;
  font-size: 14px;
  text-align: right;
}

.estel-account-page .woocommerce-orders-table tbody td::before,
.estel-account-page .shop_table tbody td::before {
  content: attr(data-title);
  flex: 1;
  font-weight: 600;
  color: var(--estel-gray-400);
  text-align: left;
}

.estel-account-page .woocommerce-orders-table tbody td:last-child,
.estel-account-page .shop_table tbody td:last-child {
  border-bottom: none !important;
}

.estel-account-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a,
.estel-account-page .shop_table .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--estel-blue-light);
  color: var(--estel-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.estel-account-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover,
.estel-account-page .shop_table .button:hover {
  background: var(--estel-blue);
  color: var(--estel-white);
}

.estel-account-page .woocommerce-Address {
  margin-bottom: 12px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: var(--estel-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.estel-account-page .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.estel-account-page .woocommerce-Address-title h2,
.estel-account-page .woocommerce-Address-title h3 {
  margin: 0;
  font-size: 16px;
}

.estel-account-page .woocommerce-Address address {
  margin: 0;
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  color: var(--estel-gray-700);
}

.estel-account-page .woocommerce-MyAccount-content ul,
.estel-account-page .woocommerce-MyAccount-content ol {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.estel-account-page .woocommerce-MyAccount-content ul li,
.estel-account-page .woocommerce-MyAccount-content ol li {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--estel-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ── Favorites page ── */
.estel-favorites-page .site-main,
.estel-main-favorites {
  padding: 8px;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  background: var(--estel-gray-100);
}

.estel-favorites-page__title {
  margin: 0 0 12px;
  padding: 4px 4px 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--estel-gray-700);
}

.estel-favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border-radius: 16px;
  background: var(--estel-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.estel-favorites-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--estel-blue-light);
  color: var(--estel-magenta);
}

.estel-favorites-empty__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--estel-gray-700);
}

.estel-favorites-empty__text {
  margin: 0 0 16px;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--estel-gray-400);
}

.estel-favorites-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--estel-blue);
  color: var(--estel-white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.estel-favorites-empty__cta:hover {
  background: var(--estel-magenta);
  color: var(--estel-white);
}

.estel-favorite-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--estel-gray-400);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.1s ease, background-color 0.15s ease;
}

.estel-favorite-btn:hover,
.estel-favorite-btn.is-active {
  color: var(--estel-magenta);
}

.estel-favorite-btn:active {
  transform: scale(0.95);
}

.estel-favorite-btn.is-active {
  background: rgba(255, 255, 255, 0.98);
}

/* ── Front page (block editor / Ozon-style) ── */
.estel-front-page .estel-front-main,
.estel-front-main {
  padding: 8px;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  background: var(--estel-gray-100);
}

@media (min-width: 768px) {
  .estel-front-page .estel-front-main,
  .estel-front-main {
    padding: 16px;
    padding-bottom: 24px;
    max-width: 1200px;
    margin: 0 auto;
  }
}

.estel-front-page-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.estel-front-page-content > .wp-block-group,
.estel-front-page-content > .wp-block-columns,
.estel-front-page-content > .wp-block-cover,
.estel-front-page-content > .wp-block-gallery,
.estel-front-page-content > .wp-block-image,
.estel-front-page-content > .wp-block-media-text,
.estel-front-page-content > .wp-block-embed,
.estel-front-page-content > .ozon-categories {
  margin-top: 0;
  margin-bottom: 0;
}

.estel-front-page .wp-block-gallery.is-style-ozon-banner,
.estel-front-page-content .wp-block-gallery.is-style-ozon-banner {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Banner-style gallery & carousel blocks */
.estel-front-page .wp-block-gallery,
.estel-front-page-content .wp-block-gallery,
.estel-front-page .wp-block-carousel,
.estel-front-page-content .wp-block-carousel,
.estel-front-page .wp-block-cover,
.estel-front-page-content .wp-block-cover,
.estel-front-page .wp-block-image.is-style-rounded,
.estel-front-page-content .wp-block-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.estel-front-page .wp-block-gallery .wp-block-image,
.estel-front-page-content .wp-block-gallery .wp-block-image,
.estel-front-page .wp-block-carousel .wp-block-image,
.estel-front-page-content .wp-block-carousel .wp-block-image {
  border-radius: 0;
  box-shadow: none;
}

.estel-front-page .wp-block-gallery figcaption,
.estel-front-page-content .wp-block-gallery figcaption,
.estel-front-page .wp-block-image figcaption,
.estel-front-page-content .wp-block-image figcaption {
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--estel-gray-400);
  background: var(--estel-white);
}

.estel-front-page .wp-block-gallery .blocks-gallery-grid,
.estel-front-page-content .wp-block-gallery .blocks-gallery-grid {
  gap: 8px;
}

.estel-front-page .wp-block-gallery.has-nested-images figure.wp-block-image,
.estel-front-page-content .wp-block-gallery.has-nested-images figure.wp-block-image {
  border-radius: 12px;
  overflow: hidden;
}

/* Swiper / core carousel wrappers */
.estel-front-page .wp-block-gallery.is-cropped,
.estel-front-page-content .wp-block-gallery.is-cropped,
.estel-front-page [class*="carousel"],
.estel-front-page-content [class*="carousel"] {
  border-radius: 16px;
}

.estel-front-page .wp-block-cover__inner-container {
  padding: 16px;
}

.estel-front-page .wp-block-heading {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--estel-gray-700);
}

.estel-front-page .wp-block-paragraph {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--estel-gray-700);
}

.estel-front-page .wp-block-buttons {
  gap: 8px;
}

.estel-front-page .wp-block-button__link {
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  background: var(--estel-blue);
}

.estel-front-page .wp-block-button__link:hover {
  background: var(--estel-magenta);
  color: var(--estel-white);
}

/* Ozon-style horizontal category strip */
.ozon-categories,
.is-style-ozon-categories,
.wp-block-columns.ozon-categories,
.wp-block-columns.is-style-ozon-categories,
.wp-block-group.ozon-categories,
.wp-block-group.is-style-ozon-categories {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 4px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  list-style: none;
}

.ozon-categories::-webkit-scrollbar,
.is-style-ozon-categories::-webkit-scrollbar,
.wp-block-columns.ozon-categories::-webkit-scrollbar,
.wp-block-columns.is-style-ozon-categories::-webkit-scrollbar,
.wp-block-group.ozon-categories::-webkit-scrollbar,
.wp-block-group.is-style-ozon-categories::-webkit-scrollbar {
  display: none;
}

.ozon-categories > .wp-block-column,
.ozon-categories > .wp-block-group,
.is-style-ozon-categories > .wp-block-column,
.is-style-ozon-categories > .wp-block-group,
.ozon-categories > li,
.ozon-categories .ozon-categories__item {
  flex: 0 0 auto;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  margin: 0 !important;
  padding: 0 !important;
  scroll-snap-align: start;
  text-align: center;
}

.ozon-categories .wp-block-image,
.ozon-categories figure,
.ozon-categories p {
  margin: 0;
}

.ozon-categories img {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--estel-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ozon-categories a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--estel-gray-700);
}

.ozon-categories a:hover {
  color: var(--estel-blue);
}

.ozon-categories .wp-block-heading,
.ozon-categories p,
.ozon-categories .ozon-categories__label,
.ozon-categories a span:not(.screen-reader-text) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--estel-gray-700);
}

.ozon-categories .wp-block-heading {
  font-size: 11px;
  font-weight: 500;
}

/* List block as categories */
ul.ozon-categories {
  padding-left: 0;
}

ul.ozon-categories li {
  list-style: none;
}

/* White section cards inside front page groups */
.estel-front-page .wp-block-group.is-style-default,
.estel-front-page-content .wp-block-group:not(.ozon-categories) {
  border-radius: 16px;
}

.estel-front-page .wp-block-group.has-background {
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
