/* Вязатория: оформление WooCommerce. Стили самой WooCommerce отключены, здесь покрыто всё нужное магазину. */

/* Кнопки */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,
.single_add_to_cart_button,#place_order,.wc-proceed-to-checkout a.checkout-button,a.button.alt,button.button.alt{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:14px 28px;
  font:700 1rem/1 var(--sans);cursor:pointer;text-decoration:none;background:var(--rose);color:#fff;transition:background .2s,transform .2s}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.single_add_to_cart_button:hover,#place_order:hover,
.wc-proceed-to-checkout a.checkout-button:hover{background:var(--rose-dark);color:#fff;transform:translateY(-1px)}
.woocommerce a.button.disabled,.woocommerce button.button:disabled,.woocommerce button.button.disabled{opacity:.5;cursor:not-allowed}
.card .button.btn{padding:11px 20px;font-size:.95rem}
a.added_to_cart{display:block;margin-top:8px;text-align:center;font-weight:700;font-size:.92rem}
.button.loading{opacity:.6}
.button.added::after{content:"✓";margin-left:6px}

/* Сообщения */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notice{list-style:none;margin:0 0 22px;padding:16px 22px;border-radius:var(--radius-sm);background:var(--sage);color:var(--ink);display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between}
.woocommerce-error{background:#f8e1de;display:block}
.woocommerce-error li{margin:4px 0}
.woocommerce-info{background:var(--lav)}
.woocommerce-message .button,.woocommerce-info .button{order:2;padding:10px 20px;font-size:.92rem}
.woocommerce-notices-wrapper:empty{display:none}

/* Каталог */
.shop__archive{padding-bottom:70px}
.shop__archive .term-description{max-width:46em;color:var(--muted);margin-bottom:26px}
ul.products{list-style:none;padding:0;margin:0}
ul.products li.card{margin:0}
.woocommerce-pagination{margin-top:36px}
.woocommerce-pagination ul{display:flex;gap:8px;flex-wrap:wrap;list-style:none;padding:0;margin:0;justify-content:center}
.woocommerce-pagination .page-numbers{display:inline-block;min-width:42px;text-align:center;padding:9px 14px;border-radius:999px;background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--line);text-decoration:none;color:var(--ink);font-weight:700}
.woocommerce-pagination .page-numbers.current{background:var(--rose);color:#fff;box-shadow:none}
.woocommerce-no-products-found{margin:30px 0}
.price del{color:var(--muted);font-weight:400;margin-right:6px}
.price ins{text-decoration:none}

/* Страница товара */
.shop__single{padding-bottom:70px}
.shop__single .crumbs{padding-top:28px}
div.product.type-product{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:20px 56px;align-items:start;padding:20px 0 20px}
div.product .woocommerce-product-gallery{grid-column:1;grid-row:1 / span 3;position:sticky;top:100px;margin:0}
div.product .summary{grid-column:2}
div.product .woocommerce-tabs,div.product .related,div.product .upsells{grid-column:1 / -1}
.woocommerce-product-gallery__wrapper{margin:0}
.woocommerce-product-gallery__image img{width:100%;height:auto;border-radius:var(--radius);box-shadow:var(--shadow);display:block}
.woocommerce-product-gallery__trigger{position:absolute;right:14px;top:14px;z-index:2;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center;text-decoration:none;font-size:0;box-shadow:var(--shadow-sm)}
.woocommerce-product-gallery__trigger::before{content:"";width:16px;height:16px;border:2px solid var(--ink);border-radius:50%;display:block}
.summary .product_title{font-size:clamp(1.7rem,3.3vw,2.4rem)}
.summary .price{display:block;font-family:var(--serif);font-size:1.5rem;font-weight:600;margin:0 0 18px}
.summary .price--ask{font-size:1.3rem;color:var(--ink)}
.woocommerce-product-details__short-description{font-size:1.1rem;color:var(--muted);margin-bottom:22px}
.summary form.cart{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:0 0 24px;padding:20px 22px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}
.product-ask{margin:0 0 24px}
.order-only-note{margin:0 0 14px;color:var(--muted)}
.quantity input.qty{width:76px;font:700 1rem var(--sans);text-align:center;border:1.5px solid var(--line);border-radius:999px;padding:12px 8px;background:var(--cream);color:var(--ink)}
.summary .specs{margin-top:8px}
.summary .note{margin-top:22px}
.woocommerce-tabs{margin-top:30px}
.woocommerce-tabs ul.tabs{display:flex;gap:8px;list-style:none;padding:0;margin:0 0 22px;flex-wrap:wrap}
.woocommerce-tabs ul.tabs a{display:inline-block;padding:11px 20px;border-radius:999px;background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--line);text-decoration:none;color:var(--ink);font-weight:700}
.woocommerce-tabs ul.tabs li.active a{background:var(--rose);color:#fff;box-shadow:none}
.woocommerce-Tabs-panel{max-width:760px}
.woocommerce-Tabs-panel h2{font-size:1.4rem}
.woocommerce-Tabs-panel ul{list-style:none;padding:0}
.woocommerce-Tabs-panel ul li{position:relative;padding:6px 0 6px 32px}
.woocommerce-Tabs-panel ul li::before{content:"";position:absolute;left:0;top:11px;width:20px;height:20px;border-radius:50%;background:var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.3' fill='none' stroke='%234f7059' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat}
section.related{margin-top:40px}
section.related>h2{text-align:center;margin-bottom:28px}

/* Звёзды и отзывы */
.star-rating{position:relative;display:inline-block;width:5.6em;height:1.1em;overflow:hidden;line-height:1.1;font-size:1rem;vertical-align:middle}
.star-rating::before{content:"★★★★★";position:absolute;left:0;top:0;color:#e6d5c8;letter-spacing:.1em}
.star-rating span{position:absolute;left:0;top:0;height:100%;overflow:hidden;font-size:0}
.star-rating span::before{content:"★★★★★";position:absolute;left:0;top:0;font-size:1rem;color:#d9a441;letter-spacing:.1em}
#reviews #comments ol.commentlist{list-style:none;padding:0;margin:0 0 30px}
#reviews .comment_container{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}
#reviews .comment_container img.avatar{width:48px;height:48px;border-radius:50%}
#reviews .meta{color:var(--muted);margin:4px 0}
#review_form_wrapper .comment-reply-title{font:600 1.3rem var(--serif);display:block;margin-bottom:14px}
#review_form .comment-form-comment textarea,#review_form input[type=text],#review_form input[type=email]{width:100%;font:inherit;background:var(--cream);border:1.5px solid var(--line);border-radius:14px;padding:13px 16px}
#review_form p{margin:0 0 14px}
p.stars a{display:inline-block;width:34px;height:34px;line-height:34px;text-align:center;border-radius:50%;background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--line);margin-right:6px;text-decoration:none;color:var(--ink);font-weight:700}
p.stars a.active,p.stars.selected a.active{background:var(--rose);color:#fff;box-shadow:none}
.comment-form-rating select{display:none}

/* Таблицы: корзина, заказ */
table.shop_table{width:100%;border-collapse:separate;border-spacing:0;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin:0 0 24px}
table.shop_table th,table.shop_table td{padding:16px 18px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
table.shop_table tr:last-child th,table.shop_table tr:last-child td{border-bottom:0}
table.shop_table thead th{background:var(--cream);font-size:.9rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
table.shop_table .product-thumbnail img{width:72px;height:96px;object-fit:cover;border-radius:10px}
table.shop_table .product-name a{color:var(--ink);font-weight:700;text-decoration:none}
a.remove{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--blush);color:var(--rose-dark);text-decoration:none;font-size:1.2rem;line-height:1}
a.remove:hover{background:var(--blush-2);color:var(--rose-dark)}
.cart-collaterals{display:flex;justify-content:flex-end}
.cart_totals{width:min(100%,460px)}
.cart_totals h2{font-size:1.4rem}
.wc-proceed-to-checkout a.checkout-button{width:100%;font-size:1.05rem}
.coupon{display:flex;gap:10px;flex-wrap:wrap}
.coupon input#coupon_code{font:inherit;background:var(--cream);border:1.5px solid var(--line);border-radius:999px;padding:12px 18px;min-width:180px}
td.actions{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}

/* Оформление заказа */
form.woocommerce-checkout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:0 40px;align-items:start}
form.woocommerce-checkout #customer_details{grid-column:1;grid-row:1 / span 2}
form.woocommerce-checkout #order_review_heading{grid-column:2;grid-row:1;margin:0 0 14px}
form.woocommerce-checkout #order_review{grid-column:2;grid-row:2;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px}
form.woocommerce-checkout .col2-set .col-1,form.woocommerce-checkout .col2-set .col-2{width:100%;float:none}
.woocommerce-billing-fields h3,.woocommerce-shipping-fields h3,.woocommerce-additional-fields h3,#order_review_heading{font-size:1.35rem}
.form-row{margin:0 0 16px;display:block}
.form-row label{display:block;font-weight:700;font-size:.92rem;margin-bottom:6px}
.form-row .required{color:var(--rose);text-decoration:none}
.form-row input.input-text,.form-row textarea,.form-row select,.select2-container .select2-selection--single{width:100%;font:inherit;color:var(--ink);background:var(--cream);border:1.5px solid var(--line);border-radius:14px;padding:13px 16px;min-height:50px}
.form-row input.input-text:focus,.form-row textarea:focus,.form-row select:focus{outline:none;border-color:var(--sage-dark);background:#fff}
.form-row-first,.form-row-last{display:inline-block;width:calc(50% - 8px);vertical-align:top}
.form-row-first{margin-right:12px}
.woocommerce-invalid input.input-text{border-color:#c0554f}
.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:1.4;padding:0;color:var(--ink)}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:48px}
#payment{background:transparent}
#payment ul.payment_methods{list-style:none;padding:0;margin:0 0 18px}
#payment ul.payment_methods li{padding:12px 0;border-bottom:1px solid var(--line)}
#payment .payment_box{background:var(--cream);border-radius:12px;padding:12px 16px;margin-top:10px;font-size:.95rem}
#place_order{width:100%;font-size:1.05rem;margin-top:8px}
.vyaz-consent{font-size:.92rem;color:var(--muted)}
.vyaz-consent label{font-weight:400}
.woocommerce-privacy-policy-text{font-size:.9rem;color:var(--muted);margin-bottom:14px}
.woocommerce-order-overview{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:14px 34px;margin:0 0 26px}
.woocommerce-order-overview li{font-size:.92rem;color:var(--muted)}
.woocommerce-order-overview strong{display:block;color:var(--ink);font-size:1.05rem}
.woocommerce-thankyou-order-received{font-family:var(--serif);font-size:1.4rem}

/* Пояснение на оформлении */
.vyaz-checkout-note{margin:0 0 14px;padding:12px 16px;background:var(--lav);border-radius:12px;font-size:.95rem}

/* Личный кабинет */
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0 0 24px;display:flex;flex-wrap:wrap;gap:8px}
.woocommerce-MyAccount-navigation a{display:inline-block;padding:10px 18px;border-radius:999px;background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--line);text-decoration:none;color:var(--ink);font-weight:700}
.woocommerce-MyAccount-navigation .is-active a{background:var(--rose);color:#fff;box-shadow:none}

@media (max-width:1020px){
  div.product.type-product{grid-template-columns:1fr}
  div.product .woocommerce-product-gallery{position:static;grid-row:auto;max-width:460px}
  div.product .summary{grid-column:1}
  form.woocommerce-checkout{grid-template-columns:1fr}
  form.woocommerce-checkout #customer_details,form.woocommerce-checkout #order_review_heading,form.woocommerce-checkout #order_review{grid-column:1;grid-row:auto}
  form.woocommerce-checkout #order_review_heading{margin-top:26px}
}
@media (max-width:680px){
  .form-row-first,.form-row-last{display:block;width:100%;margin-right:0}
  table.shop_table th,table.shop_table td{padding:12px 10px}
  table.shop_table .product-thumbnail{display:none}
}

#order_review table.shop_table{border:0;border-radius:0;margin-bottom:18px}

@media (max-width:768px){
  table.shop_table_responsive thead{display:none}
  table.shop_table_responsive tr{display:block;border-bottom:1px solid var(--line)}
  table.shop_table_responsive tr:last-child{border-bottom:0}
  table.shop_table_responsive td{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:0;padding:10px 16px;text-align:right}
  table.shop_table_responsive td::before{content:attr(data-title);font-weight:700;text-align:left}
  table.shop_table_responsive td.product-remove::before,table.shop_table_responsive td.product-thumbnail::before,table.shop_table_responsive td.actions::before{content:none}
  table.shop_table_responsive tbody th{display:none}
  td.actions{flex-direction:column;align-items:stretch}
  .coupon input#coupon_code{width:100%}
}

table.cart td.product-remove{width:52px;padding-right:0}
table.cart td.product-thumbnail{width:96px}
table.cart td.product-quantity{width:110px}
