/**
 * WooCommerce Styles
 *
 * @package EB_Store
 */

/* ==========================================================================
   Shop Page
   ========================================================================== */

.shop-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
}

@media (min-width: 992px) {
    .shop-page-layout {
        grid-template-columns: 280px 1fr;
    }
}

/* Shop Sidebar */
.shop-sidebar {
    display: none;
}

@media (min-width: 992px) {
    .shop-sidebar {
        display: block;
    }
}

.shop-sidebar-content {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-4));
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-4);
}

/* Shop Main */
.shop-main {
    min-width: 0;
}

/* Shop Header */
.shop-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-6);
}

.shop-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.shop-result-count {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.shop-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

/* Mobile Filter Toggle */
.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

@media (min-width: 992px) {
    .filter-toggle-btn {
        display: none;
    }
}

/* View Toggle */
.view-toggle {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-toggle-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.view-toggle-btn.active {
    color: var(--ozon-blue);
    background-color: var(--ozon-blue-light);
}

.view-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Ordering Select (default) */
.woocommerce-ordering {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.woocommerce-ordering label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    white-space: nowrap;
}

.woocommerce-ordering select {
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
}

/* Sorting inside filter sidebar (Utkonos style) */
.filter-sorting .woocommerce-ordering {
    display: block;
}

.filter-sorting .woocommerce-ordering select,
.filter-sorting .woocommerce-ordering .orderby {
    width: 100%;
    padding: 10px 36px 10px 12px;
    font-size: 15px;
    color: #040507;
    background-color: #fff;
    border: 1px solid #C9C9C9;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230DB14B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.15s;
}

.filter-sorting .woocommerce-ordering select:hover,
.filter-sorting .woocommerce-ordering select:focus {
    border-color: #0DB14B;
    outline: none;
}

/* Utkonos Pagination */
.utk-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding: 12px 0;
}

.utk-pagination-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 40px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    color: #040507;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px #E6E9E6;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.15s, background-color 0.15s;
}

.utk-pagination-more:hover {
    box-shadow: inset 0 0 0 1px #040507;
    color: #040507;
}

.utk-pagination-pages {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.utk-page-item {
    width: 40px;
    height: 40px;
}

.utk-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #040507;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s;
}

.utk-page-link:hover {
    background: #F5F7F7;
    color: #040507;
}

.utk-page-link.is-active {
    background: #F5F7F7;
    cursor: default;
}

.utk-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 16px;
    font-weight: 700;
    color: #040507;
}

/* Mobile Filter Sidebar */
.mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-modal-backdrop);
}

.mobile-filter-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background-color: var(--bg-card);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    z-index: var(--z-modal);
    overflow-y: auto;
}

.mobile-filter-sidebar.is-active {
    transform: translateX(0);
}

.mobile-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-4);
    border-bottom: 1px solid var(--border-default);
}

.mobile-filter-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.mobile-filter-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-filter-content {
    padding: var(--spacing-4);
    padding-right: var(--spacing-6);
}

.mobile-filter-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: var(--spacing-3);
    padding: var(--spacing-4);
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-default);
}

.mobile-filter-footer .btn {
    flex: 1;
}

.mobile-filter-footer .btn-half {
    flex: 1;
}

/* ==========================================================================
   Shop Sidebar - Utkonos Style
   ========================================================================== */

.shop-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-4));
    max-height: calc(100vh - var(--header-height) - var(--spacing-8));
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar styling */
.shop-sidebar::-webkit-scrollbar {
    width: 4px;
}

.shop-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.shop-sidebar::-webkit-scrollbar-thumb {
    background: #C9C9C9;
    border-radius: 2px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #040507;
}

.sidebar-reset {
    font-size: 14px;
    color: #0DB14B;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.15s;
}

.sidebar-reset:hover {
    background-color: rgba(13, 177, 75, 0.08);
}

/* Filter Sections */
.filter-section {
    margin-bottom: 24px;
    border-bottom: none;
    padding-bottom: 0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #040507;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.filter-section-header:hover {
    color: #040507;
}

.filter-section-title {
    flex: 1;
}

.filter-section-arrow {
    transition: transform 0.2s;
}

.filter-section-arrow svg {
    width: 20px;
    height: 20px;
    color: #0DB14B;
}

.filter-section-header[aria-expanded="false"] .filter-section-arrow {
    transform: rotate(180deg);
}

.filter-section-content {
    padding-top: 0;
}

/* Filter List */
.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    margin-bottom: 0;
}

.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-radius: 0;
    color: #040507;
    font-size: 16px;
    transition: color 0.15s;
}

.filter-link:hover {
    background-color: transparent;
    color: #0DB14B;
}

.filter-item.active .filter-link {
    background-color: transparent;
    color: #0DB14B;
    font-weight: 700;
}

.filter-name {
    font-size: 16px;
    color: #040507;
}

.filter-count {
    font-size: 14px;
    color: #95999B;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

/* Filter Checkbox — Utkonos style */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
    border-radius: 0;
    transition: none;
}

.filter-checkbox:hover {
    background-color: transparent;
}

.filter-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-mark {
    position: relative;
    width: 22px;
    height: 22px;
    border: 1px solid #C9C9C9;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.15s;
    background: #fff;
}

.filter-checkbox input:checked + .checkbox-mark {
    background-color: #0DB14B;
    border-color: #0DB14B;
}

.filter-checkbox input:checked + .checkbox-mark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Filter Search Input — Utkonos style */
.filter-search-input {
    position: relative;
    margin-bottom: 12px;
}

.filter-search {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 12px;
    border: 1px solid #C9C9C9;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #040507;
    background: #fff;
    box-sizing: border-box;
}

.filter-search:focus {
    outline: none;
    border-color: #0DB14B;
}

.filter-search::placeholder {
    color: #95999B;
}

.filter-search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.filter-search-icon svg {
    width: 20px;
    height: 20px;
    color: #0DB14B;
}

/* Scrollable filter list */
.filter-brand-list {
    max-height: 280px;
    overflow-y: auto;
}

.filter-brand-list::-webkit-scrollbar {
    width: 4px;
}

.filter-brand-list::-webkit-scrollbar-track {
    background: transparent;
}

