/**
 * 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;
}

/* Hide number input spinners */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.price-input[type="number"] {
    -moz-appearance: textfield;
}

/* Price Slider — Ozon style dual-range slider */
.price-slider-wrapper {
    margin: 16px 0;
    padding: 0 4px;
}

.price-slider {
    position: relative;
    height: 24px;
}

.price-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    transform: translateY(-50%);
}

.price-slider-range {
    position: absolute;
    top: 50%;
    height: 4px;
    background: #0DB14B;
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
}

.price-slider-input {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.price-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #0DB14B;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s, box-shadow 0.15s;
}

.price-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.price-slider-input::-webkit-slider-thumb:active {
    transform: scale(1.15);
    background: #0DB14B;
    border-color: #0DB14B;
}

.price-slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #0DB14B;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s, box-shadow 0.15s;
}

.price-slider-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.price-slider-input::-moz-range-thumb:active {
    transform: scale(1.15);
    background: #0DB14B;
    border-color: #0DB14B;
}

.price-slider-input::-moz-range-track {
    background: transparent;
    border: none;
}

/* Price Apply Button */
.price-apply-btn {
    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;
}

.price-apply-btn:hover {
    background: #027510;
}

/* 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 {
    padding: 0 !important;
    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 {
    display: block !important;
    margin: auto !important;
    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 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    box-sizing: border-box;
    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);
}

/* Reviews with Photos — Ozon Style */
.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reviews-average {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-average .average-value {
    font-size: 32px;
    font-weight: 700;
    color: #040507;
}

.reviews-average .average-stars {
    display: flex;
    gap: 2px;
}

.reviews-average .average-stars .star {
    font-size: 18px;
    color: #E5E7EB;
}

.reviews-average .average-stars .star.filled {
    color: #F9A825;
}

.reviews-average .average-count {
    font-size: 14px;
    color: #727C85;
}

.btn-write-review {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0DB14B;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-write-review:hover {
    background: #027510;
}

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

/* Review Form Modal */
.review-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.review-form-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.review-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #E5E7EB;
}

.review-form-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.review-form-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}

.review-form-close:hover {
    background: #F5F5F5;
}

.review-form-close svg {
    width: 20px;
    height: 20px;
}

.review-form-container #review_form_wrapper {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 4px;
}

.star-rating-input .star {
    font-size: 28px;
    color: #E5E7EB;
    cursor: pointer;
    transition: color 0.15s, transform 0.1s;
}

.star-rating-input .star:hover,
.star-rating-input .star.active {
    color: #F9A825;
    transform: scale(1.1);
}

.star-rating-input .star.hovered {
    color: #F9A825;
}

/* Photo Upload */
.comment-form-photos {
    margin-top: 16px;
}

.comment-form-photos > label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.comment-form-photos .optional {
    font-weight: 400;
    color: #727C85;
}

.review-photos-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.review-photos-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.review-photo-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #F5F5F5;
}

.review-photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-photo-preview-item .remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.review-photo-preview-item .remove-photo svg {
    width: 12px;
    height: 12px;
    stroke: #fff;
}

.add-photo-btn {
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #F5F5F5;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.add-photo-btn:hover {
    border-color: #0DB14B;
    background: #F0FDF4;
}

.add-photo-btn svg {
    color: #727C85;
}

.add-photo-btn span {
    font-size: 10px;
    color: #727C85;
    text-align: center;
}

.photos-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #95999B;
}

/* Review List Item */
.reviews-list {
    margin-top: 24px;
}

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

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

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.review-author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-author {
    font-weight: 600;
    color: #040507;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #0DB14B;
}

.review-date {
    font-size: 13px;
    color: #727C85;
}

.review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.review-rating .star {
    font-size: 16px;
    color: #E5E7EB;
}

.review-rating .star.filled {
    color: #F9A825;
}

