/* ============================================
   style-v4.css  –  Homepage redesign
   Loaded ONLY by index.php
   Matches the v3 product page aesthetic
   ============================================ */

/* ---------- CSS variables (matches v3) ---------- */
:root {
    --v4-radius: 12px;
    --v4-radius-lg: 16px;
    --v4-shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --v4-shadow-md: 0 8px 30px rgba(0,0,0,.10);
    --v4-shadow-lg: 0 16px 48px rgba(0,0,0,.14);
    --v4-border: #e9ecef;
    --v4-bg-soft: #f8f9fb;
    --v4-text: #1a1a2e;
    --v4-text-secondary: #6b7280;
    --v4-accent: #ff2949;
    --v4-accent-hover: #e01c3a;
    --v4-success: #22c55e;
    --v4-transition: .25s cubic-bezier(.4,0,.2,1);
}

html {
    scroll-behavior: smooth;
}

/* ---------- Breadcrumb ---------- */
.v4-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    font-size: 0.9rem;
    color: var(--v4-text-secondary);
}

.v4-breadcrumb a {
    color: var(--v4-text-secondary);
    text-decoration: none;
    transition: color var(--v4-transition);
}

.v4-breadcrumb a:hover {
    color: var(--v4-accent);
}

.v4-breadcrumb i {
    font-size: 0.65rem;
    color: #ccc;
}

.v4-breadcrumb span {
    color: var(--v4-text);
    font-weight: 500;
}

/* ---------- Hero Video Section ---------- */
.v4-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 450px;
    max-height: 700px;
    overflow: hidden;
    margin-bottom: 0;
}

.v4-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.v4-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 46, 0.3) 0%,
        rgba(26, 26, 46, 0.5) 50%,
        rgba(26, 26, 46, 0.7) 100%
    );
    z-index: 2;
}

.v4-hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: #fff;
}

.v4-hero-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
    max-width: 800px;
}

.v4-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 32px;
    max-width: 600px;
    text-shadow: 0 1px 10px rgba(0,0,0,.3);
}

.v4-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--v4-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all var(--v4-transition);
    box-shadow: 0 4px 20px rgba(255,41,73,.4);
}

.v4-hero-btn:hover {
    background: var(--v4-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,41,73,.5);
    color: #fff;
}

.v4-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,.7);
    font-size: 1.5rem;
    animation: v4-bounce 2s infinite;
}

@keyframes v4-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ---------- Section Styling ---------- */
.v4-section {
    padding: 60px 0;
}

.v4-section-light {
    background: #fff;
}

.v4-section-soft {
    background: var(--v4-bg-soft);
}

.catFix{
     padding-top:30px !important;
}

.v4-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.v4-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--v4-text);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.v4-section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    border-radius: 2px;
    background: var(--v4-accent);
}

.v4-section-subtitle {
    font-size: 1rem;
    color: var(--v4-text-secondary);
    margin-top: 16px;
}

/* ---------- Category Cards ---------- */
.v4-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.v4-category-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 24px;
    border-radius: var(--v4-radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--v4-transition);
    min-height: 140px;
    border: 1px solid transparent;
}

.v4-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v4-shadow-lg);
}