.filter-brand-list::-webkit-scrollbar-thumb {
    background: #C9C9C9;
    border-radius: 2px;
}

/* Price Range Inputs */
.price-range-inputs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.price-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #F5F5F5;
    border-radius: 8px;
    padding: 8px 12px;
}

.price-label {
    font-size: 14px;
    color: #95999B;
}

.price-input {
    width: 100%;
    background: none;
    border: none;
    font-size: 16px;
    font-family: inherit;
    color: #040507;
}

.price-input:focus {
    outline: none;
}

.price-input::placeholder {
    color: #95999B;
}

/* WooCommerce Price Filter Widget — Utkonos style */
.widget_price_filter .price_slider_wrapper {
    display: none;
}

.widget_price_filter .price_label {
    font-size: 14px;
    color: #95999B;
    margin-bottom: 8px;
}

.widget_price_filter button[type="submit"] {
    display: block;
    width: 100%;
    height: 40px;
    background: #0DB14B;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s;
}

.widget_price_filter button[type="submit"]:hover {
    background: #027510;
}

/* ==========================================================================
   Quick Filters (Chips)
   ========================================================================== */

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--border-default);
}

.quick-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
    padding: var(--spacing-2) var(--spacing-4);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    background-color: var(--bg-section);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.quick-filter-chip:hover {
    border-color: var(--ozon-blue);
    color: var(--ozon-blue);
}

.quick-filter-chip.active {
    background-color: var(--ozon-blue);
    border-color: var(--ozon-blue);
    color: var(--text-inverse);
}

.quick-filter-chip svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Shop Toolbar - Ozon Style
   ========================================================================== */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
    padding: var(--spacing-3);
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
}

.shop-toolbar-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

/* Filter Toggle Button */
.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    background-color: var(--bg-section);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-toggle:hover {
    border-color: var(--ozon-blue);
    color: var(--ozon-blue);
}

.filter-toggle svg {
    width: 18px;
    height: 18px;
}

/* Shop Ordering */
.shop-ordering {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.ordering-label {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    white-space: nowrap;
}

.shop-ordering select,
.shop-ordering .orderby {
    padding: var(--spacing-2) var(--spacing-3);
    padding-right: var(--spacing-6);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    background-color: var(--bg-section);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

/* View Toggle */
.shop-view-toggle {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.view-btn.active {
    color: var(--ozon-blue);
    background-color: var(--ozon-blue-light);
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Active Filters
   ========================================================================== */

.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-4);
    padding: var(--spacing-3);
    background-color: var(--bg-section);
    border-radius: var(--radius-md);
}

.active-filters-label {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
    padding: var(--spacing-1) var(--spacing-2);
    font-size: var(--font-size-xs);
    color: var(--text-primary);
    background-color: var(--bg-card);
    border-radius: var(--radius-sm);
}

.active-filter-tag button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    padding: 0;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
}

.active-filter-tag button:hover {
    color: var(--ozon-pink);
}

.active-filters-clear {
    font-size: var(--font-size-sm);
    color: var(--ozon-blue);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.active-filters-clear:hover {
    text-decoration: underline;
}

/* ==========================================================================
   No Products Found
   ========================================================================== */

.no-products-found {
    text-align: center;
    padding: var(--spacing-12) var(--spacing-6);
}

.no-products-icon {
    margin-bottom: var(--spacing-4);
}

.no-products-icon svg {
    width: 64px;
    height: 64px;
    color: var(--text-tertiary);
}

.no-products-found h2 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
}

.no-products-found p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-6);
}

/* ==========================================================================
   Single Product Page - OZON Style
   ========================================================================== */

.single-product-container {
    padding: var(--spacing-4) 0;
}

.single-product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
}

@media (min-width: 768px) {
    .single-product-layout {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .single-product-layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-8);
    }
}

/* Product Gallery Column */
.product-gallery-column {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Product Gallery with Vertical Thumbnails */
.product-gallery {
    display: flex;
    gap: var(--spacing-3);
    flex: 1;
}

/* Vertical Thumbnails */
.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    width: 64px;
    flex-shrink: 0;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.gallery-thumbs::-webkit-scrollbar {
    width: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background-color: var(--border-default);
    border-radius: 2px;
}

.gallery-thumb {
    width: 64px;
    height: 64px;
    padding: 0;
    background-color: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    flex-shrink: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--ozon-blue);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Gallery Image */
.gallery-main {
    flex: 1;
    position: relative;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gallery-main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 300px;
}

.gallery-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.gallery-main-image.no-image {
    background-color: var(--bg-section);
}

.gallery-zoom {
    position: absolute;
    top: var(--spacing-3);
    right: var(--spacing-3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
}

.gallery-zoom:hover {
    color: var(--ozon-blue);
    border-color: var(--ozon-blue);
}

.gallery-zoom svg {
    width: 20px;
    height: 20px;
}

/* Sale Badge on Gallery */
.gallery-main .sale-badge {
    position: absolute;
    top: var(--spacing-3);
    left: var(--spacing-3);
    padding: var(--spacing-1) var(--spacing-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-inverse);
    background-color: var(--ozon-pink);
    border-radius: var(--radius-sm);
    z-index: 2;
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: var(--spacing-4);
    right: var(--spacing-4);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.lightbox-close svg {
    width: 32px;
    height: 32px;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 70vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: var(--spacing-4);
}

.lightbox-next {
    right: var(--spacing-4);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-thumbs {
    display: flex;
    gap: var(--spacing-2);
    margin-top: var(--spacing-4);
    padding: var(--spacing-2);
    overflow-x: auto;
}

.lightbox-thumb {
    width: 56px;
    height: 56px;
    padding: 0;
    background: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.lightbox-thumb:hover,
.lightbox-thumb.active {
    opacity: 1;
    border-color: white;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Gallery Layout */
@media (max-width: 767px) {
    .product-gallery {
        flex-direction: column-reverse;
    }

    .gallery-thumbs {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .gallery-thumb {
        width: 56px;
        height: 56px;
    }
}

/* ==========================================================================
   Product Info Column — Utkonos Style Card
   ========================================================================== */

.product-info-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #E6E9E6;
    border-radius: 12px;
    padding: 32px;
    background: #fff;
    font-family: Gilroy, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #040507;
}

/* Title */
.product-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    color: #040507;
    margin: 0;
}

/* Rating Row — star + score + reviews + SKU */
.product-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

.rating-star {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 4px;
    background-color: #FFF4D9;
    border-radius: 100%;
    color: #FFB900;
}

.rating-star svg {
    width: 24px;
    height: 24px;
    fill: #FFB900;
}

.rating-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    color: #FFC709;
}

.product-reviews-link {
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #040507;
    text-decoration: none;
}

.product-reviews-link:hover {
    text-decoration: underline;
    color: #040507;
}

.product-reviews-empty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-tertiary);
    text-decoration: none;
}

.product-reviews-empty > span {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.product-reviews-empty svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.product-reviews-empty:hover {
    color: var(--color-accent);
}

.product-reviews-empty:hover svg {
    color: var(--color-accent);
}

/* Product Rating Summary (Utkonos-style) */
.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-3);
}

.product-rating-summary .rating-star {
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
}

.product-rating-summary .rating-star svg {
    width: 20px;
    height: 20px;
    fill: #FFB900;
    color: #FFB900;
}

.product-rating-summary .rating-value {
    font-size: 16px;
    font-weight: 600;
    color: #FFB900;
}

.product-rating-summary .rating-count {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
}

.product-rating-summary .rating-count:hover {
    text-decoration: underline;
    color: var(--color-accent);
}

.product-rating-summary .rating-empty {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-tertiary);
    text-decoration: none;
}

