/* ===== ТАРЕЛОЧНИЦА — THEME CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500;600;700&display=swap');

:root {
  --burgundy: #8B2635;
  --burgundy-dark: #6d1e29;
  --burgundy-light: #a83040;
  --gray: #6B7280;
  --gray-light: #9CA3AF;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --text: #1F2937;
  --text-light: #4B5563;
  --border: #E5E7EB;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(139,38,53,0.18);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto Slab', serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* УТИЛИТЫ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { font-family: 'Roboto Slab', serif; font-size: clamp(26px, 4vw, 38px); color: var(--text); margin-bottom: 12px; line-height: 1.2; }
.section-subtitle { font-size: 16px; color: var(--gray); margin-bottom: 48px; max-width: 560px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* КНОПКИ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 15px; letter-spacing: 0.5px; transition: var(--transition); cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--burgundy); color: var(--white); border-color: var(--burgundy); box-shadow: 0 4px 16px rgba(139,38,53,0.3); }
.btn-primary:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,38,53,0.4); color: var(--white); }
.btn-outline { background: transparent; color: var(--burgundy); border-color: var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--burgundy); border-color: var(--white); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn-white:hover { background: var(--bg); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 14px; }

/* ШАПКА */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: var(--transition); }
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header-logo { display: flex; align-items: center; gap: 12px; }
.header-logo img { height: 48px; width: auto; object-fit: contain; }
.logo-text { font-family: 'Roboto Slab', serif; font-size: 20px; font-weight: 700; color: var(--burgundy); }
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a { font-size: 15px; color: var(--text); transition: var(--transition); position: relative; }
.header-nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--burgundy); transition: var(--transition); }
.header-nav a:hover, .header-nav a.current-menu-item { color: var(--burgundy); }
.header-nav a:hover::after, .header-nav a.current-menu-item::after { width: 100%; }
/* WP nav menu list */
.header-nav ul { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.header-nav ul li a { font-size: 15px; color: var(--text); transition: var(--transition); position: relative; }
.header-nav ul li a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--burgundy); transition: var(--transition); }
.header-nav ul li a:hover, .header-nav ul li.current-menu-item > a { color: var(--burgundy); }
.header-nav ul li a:hover::after, .header-nav ul li.current-menu-item > a::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-btn { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--burgundy); color: var(--white); border-radius: 50px; font-size: 14px; font-weight: 700; transition: var(--transition); }
.cart-btn:hover { background: var(--burgundy-dark); transform: translateY(-1px); color: var(--white); }
.cart-count { background: var(--white); color: var(--burgundy); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); border-radius: 2px; }

