/**
 * DRAK - Strona kategorii produktów
 * Wersja WOW z zaawansowanymi efektami
 */

/* ========== STRONA ========== */

.drak-category-page {
    background-color: #0a0a0a;
    min-height: 100vh;
    position: relative;
}

/* ========== HERO KATEGORII ========== */

.drak-category-hero {
    position: relative;
    min-height: 280px;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Animowany gradient w tle */
.drak-category-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background:
        radial-gradient(circle at 30% 70%, rgba(220, 38, 38, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(220, 38, 38, 0.05) 0%, transparent 40%);
    animation: heroGlow 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, -5%); }
}

.drak-category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.5) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

.drak-category-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumbs */
.drak-category-breadcrumbs {
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.drak-category-breadcrumbs a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
}

.drak-category-breadcrumbs a:hover {
    color: var(--draki-red);
}

.drak-category-breadcrumbs span {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 12px;
}

.drak-category-breadcrumbs .current {
    color: var(--draki-red);
    margin: 0;
}

.drak-category-title {
    font-family: 'Russo One', 'Oswald', sans-serif;
    font-size: clamp(50px, 12vw, 100px);
    letter-spacing: 10px;
    color: var(--draki-red);
    margin: 0 0 15px 0;
    line-height: 1;
    text-shadow:
        0 0 60px rgba(220, 38, 38, 0.4),
        0 0 120px rgba(220, 38, 38, 0.2);
    position: relative;
}

/* Podkreślenie tytułu */
.drak-category-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--draki-red), transparent);
}

.drak-category-desc {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 30px 0 20px 0;
    line-height: 1.7;
    letter-spacing: 0.5px;
}

.drak-category-count {
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    letter-spacing: 2px;
}

/* ========== PRODUKTY GRID ========== */

.drak-category-products {
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 40px 100px;
    position: relative;
}

/* Subtelna siatka w tle */
.drak-category-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, rgba(220, 38, 38, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(220, 38, 38, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    opacity: 0.5;
}

.drak-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    position: relative;
    z-index: 1;
}

/* ========== KARTA PRODUKTU ========== */

.drak-product-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    display: block;
    transition: all 0.5s var(--draki-ease);
    overflow: hidden;
    border-radius: 16px;
    position: relative;

    /* Scroll animation */
    opacity: 0;
    transform: translateY(50px);
}

.drak-product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Glow border on hover */
.drak-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--draki-red), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.drak-product-card:hover::before {
    opacity: 1;
}

.drak-product-card:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow:
        0 25px 60px rgba(220, 38, 38, 0.25),
        0 0 100px rgba(220, 38, 38, 0.08);
}

/* ========== IMAGE WRAPPER ========== */

.drak-product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(145deg, #151515, #0a0a0a);
}


.drak-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.6s var(--draki-ease);
}

.drak-product-image--hover,
.drak-product-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.5s ease;
}

.drak-product-card:hover .drak-product-image--main {
    opacity: 0;
    transform: scale(1.1);
}

.drak-product-card:hover .drak-product-image--hover,
.drak-product-card:hover .drak-product-video {
    opacity: 1;
}

/* Overlay na hover */
.drak-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--draki-ease);
}

.drak-product-card:hover .drak-product-overlay {
    opacity: 1;
    transform: translateY(0);
}

.drak-product-view {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Russo One', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--draki-red) 0%, #b91c1c 100%);
    padding: 14px 28px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
}

.drak-product-card:hover .drak-product-view {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5);
}

/* ========== INFO PRODUKTU ========== */

.drak-product-info {
    padding: 28px 22px 32px;
    text-align: center;
    background: linear-gradient(to top, #1a1a1a, #151515);
    position: relative;
}

/* Subtelna linia na górze */
.drak-product-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.drak-product-name {
    font-family: 'Russo One', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--draki-red);
    margin: 0 0 14px 0;
    transition: color 0.3s ease;
}

.drak-product-card:hover .drak-product-name {
    color: #ef4444;
}

.drak-product-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: none;
}

.drak-product-price .woocommerce-Price-amount {
    color: #ffffff;
}

.drak-product-price .woocommerce-Price-currencySymbol {
    color: #ffffff;
}

.drak-product-price del {
    color: rgba(255, 255, 255, 0.35);
    font-size: 16px;
    margin-right: 12px;
    text-shadow: none;
}

.drak-product-price del .woocommerce-Price-amount {
    color: rgba(255, 255, 255, 0.35);
}

.drak-product-price ins {
    text-decoration: none;
}

/* ========== PAGINACJA ========== */

.drak-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 70px;
    flex-wrap: wrap;
}

.drak-pagination a,
.drak-pagination span {
    font-family: 'Russo One', 'Exo 2', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 16px 26px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s var(--draki-ease);
}