.product-rating-summary .rating-empty svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--text-tertiary);
}

.product-rating-summary .rating-empty:hover {
    color: var(--color-accent);
}

.product-rating-summary .rating-empty:hover svg {
    stroke: var(--color-accent);
}

.product-sku {
    font-size: 16px;
    color: #95999B;
}

/* Category Chip */
.product-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-category-chip {
    display: inline-flex;
    flex-direction: column;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background-color: #F2F8FF;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.product-category-chip:hover {
    background-color: #E5F0FF;
}

.product-category-chip .chip-label {
    font-size: 12px;
    font-weight: 500;
    color: #95999B;
    line-height: 16px;
}

.product-category-chip .chip-value {
    font-size: 14px;
    font-weight: 700;
    color: #0DB14B;
    line-height: 18px;
}

/* Price Section (inside product-info card) */
.product-price-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-price-section .price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price-section .price-current {
    font-size: 28px;
    font-weight: 700;
    line-height: 34px;
    color: #040507;
}

.product-price-section .price-current.sale {
    color: #EF4545;
}

.product-price-section .price-current .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
}

.product-price-section .price-discount-pill {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 10px;
    color: #fff;
    background: #EF4545;
    border-radius: 18px;
    padding: 6px;
}

.product-price-section .price-old {
    font-size: 16px;
    color: #95999B;
    text-decoration: line-through;
}

.product-price-section .price-old .woocommerce-Price-amount {
    font-size: inherit;
}

/* Buy Row — cart button + wishlist */
.product-buy-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-buy-row .cart {
    flex: 1;
    display: flex;
    align-items: center;
}

.product-buy-row .btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 6px 40px;
    background: #0DB14B;
    color: #fff;
    font-family: Gilroy, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    border-radius: 8px;
    border: 1px solid #0DB14B;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.product-buy-row .btn-add-to-cart:hover {
    background: #027510;
}

.product-buy-row .btn-add-to-cart svg {
    width: 20px;
    height: 20px;
}

.product-buy-row .wishlist-btn {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 1px solid #D5D9D9;
    border-radius: 8px;
    background: #fff;
    color: #898989;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    box-shadow: none;
    transform: none;
}

.product-buy-row .wishlist-btn:hover {
    color: #EF4545;
    border-color: #EF4545;
}

.product-buy-row .wishlist-btn svg {
    width: 20px;
    height: 20px;
}

.product-buy-row .btn-notify {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    height: 48px;
    padding: 12px 24px;
    background: #fff;
    color: #040507;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid #E6E9E6;
    cursor: pointer;
    transition: border-color 0.2s;
}

.product-buy-row .btn-notify:hover {
    border-color: #040507;
}

.product-buy-row .btn-notify svg {
    width: 18px;
    height: 18px;
}

.product-buy-row .out-of-stock-notice {
    flex: 1;
    padding: 12px;
    background-color: rgba(249, 17, 85, 0.1);
    color: #EF4545;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

/* Stock Status Row */
.product-stock-row {
    display: flex;
    align-items: center;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
}

.stock-status.in-stock {
    color: #0DB14B;
}

.stock-status.out-of-stock {
    color: #EF4545;
}

.stock-status svg {
    width: 16px;
    height: 16px;
}

/* Short Description */
.product-short-description {
    font-size: 14px;
    color: #95999B;
    line-height: 1.5;
}

.product-short-description p {
    margin: 0;
}

/* Product Specifications Preview */
.product-specs-preview {
    padding: var(--spacing-4);
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
}

.specs-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--spacing-3) 0;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.specs-item {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-3);
    font-size: var(--font-size-sm);
    padding: var(--spacing-2) 0;
    border-bottom: 1px dashed var(--border-default);
}

.specs-item:last-child {
    border-bottom: none;
}

.specs-name {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.specs-value {
    color: var(--text-primary);
    text-align: right;
}

.specs-more-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
    margin-top: var(--spacing-3);
    font-size: var(--font-size-sm);
    color: var(--ozon-blue);
    text-decoration: none;
}

.specs-more-link:hover {
    text-decoration: underline;
}

.specs-more-link svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Product Sidebar Column — Utkonos Style
   ========================================================================== */

.product-buybox-column {
    position: relative;
}

@media (max-width: 1199px) {
    .product-buybox-column {
        grid-column: 1 / -1;
    }
}

.product-buybox {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-4));
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #E6E9E6;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Delivery Section */
.buybox-delivery {
    padding: var(--spacing-4);
    background-color: var(--bg-section);
    border-radius: var(--radius-md);
}

.delivery-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--spacing-3) 0;
}

.buybox-delivery .delivery-option {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    padding: var(--spacing-2) 0;
}