/* Category color variants - subtle solid backgrounds */
.v4-category-card-1 { background: #fff5f5; border: 1px solid #fee2e2; }
.v4-category-card-2 { background: #fef2f2; border: 1px solid #fecaca; }
.v4-category-card-3 { background: #fff1f2; border: 1px solid #fecdd3; }
.v4-category-card-4 { background: #fef2f2; border: 1px solid #fee2e2; }
.v4-category-card-5 { background: #fff5f5; border: 1px solid #fecaca; }
.v4-category-card-6 { background: #fff1f2; border: 1px solid #fecdd3; }

.v4-category-card-1:hover,
.v4-category-card-2:hover,
.v4-category-card-3:hover,
.v4-category-card-4:hover,
.v4-category-card-5:hover,
.v4-category-card-6:hover {
    border-color: var(--v4-accent);
    background: #fff;
}

.v4-category-content {
    position: relative;
    z-index: 2;
}

.v4-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--v4-text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.v4-category-count {
    font-size: 0.85rem;
    color: var(--v4-text-secondary);
    font-weight: 500;
}

.v4-category-image {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform var(--v4-transition);
}

.v4-category-card:hover .v4-category-image {
    transform: scale(1.1) rotate(3deg);
}

.v4-category-icon {
    font-size: 3rem;
    color: rgba(26, 26, 46, 0.15);
}

/* ---------- Promo Banners ---------- */
.v4-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.v4-promo-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 28px;
    border-radius: var(--v4-radius-lg);
    overflow: hidden;
    transition: all var(--v4-transition);
    min-height: 160px;
}

.v4-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v4-shadow-lg);
}

.v4-promo-primary {
    background: var(--v4-accent);
    color: #fff;
}

.v4-promo-secondary {
    background: #dc2626;
    color: #fff;
}

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

.v4-promo-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.v4-promo-text {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.v4-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,.95);
    color: var(--v4-text);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all var(--v4-transition);
}

.v4-promo-btn:hover {
    background: #fff;
    transform: translateX(4px);
    color: var(--v4-text);
}

.v4-promo-icon {
    position: relative;
    z-index: 2;
    font-size: 4rem;
    opacity: 0.3;
}

.v4-promo-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    pointer-events: none;
}

/* ---------- Product Cards ---------- */
.v4-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.v4-product-card {
    background: #fff;
    border: 1px solid var(--v4-border);
    border-radius: var(--v4-radius);
    overflow: hidden;
    transition: all var(--v4-transition);
    display: flex;
    flex-direction: column;
}

.v4-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--v4-shadow-md);
    border-color: rgba(255,41,73,.2);
}

.v4-product-image-wrap {
    position: relative;
    background: #fff;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.v4-product-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform .4s ease;
}

.v4-product-card:hover .v4-product-image {
    transform: scale(1.08);
}

.v4-product-placeholder {
    color: #ccc;
    font-size: 3rem;
}

.v4-product-badge,
.v4-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 2;
}

.v4-badge-sale {
    background: var(--v4-accent);
    color: #fff;
}

.v4-badge-featured {
    background: #b91c1c;
    color: #fff;
}

.v4-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.v4-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--v4-text);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.v4-product-name a {
    color: inherit;
    text-decoration: none;
    transition: color var(--v4-transition);
}

.v4-product-name a:hover {
    color: var(--v4-accent);
}

.v4-product-desc {
    font-size: 0.8rem;
    color: var(--v4-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v4-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 0;
    gap: 12px;
}

.v4-product-price {
    display: flex;
    flex-direction: column;
}

.v4-price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--v4-text);
}

.v4-price-sale {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--v4-accent);
}

.v4-price-old {
    font-size: 0.8rem;
    color: #aaa;
    text-decoration: line-through;
}

.v4-cart-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: var(--v4-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--v4-transition);
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255,41,73,.2);
}

.v4-cart-btn:hover {
    background: var(--v4-accent-hover);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255,41,73,.35);
    color: #fff;
}

/* ---------- View All Button ---------- */
.v4-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--v4-accent);
    color: var(--v4-accent);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all var(--v4-transition);
    background: transparent;
}

.v4-view-all:hover {
    background: var(--v4-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,41,73,.3);
}

/* ---------- Brands Section ---------- */
.v4-brands-wrap {
    position: relative;
    padding: 20px 0;
}

.v4-brands-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.v4-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all var(--v4-transition);
}

.v4-brand-item img {
    max-height: 50px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--v4-transition);
}

.v4-brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ---------- Trust Features ---------- */
.v4-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.v4-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: var(--v4-radius);
    border: 1px solid var(--v4-border);
    transition: all var(--v4-transition);
}

.v4-trust-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--v4-shadow-md);
    border-color: var(--v4-accent);
}

.v4-trust-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,41,73,.1) 0%, rgba(255,41,73,.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: var(--v4-accent);
    transition: all var(--v4-transition);
}

.v4-trust-item:hover .v4-trust-icon {
    background: var(--v4-accent);
    color: #fff;
    transform: scale(1.1);
}

.v4-trust-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--v4-text);
    margin-bottom: 6px;
}

.v4-trust-desc {
    font-size: 0.85rem;
    color: var(--v4-text-secondary);
    line-height: 1.5;
}

