/*!
Theme Name: Blocksy
Theme URI: https://creativethemes.com/blocksy/
Author: CreativeThemes
Author URI: https://creativethemes.com
Description: Blocksy is a fast, modern WordPress theme with advanced WooCommerce support and full compatibility with the block editor.
Version: 2.1.44
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Copyright: (c) 2019 CreativeThemes.
Requires at least: 6.5
Requires PHP: 7.0
Tested up to: 7.0
Text Domain: blocksy
Blocksy Minimum Companion Version: 2.1.36-dev1
Tags: accessibility-ready, blog, block-patterns, e-commerce, wide-blocks, block-styles, grid-layout, one-column, two-columns, three-columns, four-columns, right-sidebar, left-sidebar, translation-ready, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, threaded-comments
*/

*/

/* ── Mobile sidebar button — hidden on desktop ───────────────────────────── */
@media (min-width: 1025px) {
    .mobile-sidebar-button {
        display: none !important;
    }
}

/* ── Mobile category drawer ─────────────────────────────────────────────── */
#cnp-cat-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
}
#cnp-cat-overlay.open { display: block; }

#cnp-cat-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 100001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
}
#cnp-cat-drawer.open { transform: translateX(0); }

#cnp-cat-drawer-inner {
    padding: 20px 16px 40px;
}

#cnp-cat-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    float: right;
    margin-bottom: 8px;
}
#cnp-cat-drawer-close:hover { color: #ed5d21; }

/* ---- Category / archive product grid ---- */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.products-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 40px 0;
}

/* Card */
.products-grid .product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
    text-align: center;
}

.products-grid .product-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    transform: translateY(-3px);
}

/* Image */
.products-grid .product-card__img-link {
    display: block;
    text-decoration: none;
}

.products-grid .product-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-grid .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    margin: 0;
    max-width: 100%;
}

/* Body */
.products-grid .product-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.products-grid .product-card__name-link {
    text-decoration: none;
    color: inherit;
}

.products-grid .product-card__name-link:hover .product-title {
    color: #1099eb;
}

.products-grid .product-title {
    font-weight: 700;
    font-size: 1em;
    line-height: 1.3;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.products-grid .product-ingredient {
    font-size: 0.82em;
    color: #999;
    margin-bottom: 10px;
}

.products-grid .product-price {
    font-size: 1.05em;
    font-weight: 600;
    color: #ff6600;
    margin-top: auto;
    margin-bottom: 12px;
}

/* Button */
.products-grid .product-card__btn {
    display: block;
    background: #ff6600;
    color: #fff !important;
    padding: 9px 0;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92em;
    text-decoration: none;
    transition: background 0.2s;
}

.products-grid .product-card__btn:hover {
    background: #e05000;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

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

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
.special-deals-banner {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 10px 0;
}

.special-deals-banner .date-range {
    color: #e85d04; /* насыщенный оранжевый */
    font-style: italic;
    font-weight: 500;
}

[data-header*="type-1"] .ct-header [data-id="button"] .ct-button {
  --theme-button-text-initial-color:#ffffff;
  --theme-button-text-hover-color:var(--theme-palette-color-8);
  color: #fff !important;
}
/* ── Sidebar product menu — accordion ─────────────────────────────────────── */

@media (min-width: 1025px) {
    #left {
        display: block;
        float: left;
        width: 230px;
        margin-right: 24px;
    }
}

/* Reset */
#products-menu-list,
#products-menu-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Outer item */
.psm-item {
    border-bottom: 1px solid #ebebeb;
}
.psm-item:last-child {
    border-bottom: none;
}

/* Category row: link + toggle button */
.psm-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 9px 0;
}
.psm-cat-link {
    font-size: 16px;
    font-weight: 700;
    color: #ed5d21;
    text-decoration: none;
    flex: 1;
    line-height: 1.3;
    transition: color 0.15s;
}
.psm-cat-link:hover {
    color: #c44000;
    text-decoration: none;
}
.psm-count {
    color: #bbb;
    font-weight: 400;
    font-size: 0.85em;
}

/* Toggle button (chevron) */
.psm-toggle {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    background: none;
    cursor: pointer;
    color: #ccc;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.psm-toggle svg {
    transition: transform 0.25s ease;
    display: block;
}
.psm-toggle:hover {
    color: #ed5d21;
}
.psm-item.psm-open .psm-toggle {
    color: #ed5d21;
}
.psm-item.psm-open .psm-toggle svg {
    transform: rotate(180deg);
}