.buybox-delivery .delivery-option:not(:last-child) {
    border-bottom: 1px solid var(--border-default);
    padding-bottom: var(--spacing-3);
    margin-bottom: var(--spacing-2);
}

.buybox-delivery .delivery-icon {
    color: var(--ozon-blue);
    flex-shrink: 0;
}

.buybox-delivery .delivery-icon svg {
    width: 20px;
    height: 20px;
}

.delivery-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.delivery-method {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.delivery-date {
    font-size: var(--font-size-sm);
    color: var(--ozon-green);
}

.delivery-price {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.delivery-price.free {
    color: var(--ozon-green);
    font-weight: var(--font-weight-medium);
}

/* Seller Info */
.buybox-seller {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-sm);
    flex-wrap: wrap;
}

.seller-label {
    color: var(--text-tertiary);
}

.seller-name {
    color: var(--ozon-blue);
    font-weight: var(--font-weight-medium);
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--ozon-gold);
    margin-left: auto;
}

.seller-rating svg {
    width: 14px;
    height: 14px;
}

.seller-rating span {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

/* Returns Info */
.buybox-returns {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.buybox-returns svg {
    width: 18px;
    height: 18px;
    color: var(--ozon-green);
}

/* ==========================================================================
   Product Sections - Utkonos Style (No Tabs)
   ========================================================================== */

/* Section Navigation */
.product-sections-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E8E8E8;
}

.section-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #040507;
    text-decoration: none;
    transition: color 0.2s;
}

.section-nav-link:hover {
    color: #0DB14B;
}

.nav-rating {
    display: flex;
    gap: 2px;
}

.nav-star {
    color: #E8E8E8;
    font-size: 14px;
}

.nav-star.filled {
    color: #FFB900;
}

/* Product Sections */
.product-section {
    margin-top: 32px;
    padding-top: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #040507;
    margin: 0 0 20px 0;
}

.section-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.section-star {
    color: #E8E8E8;
    font-size: 18px;
}

.section-star.filled {
    color: #FFB900;
}

.section-rating-count {
    font-size: 16px;
    font-weight: 400;
    color: #0DB14B;
}

/* Attributes Section - Utkonos style with dotted lines */
.attributes-table {
    display: flex;
    flex-direction: column;
}

.attribute-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #F5F5F5;
}

.attribute-row:last-child {
    border-bottom: none;
}

.attribute-name {
    flex-shrink: 0;
    font-size: 14px;
    color: #6B7280;
    min-width: 180px;
}

.attribute-dots {
    display: none;
}

.attribute-value {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: #040507;
    max-width: 50%;
    text-align: right;
}

/* Description Section */
.product-description-content {
    font-size: 14px;
    line-height: 1.6;
    color: #040507;
}

.product-description-content p {
    margin: 0 0 16px 0;
}

.product-description-content p:last-child {
    margin-bottom: 0;
}

.product-description-content ul,
.product-description-content ol {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.product-description-content li {
    margin-bottom: 8px;
}

/* Reviews Section */
.product-reviews-section {
    margin-top: 40px;
}

.product-reviews-content #reviews {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-reviews-content .woocommerce-Reviews-title {
    display: none;
}

.product-reviews-content .commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-reviews-content .review {
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
}

.product-reviews-content .comment_container {
    display: flex;
    gap: 16px;
}

.product-reviews-content .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.product-reviews-content .comment-text {
    flex: 1;
}

.product-reviews-content .star-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.product-reviews-content .meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-reviews-content .woocommerce-review__author {
    font-weight: 600;
    color: #040507;
}

.product-reviews-content .woocommerce-review__published-date {
    font-size: 12px;
    color: #9CA3AF;
}

.product-reviews-content .description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

/* Review Form */
.product-reviews-content #review_form_wrapper {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E8E8E8;
}

.product-reviews-content .comment-reply-title {
    font-size: 18px;
    font-weight: 600;
    color: #040507;
    margin: 0 0 16px 0;
}

.product-reviews-content .comment-form-rating {
    margin-bottom: 16px;
}

.product-reviews-content .comment-form-rating label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}

.product-reviews-content .stars,
.product-reviews-content p.stars {
    display: block;
    margin-bottom: 16px;
}

.product-reviews-content p.stars span[role="group"] {
    display: inline-flex !important;
    gap: 4px;
}

.product-reviews-content .stars a,
.product-reviews-content p.stars a {
    display: inline-block !important;
    position: relative;
    width: 28px !important;
    height: 28px !important;
    color: transparent !important;
    font-size: 0 !important;
    text-decoration: none;
    vertical-align: middle;
}

.product-reviews-content .stars a::before,
.product-reviews-content p.stars a::before {
    content: "★";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px !important;
    color: #D1D5DB;
    transition: color 0.2s;
}

.product-reviews-content .stars a:hover::before,
.product-reviews-content .stars a.active::before,
.product-reviews-content p.stars a:hover::before,
.product-reviews-content p.stars a.active::before,
.product-reviews-content p.stars.selected a.active::before,
.product-reviews-content p.stars:hover a::before {
    color: #FFB900;
}

.product-reviews-content p.stars:hover a:hover ~ a::before {
    color: #D1D5DB;
}

.product-reviews-content .comment-form-comment textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #D5D9D9;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}

.product-reviews-content .comment-form-comment textarea:focus {
    outline: none;
    border-color: #0DB14B;
}

.product-reviews-content .form-submit .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #0DB14B;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.product-reviews-content .form-submit .submit:hover {
    background: #027510;
}

/* No reviews message */
.product-reviews-content .woocommerce-noreviews {
    text-align: center;
    padding: 40px 20px;
    color: #6B7280;
    font-size: 14px;
}

/* ==========================================================================
   Product Tabs Section - OZON Style (Legacy)
   ========================================================================== */

.product-tabs-section {
    margin-top: var(--spacing-8);
}

.woocommerce-tabs {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.woocommerce-tabs .wc-tabs {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--border-default);
    overflow-x: auto;
    scrollbar-width: none;
}

.woocommerce-tabs .wc-tabs::-webkit-scrollbar {
    display: none;
}

.woocommerce-tabs .wc-tabs li {
    flex-shrink: 0;
    margin: 0;
}

