/*
Theme Name: EB Store
Theme URI: https://empowerbeauty.ru
Author: Denis Kopylov
Author URI: https://empowerbeauty.ru
Description: Современная WooCommerce тема для интернет-магазина EB. Оптимизирована для продажи товаров с поддержкой мобильных устройств.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eb-store
Tags: e-commerce, woocommerce, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

EB Store WordPress Theme
(C) 2024 Denis Kopylov
*/

/* ==========================================================================
   Gilroy Font (self-hosted)
   ========================================================================== */

@font-face {
    font-family: 'Gilroy';
    src: url('assets/fonts/Gilroy-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('assets/fonts/Gilroy-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('assets/fonts/Gilroy-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('assets/fonts/Gilroy-Heavy.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* Primary Colors */
    --primary: #0DB14B;
    --primary-dark: #027510;
    --primary-light: #E6F5E9;
    --primary-hover: #027510;

    /* Secondary / Brand */
    --brand-dark: #2D3436;
    --brand-accent: #00B33C;

    /* Legacy aliases */
    --ozon-blue: var(--primary);
    --ozon-blue-dark: var(--primary-dark);
    --ozon-blue-light: var(--primary-light);
    --ozon-blue-hover: var(--primary-hover);

    /* Accent Colors */
    --ozon-pink: #F91155;
    --ozon-pink-light: #FEE7EE;
    --ozon-green: #00A878;
    --ozon-green-light: #E6F7F2;
    --ozon-orange: #FF6B00;
    --ozon-orange-light: #FFF0E6;
    --ozon-gold: #FFD54F;
    --ozon-gold-light: #FFFBEB;

    /* Text Colors */
    --text-primary: #001A34;
    --text-secondary: #5C6370;
    --text-tertiary: #8B8E99;
    --text-disabled: #B8BBC2;
    --text-inverse: #FFFFFF;
    --text-link: var(--ozon-blue);
    --text-error: var(--ozon-pink);
    --text-success: var(--ozon-green);

    /* Background Colors */
    --bg-page: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-section: #F2F4F5;
    --bg-hover: #F7F8F9;
    --bg-active: #EBEDF0;
    --bg-disabled: #F2F4F5;
    --bg-overlay: rgba(0, 26, 52, 0.6);

    /* Border Colors */
    --border-default: #E4E7EB;
    --border-hover: #C4C8CE;
    --border-focus: var(--ozon-blue);
    --border-error: var(--ozon-pink);
    --border-success: var(--ozon-green);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 26, 52, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 26, 52, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 26, 52, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 26, 52, 0.16);
    --shadow-card: 0 1px 4px rgba(0, 26, 52, 0.06);
    --shadow-card-hover: 0 4px 16px rgba(0, 26, 52, 0.12);

    /* Typography */
    --font-family: Gilroy, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 28px;
    --font-size-4xl: 32px;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.2;
    --line-height-base: 1.4;
    --line-height-relaxed: 1.6;

    /* Spacing */
    --spacing-0: 0;
    --spacing-1: 4px;
    --spacing-2: 8px;
    --spacing-3: 12px;
    --spacing-4: 16px;
    --spacing-5: 20px;
    --spacing-6: 24px;
    --spacing-8: 32px;
    --spacing-10: 40px;
    --spacing-12: 48px;
    --spacing-16: 64px;

    /* Border Radius — standard: 8px */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;
    --z-tooltip: 700;

    /* Layout */
    --container-max: 1440px;
    --container-padding: 16px;
    --header-height: 72px;
    --header-height-mobile: 56px;
    --mobile-nav-height: 56px;

    /* Product Grid */
    --product-card-gap: 8px;
    --product-card-radius: var(--radius-lg);
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-md);
}

p {
    margin-bottom: var(--spacing-4);
}

p:last-child {
    margin-bottom: 0;
}

strong,
b {
    font-weight: var(--font-weight-semibold);
}

small {
    font-size: var(--font-size-sm);
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.site-main {
    min-height: calc(100vh - var(--header-height) - 200px);
    padding-top: var(--spacing-6);
    padding-bottom: var(--spacing-8);
}

@media (max-width: 768px) {
    .site-main {
        padding-bottom: calc(var(--spacing-8) + var(--mobile-nav-height));
    }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-5);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button */
.btn-primary {
    background-color: var(--ozon-blue);
    color: var(--text-inverse);
    font-weight: var(--font-weight-bold);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--ozon-blue-hover);
}

.btn-primary:active:not(:disabled) {
    background-color: var(--ozon-blue-dark);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--border-hover);
    background-color: var(--bg-hover);
}

/* Accent Button (Cart) */
.btn-accent {
    background-color: var(--ozon-pink);
    color: var(--text-inverse);
}