/* Products list — accordion */
.psm-products {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.2s;
    padding: 0;
}
.psm-item.psm-open .psm-products {
    max-height: 400px;
    padding-bottom: 8px;
}

/* Product items */
.psm-products li {
    padding: 3px 0 3px 16px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
}
.psm-products li::before {
    content: "›";
    position: absolute;
    left: 2px;
    top: 1px;
    color: #ed5d21;
    font-size: 14px;
    line-height: 1.5;
}
.psm-products li a {
    color: #308ed1;
    text-decoration: none;
    transition: color 0.15s;
}
.psm-products li a:hover {
    color: #ed5d21;
    text-decoration: underline;
}

/* View all link */
.psm-view-all::before {
    display: none !important;
}
.psm-view-all {
    margin-top: 4px;
    padding-left: 0 !important;
}
.psm-view-all a {
    color: #aaa !important;
    font-size: 12px !important;
    font-weight: 600;
    font-style: italic;
}
.psm-view-all a:hover {
    color: #ed5d21 !important;
}

/* Глобальный цвет ссылок */
a, a:link, a:visited {
    color: #1099eb;
}

.popular-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.popular-products-grid .product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.popular-products-grid .button {
    margin-top: auto;
}
@media (max-width: 1024px) {
    .popular-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .popular-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Related Products ──────────────────────────────────────────────────────── */

/* Section heading */
.related.products > h2 {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #ebebeb;
    padding-bottom: 10px;
}

/* Скрываем категории под названием товара — загромождают карточку */
.related .entry-meta {
    display: none;
}

/* Карточка товара */
.related .product {
    display: flex;
    flex-direction: column;
}

/* Картинка — фиксированное соотношение сторон */
.related .ct-media-container {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related .ct-media-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* Название товара */
.related .woocommerce-loop-product__title {
    font-size: 0.92em;
    font-weight: 700;
    line-height: 1.35;
    margin: 10px 0 6px;
    text-align: center;
    color: #222;
}

.related .woocommerce-loop-product__title a:hover {
    color: #1099eb;
}

/* Цена */
.related .ct-woo-card-actions .price,
.related .ct-woo-card-actions .price span {
    font-size: 0.95em;
    font-weight: 600;
    color: #e05000;
}

/* Кнопка "Select options" */
.related .ct-woo-card-actions .button.add_to_cart_button {
    font-size: 0.82em;
    padding: 6px 12px;
    white-space: nowrap;
}

/* Блок цены + кнопки — выровнен по центру */
.related .ct-woo-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0 4px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

/* Бейдж NEW — менее агрессивный */
.related .ct-woo-badge-new {
    font-size: 0.68em;
    padding: 2px 7px;
}

/* Стрелки слайдера */
.related .flexy-arrow-prev,
.related .flexy-arrow-next {
    color: #999;
    transition: color 0.2s;
}

.related .flexy-arrow-prev:hover,
.related .flexy-arrow-next:hover {
    color: #e05000;
}

/* ── Custom Cart Page UI ──────────────────────────────────────────────────────── */

.cnp-cart-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.cnp-cart-main {
    flex: 1 1 65%;
    min-width: 300px;
}

.cnp-cart-sidebar {
    flex: 1 1 30%;
    min-width: 300px;
}

.cnp-cart-info-blocks {
    flex: 1 1 100%;
}

/* Base Card Style */
.cnp-cart-items-list,
.cnp-mock-section,
.cnp-info-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cnp-cart-items-list {
    padding: 0;
}

/* Table Header */
.cnp-cart-header {
    display: flex;
    background: #f8fafc;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
    border-radius: 8px 8px 0 0;
}

/* Columns */
.cnp-col-product { 
    flex: 1 1 auto; 
    display: flex; 
    align-items: center; 
    gap: 16px; 
}
.cnp-col-qty { 
    flex: 0 0 130px; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.cnp-col-price { 
    flex: 0 0 100px; 
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right; 
}
.cnp-col-total { 
    flex: 0 0 100px; 
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right; 
}

/* Header Specific Overrides */
.cnp-cart-header .cnp-col-qty,
.cnp-cart-header .cnp-col-price,
.cnp-cart-header .cnp-col-total {
    color: #475569;
    font-weight: 600;
}

/* Row Specific Overrides */
.cnp-cart-item .cnp-col-price {
    font-weight: 600; 
}
.cnp-cart-item .cnp-col-total {
    font-weight: 700; 
    color: #1e293b; 
}

/* Item Row */
.cnp-cart-item {
    display: flex;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}
.cnp-cart-item:last-child {
    border-bottom: none;
}

/* Product Info */
.cnp-product-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #f1f5f9;
    border-radius: 4px;
    padding: 4px;
}
.cnp-product-name a {
    color: #0f172a;
    font-size: 1.1em;
    text-decoration: none;
    font-weight: 500;
}
.cnp-product-name a:hover {
    color: #2563eb;
}
.cnp-product-delete {
    margin-top: 6px;
}
.cnp-remove-text-btn {
    font-size: 0.85em;
    color: #94a3b8;
    text-decoration: underline;
    transition: color 0.2s;
}
.cnp-remove-text-btn:hover {
    color: #ef4444;
}

/* Remove Btn */
.cnp-remove-btn {
    color: #94a3b8;
    font-size: 1.5rem;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s;
}
.cnp-remove-btn:hover {
    color: #ef4444;
}

/* Mockups */
.cnp-mock-pill-icon {
    font-size: 2rem;
    background: #e0f2fe;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.cnp-mock-select {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    margin-top: 8px;
    color: #334155;
    background-color: #f8fafc;
    box-sizing: border-box;
}

/* Ensure the mock columns respect identical sizing */
.cnp-mock-section .cnp-col-qty { justify-content: center; }
.cnp-mock-section .cnp-col-price { justify-content: flex-end; }
.cnp-mock-section .cnp-col-total { justify-content: flex-end; }

/* Hide stray WP/WC block comments rendered as text in bonus row */
.cnp-mock-bonus-row .cnp-product-info > *:not(.cnp-product-name):not(.cnp-mock-select) {
    display: none !important;
}

/* Insurance row — always one horizontal line */
.cnp-mock-insurance-row {
    padding: 14px 24px !important;
}
.cnp-insurance-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.cnp-insurance-label {
    flex: 1;
    font-size: 0.95em;
    line-height: 1.4;
}
.cnp-insurance-label small {
    display: block;
    color: #64748b;
    font-size: 0.85em;
}
.cnp-insurance-price {
    font-weight: 700;
    white-space: nowrap;
    color: #1e293b;
}
.cnp-mock-checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Cart Actions */
.cnp-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.cnp-cart-actions .coupon {
    display: flex;
    gap: 10px;
}
.cnp-cart-actions .coupon input {
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    width: 200px;
}
.cnp-cart-actions button.button {
    background: #0f172a !important;
    color: #fff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.cnp-cart-actions button.button:hover {
    background: #334155 !important;
}

/* Info Blocks */
.cnp-info-box h4 {
    margin-top: 0;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 16px;
    font-size: 1.1em;
}
.cnp-info-box p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.95em;
}
.cnp-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cnp-info-box ul li {
    padding: 8px 0;
    color: #334155;
    font-size: 0.95em;
}
.cnp-shipping-methods-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.cnp-shipping-method strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
}

