/*
Theme Name: Krona Woo
Theme URI: https://kronastyle.ru
Author: Pypin
Description: Полноэкранный шаблон для WooCommerce с каруселями товаров, основанный на теме Krona Style.
Version: 1.0
Text Domain: krona-woo
Requires Plugins: woocommerce
*/

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    color: #1a1a1a;
}

.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1600607686527-6fb886090705?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.swiper-pagination-bullet {
    background: #1a1a1a;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.swiper-slide {
    height: auto;
}

.custom-arrow {
    width: 40px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
    z-index: 20;
    -webkit-tap-highlight-color: transparent;
}

.custom-arrow:hover {
    color: rgba(0, 0, 0, 0.8);
}

.custom-arrow svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-soft {
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;
    color: white;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.btn-soft:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.woocommerce ul.products li.product {
    width: 23.8%;
    margin-right: 2%;
}

.woocommerce ul.products li.product:nth-child(4n) {
    margin-right: 0;
}

.woocommerce ul.products li.product .button {
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 0;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #333;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 0;
    padding: 12px 24px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #333;
}

.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Single product layout: 50% / 50% */
.single-product div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
    flex: 1 1 50%;
    max-width: 50%;
}

@media (max-width: 1024px) {
    .single-product div.product .woocommerce-product-gallery,
    .single-product div.product .summary {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* Thumbnails carousel: 5 per row under main image */
.single-product .woocommerce-product-gallery {
    margin-bottom: 2rem;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 20%;
    max-width: 20%;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