/* HERO */
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
@supports (-webkit-touch-callout: none) {
  .hero-bg { background-attachment: scroll; }
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(217 204 206 / 75%) 0%, rgba(0,0,0,0.55) 100%); }
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 680px; padding: 120px 0 80px; animation: fadeInUp 0.8s ease both; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25); border-radius: 50px; padding: 8px 18px; font-size: 13px; margin-bottom: 24px; color: rgba(255,255,255,0.9); }
.hero-title { font-family: 'Roboto Slab', serif; font-size: clamp(36px, 6vw, 64px); font-weight: 700; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-title span { color: #FFD4D9; }
.hero-subtitle { font-size: clamp(16px, 2vw, 19px); line-height: 1.7; margin-bottom: 40px; color: rgba(255,255,255,0.88); font-weight: 300; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { position: relative; z-index: 2; display: flex; gap: 48px; margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.2); animation: fadeInUp 0.8s ease 0.3s both; }
.hero-stat-num { font-family: 'Roboto Slab', serif; font-size: 32px; font-weight: 700; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ПРЕИМУЩЕСТВА */
.benefits { background: var(--white); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.benefit-card { text-align: center; padding: 40px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); transition: var(--transition); position: relative; overflow: hidden; }
.benefit-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--burgundy); transform: scaleX(0); transition: var(--transition); }
.benefit-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-icon { width: 72px; height: 72px; background: rgba(139,38,53,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 28px; transition: var(--transition); }
.benefit-card:hover .benefit-icon { background: var(--burgundy); }
.benefit-title { font-family: 'Roboto Slab', serif; font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.benefit-desc { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* КАТЕГОРИИ */
.categories { background: var(--bg); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.category-card { background: var(--white); border-radius: var(--radius); overflow: hidden; transition: var(--transition); border: 1px solid var(--border); display: block; }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.category-img { width: 100%; aspect-ratio: 1; overflow: hidden; }
.category-body { padding: 16px; text-align: center; }
.category-name { font-family: 'Roboto Slab', serif; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.category-count { font-size: 12px; color: var(--gray); }

/* ТОВАРЫ */
.featured { background: var(--white); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); position: relative; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--burgundy); color: var(--white); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 50px; z-index: 2; text-transform: uppercase; }
.product-img { width: 100%; aspect-ratio: 4/3; background: var(--bg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.08); }
.product-img-placeholder { font-size: 64px; opacity: 0.4; }
.product-body { padding: 20px; }
.product-category { font-size: 11px; color: var(--burgundy); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.product-name { font-family: 'Roboto Slab', serif; font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--burgundy); }
.product-attrs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.product-attr { font-size: 12px; color: var(--gray); background: var(--bg); padding: 3px 10px; border-radius: 50px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.product-price { font-family: 'Roboto Slab', serif; font-size: 22px; font-weight: 700; color: var(--burgundy); }
.product-price .amount { font-family: 'Roboto Slab', serif; font-size: 22px; font-weight: 700; color: var(--burgundy); }
.product-price .woocommerce-Price-currencySymbol { font-size: 14px; font-weight: 400; }
.add-to-cart { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--burgundy); color: var(--white); border-radius: 50%; font-size: 20px; font-weight: 700; transition: var(--transition); cursor: pointer; }
.add-to-cart:hover { background: var(--burgundy-dark); transform: scale(1.1); color: var(--white); }

/* ОТЗЫВЫ */
.reviews { background: var(--bg); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review-card { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); transition: var(--transition); }
.review-card:hover { box-shadow: var(--shadow); }
.review-stars { color: #F59E0B; font-size: 18px; margin-bottom: 16px; }
.review-text { font-size: 15px; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--burgundy); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: 'Roboto Slab', serif; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.review-name { font-weight: 700; font-size: 14px; }
.review-date { font-size: 12px; color: var(--gray); }

/* INSTAGRAM */
.instagram-banner { background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%); padding: 80px 0; text-align: center; color: var(--white); }
.instagram-banner h2 { font-family: 'Roboto Slab', serif; font-size: clamp(24px, 4vw, 36px); margin-bottom: 12px; }
.instagram-banner p { font-size: 16px; opacity: 0.85; margin-bottom: 32px; }
.instagram-handle { font-size: 20px; font-weight: 700; opacity: 0.9; margin-bottom: 32px; }

/* ФУТЕР */
.site-footer { background: #1F2937; color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 40px; width: auto; filter: brightness(2); }
.footer-logo-text { font-family: 'Roboto Slab', serif; font-size: 18px; font-weight: 700; color: var(--white); }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-size: 14px; transition: var(--transition); }
.footer-social a:hover { color: var(--white); }
.footer-col-title { font-family: 'Roboto Slab', serif; font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 14px; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-nav a:hover { color: var(--white); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 12px; color: rgba(255,255,255,0.65); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* COOKIE */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1F2937; color: var(--white); padding: 20px; z-index: 9999; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; box-shadow: 0 -4px 20px rgba(0,0,0,0.2); transform: translateY(100%); transition: transform 0.4s ease; }
.cookie-banner.visible { transform: translateY(0); }
.cookie-text { font-size: 14px; line-height: 1.6; flex: 1; min-width: 200px; }
.cookie-text a { color: #FFD4D9; text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%); padding: 120px 0 60px; color: var(--white); }
.page-hero h1 { font-family: 'Roboto Slab', serif; font-size: clamp(28px, 5vw, 48px); margin-bottom: 12px; }
.page-hero p { font-size: 16px; opacity: 0.85; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 20px; opacity: 0.8; flex-wrap: wrap; }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.7; }

/* КАТАЛОГ */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 60px 0; }
.catalog-sidebar { flex-shrink: 0; }
.filter-box { background: var(--white); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; border: 1px solid var(--border); }
.filter-title { font-family: 'Roboto Slab', serif; font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--burgundy); }
.filter-option { display: flex; align-items: center; padding: 8px 0; font-size: 14px; color: var(--text-light); border-bottom: 1px solid var(--border); cursor: pointer; }
.filter-option:last-child { border-bottom: none; }
.filter-option a { display: flex; align-items: center; gap: 8px; color: inherit; transition: var(--transition); width: 100%; }
.filter-option a:hover { color: var(--burgundy); }
.filter-option--link.is-active { color: var(--burgundy); font-weight: 700; }
.filter-option--link.is-active a { color: var(--burgundy); }
.filter-option--link.is-active .filter-check { background: var(--burgundy); border-color: var(--burgundy); }
.filter-option--link.is-active .filter-check::after { display: block; }
.filter-check { flex-shrink: 0; width: 16px; height: 16px; border: 2px solid var(--border); border-radius: 4px; background: var(--white); position: relative; transition: var(--transition); }
.filter-check::after { content: ''; display: none; position: absolute; top: 2px; left: 5px; width: 4px; height: 7px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg); }
.filter-option--check { gap: 10px; }
.filter-option--check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--burgundy); flex-shrink: 0; cursor: pointer; }
.filter-option--check:hover { color: var(--burgundy); }
.price-input { width: 80px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-family: inherit; color: var(--text); }
.price-input:focus { outline: none; border-color: var(--burgundy); }
.catalog-sort { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.catalog-count { font-size: 14px; color: var(--gray); }
.sort-label { font-size: 14px; color: var(--gray); white-space: nowrap; }

/* WooCommerce сортировка */
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select,
.woocommerce-ordering .orderby { padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); background: var(--white); cursor: pointer; font-family: inherit; appearance: auto; }
.woocommerce-ordering select:focus { outline: none; border-color: var(--burgundy); }