/* Sidebar Totals Override */
.cnp-cart-sidebar .cart_totals {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 100% !important;
    float: none !important;
}
.cnp-cart-sidebar .cart_totals h2 {
    font-size: 1.25em;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
    margin-top: 0;
}
.cnp-cart-sidebar .checkout-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: #16a34a !important;
    color: #fff !important;
    padding: 16px !important;
    border-radius: 4px !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    margin-top: 20px !important;
}
.cnp-cart-sidebar .checkout-button:hover {
    background: #15803d !important;
    color: #fff !important;
}

/* Totals table */
.cnp-cart-sidebar .shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}
.cnp-cart-sidebar .shop_table th,
.cnp-cart-sidebar .shop_table td {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95em;
    vertical-align: middle;
}
.cnp-cart-sidebar .shop_table th {
    text-align: left;
    font-weight: 600;
    color: #475569;
    width: 40%;
}
.cnp-cart-sidebar .shop_table td {
    text-align: right;
    color: #1e293b;
}
.cnp-cart-sidebar .shop_table tr:last-child th,
.cnp-cart-sidebar .shop_table tr:last-child td {
    border-bottom: none;
}
/* Subtotal / Total rows */
.cnp-cart-sidebar .cart-subtotal th,
.cnp-cart-sidebar .cart-subtotal td { color: #475569; }
.cnp-cart-sidebar .order-total th,
.cnp-cart-sidebar .order-total td {
    font-size: 1.1em;
    font-weight: 700;
    color: #0f172a;
    padding-top: 16px;
}

/* Shipping section */
.cnp-cart-sidebar .ct-shipping-heading {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    margin-bottom: 8px;
}
.cnp-cart-sidebar .woocommerce-shipping-totals th { display: none; }
.cnp-cart-sidebar .woocommerce-shipping-totals td {
    text-align: left;
    padding: 10px 0;
}
.cnp-cart-sidebar .woocommerce-shipping-methods {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}
.cnp-cart-sidebar .woocommerce-shipping-methods li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.92em;
    color: #334155;
}
.cnp-cart-sidebar .woocommerce-shipping-methods input[type="radio"] {
    flex-shrink: 0;
    accent-color: #16a34a;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.cnp-cart-sidebar .woocommerce-shipping-methods label { cursor: pointer; }
.cnp-cart-sidebar .woocommerce-shipping-destination {
    font-size: 0.82em;
    color: #64748b;
    margin: 4px 0 8px;
}
/* Change address */
.cnp-cart-sidebar .shipping-calculator-button {
    font-size: 0.82em;
    color: #1099eb;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 4px;
}
.cnp-cart-sidebar .shipping-calculator-button:hover { color: #0077cc; }
/* Address form */
.cnp-cart-sidebar .shipping-calculator-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 14px;
    margin-top: 10px;
}
.cnp-cart-sidebar .shipping-calculator-form .form-row {
    margin-bottom: 10px;
}
.cnp-cart-sidebar .shipping-calculator-form label {
    display: block;
    font-size: 0.82em;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.cnp-cart-sidebar .shipping-calculator-form input.input-text,
.cnp-cart-sidebar .shipping-calculator-form select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.88em;
    color: #334155;
    background: #fff;
    box-sizing: border-box;
}
.cnp-cart-sidebar .shipping-calculator-form .button {
    background: #0f172a !important;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.88em;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

/* Free shipping progress bar */
.cnp-cart-sidebar .ct-shipping-progress-cart-page {
    margin-bottom: 16px;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
}
.cnp-cart-sidebar .ct-message {
    font-size: 0.85em;
    color: #15803d;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}
.cnp-cart-sidebar .ct-progress-bar {
    height: 6px;
    background: #dcfce7;
    border-radius: 3px;
    overflow: hidden;
}
.cnp-cart-sidebar .ct-progress-bar span {
    display: block;
    height: 100%;
    background: #16a34a;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Cart page heading */
.cnp-cart-page-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}
.cnp-cart-page-title {
    font-size: 1.9em;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.2;
}
.cnp-cart-page-subtitle {
    color: #64748b;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Product variant — second line after " - " in product name */
.cnp-product-variant {
    display: block;
    font-size: 0.8em;
    color: #64748b;
    font-weight: normal;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .cnp-cart-header { display: none; }

    /* Default mobile for misc rows */
    .cnp-cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 10px 14px;
    }
    .cnp-col-product {
        width: 100%;
        padding-right: 0;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding-bottom: 4px;
    }
    .cnp-product-info { flex: 1; }

    /* ── Real cart items: compact horizontal row ── */
    .cnp-cart-items-list .cnp-cart-item {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .cnp-cart-items-list .cnp-cart-item .cnp-col-product {
        flex: 1;
        min-width: 0;
        width: auto;
        padding-bottom: 0;
    }
    .cnp-cart-items-list .cnp-cart-item .cnp-product-info {
        flex: 1;
        min-width: 0;
    }
    /* Qty compact — no label, smaller input */
    .cnp-cart-items-list .cnp-cart-item .cnp-col-qty {
        flex: 0 0 auto;
        width: auto;
        display: flex;
        align-items: center;
        padding: 0;
    }
    .cnp-cart-items-list .cnp-cart-item .cnp-col-qty::before { display: none; }
    .cnp-cart-items-list .cnp-cart-item .cnp-col-qty .quantity { font-size: 0.78em; }
    .cnp-cart-items-list .cnp-cart-item .cnp-col-qty input.qty {
        width: 32px;
        padding: 3px 2px;
        text-align: center;
    }
    /* Hide price and subtotal */
    .cnp-cart-items-list .cnp-cart-item .cnp-col-price,
    .cnp-cart-items-list .cnp-cart-item .cnp-col-total { display: none; }

    /* ── Bonus row: hide icon + qty/price/total ── */
    .cnp-mock-bonus-row .cnp-product-thumbnail { display: none; }
    .cnp-mock-bonus-row .cnp-col-qty,
    .cnp-mock-bonus-row .cnp-col-price,
    .cnp-mock-bonus-row .cnp-col-total { display: none; }

    .cnp-shipping-methods-info { grid-template-columns: 1fr; }
    .cnp-cart-actions { flex-direction: column; gap: 16px; align-items: stretch; }
    .cnp-cart-actions .coupon input { width: 100%; }

    /* Reorder: sidebar → main → info-blocks */
    .cnp-cart-wrapper { flex-direction: column; }
    .cnp-cart-main { order: 2; }
    .cnp-cart-sidebar { order: 1; }
    .cnp-cart-info-blocks { order: 3; }
}

/* ── Trust Badges block ──────────────────────────────────────────────────── */
.tnb-section {
    background: #ffffff;
    border-top: 1px solid #eef0f4;
    border-bottom: 1px solid #eef0f4;
    padding: 0;
}

/* — Hero: H1 + search — */
.tnb-hero {
    padding: 48px 24px 36px;
    text-align: center;
}

.tnb-hero__title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tnb-hero__accent {
    color: #ff6600;
    font-size: 0.9em;
}

.tnb-hero__sub {
    font-size: 1rem;
    color: #666;
    margin: 0 0 28px;
    line-height: 1.5;
}

.tnb-search {
    max-width: 620px;
    margin: 0 auto;
}

.tnb-search__wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.14), 0 1px 6px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    gap: 8px;
}

.tnb-search__icon {
    width: 18px;
    height: 18px;
    color: #aaa;
    flex-shrink: 0;
}

.tnb-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #1a1a2e;
    background: transparent;
    padding: 6px 0;
    min-width: 0;
}

.tnb-search__input::placeholder {
    color: #aaa;
}

.tnb-search__btn {
    background: #ff6600;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 10px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.tnb-search__btn:hover {
    background: #e05000;
}

@media (max-width: 600px) {
    .tnb-hero {
        padding: 36px 16px 28px;
    }
    .tnb-search__btn {
        padding: 10px 18px;
        font-size: 0.88rem;
    }
}

/* — 5 benefit cards row — */
.tnb-benefits-row {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 1px solid #eef0f4;
}

.tnb-benefit-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px 24px;
    border-right: 1px solid #eef0f4;
    transition: background 0.2s;
}
.tnb-benefit-item:last-child {
    border-right: none;
}
.tnb-benefit-item:hover {
    background: #fafbff;
}