.btn-accent:hover:not(:disabled) {
    background-color: #E00F4D;
}

/* Text Button */
.btn-text {
    background-color: transparent;
    color: var(--ozon-blue);
    padding: var(--spacing-2) var(--spacing-3);
}

.btn-text:hover:not(:disabled) {
    background-color: var(--ozon-blue-light);
}

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--spacing-4) var(--spacing-6);
    font-size: var(--font-size-md);
}

.btn-full {
    width: 100%;
}

/* Icon Button */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

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

/* ==========================================================================
   Forms
   ========================================================================== */

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

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

.form-input {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:hover {
    border-color: var(--border-hover);
}

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

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-input:disabled {
    background-color: var(--bg-disabled);
    cursor: not-allowed;
}

.form-input.is-error {
    border-color: var(--border-error);
}

.form-input.is-error:focus {
    box-shadow: 0 0 0 3px var(--ozon-pink-light);
}

/* Textarea */
textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* Select */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235C6370' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    cursor: pointer;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--ozon-blue);
    cursor: pointer;
}

.form-check-label {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    cursor: pointer;
}

/* Form Error */
.form-error {
    margin-top: var(--spacing-1);
    font-size: var(--font-size-sm);
    color: var(--text-error);
}

/* ==========================================================================
   Cards
   ========================================================================== */

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

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

.card-header {
    padding: var(--spacing-4);
    border-bottom: 1px solid var(--border-default);
}

.card-footer {
    padding: var(--spacing-4);
    border-top: 1px solid var(--border-default);
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-1) var(--spacing-2);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    border-radius: var(--radius-sm);
}

.badge-sale {
    background-color: var(--ozon-pink);
    color: var(--text-inverse);
}

.badge-new {
    background-color: var(--ozon-green);
    color: var(--text-inverse);
}

.badge-hit {
    background-color: var(--ozon-gold);
    color: var(--text-primary);
}

.badge-express {
    background-color: var(--ozon-blue);
    color: var(--text-inverse);
}

/* ==========================================================================
   Rating
   ========================================================================== */

.rating {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
}

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

.rating-star {
    width: 12px;
    height: 12px;
    color: var(--ozon-gold);
}

.rating-star.empty {
    color: var(--border-default);
}

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

.rating-count {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

/* ==========================================================================
   Price Display
   ========================================================================== */

.price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--spacing-2);
}

.price-current {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.price-current.sale {
    color: var(--ozon-pink);
}

.price-old {
    font-size: var(--font-size-base);
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.price-discount {
    display: inline-block;
    padding: 2px 6px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    background-color: var(--ozon-pink);
    color: var(--text-inverse);
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Skeleton Loading
   ========================================================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-hover) 25%,
        var(--bg-active) 50%,
        var(--bg-hover) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

/* Flexbox */
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-start { justify-content: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.align-start { align-items: flex-start !important; }
.align-center { align-items: center !important; }
.align-end { align-items: flex-end !important; }
.gap-1 { gap: var(--spacing-1) !important; }
.gap-2 { gap: var(--spacing-2) !important; }
.gap-3 { gap: var(--spacing-3) !important; }
.gap-4 { gap: var(--spacing-4) !important; }

/* Spacing */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: var(--spacing-1) !important; }
.mt-2 { margin-top: var(--spacing-2) !important; }
.mt-3 { margin-top: var(--spacing-3) !important; }
.mt-4 { margin-top: var(--spacing-4) !important; }
.mb-1 { margin-bottom: var(--spacing-1) !important; }
.mb-2 { margin-bottom: var(--spacing-2) !important; }
.mb-3 { margin-bottom: var(--spacing-3) !important; }
.mb-4 { margin-bottom: var(--spacing-4) !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: var(--spacing-2) !important; }
.p-3 { padding: var(--spacing-3) !important; }
.p-4 { padding: var(--spacing-4) !important; }

/* Text */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-success { color: var(--text-success) !important; }
.text-error { color: var(--text-error) !important; }
.text-sm { font-size: var(--font-size-sm) !important; }
.text-base { font-size: var(--font-size-base) !important; }
.text-lg { font-size: var(--font-size-lg) !important; }
.font-normal { font-weight: var(--font-weight-normal) !important; }
.font-medium { font-weight: var(--font-weight-medium) !important; }
.font-semibold { font-weight: var(--font-weight-semibold) !important; }
.font-bold { font-weight: var(--font-weight-bold) !important; }

/* Width */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }

/* Visibility */
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }

/* Position */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }

/* Cursor */
.cursor-pointer { cursor: pointer !important; }

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fadeIn { animation: fadeIn var(--transition-base); }
.animate-slideUp { animation: slideUp var(--transition-slow); }
.animate-slideDown { animation: slideDown var(--transition-slow); }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.alignnone {
    margin: var(--spacing-4) 0;
}