.woocommerce-tabs .wc-tabs li a {
    display: block;
    padding: var(--spacing-4) var(--spacing-5);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.woocommerce-tabs .wc-tabs li a:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.woocommerce-tabs .wc-tabs li.active a {
    color: var(--ozon-blue);
    border-bottom-color: var(--ozon-blue);
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: var(--spacing-6);
}

.woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--spacing-4) 0;
}

.woocommerce-tabs .woocommerce-Tabs-panel p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Additional Information Table */
.shop_attributes {
    width: 100%;
    border-collapse: collapse;
}

.shop_attributes tr {
    border-bottom: 1px solid var(--border-default);
}

.shop_attributes tr:last-child {
    border-bottom: none;
}

.shop_attributes th,
.shop_attributes td {
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--font-size-sm);
    text-align: left;
}

.shop_attributes th {
    color: var(--text-tertiary);
    font-weight: var(--font-weight-normal);
    width: 35%;
}

.shop_attributes td {
    color: var(--text-primary);
}

.shop_attributes td p {
    margin: 0;
}

/* Reviews Section */
#reviews {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

#reviews .woocommerce-Reviews-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.commentlist .review {
    padding: var(--spacing-4);
    background-color: var(--bg-section);
    border-radius: var(--radius-lg);
}

.commentlist .review .comment_container {
    display: flex;
    gap: var(--spacing-4);
}

.commentlist .review img.avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.commentlist .review .comment-text {
    flex: 1;
}

.commentlist .review .star-rating {
    margin-bottom: var(--spacing-2);
}

.commentlist .review .meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-2);
}

.commentlist .review .woocommerce-review__author {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.commentlist .review .woocommerce-review__dash {
    color: var(--text-tertiary);
}

.commentlist .review .woocommerce-review__published-date {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

.commentlist .review .description p {
    margin: 0;
    color: var(--text-secondary);
}

/* Review Form */
#review_form_wrapper {
    padding: var(--spacing-4);
    background-color: var(--bg-section);
    border-radius: var(--radius-lg);
}

#review_form .comment-reply-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--spacing-4) 0;
}

.comment-form-rating {
    margin-bottom: var(--spacing-4);
}

.comment-form-rating label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-2);
}

.comment-form-comment textarea {
    width: 100%;
    min-height: 120px;
    padding: var(--spacing-3);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    resize: vertical;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--ozon-blue);
    box-shadow: 0 0 0 3px var(--ozon-blue-light);
}

/* ==========================================================================
   Related Products
   ========================================================================== */

.related-products-section {
    margin-top: var(--spacing-8);
}

/* Fix: WooCommerce wraps related products in <section class="related products"> —
   the "products" class triggers our grid. Override it for the section wrapper. */
.related-products-section section.related.products {
    display: block;
}

.related-products-section section.related h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    color: #040507;
    margin: 0 0 24px;
}

.related-products-section ul.products {
    width: 100%;
    grid-template-columns: repeat(5, 1fr);
}

.related-products-section .product-card-image-wrapper {
    height: 160px;
    padding: 8px;
}

.related-products-section .product-card-content {
    padding: 8px 10px 10px;
}

.related-products-section .product-card-title {
    font-size: 13px;
    line-height: 17px;
}

.related-products-section .product-card-price .price-current {
    font-size: 16px;
    line-height: 20px;
}

.related-products-section .product-card-price .price-old {
    font-size: 11px;
    line-height: 14px;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

/* ==========================================================================
   Cart Page — Utkonos Style
   ========================================================================== */
.cart-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .cart-page-layout {
        grid-template-columns: 1fr 360px;
        align-items: start;
    }
}

/* Cart Main */
.cart-main {
    min-width: 0;
}

/* Cart Header */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cart-header-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.cart-title {
    font-size: 24px;
    font-weight: 700;
    color: #040507;
    line-height: 28px;
}

.cart-count {
    font-size: 16px;
    color: #95999B;
}

.cart-clear-link {
    font-size: 14px;
    font-weight: 700;
    color: #0DB14B;
    text-decoration: none;
    transition: color 0.15s;
}

.cart-clear-link:hover {
    color: #027510;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid #E6E9E6;
    align-items: center;
}

@media (min-width: 768px) {
    .cart-item {
        grid-template-columns: 100px 1fr auto auto auto;
        gap: 20px;
    }
}

/* Cart Item Image */
.cart-item-image {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cart-item-image {
        width: 100px;
        height: 100px;
    }
}

.cart-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.cart-item-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #EF4545;
    border-radius: 12px;
    z-index: 2;
    line-height: 16px;
}

/* Cart Item Details */
.cart-item-details {
    min-width: 0;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 500;
    color: #040507;
    line-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-name a {
    color: inherit;
    text-decoration: none;
}

.cart-item-name a:hover {
    color: #0DB14B;
}

/* Quantity Stepper */
.cart-item-quantity {
    display: flex;
    align-items: center;
}

.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
}

.qty-stepper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #0DB14B;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.15s;
    flex-shrink: 0;
    padding: 0;
}

.qty-stepper-btn:hover {
    background: #027510;
}

.qty-stepper-btn:disabled {
    background: #E6E9E6;
    color: #95999B;
    cursor: not-allowed;
}

.qty-stepper-btn svg {
    width: 14px;
    height: 14px;
}

.qty-stepper-input {
    width: 44px;
    height: 36px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #040507;
    background: #F5F7F7;
    border: none;
    border-radius: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-stepper-input::-webkit-outer-spin-button,
.qty-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart Item Price */
.cart-item-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
}

.cart-price-current {
    font-size: 18px;
    font-weight: 700;
    color: #040507;
    line-height: 22px;
}

.cart-price-current.sale {
    color: #EF4545;
}

.cart-price-old {
    font-size: 14px;
    color: #95999B;
    text-decoration: line-through;
    line-height: 18px;
}

/* Cart Item Actions */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #E6E9E6;
    border-radius: 8px;
    background: #fff;
    color: #95999B;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    padding: 0;
}

.cart-action-btn:hover {
    border-color: #040507;
    color: #040507;
}

.cart-action-btn.cart-delete-btn:hover {
    border-color: #EF4545;
    color: #EF4545;
}