.tnb-benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.tnb-benefit-icon--orange {
    background: #fff5ee;
    color: #ff6600;
}
.tnb-benefit-icon--green {
    background: #edfaf3;
    color: #16a34a;
}
.tnb-benefit-icon--blue {
    background: #eef7ff;
    color: #1099eb;
}
.tnb-benefit-icon svg {
    width: 22px;
    height: 22px;
}

.tnb-benefit-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}

.tnb-benefit-desc {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.4;
}

/* — Logos + tagline footer row — */
.tnb-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 32px;
    flex-wrap: wrap;
}

.tnb-logos-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.tnb-logos-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaa;
    white-space: nowrap;
}

.tnb-logos-inline img {
    height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.75;
    filter: grayscale(30%);
    transition: opacity 0.2s, filter 0.2s;
}
.tnb-logos-inline img:hover {
    opacity: 1;
    filter: none;
}

.tnb-tagline {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    max-width: 500px;
    text-align: right;
    font-style: italic;
}

/* Responsive */
@media (max-width: 860px) {
    .tnb-benefit-item {
        padding: 22px 10px 18px;
    }
    .tnb-benefit-title {
        font-size: 0.88rem;
    }
}
@media (max-width: 640px) {
    .tnb-benefits-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .tnb-benefit-item {
        border-bottom: 1px solid #eef0f4;
    }
    .tnb-benefit-item:nth-child(odd) {
        border-right: 1px solid #eef0f4;
    }
    .tnb-benefit-item:nth-child(even) {
        border-right: none;
    }
    .tnb-benefit-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
    /* 5th item spans full width */
    .tnb-benefit-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        border-right: none;
    }
    .tnb-footer-row {
        flex-direction: column;
        align-items: center;
        padding: 16px 20px;
        gap: 12px;
    }
    .tnb-tagline {
        text-align: center;
    }
    .tnb-logos-inline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}