.drak-pagination a:hover {
    background: var(--draki-red);
    border-color: var(--draki-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.drak-pagination .current {
    background: linear-gradient(135deg, var(--draki-red) 0%, #b91c1c 100%);
    border-color: var(--draki-red);
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.4);
}

.drak-pagination .prev,
.drak-pagination .next {
    background: transparent;
    border: 2px solid rgba(220, 38, 38, 0.5);
    color: var(--draki-red);
}

.drak-pagination .prev:hover,
.drak-pagination .next:hover {
    background: var(--draki-red);
    color: #ffffff;
    border-color: var(--draki-red);
}

/* ========== KATEGORIA PUSTA ========== */

.drak-category-empty {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    position: relative;
}

/* Glow w tle */
.drak-category-empty::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.drak-empty-content {
    text-align: center;
    max-width: 550px;
    position: relative;
    z-index: 1;
}

.drak-empty-icon {
    margin-bottom: 35px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

.drak-empty-icon svg {
    stroke: var(--draki-red);
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.4));
}

.drak-empty-title {
    font-family: 'Russo One', sans-serif;
    font-size: clamp(36px, 8vw, 56px);
    letter-spacing: 8px;
    color: var(--draki-red);
    margin: 0 0 25px 0;
    text-shadow: 0 0 40px rgba(220, 38, 38, 0.4);
}

.drak-empty-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin: 0 0 45px 0;
    letter-spacing: 0.5px;
}

.drak-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Russo One', sans-serif;
    font-size: 14px;
    letter-spacing: 3px;
    color: #ffffff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 18px 36px;
    text-decoration: none;
    transition: all 0.4s var(--draki-ease);
}

.drak-empty-btn:hover {
    background: var(--draki-red);
    border-color: var(--draki-red);
    transform: translateX(-8px);
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.4);
}

.drak-empty-btn svg {
    transition: transform 0.3s ease;
}

.drak-empty-btn:hover svg {
    transform: translateX(-5px);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1100px) {
    .drak-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .drak-category-products {
        padding: 60px 30px 80px;
    }
}

@media (max-width: 749px) {
    .drak-category-hero {
        min-height: 200px;
    }

    .drak-category-hero-content {
        padding: 30px 20px;
    }

    .drak-category-breadcrumbs {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .drak-category-title {
        /* Nazwa kategorii urosla z „BLUZY" do „BLUZY MOTOCYKLOWE" (SEO, 19.10) i przy
           clamp(50px, 12vw, 100px) + 10px odstepu miedzy literami slowo „MOTOCYKLOWE"
           bylo szersze niz ekran telefonu - ucinalo sie po obu stronach.
           Nizszy prog clamp + mniejszy letter-spacing + lamanie dlugiego wyrazu. */
        font-size: clamp(30px, 9vw, 56px);
        letter-spacing: 3px;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .drak-category-breadcrumbs {
        /* „Strona główna / Sklep / Bluzy motocyklowe" nie miescilo sie w jednej linii */
        font-size: 13px;
        letter-spacing: 0.5px;
        line-height: 1.6;
    }

    .drak-category-desc {
        font-size: 15px;
    }

    .drak-category-products {
        padding: 25px 20px 70px;
    }

    .drak-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .drak-product-info {
        padding: 20px 16px 24px;
    }

    .drak-product-name {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .drak-product-price {
        font-size: 20px;
    }

    .drak-product-overlay {
        padding: 25px 20px;
    }

    .drak-product-view {
        font-size: 11px;
        padding: 12px 20px;
    }

    .drak-empty-title {
        letter-spacing: 4px;
    }

    .drak-empty-text {
        font-size: 14px;
    }

    .drak-pagination a,
    .drak-pagination span {
        padding: 14px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .drak-category-title {
        font-size: clamp(26px, 8.5vw, 42px);
        letter-spacing: 2px;
    }

    .drak-category-breadcrumbs {
        font-size: 12px;
    }

    .drak-products-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        max-width: 400px;
        margin: 0 auto;
    }

    .drak-product-name {
        font-size: 18px;
    }

    .drak-product-price {
        font-size: 22px;
    }
}

/* ========== POPUP RABATOWY ========== */

.drak-discount-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.drak-discount-popup.active {
    opacity: 1;
    visibility: visible;
}

.drak-discount-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

.drak-discount-popup-content {
    position: relative;
    background: #111111;
    color: #ffffff;
    padding: 50px 45px 45px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(220, 38, 38, 0.3);
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.drak-discount-popup.active .drak-discount-popup-content {
    transform: translateY(0);
}

.drak-discount-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.drak-discount-popup-close:hover {
    color: var(--draki-red);
}

.drak-discount-popup-title {
    font-family: 'Russo One', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: #ffffff;
    letter-spacing: 2px;
    margin: 0 0 16px 0;
}

.drak-discount-popup-title span {
    color: var(--draki-red);
}

.drak-discount-popup-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0 0 28px 0;
    letter-spacing: 0.5px;
}

.drak-discount-popup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.drak-discount-popup-form label {
    font-family: 'Exo 2', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    align-self: flex-start;
}

.drak-discount-popup-form input[type="email"] {
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s ease;
}

.drak-discount-popup-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.drak-discount-popup-form input[type="email"]:focus {
    border-color: var(--draki-red);
}

.drak-discount-popup-btn {
    font-family: 'Russo One', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 14px 36px;
    width: 100%;
    background: var(--draki-red);
    color: #ffffff;
    border: 2px solid var(--draki-red);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 6px;
}

.drak-discount-popup-btn:hover {
    background: transparent;
    color: var(--draki-red);
}

@media (max-width: 480px) {
    .drak-discount-popup-content {
        padding: 40px 25px 30px;
    }

    .drak-discount-popup-title {
        font-size: 20px;
    }
}