.review-content {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.review-content p {
    margin: 0;
}

.review-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.review-photo-link {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.review-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.review-photo-link:hover .review-photo {
    transform: scale(1.05);
}

.review-awaiting {
    margin-top: 12px;
    padding: 8px 12px;
    background: #FEF3C7;
    border-radius: 6px;
    font-size: 13px;
    color: #92400E;
}

/* Comment form fields */
.review-form-container .comment-form-author,
.review-form-container .comment-form-email {
    margin-bottom: 16px;
}

.review-form-container .comment-form-author label,
.review-form-container .comment-form-email label,
.review-form-container .comment-form-comment label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.review-form-container .comment-form-author input,
.review-form-container .comment-form-email input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
}

.review-form-container .comment-form-author input:focus,
.review-form-container .comment-form-email input:focus {
    outline: none;
    border-color: #0DB14B;
    box-shadow: 0 0 0 3px rgba(13, 177, 75, 0.1);
}

.review-form-container .form-submit {
    margin-top: 20px;
}

.review-form-container .form-submit input[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: #0DB14B;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.review-form-container .form-submit input[type="submit"]:hover {
    background: #027510;
}

/* ==========================================================================
   Related Products — Compact Style (Same as Brand Products)
   ========================================================================== */

.related-products-section {
    margin-top: 24px;
    padding: 20px 0;
    background: #f8fafc;
    border-radius: 12px;
}

/* 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;
    padding: 0 20px;
}

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

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

@media (max-width: 1199px) {
    .related-products-section ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .related-products-section ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .related-products-section {
        padding: 16px 0;
    }

    .related-products-section section.related.products {
        padding: 0 12px;
    }

    .related-products-section ul.products {
        gap: 10px;
    }

    .related-products-section section.related h2 {
        font-size: 16px;
    }
}

.related-products-section .product-card {
    border-radius: 12px;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
}

.related-products-section .product-card-image-wrapper {
    height: 220px;
    padding: 12px;
    overflow: hidden;
    background: #fff;
}

.related-products-section .product-card-image-wrapper img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 196px !important;
    object-fit: contain !important;
}

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

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

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

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

/* ==========================================================================
   Product Recommendations — Compact Style
   ========================================================================== */

.product-recommendations {
    margin-top: 24px;
    padding: 20px;
    border-top: none;
}

.recommendations-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: #040507;
    margin: 0 0 16px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 1199px) {
    .recommendations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .recommendations-title {
        font-size: 16px;
    }

    .product-recommendations {
        padding: 16px 12px;
    }
}

/* Compact card styles */
.recommendations-grid .product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    border: 1px solid var(--border-color, #e5e7eb);
    position: relative;
}

.recommendations-grid .product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.recommendations-grid .product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recommendations-grid .product-card-image-wrapper {
    position: relative;
    height: 220px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.recommendations-grid .product-card-image-wrapper img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 196px !important;
    object-fit: contain !important;
}

.recommendations-grid .product-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recommendations-grid .product-card-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    color: #040507;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s ease;
    height: 36px;
}

.recommendations-grid .product-card-title:hover {
    color: var(--primary-green, #00a046);
}

.recommendations-grid .product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.recommendations-grid .product-card-rating .card-rating-star {
    color: #facc15;
    display: flex;
}

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

.recommendations-grid .product-card-rating .card-rating-count {
    font-size: 12px;
    color: #9ca3af;
}

.recommendations-grid .product-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    gap: 12px;
}

.recommendations-grid .product-card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recommendations-grid .product-card-price .price-current {
    font-size: 15px;
    font-weight: 700;
    color: #040507;
}

.recommendations-grid .product-card-price .price-current.sale {
    color: var(--primary-green, #00a046);
}

.recommendations-grid .product-card-price .price-old-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.recommendations-grid .product-card-price .price-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.recommendations-grid .product-card-price .price-discount-pill {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--primary-green, #00a046);
    padding: 2px 6px;
    border-radius: 4px;
}

.recommendations-grid .product-card-cart-btn .add-to-cart-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-green, #00a046);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.recommendations-grid .product-card-cart-btn .add-to-cart-btn:hover {
    background: var(--primary-green-hover, #009966);
}

.recommendations-grid .product-card-cart-btn .add-to-cart-btn svg {
    width: 18px;
    height: 18px;
}

.brand-products-section,
.also-bought-section,
.related-products-section {
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 24px;
}

/* Ensure cards in all recommendation sections have visible borders */
.brand-products-section .product-card,
.also-bought-section .product-card,
.related-products-section .product-card,
.recommendations-grid .product-card {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
}

.brand-products-section .product-card:hover,
.also-bought-section .product-card:hover,
.related-products-section .product-card:hover,
.recommendations-grid .product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    z-index: 2;
}