.cart-action-btn svg {
    width: 20px;
    height: 20px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 991px) {
    .cart-sidebar {
        position: static;
    }
}

/* Cart Totals Card */
.cart-totals-card {
    border: 1px solid #E6E9E6;
    border-radius: 12px;
    padding: 24px;
    background: #fff;
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.cart-totals-total {
    padding-bottom: 16px;
}

.cart-totals-total .cart-totals-label {
    font-size: 20px;
    font-weight: 700;
    color: #040507;
}

.cart-totals-total .cart-totals-value {
    font-size: 20px;
    font-weight: 700;
    color: #040507;
}

.cart-totals-breakdown .cart-totals-label {
    font-size: 14px;
    color: #95999B;
}

.cart-totals-breakdown .cart-totals-value {
    font-size: 14px;
    color: #040507;
}

.cart-totals-divider {
    height: 1px;
    background: #E6E9E6;
    margin: 16px 0;
}

.cart-totals-checkout {
    margin-top: 0;
}

.cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    background: #0DB14B;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s;
}

.cart-checkout-btn:hover {
    background: #027510;
    color: #fff;
}

/* Mobile cart item layout adjustments */
@media (max-width: 767px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
    }

    .cart-item-quantity,
    .cart-item-price-col,
    .cart-item-actions {
        grid-column: 1 / -1;
    }

    .cart-item-quantity {
        justify-content: flex-start;
    }

    .cart-item-price-col {
        align-items: flex-start;
    }

    .cart-item-actions {
        justify-content: flex-end;
    }
}

/* ==========================================================================
   Checkout Page — Utkonos Style
   ========================================================================== */

.checkout-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .checkout-page-layout {
        grid-template-columns: 1fr 380px;
    }
}

/* Checkout Main */
.checkout-main {
    min-width: 0;
}

/* Checkout Section */
.checkout-section {
    background-color: #fff;
    border: 1px solid #E6E9E6;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.checkout-section-title {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #040507;
    margin-bottom: 20px;
}

/* WooCommerce Form Fields */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row-wide {
    grid-column: 1 / -1;
}

.form-row label {
    font-size: 13px;
    font-weight: 500;
    color: #95999B;
}

.form-row label .required {
    color: #EF4545;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: #040507;
    border: 1px solid #E6E9E6;
    border-radius: 8px;
    background-color: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #0DB14B;
    box-shadow: 0 0 0 3px rgba(13, 177, 75, 0.15);
}

.form-row.woocommerce-invalid input,
.form-row.woocommerce-invalid select {
    border-color: #EF4545;
    box-shadow: 0 0 0 3px rgba(239, 69, 69, 0.1);
}

.form-row input::placeholder {
    color: #95999B;
}

/* Select2 overrides for country/state selects */
.checkout-section .select2-container--default .select2-selection--single {
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #E6E9E6;
    border-radius: 8px;
}

.checkout-section .select2-container--default .select2-selection--single:focus,
.checkout-section .select2-container--default.select2-container--focus .select2-selection--single,
.checkout-section .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #0DB14B;
    box-shadow: 0 0 0 3px rgba(13, 177, 75, 0.15);
}

.checkout-section .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
    color: #040507;
    padding-left: 0;
}

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

/* Checkout Sidebar */
.checkout-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

@media (max-width: 991px) {
    .checkout-sidebar {
        position: static;
    }
}

/* Order Summary */
.checkout-order-summary {
    background-color: #fff;
    border: 1px solid #E6E9E6;
    border-radius: 12px;
    padding: 24px;
}

.order-summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #040507;
    margin-bottom: 20px;
}

.order-summary-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E6E9E6;
    margin-bottom: 16px;
}

.order-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.order-item-image {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E6E9E6;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.order-item-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background-color: #0DB14B;
    border-radius: 50%;
}

.order-item-details {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    display: block;
    font-size: 14px;
    color: #040507;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-item-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #040507;
}

.order-item-price.sale {
    color: #EF4545;
}

.order-item-price-old {
    font-size: 12px;
    color: #95999B;
    text-decoration: line-through;
}

/* Order Summary Totals */
.order-summary-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-row .label {
    font-size: 14px;
    color: #95999B;
}

.summary-row .value {
    font-size: 14px;
    color: #040507;
}

.summary-row.total {
    padding-top: 16px;
    margin-top: 6px;
    border-top: 1px solid #E6E9E6;
}

.summary-row.total .label {
    font-size: 20px;
    font-weight: 700;
    color: #040507;
}

.summary-row.total .value {
    font-size: 20px;
    font-weight: 700;
    color: #040507;
}

/* Checkout Agreement */
.checkout-agreement {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #E6E9E6;
}

.checkout-agreement-text {
    font-size: 12px;
    color: #95999B;
    line-height: 1.6;
}

.checkout-agreement-text a {
    color: #0DB14B;
    text-decoration: none;
}

.checkout-agreement-text a:hover {
    text-decoration: underline;
}

/* Hide default WooCommerce headings (we have our own section titles) */
.checkout-section .woocommerce-billing-fields > h3,
.checkout-section .woocommerce-shipping-fields > h3,
.checkout-section .woocommerce-additional-fields > h3,
.checkout-section #ship-to-different-address > span {
    display: none;
}

/* Hide default order review table in payment section (we have sidebar summary) */
.checkout-section .woocommerce-checkout-review-order-table {
    display: none;
}

/* Payment Methods */
.woocommerce-checkout-payment {
    margin-top: 0;
}

.wc_payment_methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.wc_payment_method {
    padding: 16px;
    background-color: #fff;
    border: 1px solid #E6E9E6;
    border-radius: 8px;
    transition: border-color 0.15s, background-color 0.15s;
}

.wc_payment_method:has(input:checked) {
    border-color: #0DB14B;
    background-color: rgba(13, 177, 75, 0.04);
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #040507;
}

.wc_payment_method label img {
    max-height: 24px;
    width: auto;
}

.wc_payment_method input[type="radio"] {
    accent-color: #0DB14B;
}

.payment_box {
    padding: 12px 16px;
    margin-top: 12px;
    background-color: #F5F7F7;
    border-radius: 8px;
}

.payment_box p {
    font-size: 13px;
    color: #95999B;
    margin: 0;
}