/* ---------- Carousel Override ---------- */
.v4-carousel {
    border-radius: var(--v4-radius-lg);
    overflow: hidden;
    box-shadow: var(--v4-shadow-lg);
}

.v4-carousel .carousel-item img {
    object-fit: cover;
    max-height: 500px;
}

.v4-carousel .carousel-control-prev,
.v4-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    opacity: 0;
    transition: all var(--v4-transition);
}

.v4-carousel:hover .carousel-control-prev,
.v4-carousel:hover .carousel-control-next {
    opacity: 1;
}

.v4-carousel .carousel-control-prev {
    left: 20px;
}

.v4-carousel .carousel-control-next {
    right: 20px;
}

.v4-carousel .carousel-control-prev-icon,
.v4-carousel .carousel-control-next-icon {
    filter: invert(1) grayscale(100);
    width: 16px;
    height: 16px;
}

.v4-carousel .carousel-indicators {
    bottom: 20px;
}

.v4-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background: rgba(255,255,255,.5);
    border: none;
}

.v4-carousel .carousel-indicators button.active {
    background: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .v4-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .v4-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .v4-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .v4-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .v4-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .v4-hero {
        height: 55vh;
        min-height: 380px;
    }
    
    .v4-hero-title {
        font-size: 1.45rem;
        font-weight: 600;
    }
    
    .v4-section {
        padding: 40px 0;
    }
    
    .v4-section-title {
        font-size: 1.4rem;
    }
    
    .v4-categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .v4-category-card {
        min-height: 110px;
        padding: 20px;
    }
    
    .v4-category-image {
        width: 80px;
        height: 80px;
    }
    
    .v4-promo-grid {
        grid-template-columns: 1fr;
    }
    
    .v4-promo-card {
        min-height: auto;
        padding: 20px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .v4-promo-title {
        font-size: 1.15rem;
    }
    
    .v4-promo-text {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .v4-promo-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .v4-promo-icon {
        position: absolute;
        top: 16px;
        right: 16px;
        font-size: 2.5rem;
        opacity: 0.2;
    }
    
    /* Hide secondary promo (Podpora útulkov) on mobile */
    .v4-promo-secondary.v4-hide-mobile {
        display: none;
    }
    
    .v4-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .v4-product-image-wrap {
        height: 160px;
    }
    
    .v4-product-body {
        padding: 12px;
    }
    
    .v4-product-name {
        font-size: 0.85rem;
    }
    
    .v4-trust-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .v4-trust-item {
        flex-direction: row;
        text-align: left;
        padding: 20px;
        gap: 16px;
    }
    
    .v4-trust-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .v4-brands-track {
        gap: 20px;
    }
    
    .v4-brand-item img {
        max-height: 35px;
        max-width: 80px;
    }
}

@media (max-width: 575px) {
    .v4-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .v4-hero-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .v4-product-image-wrap {
        height: 140px;
    }
    
    .v4-cart-btn {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
    
    .v4-price-current,
    .v4-price-sale {
        font-size: 1rem;
    }
    .v4-page-header{
        padding-top: 0px !important;
    }
}

/* ---------- Mobile Banner Override ---------- */
.mobileBanner {
    display: none;
}

@media (max-width: 767px) {

    .v4-hero-video {
        height: 100%;
    }

    .v4-hero {
        /*display: none;*/
    }
    
    .catFix{
        padding-top:0px !important;
    }

    .mobileBanner {
        display: block;
        background: var(--v4-accent);
        padding: 40px 20px;
        text-align: center;
        color: #fff;
    }
    
    .mobileBanner h2 {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 12px;
    }
    
    .mobileBanner p {
        font-size: 0.95rem;
        opacity: 0.9;
        margin-bottom: 20px;
    }
    
    .mobileBanner .v4-hero-btn {
        background: #fff;
        color: var(--v4-accent);
    }
}

/* ---------- Animation ---------- */
@keyframes v4-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v4-animate {
    animation: v4-fadeInUp 0.6s ease forwards;
}

.v4-animate-delay-1 { animation-delay: 0.1s; }
.v4-animate-delay-2 { animation-delay: 0.2s; }
.v4-animate-delay-3 { animation-delay: 0.3s; }