/* Ensure cart buttons are green in all recommendation sections */
.brand-products-section .product-cart-icon-btn,
.also-bought-section .product-cart-icon-btn,
.related-products-section .product-cart-icon-btn {
    background-color: #0DB14B !important;
    border-color: #0DB14B !important;
    color: #fff !important;
}

.brand-products-section .product-cart-icon-btn:hover,
.also-bought-section .product-cart-icon-btn:hover,
.related-products-section .product-cart-icon-btn:hover {
    background-color: #027510 !important;
    border-color: #027510 !important;
}

.brand-products-section .product-cart-icon-btn.disabled,
.also-bought-section .product-cart-icon-btn.disabled,
.related-products-section .product-cart-icon-btn.disabled {
    background-color: #C9C9C9 !important;
    border-color: #C9C9C9 !important;
}

/* ==========================================================================
   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, 160, 70, 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: 8px;
    padding: 12px 0;
    box-shadow: none;
    cursor: pointer;
    overflow: hidden;
}

.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: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

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

.product-card-image-wrapper img,
.product-card-image-wrapper img.wp-post-image,
.product-card-image-wrapper img.attachment-woocommerce_thumbnail,
.product-card-image-wrapper .attachment-woocommerce_thumbnail,
.products .product-card-image-wrapper img,
.woocommerce .product-card-image-wrapper img,
.woocommerce-page .product-card-image-wrapper img,
ul.products li.product .product-card-image-wrapper img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 196px !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: auto !important;
}

/* Force contain for all product images */
.product-card .product-card-image-wrapper img[src],
.product-card-inner .product-card-image-wrapper img[src] {
    max-height: 196px !important;
    width: auto !important;
    height: auto !important;
}

/* 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;
}

/* Product Card Actions (Quick View, Compare) - below wishlist button */
.product-card-actions {
    position: absolute;
    top: 52px; /* Below wishlist button: 8px + 36px + 8px gap */
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.2s, transform 0.2s;
}

/* When discount badge exists, move actions further down */
.product-card-inner:has(.product-discount-badge) .product-card-actions {
    top: 88px; /* 44px (wishlist moved) + 36px + 8px gap */
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

/* Show wishlist button always if active */
.product-card-actions .wishlist-btn.is-active {
    opacity: 1;
}

/* Override global .wishlist-btn styles for buttons inside actions group */
.product-card-actions .wishlist-btn {
    position: static;
    top: auto;
    right: auto;
    transform: none;
}

.product-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #5C5C5C;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-action-btn:hover {
    transform: scale(1.08);
}

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

/* Quick View button */
.product-action-btn.quick-view-btn:hover {
    color: #0DB14B;
    background-color: #fff;
}

/* Compare button */
.product-action-btn.compare-btn:hover,
.product-action-btn.compare-btn.is-active {
    color: #005BFF;
    background-color: #fff;
}

.product-action-btn.compare-btn.is-active {
    background-color: #EBF3FF;
}

/* Wishlist button */
.product-action-btn.wishlist-btn:hover {
    color: #EF4545;
    background-color: #fff;
}

.product-action-btn.wishlist-btn.is-active {
    color: #EF4545;
    background-color: #FFEBEB;
}

.product-action-btn.wishlist-btn.is-active svg {
    fill: #EF4545;
}

/* Legacy Wishlist Button support */
.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);
}

/* ==========================================================================
   Quick View Modal
   ========================================================================== */

.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.quick-view-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.quick-view-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s;
}

.quick-view-modal.is-active .quick-view-content {
    transform: scale(1) translateY(0);
}

.quick-view-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
}