/* Place Order Button */
#place_order {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    background: #0DB14B;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s;
}

#place_order:hover {
    background: #027510;
}

#place_order:disabled {
    background: #95999B;
    cursor: not-allowed;
}

/* WooCommerce notices on checkout */
.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message {
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Shipping methods in checkout */
.woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-shipping-methods li {
    padding: 10px 0;
}

.woocommerce-shipping-methods li label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #040507;
}

.woocommerce-shipping-methods li input[type="radio"] {
    accent-color: #0DB14B;
}

/* Checkbox fields (create account, ship to different address) */
.woocommerce-account-fields,
.woocommerce-shipping-fields {
    margin-top: 16px;
}

.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #040507;
    cursor: pointer;
}

.woocommerce-form__label-for-checkbox input[type="checkbox"] {
    accent-color: #0DB14B;
    width: 18px;
    height: 18px;
}

/* Login form on checkout */
.woocommerce-form-login-toggle .woocommerce-info {
    background-color: #F5F7F7;
    border: 1px solid #E6E9E6;
    border-radius: 8px;
    padding: 16px;
    color: #040507;
    font-size: 14px;
}

.woocommerce-form-login-toggle .woocommerce-info a {
    color: #0DB14B;
    font-weight: 600;
}

.woocommerce-form-coupon-toggle .woocommerce-info {
    background-color: #F5F7F7;
    border: 1px solid #E6E9E6;
    border-radius: 8px;
    padding: 16px;
    color: #040507;
    font-size: 14px;
}

.woocommerce-form-coupon-toggle .woocommerce-info a {
    color: #0DB14B;
    font-weight: 600;
}

/* Privacy policy text in checkout */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-top: 16px;
}

.woocommerce-checkout .woocommerce-privacy-policy-text p {
    font-size: 13px;
    color: #95999B;
    line-height: 1.5;
}

.woocommerce-checkout .woocommerce-privacy-policy-text a {
    color: #0DB14B;
}

/* Coupon form when expanded */
.woocommerce-form-coupon {
    border: 1px solid #E6E9E6;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.woocommerce-form-coupon .form-row-first {
    margin-bottom: 12px;
}

.woocommerce-form-coupon .form-row-first input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E6E9E6;
    border-radius: 8px;
    font-size: 15px;
}

.woocommerce-form-coupon .form-row-last button {
    background: #0DB14B;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.woocommerce-form-coupon .form-row-last button:hover {
    background: #027510;
}

/* ==========================================================================
   My Account
   ========================================================================== */

.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
}

@media (min-width: 768px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 240px 1fr;
    }
}

/* Account Navigation */
.woocommerce-MyAccount-navigation {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2);
}

.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-direction: column;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: var(--bg-hover);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--ozon-blue-light);
    color: var(--ozon-blue);
}

/* Account Content */
.woocommerce-MyAccount-content {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
}

/* Orders Table */
.woocommerce-orders-table {
    width: 100%;
}

.woocommerce-orders-table thead th {
    padding: var(--spacing-3);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border-default);
}

.woocommerce-orders-table tbody td {
    padding: var(--spacing-3);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-default);
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    color: var(--ozon-blue);
    font-weight: var(--font-weight-medium);
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
    text-transform: capitalize;
}

/* ==========================================================================
   WooCommerce Notices
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-4);
}

.woocommerce-message {
    background-color: rgba(0, 168, 120, 0.1);
    color: var(--ozon-green);
}

.woocommerce-info {
    background-color: var(--ozon-blue-light);
    color: var(--ozon-blue);
}

.woocommerce-error {
    background-color: rgba(249, 17, 85, 0.1);
    color: var(--ozon-pink);
}

.woocommerce-error li {
    list-style: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none;
}

/* ==========================================================================
   WooCommerce Buttons
   ========================================================================== */

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--text-inverse);
    background-color: var(--ozon-blue);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
    background-color: var(--ozon-blue-dark);
}

.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt {
    background-color: var(--ozon-pink);
}

.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button.alt:hover {
    background-color: #d40e49;
}

/* ==========================================================================
   Mini Cart Widget
   ========================================================================== */

.widget_shopping_cart {
    padding: var(--spacing-4);
}

.widget_shopping_cart .woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: var(--spacing-6);
    color: var(--text-secondary);
}

.widget_shopping_cart .woocommerce-mini-cart {
    max-height: 300px;
    overflow-y: auto;
}

.widget_shopping_cart .woocommerce-mini-cart-item {
    display: flex;
    gap: var(--spacing-3);
    padding: var(--spacing-3) 0;
    border-bottom: 1px solid var(--border-default);
}

.widget_shopping_cart .woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}

.widget_shopping_cart .woocommerce-mini-cart-item a:not(.remove) {
    display: flex;
    gap: var(--spacing-3);
    flex: 1;
    min-width: 0;
}

.widget_shopping_cart .woocommerce-mini-cart-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.widget_shopping_cart .woocommerce-mini-cart-item .quantity {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.widget_shopping_cart .woocommerce-mini-cart-item .remove {
    color: var(--text-tertiary);
}

.widget_shopping_cart .woocommerce-mini-cart-item .remove:hover {
    color: var(--ozon-pink);
}

.widget_shopping_cart .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-3) 0;
    font-weight: var(--font-weight-semibold);
}

.widget_shopping_cart .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.widget_shopping_cart .woocommerce-mini-cart__buttons .button {
    width: 100%;
}

/* ==========================================================================
   Product Cards — Utkonos Style (exact match)
   ========================================================================== */

/* Products Grid — Utkonos: no row-gap, continuous divider lines */
.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0;
    row-gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (min-width: 576px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .products {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card — Utkonos flat */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 0;
    padding: 12px 0;
    box-shadow: none;
    cursor: pointer;
}

.product-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
    box-shadow: none;
    z-index: 2;
}

.product-card:hover .product-card-inner {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Product Image — fixed height, object-fit contain for any aspect ratio */
.product-card-image-wrapper {
    position: relative;
    display: block;
    height: 220px;
    padding: 12px;
    overflow: hidden;
    background-color: #fff;
    border-radius: 0;
}

.product-card-image-wrapper img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.product-badges .badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
}