@media (max-width: 400px) {
    .tnb-benefits-row {
        grid-template-columns: 1fr;
    }
    .tnb-benefit-item {
        border-right: none !important;
        border-bottom: 1px solid #eef0f4;
    }
    .tnb-benefit-item:last-child {
        border-bottom: none;
    }
}

/* ── How To Order block ───────────────────────────────────────────────────── */
.hto-section {
    padding: 64px 20px;
    background: #f4f7fb;
}
.hto-wrap {
    max-width: 1080px;
    margin: 0 auto;
}
.hto-heading {
    text-align: center;
    margin-bottom: 48px;
}
.hto-heading h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.25;
    margin: 0 0 10px;
}
.hto-heading h2 .hto-accent {
    color: #ff6600;
}
.hto-heading p {
    font-size: 1.05rem;
    color: #666;
    margin: 0;
}
.hto-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.hto-step {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 24px 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 4px solid #ff6600;
    transition: transform 0.22s, box-shadow 0.22s;
}
.hto-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 36px rgba(255,102,0,0.14);
}
.hto-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ff6600;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(255,102,0,0.30);
    flex-shrink: 0;
}
.hto-step__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    color: #ff6600;
}
.hto-step__icon svg {
    width: 60px;
    height: 60px;
}
.hto-step__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    line-height: 1.3;
}
.hto-step__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}
.hto-step__list li {
    padding: 5px 0 5px 26px;
    position: relative;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}