.quick-view-close:hover {
    background-color: #E0E0E0;
}

.quick-view-close svg {
    width: 20px;
    height: 20px;
    color: #333;
}

/* Loading State */
.quick-view-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.quick-view-modal.is-loading .quick-view-loading {
    display: block;
}

.quick-view-modal.is-loading .quick-view-body {
    opacity: 0.3;
}

.quick-view-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E0E0E0;
    border-top-color: #0DB14B;
    border-radius: 50%;
    animation: qv-spin 0.8s linear infinite;
}

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

/* Quick View Body */
.quick-view-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    transition: opacity 0.2s;
}

@media (max-width: 768px) {
    .quick-view-body {
        grid-template-columns: 1fr;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Gallery Section */
.qv-gallery {
    padding: 24px;
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qv-main-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 320px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.qv-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.qv-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.qv-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: #fff;
    transition: border-color 0.2s;
}

.qv-thumb:hover,
.qv-thumb.is-active {
    border-color: #0DB14B;
}

.qv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Info Section */
.qv-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 500px;
}

.qv-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qv-category {
    font-size: 12px;
    color: #0DB14B;
    text-decoration: none;
    padding: 4px 10px;
    background-color: #E8F8EE;
    border-radius: 12px;
}

.qv-category:hover {
    background-color: #D0F0DC;
}

.qv-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #040507;
    margin: 0;
}

.qv-title a {
    color: inherit;
    text-decoration: none;
}

.qv-title a:hover {
    color: #0DB14B;
}

.qv-sku {
    font-size: 13px;
    color: #9E9E9E;
}

.qv-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.qv-rating-stars svg {
    width: 18px;
    height: 18px;
}

.qv-rating-stars .star-filled {
    color: #FFB800;
    fill: #FFB800;
}

.qv-rating-stars .star-empty {
    color: #E0E0E0;
    fill: #E0E0E0;
}

.qv-rating-count {
    font-size: 14px;
    color: #5C5C5C;
}

/* Price */
.qv-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.qv-price-current {
    font-size: 32px;
    font-weight: 700;
    color: #040507;
}

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

.qv-price-old {
    font-size: 18px;
    color: #9E9E9E;
    text-decoration: line-through;
}

.qv-discount {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background-color: #EF4545;
    border-radius: 6px;
}

/* Stock */
.qv-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.qv-stock.in-stock {
    color: #00BE64;
}

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

.qv-stock svg {
    width: 18px;
    height: 18px;
}

/* Description */
.qv-description {
    font-size: 14px;
    line-height: 1.6;
    color: #5C5C5C;
}

/* Actions */
.qv-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.qv-add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #0DB14B;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.qv-add-to-cart:hover {
    background-color: #0A9A3F;
}

.qv-add-to-cart:disabled {
    background-color: #E0E0E0;
    color: #9E9E9E;
    cursor: not-allowed;
}

.qv-add-to-cart svg {
    width: 22px;
    height: 22px;
}

.qv-view-product {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    color: #040507;
    background-color: #F5F5F5;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.qv-view-product:hover {
    background-color: #E8E8E8;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .qv-info {
        padding: 20px;
        max-height: none;
    }

    .qv-title {
        font-size: 18px;
    }

    .qv-price-current {
        font-size: 26px;
    }

    .qv-actions {
        flex-direction: column;
    }

    .qv-view-product {
        width: 100%;
    }
}

/* ==========================================================================
   Compare Toast Notification
   ========================================================================== */

.compare-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background-color: #1F1F1F;
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.compare-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.compare-toast.error {
    background-color: #EF4545;
}

.compare-toast-link {
    color: #0DB14B;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: background-color 0.2s;
}

.compare-toast-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Compare Page Styles
   ========================================================================== */

.compare-page {
    padding: 32px 0;
}

.compare-page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.compare-empty {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-card);
    border-radius: 12px;
}


.compare-empty-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.compare-empty-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.compare-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background-color: var(--ozon-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.compare-empty-btn:hover {
    background-color: #0052E0;
}

.compare-table-wrapper {
    overflow-x: auto;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
}

.compare-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-light);
}