.badge.badge-sale {
    background-color: #EF4545;
    color: #fff;
}

.badge.badge-new {
    background-color: #00BE64;
    color: #fff;
}

.badge.badge-hit {
    background-color: #FF7500;
    color: #fff;
}

.badge.badge-express {
    background-color: #389AEB;
    color: #fff;
}

/* Wishlist Button in Product Card */
.product-card-inner > .wishlist-btn,
.product-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #9E9E9E;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s, transform 0.2s;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card-inner > .wishlist-btn:hover,
.product-wishlist-btn:hover {
    color: #EF4545;
    background-color: #fff;
    transform: scale(1.1);
}

.product-card-inner > .wishlist-btn svg,
.product-wishlist-btn svg {
    width: 18px;
    height: 18px;
}

.product-card-inner > .wishlist-btn.is-active,
.product-wishlist-btn.active,
.product-wishlist-btn.is-active {
    color: #EF4545;
    background-color: #fff;
}

.product-card-inner > .wishlist-btn.is-active svg,
.product-wishlist-btn.active svg,
.product-wishlist-btn.is-active svg {
    fill: currentColor;
}

.product-card-inner > .wishlist-btn.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Product Content — Utkonos spacing */
.product-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0;
    gap: 0;
}

/* Product Title — Utkonos: 14px/18px, normal weight, #040507, max 3 lines */
.product-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: #040507;
    text-decoration: none;
}

.product-card-title:hover {
    color: #040507;
    text-decoration: none;
}

/* Product Card Rating */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 16px;
}

.card-rating-star {
    display: flex;
    align-items: center;
    color: #FFB900;
}

.card-rating-star svg {
    width: 14px;
    height: 14px;
}

.card-rating-value {
    font-weight: 600;
    color: #040507;
}

.card-rating-count {
    color: #95999B;
}

.card-rating-count::before {
    content: "(";
}

.card-rating-count::after {
    content: ")";
}

/* Product Bottom: Price + Cart Button — Utkonos: center-aligned */
.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    gap: 8px;
}

/* Product Price — Utkonos typography */
.product-card-price {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Current price: 20px bold */
.product-card-price .price-current {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #040507;
}

/* Sale price: red #EF4545 */
.product-card-price .price-current.sale {
    color: #EF4545;
}

/* Old price + discount badge row */
.price-old-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Old price: 12px, strikethrough, #95999B */
.product-card-price .price-old {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #95999B;
    text-decoration: line-through;
}

/* Discount pill: 9px bold, #EF4545 bg, pill shape */
.price-discount-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    font-size: 9px;
    font-weight: 700;
    line-height: 10px;
    color: #fff;
    background-color: #EF4545;
    border-radius: 18px;
}

/* Cart Icon Button — Utkonos: #0DB14B default, #027510 hover */
.product-card-cart-btn {
    flex-shrink: 0;
}

.product-cart-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background-color: #0DB14B;
    color: #fff;
    border: 1px solid #0DB14B;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.product-cart-icon-btn:hover {
    background-color: #027510;
    border-color: #027510;
    color: #fff;
}

.product-cart-icon-btn svg {
    width: 24px;
    height: 24px;
}

.product-cart-icon-btn.disabled {
    background-color: #C9C9C9;
    border-color: #C9C9C9;
    color: #fff;
    cursor: default;
}

/* Product Rating (optional) */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-rating .rating-value {
    font-size: 11px;
    font-weight: 600;
    color: #040507;
}

.product-card-rating .rating-star {
    display: flex;
    color: #FFC709;
}

.product-card-rating .rating-star svg {
    width: 12px;
    height: 12px;
}

.product-card-rating .rating-count {
    font-size: 11px;
    color: #95999B;
}

/* Product Card - List View */
.products.list-view {
    grid-template-columns: 1fr;
    gap: var(--spacing-3);
}

.products.list-view .product-card {
    flex-direction: row;
}

.products.list-view .product-card-image-wrapper {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    padding: 8px;
}

@media (min-width: 576px) {
    .products.list-view .product-card-image-wrapper {
        width: 200px;
        height: 200px;
    }
}

.products.list-view .product-card-inner {
    flex-direction: row;
    width: 100%;
}

.products.list-view .product-card-content {
    flex: 1;
    padding: var(--spacing-4);
}

.products.list-view .product-card-title {
    font-size: var(--font-size-base);
    -webkit-line-clamp: 3;
}

/* Out of Stock — subtle opacity on entire card */
.product-card.outofstock {
    opacity: 0.85;
}

/* Section Header - Ozon Style */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-4);
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.section-link {
    font-size: var(--font-size-sm);
    color: var(--ozon-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
}

.section-link:hover {
    text-decoration: underline;
}

.section-link svg {
    width: 16px;
    height: 16px;
}

/* Horizontal Product Slider */
.products-slider-wrapper {
    position: relative;
    margin: 0 calc(-1 * var(--container-padding));
    padding: 0 var(--container-padding);
}

.products-slider {
    display: flex;
    gap: var(--product-card-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--spacing-2);
}

.products-slider::-webkit-scrollbar {
    display: none;
}

.products-slider .product-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    .products-slider .product-card {
        flex: 0 0 220px;
    }
}

@media (min-width: 768px) {
    .products-slider .product-card {
        flex: 0 0 240px;
    }
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
}

.slider-nav:hover {
    background-color: var(--ozon-blue);
    color: var(--text-inverse);
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-nav.prev {
    left: var(--spacing-2);
}

.slider-nav.next {
    right: var(--spacing-2);
}

.slider-nav svg {
    width: 20px;
    height: 20px;
}

/* Promo Banners */
.promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-5);
    background: linear-gradient(135deg, var(--ozon-blue) 0%, #0033CC 100%);
    border-radius: var(--radius-lg);
    color: var(--text-inverse);
    overflow: hidden;
    position: relative;
}

.promo-banner-content {
    position: relative;
    z-index: 2;
}

.promo-banner-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-2);
}

.promo-banner-text {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--spacing-4);
}

.promo-banner .btn {
    background-color: var(--text-inverse);
    color: var(--ozon-blue);
}

.promo-banner .btn:hover {
    background-color: var(--bg-hover);
}