/* СТРАНИЦА ТОВАРА */
.product-page { padding: 60px 0; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery { position: sticky; top: 100px; }
.gallery-main { width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg); margin-bottom: 16px; border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--transition); background: var(--bg); display: flex; align-items: center; justify-content: center; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--burgundy); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-family: 'Roboto Slab', serif; font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; line-height: 1.2; }
.product-attrs-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.product-attrs-table tr { border-bottom: 1px solid var(--border); }
.product-attrs-table td { padding: 10px 12px; }
.product-attrs-table td:first-child { color: var(--gray); width: 40%; background: var(--bg); font-weight: 700; }
.product-desc { color: var(--text-light); font-size: 15px; line-height: 1.7; margin-bottom: 32px; }
.product-actions { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.product-meta { font-size: 13px; color: var(--gray); }

/* WooCommerce — форма .cart: количество + кнопка в одну строку */
.woocommerce form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
}

/* WooCommerce — кнопка "В корзину" на странице товара */
.single_add_to_cart_button,
.woocommerce .single_add_to_cart_button.button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 8px;
  padding: 14px 32px;
  background: var(--burgundy);
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Roboto Slab', serif;
  text-decoration: none;
}
.single_add_to_cart_button:hover,
.woocommerce .single_add_to_cart_button.button:hover {
  background: var(--burgundy-dark) !important;
  transform: translateY(-2px);
  color: var(--white) !important;
}
.quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  height: 48px;
}
.quantity .qty {
  width: 48px;
  height: 100%;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 16px;
  font-family: inherit;
  background: transparent;
  -moz-appearance: textfield;
}
.quantity .qty::-webkit-inner-spin-button,
.quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity .qty:focus { outline: none; }
.qty-btn {
  width: 40px;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--bg); }