.compare-table th {
    width: 180px;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    position: sticky;
    left: 0;
    z-index: 1;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
    border-bottom: none;
}

/* Compare product header */
.compare-product-header {
    text-align: center;
    padding: 16px;
    min-width: 200px;
}

.compare-product-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    background-color: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s;
}

.compare-product-remove:hover {
    background-color: #FFEBEB;
    color: #EF4545;
}

.compare-product-remove svg {
    width: 16px;
    height: 16px;
}

.compare-product-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.compare-product-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.compare-product-title a {
    color: inherit;
    text-decoration: none;
}

.compare-product-title a:hover {
    color: var(--ozon-blue);
}

.compare-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.compare-product-old-price {
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: line-through;
    margin-top: 4px;
}

.compare-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-top: 12px;
    background-color: var(--ozon-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.compare-add-to-cart:hover {
    background-color: #0052E0;
}

.compare-add-to-cart svg {
    width: 18px;
    height: 18px;
}

/* Attribute row styling */
.compare-attr-value {
    font-size: 14px;
    color: var(--text-primary);
}

.compare-attr-value.different {
    background-color: #FFF9E6;
}

.compare-attr-value.match {
    color: var(--text-secondary);
}

/* Clear compare button */
.compare-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    margin-bottom: 20px;
    background-color: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.compare-clear-all:hover {
    border-color: #EF4545;
    color: #EF4545;
}

.compare-clear-all svg {
    width: 16px;
    height: 16px;
}

/* Header compare link */
.header-compare-link {
    position: relative;
}

.compare-counter {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #005BFF;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
}

/* ==========================================================================
   Lazy Loading Images
   ========================================================================== */

/* Base lazy image styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded,
.lazy-image[loading="eager"],
img:not(.lazy-image) {
    opacity: 1;
}

/* Skeleton placeholder for lazy images */
.lazy-placeholder {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Product card image lazy loading */
.product-card .product-thumbnail {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-card .product-thumbnail img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card .product-thumbnail img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}

.product-card .product-thumbnail img.loaded {
    opacity: 1;
}

/* Blur-up effect for images */
.lazy-blur {
    filter: blur(10px);
    transform: scale(1.1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.lazy-blur.loaded {
    filter: blur(0);
    transform: scale(1);
}

/* Native lazy loading support indicator */
@supports (content-visibility: auto) {
    .products-grid li {
        content-visibility: auto;
        contain-intrinsic-size: 0 400px;
    }
}

/* Picture element with WebP */
picture {
    display: block;
    width: 100%;
    height: 100%;
}

picture source,
picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade in animation for loaded images */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-image {
    animation: fadeIn 0.3s ease-in-out forwards;
}

/* ==========================================================================
   Buy in 1 Click
   ========================================================================== */

/* Button */
.btn-buy-one-click {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 6px 24px;
    background: transparent;
    color: #0DB14B;
    font-family: Gilroy, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    border: 2px solid #0DB14B;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-buy-one-click:hover {
    background: #0DB14B;
    color: #fff;
}

.btn-buy-one-click svg {
    width: 20px;
    height: 20px;
}

/* Modal */
.buy-one-click-modal,
.back-in-stock-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.buy-one-click-modal.is-open,
.back-in-stock-modal.is-open {
    display: flex;
}

.buy-one-click-overlay,
.back-in-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 26, 52, 0.6);
    backdrop-filter: blur(4px);
}

.buy-one-click-content,
.back-in-stock-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 24px 48px rgba(0, 26, 52, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.buy-one-click-close,
.back-in-stock-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.buy-one-click-close:hover,
.back-in-stock-close:hover {
    background: #e0e0e0;
}

.buy-one-click-close svg,
.back-in-stock-close svg {
    width: 18px;
    height: 18px;
    color: #666;
}

.buy-one-click-header,
.back-in-stock-header {
    text-align: center;
    margin-bottom: 24px;
}

.buy-one-click-header h3,
.back-in-stock-header h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #001A34);
}

.buy-one-click-subtitle,
.back-in-stock-header p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary, #6B7280);
}

.back-in-stock-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFD54F 0%, #FFC107 100%);
    border-radius: 50%;
}

