/* Custom styles for CompService WordPress theme */

/* Fix layout and alignment issues */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

/* Убираем все стандартные стили WooCommerce для списка товаров */
.woocommerce ul.products {
    display: none !important;
}

/* Сбрасываем стили для кастомной сетки товаров */
.custom-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Для десктопа: 5 колонок */
@media (min-width: 1280px) {
    .custom-product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 1rem !important;
    }
}

/* Для планшетов: 3 колонки */
@media (min-width: 768px) and (max-width: 1279px) {
    .custom-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Для мобильных: 2 колонки */
@media (max-width: 767px) {
    .custom-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Сбрасываем стили для элементов товара */
.woocommerce .custom-product-grid .product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    list-style: none !important;
    display: block !important;
}

/* Исправляем отображение карточки товара */
.woocommerce .custom-product-grid .product .woocommerce-loop-product__link {
    display: block !important;
    margin: 0 !important;
}

/* Убираем лишние отступы у изображений */
.woocommerce .custom-product-grid .product img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Additional Tailwind customizations */
.animate-fadeIn {
    animation: fadeIn 2s ease-in-out;
}

.animate-slideUp {
    animation: slideUp 1s ease-in-out;
}

.animate-marquee {
    animation: marquee 12s linear infinite;
}

.animate-scrollX {
    animation: scrollX 20s linear infinite;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scrollX {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive breakpoints */
@media (max-width: 1440px) {
    .xxl\:text-\[5vw\] {
        font-size: 5vw;
    }
}

@media (max-width: 1280px) {
    .xl\:text-5xl {
        font-size: 3.5rem;
        padding: 0;
        margin-top: 0;
    }
}

@media (max-width: 1024px) {
    .lg\:text-\[4vw\] {
        font-size: 4vw;
    }
}

@media (max-width: 768px) {
    .md\:block {
        display: block;
    }

    .md\:hidden {
        display: none;
    }
}

@media (max-width: 500px) {
    .sm\:text-\[6vw\] {
        font-size: 6vw;
    }
}

/* WordPress specific styles */
.wp-block-group {
    margin-bottom: 2rem;
}

.wp-block-image {
    margin-bottom: 1.5rem;
}

.wp-block-image img {
    border-radius: 0.5rem;
}

/* Layout fixes */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Grid fixes */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Text alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Aspect ratio */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Alignment utilities */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

/* Rounded corners */
.rounded {
    border-radius: 0.25rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

/* Shadows */
.shadow-lg {
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-neon {
    box-shadow: 0 4px 6px rgba(0, 255, 0, 0.6);
}

/* Transitions */
.transition {
    transition-property:
        color, background-color, border-color, text-decoration-color, fill,
        stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Hover effects */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:bg-gray-700:hover {
    background-color: rgb(55, 65, 81);
}

.hover\:bg-orange-600:hover {
    background-color: rgb(234, 88, 12);
}

.hover\:text-orange-500:hover {
    color: rgb(249, 115, 22);
}

.hover\:text-white:hover {
    color: rgb(255, 255, 255);
}

.hover\:underline:hover {
    text-decoration: underline;
}

/* Focus states */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:border-orange-500:focus {
    border-color: rgb(249, 115, 22);
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

/* Hidden utility */
.hidden {
    display: none;
}

/* Position utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

/* Object fit */
.object-cover {
    object-fit: cover;
}

/* Min height */
.min-h-screen {
    min-height: 100vh;
}

/* Flex utilities */
.flex-grow {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Additional spacing utilities */
.gap-2 {
    gap: 0.5rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

/* Width utilities for responsive design */
.w-\[23\%\] {
    width: 23%;
}

.w-\[30\%\] {
    width: 30%;
}

.w-\[46\%\] {
    width: 46%;
}

.w-\[100\%\] {
    width: 100%;
}

@media (max-width: 1024px) {
    .lg\:w-\[30\%\] {
        width: 30%;
    }

    .lg\:w-\[100\%\] {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .md\:w-\[46\%\] {
        width: 46%;
    }

    .md\:w-\[100\%\] {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .sm\:w-\[100\%\] {
        width: 100%;
    }
}

.min-w-\[280px\] {
    min-width: 280px;
}

/* Height utilities */
.h-48 {
    height: 12rem;
}

.h-\[400px\] {
    height: 400px;
}

.h-\[500px\] {
    height: 500px;
}

.h-\[700px\] {
    height: 700px;
}

/* Font sizes */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
    padding: 14px;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 5rem;
    line-height: 1;
    padding: 20px;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

/* Font weights */
.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

/* Colors */
.text-white {
    color: rgb(255, 255, 255);
}

.text-gray-100 {
    color: rgb(243, 244, 246);
}

.text-gray-200 {
    color: rgb(229, 231, 235);
}

.text-gray-300 {
    color: rgb(209, 213, 219);
}

.text-gray-400 {
    color: rgb(156, 163, 175);
}

.text-gray-500 {
    color: rgb(107, 114, 128);
}

.text-orange-500 {
    color: rgb(249, 115, 22);
}

.text-green-400 {
    color: rgb(74, 222, 128);
}

.text-green-500 {
    color: rgb(34, 197, 94);
}

.text-red-500 {
    color: rgb(239, 68, 68);
}

.text-teal-400 {
    color: rgb(94, 234, 212);
}

/* Background colors */
.bg-gray-700 {
    background-color: rgb(55, 65, 81);
}

.bg-gray-800 {
    background-color: rgb(31, 41, 55);
}

.bg-gray-900 {
    background-color: rgb(17, 24, 39);
}

.bg-orange-500 {
    background-color: rgb(249, 115, 22);
}

.bg-orange-600 {
    background-color: rgb(234, 88, 12);
}

.bg-green-600 {
    background-color: rgb(22, 163, 74);
}

.bg-green-700 {
    background-color: rgb(21, 128, 61);
}

.bg-red-500 {
    background-color: rgb(239, 68, 68);
}

.bg-CardBackground {
    background-color: rgb(52, 70, 81);
}

/* Border utilities */
.border {
    border-width: 1px;
}

.border-gray-700 {
    border-color: rgb(55, 65, 81);
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

/* Cart button styles */
.add-to-cart {
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #ea580c;
}

.add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* WooCommerce primary buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .button.alt {
    background-color: #f97316;
    color: #ffffff;
    border-radius: 0.375rem;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}

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

.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce input.button:active,
.woocommerce .button:active,
.woocommerce a.button.alt:active,
.woocommerce button.button.alt:active,
.woocommerce input.button.alt:active,
.woocommerce .button.alt:active {
    transform: scale(0.98);
}

/* WooCommerce select */
.woocommerce .woocommerce-ordering select {
    background-color: #111827;
    color: #e5e7eb;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
}

.woocommerce .woocommerce-ordering select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.5);
}

/* ==================== ИСПРАВЛЕННЫЕ СТИЛИ ХЕДЕРА ==================== */

/* Липкий хедер, который следует за скроллом */
#desktop-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Навигация всегда видна */
#desktop-header nav {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
}

/* Бургер-меню скрыто на больших экранах (больше 900px) */
#burger-menu-button {
    display: none !important;
}

#burger-menu-button-mobile {
    display: block !important;
}

/* На экранах больше 900px показываем десктопное меню */
@media (min-width: 901px) {
    header.md\:hidden {
        display: none !important;
    }
    
    header.md\:block {
        display: block !important;
    }
    
    #burger-menu-button-mobile {
        display: none !important;
    }
}

/* На экранах до 900px показываем мобильное меню */
@media (max-width: 900px) {
    header.md\:hidden {
        display: block !important;
    }
    
    header.md\:block {
        display: none !important;
    }
    
    #burger-menu-button-mobile {
        display: block !important;
    }
}

/* На планшетах и мобильных показываем бургер-меню */
@media (max-width: 900px) {
    #burger-menu-button {
        display: block !important;
    }
    
    #burger-menu-button-mobile {
        display: block !important;
    }
}

/* Mobile menu styles */
#mobile-menu {
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    z-index: 9999;
}

#mobile-menu.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#mobile-menu nav {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-105%);
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.menu-open nav {
    transform: translateX(0);
}

#mobile-menu-overlay {
    z-index: 9998;
}

#mobile-menu nav {
    z-index: 9999;
}