/* WooCommerce — уведомления */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error li {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  list-style: none;
}
.woocommerce-message { background: #F0FDF4; border-left: 4px solid #16A34A; color: #166534; }
.woocommerce-info { background: #EFF6FF; border-left: 4px solid #3B82F6; color: #1E40AF; }
.woocommerce-error { background: #FEF2F2; }
.woocommerce-error li { border-left: 4px solid #DC2626; color: #991B1B; }
.woocommerce-message a.button, .woocommerce-message .button {
  float: right;
  background: var(--burgundy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
}

/* WooCommerce — корзина */
.woocommerce-cart .entry-content,
.woocommerce-cart .woocommerce { padding: 60px 0; }
.woocommerce table.cart { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce table.cart td, .woocommerce table.cart th { padding: 16px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.woocommerce table.cart th { background: var(--bg); font-weight: 700; text-align: left; }
.woocommerce .cart-collaterals { margin-top: 40px; }
.woocommerce .cart_totals { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 400px; margin-left: auto; }
.woocommerce .cart_totals h2 { font-family: 'Roboto Slab', serif; font-size: 20px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--burgundy); }
.woocommerce .cart_totals table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.woocommerce .cart_totals table td, .woocommerce .cart_totals table th { padding: 10px 0; border-bottom: 1px solid var(--border); }
.woocommerce a.checkout-button, .woocommerce .checkout-button {
  display: block;
  padding: 16px;
  background: var(--burgundy);
  color: var(--white) !important;
  text-align: center;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
}
.woocommerce a.checkout-button:hover { background: var(--burgundy-dark) !important; transform: translateY(-2px); }

/* WooCommerce — оформление заказа */
.checkout-page { padding: 48px 0 80px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.woocommerce-checkout #customer_details { background: var(--white); border-radius: var(--radius); padding: 40px; border: 1px solid var(--border); }
.order-summary { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); position: sticky; top: 100px; }
.order-summary h3, .order-summary #order_review_heading {
  font-family: 'Roboto Slab', serif;
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--burgundy);
}
.checkout-delivery-info { padding: 16px; background: var(--bg); border-radius: var(--radius-sm); font-size: 13px; color: var(--gray); line-height: 1.6; margin-top: 16px; }
.checkout-delivery-info strong { color: var(--text); display: block; margin-bottom: 6px; }
/* Бесплатная доставка — зелёный текст */
.woocommerce-checkout-review-order-table .shipping td,
.woocommerce-checkout-review-order-table .shipping .amount { color: #16A34A; font-weight: 700; }
/* Подсказки к полям формы */
.woocommerce form .form-row .description { font-size: 13px; color: var(--gray); margin-top: 4px; display: block; }
/* Скрыть "Вы оформляете заказ как гость" */
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-privacy-policy-text > p:first-child { display: none; }
/* Поле email необязательно — уменьшить визуальный вес */
#billing_email_field { margin-bottom: 16px; }
.woocommerce-billing-fields h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 22px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--burgundy);
}
.woocommerce form .form-row { margin-bottom: 20px; }
.woocommerce form .form-row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.woocommerce form .form-row .required { color: var(--burgundy); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(139,38,53,0.1);
}
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #e74c3c; }
.woocommerce form .form-row.woocommerce-invalid label { color: #e74c3c; }
.woocommerce-checkout #payment { background: transparent; border: none; padding: 0; margin-top: 16px; }
.woocommerce-checkout #payment .wc_payment_methods,
.woocommerce-checkout #payment .payment_methods,
.woocommerce-checkout #payment .payment_box,
.woocommerce-checkout #payment .woocommerce-info,
.woocommerce-checkout #payment .woocommerce-notice { display: none !important; }
.woocommerce #place_order,
.woocommerce-checkout #place_order {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--burgundy);
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  margin-top: 16px;
}
.woocommerce #place_order:hover { background: var(--burgundy-dark) !important; transform: translateY(-2px); }
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-checkout-review-order-table td, .woocommerce-checkout-review-order-table th { padding: 10px 0; border-bottom: 1px solid var(--border); }
.woocommerce-checkout-review-order-table tfoot .order-total td, .woocommerce-checkout-review-order-table tfoot .order-total th { font-size: 18px; font-weight: 700; color: var(--burgundy); border-bottom: none; }
.woocommerce-checkout-review-order-table tfoot .cart-subtotal { display: none; }
.woocommerce-checkout-review-order-table .product-name { font-weight: 600; }
.review-order-item { display: flex; align-items: center; gap: 10px; }
.review-order-thumb { flex-shrink: 0; }
.review-order-img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.review-order-img-placeholder { width: 48px; height: 48px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.review-order-info { display: flex; flex-direction: column; gap: 2px; }
.review-order-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.review-order-qty { font-size: 12px; color: var(--gray); }
.review-order-total-cell {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; white-space: nowrap;
}
.tc-remove-item {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.tc-remove-item:hover { border-color: #DC2626; color: #DC2626; background: #FEF2F2; }
.woocommerce-privacy-policy-text { font-size: 12px; color: var(--gray); margin-top: 12px; line-height: 1.5; }
.woocommerce-privacy-policy-text a { color: var(--burgundy); }

/* ===== Страница "Спасибо за заказ" ===== */
.thankyou-page { max-width: 640px; margin: 40px auto 80px; padding: 0 16px; }
.thankyou-box { text-align: center; padding: 40px 32px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 24px; }
.thankyou-box--success { border-color: #16A34A; }
.thankyou-box--error  { border-color: #DC2626; }
.thankyou-checkmark { width: 64px; height: 64px; margin: 0 auto 20px; color: #16A34A; }
.thankyou-checkmark svg { width: 100%; height: 100%; }
.thankyou-box h2 { font-size: 24px; margin-bottom: 8px; }
.thankyou-box p  { color: var(--gray); font-size: 15px; }
.thankyou-details { background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px; }
.thankyou-detail-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.thankyou-detail-item:last-child { border-bottom: none; }
.thankyou-detail-label { color: var(--gray); }
.thankyou-detail-value { font-weight: 600; text-align: right; }
.thankyou-items { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px; }
.thankyou-items h3 { font-size: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); margin: 0; }
.thankyou-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.thankyou-item-thumb { flex-shrink: 0; }
.thankyou-item-img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.thankyou-item-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.thankyou-item-name { font-size: 13px; font-weight: 600; }
.thankyou-item-qty  { font-size: 12px; color: var(--gray); }
.thankyou-item-price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.thankyou-total-row { display: flex; justify-content: space-between; padding: 14px 20px; font-weight: 700; font-size: 16px; color: var(--burgundy); }
.thankyou-actions { text-align: center; }
.thankyou-btn { display: inline-block; padding: 14px 36px; background: var(--burgundy); color: var(--white); border-radius: 50px; font-weight: 700; font-size: 15px; text-decoration: none; transition: var(--transition); }
.thankyou-btn:hover { background: var(--burgundy-dark); }

/* Пагинация */
.pagination .page-numbers, .woocommerce-pagination .page-numbers { display: inline-flex; align-items: center; gap: 8px; }
.pagination .page-numbers a, .pagination .page-numbers span,
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 14px; transition: var(--transition);
  color: var(--text);
}
.pagination .current, .woocommerce-pagination .current { background: var(--burgundy); color: var(--white) !important; border-color: var(--burgundy); }
.pagination a:hover, .woocommerce-pagination a:hover { border-color: var(--burgundy); color: var(--burgundy); }

/* Политика конфиденциальности */
.policy-page { padding: 60px 0; }
.policy-content { background: var(--white); border-radius: var(--radius); padding: 48px; border: 1px solid var(--border); max-width: 900px; }
.policy-content h2, .policy-content h3 { font-family: 'Roboto Slab', serif; color: var(--burgundy); margin: 28px 0 10px; }
.policy-content h2:first-child, .policy-content h3:first-child { margin-top: 0; }
.policy-content p, .policy-content li { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 10px; }
.policy-content ul { list-style: disc; padding-left: 20px; }
.policy-content a { color: var(--burgundy); text-decoration: underline; }

/* Скрыть ссылку "Просмотр корзины" от WooCommerce */
a.added_to_cart.wc-forward { display: none !important; }

/* ТОСТ-УВЕДОМЛЕНИЕ КОРЗИНЫ */
.cart-notification {
  position: fixed;
  bottom: 32px;
  right: 24px;
  background: #1F2937;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 9998;
  max-width: 320px;
  transform: translateX(calc(100% + 32px));
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.cart-notification.notif-show { transform: translateX(0); }
.notif-icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: #16A34A; border-radius: 50%;
  flex-shrink: 0; color: #fff;
}
.notif-text { font-family: 'Roboto Slab', serif; line-height: 1.4; }

/* АНИМАЦИИ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.animate.in-view { opacity: 1; transform: translateY(0); }

/* АДАПТИВНОСТЬ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 220px 1fr; }
  .product-layout { gap: 40px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .woocommerce-checkout #customer_details { padding: 28px; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .header-nav { display: none; }
  .burger { display: flex; }
  .header-logo { margin-right: auto; }
  .logo-text { font-size: 16px; }
  .header-logo img { height: 36px; }
  .cart-btn { margin-left: 8px; padding: 8px 14px; font-size: 13px; gap: 6px; }
  .header-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 24px;
    border-bottom: 1px solid var(--border); gap: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); z-index: 999;
  }
  .header-nav.open ul { flex-direction: column; gap: 20px; }
  .hero-content { padding: 140px 0 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { display: none; }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cookie-banner { flex-direction: column; }
  .about-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .product-name { font-size: 14px; }
  .product-price .amount { font-size: 18px; }
  .policy-content { padding: 24px; }
}

/* ===== ПРОМОКОД ===== */
.tc-coupon-wrap { margin-top: 16px; }

.tc-coupon-form {
  display: flex;
  gap: 8px;
}
.tc-coupon-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color 0.2s;
  outline: none;
}
.tc-coupon-input:focus { border-color: var(--burgundy); }
.tc-coupon-btn {
  padding: 10px 16px;
  background: var(--burgundy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.tc-coupon-btn:hover:not(:disabled) { background: var(--burgundy-dark); }
.tc-coupon-btn:disabled { opacity: 0.6; cursor: default; }

.tc-coupon-msg {
  display: none;
  font-size: 13px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.tc-coupon-msg--error { background: #FEF2F2; color: #B91C1C; }
.tc-coupon-msg--ok    { background: #F0FDF4; color: #15803D; }

.tc-coupon-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #15803D;
}
.tc-coupon-applied svg { flex-shrink: 0; }
.tc-coupon-applied strong { font-weight: 700; }
.tc-remove-coupon-inline {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #15803D;
  opacity: 0.6;
  padding: 0 4px;
  transition: opacity 0.2s;
}
.tc-remove-coupon-inline:hover { opacity: 1; }

/* Строка скидки в таблице заказа */
.woocommerce-checkout-review-order-table .cart-discount th,
.woocommerce-checkout-review-order-table .cart-discount td {
  color: #15803D;
  font-size: 14px;
}
.woocommerce-checkout-review-order-table .cart-discount th {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tc-remove-coupon-row {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #9CA3AF;
  padding: 0 2px;
  transition: color 0.2s;
}
.tc-remove-coupon-row:hover { color: #B91C1C; }