.back-in-stock-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

/* Product info in modal */
.buy-one-click-product,
.back-in-stock-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 24px;
}

.buy-one-click-product-image,
.back-in-stock-product-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.buy-one-click-product-image img,
.back-in-stock-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.buy-one-click-product-info,
.back-in-stock-product-info {
    flex: 1;
    min-width: 0;
}

.buy-one-click-product-name,
.back-in-stock-product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #001A34);
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.buy-one-click-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green, #00a046);
}

/* Form */
.buy-one-click-form .form-group,
.back-in-stock-form .form-group {
    margin-bottom: 16px;
}

.buy-one-click-form label,
.back-in-stock-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #001A34);
}

.buy-one-click-form label .required,
.back-in-stock-form label .required {
    color: #EF4545;
}

.buy-one-click-form input[type="tel"],
.buy-one-click-form input[type="text"],
.buy-one-click-form input[type="email"],
.back-in-stock-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s;
}

.buy-one-click-form input:focus,
.back-in-stock-form input:focus {
    outline: none;
    border-color: var(--primary-green, #00a046);
    box-shadow: 0 0 0 3px rgba(0, 160, 70, 0.1);
}

.form-group-checkbox {
    margin-top: 20px;
}

.form-group-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.form-group-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary-green, #00a046);
}

.form-group-checkbox span {
    font-size: 13px;
    color: var(--text-secondary, #6B7280);
    line-height: 1.4;
}

.form-group-checkbox a {
    color: var(--primary-green, #00a046);
    text-decoration: underline;
}

.btn-buy-one-click-submit,
.btn-back-in-stock-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    margin-top: 24px;
    background: linear-gradient(135deg, var(--primary-green, #00a046) 0%, #00b350 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-buy-one-click-submit:hover,
.btn-back-in-stock-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 160, 70, 0.3);
}

.btn-buy-one-click-submit:disabled,
.btn-back-in-stock-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-buy-one-click-submit svg,
.btn-back-in-stock-submit svg {
    width: 20px;
    height: 20px;
}

/* Success/Error states */
.buy-one-click-success,
.back-in-stock-success {
    text-align: center;
    padding: 20px 0;
}

.buy-one-click-success .success-icon,
.back-in-stock-success .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00a046 0%, #00b350 100%);
    border-radius: 50%;
}

.buy-one-click-success .success-icon svg,
.back-in-stock-success .success-icon svg {
    color: #fff;
}

.buy-one-click-success h4,
.back-in-stock-success h4 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #001A34);
}

.buy-one-click-success p,
.back-in-stock-success p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--text-secondary, #6B7280);
}

.buy-one-click-success .order-number {
    margin-top: 16px;
    font-size: 15px;
    color: var(--text-primary, #001A34);
}

.buy-one-click-success .order-number strong {
    color: var(--primary-green, #00a046);
}

.buy-one-click-error {
    padding: 16px;
    background: #fef2f2;
    border-radius: 10px;
    margin-top: 16px;
}

.buy-one-click-error p {
    margin: 0;
    font-size: 14px;
    color: #EF4545;
}

/* Back in Stock Notification button */
.btn-notify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #FFD54F 0%, #FFC107 100%);
    color: #001A34;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-notify:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 213, 79, 0.4);
}

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

/* Product buy row adjustments */
.product-buy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.product-buy-row .cart {
    flex: 1;
    min-width: 200px;
}

.product-buy-row .btn-buy-one-click {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .product-buy-row {
        flex-direction: column;
    }

    .product-buy-row .cart,
    .product-buy-row .btn-buy-one-click {
        width: 100%;
    }

    .buy-one-click-content,
    .back-in-stock-content {
        padding: 24px;
    }
}

/* ==========================================================================
   Product Badges (from admin settings)
   ========================================================================== */

.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.product-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 4px;
    white-space: nowrap;
}