.aligncenter {
    display: block;
    margin: var(--spacing-4) auto;
}

.alignright {
    float: right;
    margin: var(--spacing-1) 0 var(--spacing-4) var(--spacing-4);
}

.alignleft {
    float: left;
    margin: var(--spacing-1) var(--spacing-4) var(--spacing-4) 0;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: var(--spacing-4);
}

.wp-caption-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-align: center;
    padding: var(--spacing-2);
}

.sticky {
    /* Styles for sticky posts */
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Hero Banner Slider (Utkonos style - infinite carousel)
   ========================================================================== */

.hp-hero-section {
    padding: 0;
    margin-bottom: var(--spacing-6);
}

.hp-hero-section {
    padding: 0;
}

.hp-banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.hp-banner-track {
    position: relative;
    width: 100%;
}

.hp-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hp-banner-slide:first-child {
    position: relative;
}

.hp-banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hp-banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3.5 / 1;
    object-fit: cover;
    border-radius: 12px;
}

.hp-banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.hp-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.hp-banner-dot.is-active {
    background: var(--primary, #00a046);
}

.hp-banner-dot:hover {
    background: #9ca3af;
}

.hp-banner-dot.is-active:hover {
    background: var(--primary, #00a046);
}

@media (max-width: 768px) {
    .hp-banner-slider {
        border-radius: 8px;
        margin: 0 16px;
    }

    .hp-banner-slide img {
        aspect-ratio: 2 / 1;
    }

    .hp-banner-dots {
        margin-top: 12px;
    }

    .hp-banner-dot {
        width: 8px;
        height: 8px;
    }
}

/* ==========================================================================
   My Account Page - Ozon Style
   ========================================================================== */

.woocommerce-account .woocommerce {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
}

/* Account Navigation */
.woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border-bottom: 1px solid #f4f4f4;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #f8f9fa;
    color: var(--primary, #00a046);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(90deg, rgba(0, 160, 70, 0.08) 0%, transparent 100%);
    color: var(--primary, #00a046);
}

.woocommerce-MyAccount-navigation ul li.is-active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary, #00a046);
    border-radius: 0 3px 3px 0;
}

/* Navigation Icons */
.woocommerce-MyAccount-navigation ul li a::after {
    content: '';
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    order: -1;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Cpath d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation ul li.is-active a::after,
.woocommerce-MyAccount-navigation ul li a:hover::after {
    opacity: 1;
}

/* Account Content */
.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
}

.woocommerce-MyAccount-content > p:first-child {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.woocommerce-MyAccount-content > p:first-child a {
    color: var(--primary, #00a046);
    font-weight: 500;
}

/* Dashboard Cards */
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message {
    background: #fff;
    border: none;
    border-left: 4px solid var(--primary, #00a046);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce-MyAccount-content .woocommerce-message::before {
    color: var(--primary, #00a046);
}

/* Orders Table */
.woocommerce-orders-table {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-orders-table thead {
    background: #f8f9fa;
}

.woocommerce-orders-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-orders-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f4f4f4;
    font-size: 14px;
}

.woocommerce-orders-table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-orders-table tbody tr:hover {
    background: #f8f9fa;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    color: var(--primary, #00a046);
    font-weight: 600;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary, #00a046);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover {
    background: #008a3c;
}

/* Address Cards */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.woocommerce-Address {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f4f4f4;
}

.woocommerce-Address-title h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.woocommerce-Address-title a {
    color: var(--primary, #00a046);
    font-size: 14px;
    font-weight: 500;
}

.woocommerce-Address address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

/* Forms */
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
    margin-bottom: 20px;
}

.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce-EditAccountForm input:focus,
.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus {
    outline: none;
    border-color: var(--primary, #00a046);
    box-shadow: 0 0 0 3px rgba(0, 160, 70, 0.1);
}

.woocommerce-EditAccountForm button[type="submit"],
.woocommerce-address-fields button[type="submit"] {
    background: var(--primary, #00a046);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-address-fields button[type="submit"]:hover {
    background: #008a3c;
}

/* Login/Register Forms */
.woocommerce-form-login,
.woocommerce-form-register {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 32px;
    max-width: 420px;
    margin: 0 auto;
}

.woocommerce-form-login h2,
.woocommerce-form-register h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
    margin-bottom: 20px;
}

.woocommerce-form-login label,
.woocommerce-form-register label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="password"],
.woocommerce-form-register input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus {
    outline: none;
    border-color: var(--primary, #00a046);
    box-shadow: 0 0 0 3px rgba(0, 160, 70, 0.1);
}

.woocommerce-form-login button[type="submit"],
.woocommerce-form-register button[type="submit"] {
    width: 100%;
    background: var(--primary, #00a046);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.woocommerce-form-login button[type="submit"]:hover,
.woocommerce-form-register button[type="submit"]:hover {
    background: #008a3c;
}

.woocommerce-form-login .woocommerce-LostPassword {
    text-align: center;
    margin-top: 16px;
}

.woocommerce-form-login .woocommerce-LostPassword a {
    color: var(--primary, #00a046);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        padding: 16px;
        gap: 20px;
    }

    .woocommerce-MyAccount-navigation {
        flex: none;
        width: 100%;
        position: static;
    }

    .woocommerce-MyAccount-navigation ul {
        display: flex;
        overflow-x: auto;
        gap: 4px;
        padding: 8px;
    }

    .woocommerce-MyAccount-navigation ul li {
        border-bottom: none;
        flex-shrink: 0;
    }

    .woocommerce-MyAccount-navigation ul li a {
        padding: 10px 16px;
        border-radius: 8px;
        white-space: nowrap;
        font-size: 14px;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a::before {
        display: none;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a {
        background: var(--primary, #00a046);
        color: #fff;
    }

    .woocommerce-MyAccount-navigation ul li a::after {
        display: none;
    }

    .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }

    .woocommerce-form-login,
    .woocommerce-form-register {
        padding: 24px;
    }
}

/* ==========================================================================
   Wishlist Styles
   ========================================================================== */

/* Wishlist Button on Product Cards */
.wishlist-btn,
.add-to-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

.wishlist-btn:hover,
.add-to-wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wishlist-btn svg,
.add-to-wishlist-btn svg {
    width: 20px;
    height: 20px;
    stroke: #9ca3af;
    fill: none;
    transition: all 0.2s ease;
}

.wishlist-btn.is-active svg,
.add-to-wishlist-btn.is-active svg {
    stroke: #ef4444;
    fill: #ef4444;
}

.wishlist-btn.is-loading,
.add-to-wishlist-btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.wishlist-btn.is-loading svg,
.add-to-wishlist-btn.is-loading svg {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.8); }
}

/* Wishlist Page */
.wishlist-page h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.wishlist-empty {
    background: #fff;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.wishlist-empty-icon {
    margin-bottom: 16px;
}

.wishlist-empty p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
}

.wishlist-empty .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary, #00a046);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.wishlist-empty .btn:hover {
    background: #008a3c;
}

/* Wishlist Products Grid */
.wishlist-products {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wishlist-product {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.wishlist-product-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.wishlist-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.wishlist-product-info {
    flex: 1;
    min-width: 0;
}

.wishlist-product-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.4;
}

.wishlist-product-title:hover {
    color: var(--primary, #00a046);
}

.wishlist-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.wishlist-product-price del {
    font-size: 14px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 8px;
}

.wishlist-product-price ins {
    text-decoration: none;
}

.wishlist-product-stock {
    font-size: 13px;
    font-weight: 500;
}

.wishlist-product-stock.in-stock {
    color: var(--primary, #00a046);
}

.wishlist-product-stock.out-of-stock {
    color: #ef4444;
}

.wishlist-product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.wishlist-product-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.wishlist-product-actions .btn-primary {
    background: var(--primary, #00a046);
    color: #fff;
    border: none;
}

.wishlist-product-actions .btn-primary:hover {
    background: #008a3c;
}

.wishlist-product-actions .btn-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.wishlist-product-actions .btn-outline:hover {
    background: #f3f4f6;
    color: #ef4444;
    border-color: #ef4444;
}

.wishlist-product-actions .btn svg {
    width: 18px;
    height: 18px;
}

/* Toast Notifications */
.ozon-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a1a;
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.ozon-toast--success {
    background: var(--primary, #00a046);
}

.ozon-toast--error {
    background: #ef4444;
}

.ozon-toast--info {
    background: #3b82f6;
}

/* Header Wishlist Icon */
.header-wishlist-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Navigation icon for wishlist */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--wishlist a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z'/%3E%3C/svg%3E");
}

/* Responsive */
@media (max-width: 768px) {
    .wishlist-product {
        flex-wrap: wrap;
        padding: 16px;
    }

    .wishlist-product-image {
        width: 80px;
        height: 80px;
    }

    .wishlist-product-info {
        flex: 1 1 calc(100% - 100px);
    }

    .wishlist-product-actions {
        flex-direction: row;
        width: 100%;
        margin-top: 12px;
    }

    .wishlist-product-actions .btn {
        flex: 1;
    }
}

/* Header Favorites Icon Wrapper */
.header-favorites-icon-wrapper {
    position: relative;
    display: inline-flex;
}