/* ==================== УЛУЧШЕННАЯ АДАПТИВНОСТЬ ==================== */

/* Планшеты и мобильные устройства - общие настройки */
@media (max-width: 900px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Уменьшаем размеры шрифтов */
    .text-5xl {
        font-size: 2.5rem !important;
        padding: 10px;
    }

    .text-4xl {
        font-size: 2rem;
    }

    .text-3xl {
        font-size: 1.5rem;
    }

    .text-xl {
        font-size: 1.125rem;
        padding: 8px;
    }

    /* Карточки товаров */
    .w-\[23\%\] {
        width: 100%;
        min-width: auto;
    }
    
    /* Карточки товаров - 2 колонки */
    .flex.flex-wrap.gap-8 > div {
        width: calc(50% - 0.5rem) !important;
        min-width: auto !important;
    }

    /* Улучшаем отступы */
    .py-12 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .py-16 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .gap-8 {
        gap: 0.5rem !important;
    }

    /* Flex элементы */
    .flex.items-center.gap-4,
    .flex.items-center.gap-6,
    .flex.items-center.gap-8 {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    /* Кнопки на всю ширину */
    .flex.gap-2 button,
    .flex.gap-2 a {
        width: 100%;
        text-align: center;
    }
    
    /* Секция новинок - меньше отступы */
    .flex.flex-wrap.gap-8 {
        gap: 0.5rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .text-5xl {
        font-size: 2rem !important;
        padding: 8px;
    }

    .text-xl {
        font-size: 1rem;
        padding: 6px;
    }

    /* Уменьшаем паддинги */
    .px-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .py-8 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    /* Карточки товаров - 2 колонки с минимальными отступами */
    .flex.flex-wrap.gap-8 > div {
        width: calc(50% - 0.25rem) !important;
        padding: 0.75rem !important;
    }
    
    .flex.flex-wrap.gap-8 {
        gap: 0.25rem;
    }
    
    /* Уменьшаем текст в карточках */
    .flex.flex-wrap.gap-8 > div .text-lg {
        font-size: 0.875rem !important;
    }
    
    .flex.flex-wrap.gap-8 > div .text-sm {
        font-size: 0.75rem !important;
    }
    
    .flex.flex-wrap.gap-8 > div .text-xs {
        font-size: 0.625rem !important;
    }
}

/* Планшеты среднего размера */
@media (min-width: 769px) and (max-width: 900px) {
    .text-5xl {
        font-size: 3rem !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Карточки товаров - 3 колонки на планшетах */
    .flex.flex-wrap.gap-8 > div {
        width: calc(33.333% - 1rem) !important;
    }
}

/* Большие планшеты */
@media (min-width: 901px) and (max-width: 1024px) {
    .text-5xl {
        font-size: 3.5rem !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Карточки товаров - 3 колонки */
    .flex.flex-wrap.gap-8 > div {
        width: calc(33.333% - 1.5rem) !important;
    }
}

/* RAID Calculator circular progress */
.efficiency-path {
    transition: stroke-dashoffset 1s ease-out;
}

.efficiency-trail {
    opacity: 0.3;
}

/* Improved product card styles */
.bg-gray-800 {
    transition: all 0.3s ease;
}

.bg-gray-800:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Better spacing for front page sections */
section {
    margin-bottom: 2rem;
}

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

/* Catalog section improvements */
.w-\[23\%\] {
    min-width: 280px;
}

@media (max-width: 1024px) {
    .lg\:w-\[30\%\] {
        width: 48%;
        min-width: auto;
    }
    
    .lg\:w-\[48\%\] {
        width: 48%;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .md\:w-\[46\%\] {
        width: 100%;
        min-width: auto;
    }
    
    .md\:w-full {
        width: 100% !important;
        min-width: auto !important;
    }
}

@media (max-width: 500px) {
    .sm\:w-\[100\%\] {
        width: 100%;
    }
    
    .sm\:w-full {
        width: 100% !important;
        min-width: auto !important;
    }
    
    .sm\:min-w-0 {
        min-width: 0 !important;
    }
}

/* Category page product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Better button styles */
button.add-to-cart,
a.add_to_cart_button {
    position: relative;
    overflow: hidden;
}

button.add-to-cart:active,
a.add_to_cart_button:active {
    transform: scale(0.98);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Hero Section Styles */
.hero-text-container {
    padding-left: 16px;
}

.hero-title {
    font-size: 6rem !important;
}

/* Hero section - адаптивная высота */
section.relative.bg-gray-900 {
    min-height: 600px;
}

@media (max-width: 1280px) {
    .hero-title {
        font-size: 4.5rem !important;
    }
    
    section.relative.bg-gray-900 {
        min-height: 500px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem !important;
    }
    
    section.relative.bg-gray-900 {
        min-height: 450px;
    }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem !important;
        padding: 15px;
    }

    .hero-description {
        font-size: 1rem !important;
        padding: 15px;
    }
    
    section.relative.bg-gray-900 {
        min-height: 400px;
        max-height: 500px;
    }
    
    /* Уменьшаем видео */
    section.relative.bg-gray-900 video {
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem !important;
        padding: 10px;
    }

    .hero-description {
        font-size: 0.875rem !important;
        padding: 10px;
    }
    
    section.relative.bg-gray-900 {
        min-height: 350px;
        max-height: 400px;
    }
}

/* About Us Statistics - адаптивность */
.about-stats-container {
    position: relative;
}

@media (max-width: 1280px) {
    .xl\:w-full {
        width: 100% !important;
    }

    .xl\:flex-row {
        flex-direction: column !important;
    }
    
    .xl\:text-\[58px\] {
        font-size: 3rem !important;
    }
    
    .xl\:text-\[4vw\] {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 900px) {
    /* Статистика на планшетах/мобильных */
    .text-\[67px\],
    .xl\:text-\[58px\] {
        font-size: 2.5rem !important;
    }

    /* Изображения */
    .h-\[700px\] {
        height: 400px !important;
    }
    
    /* Адаптация текста "О нас" */
    .text-\[54px\] {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .text-\[67px\],
    .xl\:text-\[58px\] {
        font-size: 2rem !important;
    }
    
    .text-\[54px\] {
        font-size: 1.75rem !important;
    }
    
    .h-\[700px\] {
        height: 300px !important;
    }
}

/* WooCommerce Single Product Page Styles */
.woocommerce .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.woocommerce .quantity input[type="number"] {
    background-color: rgb(31, 41, 55);
    border: 1px solid rgb(55, 65, 81);
    color: rgb(255, 255, 255);
    padding: 0.75rem;
    border-radius: 0.375rem;
    width: 80px;
    text-align: center;
    font-size: 1rem;
}

.woocommerce .quantity input[type="number"]:focus {
    outline: none;
    border-color: rgb(249, 115, 22);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.woocommerce .quantity .qty {
    margin-right: 1rem;
}

.woocommerce .product_meta a {
    color: rgb(249, 115, 22);
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce .product_meta a:hover {
    color: rgb(234, 88, 12);
    text-decoration: underline;
}
.product-meta{
	display :flex;
	justify-content: space-between;
	align-items: center;
}

/* Stock status styling */
.woocommerce .stock {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.woocommerce .stock.in-stock {
    background-color: rgba(34, 197, 94, 0.1);
    color: rgb(74, 222, 128);
}

.woocommerce .stock.out-of-stock {
    background-color: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
}

/* Product list view in category */
.space-y-4 > * + * {
    margin-top: 1rem;
}

/* Responsive product list */
@media (max-width: 768px) {
    .flex.items-center.gap-4 {
        flex-direction: column;
        align-items: flex-start;
    }

    .flex.items-center.gap-4 > div:last-child {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .flex.items-center.gap-6 {
        flex-direction: column;
        gap: 1rem;
    }

    .flex.items-center.gap-6 > div:last-child {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}

/* Product list item improvements */
.bg-gray-800.rounded-lg.border.group:hover {
    transform: translateY(-2px);
}

/* Single product page - equal height blocks */
.flex.flex-col.lg\:flex-row.gap-6.lg\:gap-8.items-stretch > div {
   
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-image-wrapper {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper .woocommerce-product-gallery {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-product-gallery__wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.woocommerce-product-gallery__wrapper img,
.woocommerce-product-gallery__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.summary.entry-summary {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.summary.entry-summary .product_meta {
    margin-top: auto;
}

/* Product description styling */
.prose.prose-invert p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.prose.prose-invert ul,
.prose.prose-invert ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose.prose-invert li {
    margin-bottom: 0.5rem;
}

.product-gallery {
    width: 100%;
}

.main-product-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    cursor: pointer;
}

.thumbnail-list {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.product-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0.375rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.product-thumbnail:hover {
    opacity: 0.8;
}

.product-thumbnail.active {
    border-color: #f97316;
}



/* Основной контейнер товара в списке */
.product-list-item {
    display: flex;
    align-items: stretch; /* Растягивает колонки на всю высоту */
    gap: 1rem;
    min-height: 150px; /* Минимальная высота для единообразия */
}

/* Левая колонка - информация */
.product-info-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Название товара */
.product-info-column h3 {
    margin-bottom: 0.75rem;
    min-height: 2.5rem; /* Место для длинных названий */
}

/* Блок с артикулом и производителем */
.product-meta-info {
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

/* Разделитель - занимает всё свободное пространство */
.product-spacer {
    flex-grow: 1;
    min-height: 1rem;
}

/* Статус наличия - всегда внизу левой колонки */
.product-availability {
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Правая колонка - цена и кнопка */
.product-price-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    flex-shrink: 0;
    min-width: 200px;
}

/* Цена - всегда вверху правой колонки */
.product-price {
    flex-shrink: 0;
}

/* Кнопка - всегда внизу правой колонки */
.product-add-to-cart {
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Убедимся, что flex-grow работает */
.flex-grow {
    flex-grow: 1;
}

.mt-auto {
    margin-top: auto;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .product-list-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-price-column {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-width: auto;
    }
    
    .product-add-to-cart {
        margin-top: 0;
        padding-top: 0;
    }
}
/* ===== ВЫРАВНИВАНИЕ КАРТОЧЕК ТОВАРОВ В СПИСКЕ ===== */

/* Внешний контейнер карточки */
.bg-gray-800.rounded-lg.border.group {
    display: block;
}

/* Главный flex-контейнер внутри карточки */
.bg-gray-800 > .flex.items-stretch {
    display: flex !important;
    align-items: stretch !important;
    min-height: 180px;
}

/* Левая колонка с информацией */
.flex-1.min-w-0.flex.flex-col {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Название товара - фиксированная область */
.flex-1.min-w-0.flex.flex-col > a.block.group-link {
    flex-shrink: 0;
}

.flex-1.min-w-0.flex.flex-col > a.block.group-link h3 {
    min-height: 2.5rem;
    line-height: 1.3;
}

/* Артикул и производитель - фиксированная область */
.flex-1.min-w-0.flex.flex-col > .flex.flex-wrap.items-center {
    flex-shrink: 0;
}

/* Разделитель - занимает всё свободное пространство */
.flex-1.min-w-0.flex.flex-col > .flex-grow {
    flex-grow: 1 !important;
    min-height: 0.5rem;
}

/* Статус наличия - всегда внизу левой колонки */
.flex-1.min-w-0.flex.flex-col > .mt-auto {
    margin-top: auto !important;
    flex-shrink: 0;
}

/* Правая колонка - цена и кнопка */
.flex.flex-col.justify-between.items-end.flex-shrink-0 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    flex-shrink: 0 !important;
    min-width: 200px !important;
}

/* Цена - вверху правой колонки */
.flex.flex-col.justify-between.items-end.flex-shrink-0 > div:first-child {
    flex-shrink: 0;
}

/* Разделитель в правой колонке */
.flex.flex-col.justify-between.items-end.flex-shrink-0 > .flex-grow {
    flex-grow: 1 !important;
}

/* Кнопка - внизу правой колонки */
.flex.flex-col.justify-between.items-end.flex-shrink-0 > .mt-auto {
    margin-top: auto !important;
    flex-shrink: 0;
}

/* Дополнительная гарантия выравнивания */
.flex.items-stretch {
    align-items: stretch !important;
}

/* Убираем конфликтующие стили */
.space-y-4 > * + * {
    margin-top: 1rem !important;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    /* На мобильных - вертикальная компоновка */
    .bg-gray-800 > .flex.items-stretch {
        flex-direction: column !important;
        gap: 1rem !important;
        min-height: auto;
    }
    
    /* Изображение по центру */
    .flex-shrink-0.group-hover\:scale-105 {
        align-self: center;
    }
    
    /* Правая колонка на всю ширину */
    .flex.flex-col.justify-between.items-end.flex-shrink-0 {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        min-width: auto !important;
    }
    
    /* Кнопка справа на мобильных */
    .flex.flex-col.justify-between.items-end.flex-shrink-0 > .mt-auto {
        margin-top: 0 !important;
    }
    
  
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ГАРАНТИИ ===== */

/* Убеждаемся что flex-grow работает везде */
.flex-grow {
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    flex-basis: 0 !important;
}

/* Убеждаемся что mt-auto работает */
.mt-auto {
    margin-top: auto !important;
}

/* Минимальная высота для равномерности */
.bg-gray-800.rounded-lg.border {
    min-height: 180px;
}

/* Гарантия работы justify-between */
.justify-between {
    justify-content: space-between !important;
}

/* Гарантия работы items-stretch */
.items-stretch {
    align-items: stretch !important;
}