/* Discount badge - top right */
.product-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #E91E63, #F44336);
    border-radius: 4px;
    z-index: 5;
}

/* Wishlist button - Ozon style */
.product-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    z-index: 10;
}

/* When discount badge exists, move wishlist down */
.product-card-inner:has(.product-discount-badge) .product-wishlist-btn {
    top: 44px;
}

.product-card-inner:hover .product-wishlist-btn {
    opacity: 1;
    transform: scale(1);
}

.product-wishlist-btn:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-wishlist-btn svg {
    width: 20px;
    height: 20px;
    color: #9e9e9e;
    transition: all 0.2s ease;
}

.product-wishlist-btn:hover svg {
    color: #E91E63;
}

.product-wishlist-btn.is-active {
    opacity: 1;
}

.product-wishlist-btn.is-active svg {
    color: #E91E63;
    fill: #E91E63;
}

/* Rating styles */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0;
    font-size: 13px;
}

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

.card-rating-star.filled {
    color: #FFC107;
}

.card-rating-star.empty {
    color: #BDBDBD;
}

.card-rating-value {
    font-weight: 600;
    color: var(--text-primary);
}

.card-rating-count {
    color: var(--text-secondary);
    font-size: 12px;
}

.card-rating-empty {
    color: var(--ozon-blue);
    font-size: 12px;
    text-decoration: none;
}

.card-rating-empty:hover {
    text-decoration: underline;
}

/* Promo text */
.product-card-promo {
    font-size: 12px;
    color: #E91E63;
    font-weight: 500;
    margin: 4px 0;
}

/* Out of stock */
.product-out-of-stock {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Product card inner - relative for absolute positioning */
.product-card-inner {
    position: relative;
}

/* ==========================================================================
   Cart & Checkout Product Images — Full View (no cropping)
   ========================================================================== */

/* Cart page — larger container, no overflow hidden */
.cart-item-image {
    width: 100px !important;
    height: 100px !important;
    overflow: visible !important;
    background: transparent !important;
}

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

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

.cart-item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Checkout order review — larger container */
.order-item-image {
    width: 70px !important;
    height: 70px !important;
    overflow: visible !important;
}

@media (min-width: 768px) {
    .order-item-image {
        width: 80px !important;
        height: 80px !important;
    }
}

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

/* Mini cart in sidebar/header */
.woocommerce-mini-cart-item img,
.mini_cart_item img {
    object-fit: contain !important;
    object-position: center !important;
}



/* Compare empty icon - perfect centering with flexbox */
.compare-empty-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    color: var(--text-tertiary);
}

.compare-empty-icon svg {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

/* === FINAL: Button Grid Layout Fix === */
.product-buy-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.product-buy-row form.cart {
    display: contents !important;
}

.product-buy-row .btn-add-to-cart {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.product-buy-row .btn-buy-one-click {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

.product-buy-row .btn-price-request {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

.product-buy-row .wishlist-btn {
    padding: 0 !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: unset !important;
    max-width: none !important;
}

.product-buy-row .btn-add-to-cart,
.product-buy-row .btn-buy-one-click,
.product-buy-row .btn-price-request,
.product-buy-row .wishlist-btn {
    padding: 0 !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 8px !important;
}

.product-buy-row .wishlist-btn::after {
    content: 'В избранное' !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}


/* Fix wishlist button SVG alignment */
.product-buy-row .wishlist-btn svg {
    flex-shrink: 0;
    display: block;
    width: 20px;
    height: 20px;
}

/* Force center heart icon in wishlist button */
.product-buy-row .wishlist-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.product-buy-row .wishlist-btn svg {
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

/* Remove ::after margin that offsets the heart */
.product-buy-row .wishlist-btn::after {
    content: none !important;
    display: none !important;
    margin: 0 !important;
}

/* Fix heart centering - remove gap and ::after */
.product-buy-row .wishlist-btn {
    gap: 8px !important;
}

/* FINAL FIX: Center heart in wishlist button */
.product-buy-row button.wishlist-btn {
    gap: 0 !important;
}
.product-buy-row button.wishlist-btn::after {
    display: none !important;
}