.hto-step__list li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    top: 5px;
    color: #28a745;
    font-weight: 700;
    font-size: 0.9rem;
}
.hto-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    flex-shrink: 0;
}
@media (max-width: 860px) {
    .hto-step {
        padding: 28px 18px 24px;
    }
    .hto-connector {
        padding: 0 6px;
    }
}
@media (max-width: 600px) {
    .hto-section {
        padding: 40px 16px;
    }
    .hto-steps {
        flex-direction: column;
        gap: 20px;
    }
    .hto-connector {
        display: none;
    }
    .hto-step {
        width: 100%;
    }
    .hto-heading {
        margin-bottom: 32px;
    }
}

/* ── Page Hero Section ───────────────────────────────────────────────────── */

.hero-section.is-width-constrained[data-type="type-1"] {
    padding: 56px 48px;
    margin-bottom: 40px;
    text-align: center;
}

.hero-section.is-width-constrained[data-type="type-1"] .page-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
    padding-bottom: 20px;
}

/* Orange underline accent */
.hero-section.is-width-constrained[data-type="type-1"] .page-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    background: #ff6600;
    border-radius: 2px;
    margin: 18px auto 0;
}

@media (max-width: 768px) {
    .hero-section.is-width-constrained[data-type="type-1"] {
        padding: 40px 24px;
        border-radius: 10px;
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .hero-section.is-width-constrained[data-type="type-1"] {
        padding: 32px 20px;
    }
}

/* ── Popular Products Grid ───────────────────────────────────────────────── */
.ppg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ppg-card {
    background: #ffffff;
    border-radius: 12px;
    border-top: 4px solid #ff6600;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ppg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(255,102,0,0.13);
}
.ppg-card__name-link {
    text-decoration: none;
}
.ppg-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 4px;
    transition: color 0.2s;
}
.ppg-card__name-link:hover .ppg-card__name {
    color: #ff6600;
}
.ppg-card__ingredient {
    font-size: 0.82rem;
    color: #999;
    font-style: italic;
    margin-bottom: 14px;
    line-height: 1.4;
}
.ppg-card__meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-bottom: 16px;
}
.ppg-card__badge {
    display: inline-block;
    background: #f0f4ff;
    color: #4a6fa5;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}
.ppg-card__price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ff6600;
    line-height: 1;
}
.ppg-card__from {
    font-size: 0.8rem;
    font-weight: 400;
    color: #999;
}
.ppg-card__btn {
    display: block;
    width: 100%;
    background: #ff6600;
    color: #ffffff !important;
    text-align: center;
    padding: 10px 0;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: auto;
}
.ppg-card__btn:hover {
    background: #e05000;
    color: #ffffff !important;
}
@media (max-width: 900px) {
    .ppg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}
@media (max-width: 540px) {
    .ppg-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}