:root {
    --primary-color: #D64545;
    --secondary-color: #2C3E50;
    --accent-color: #F0C869;
    --background-color: #F5F5F5;
    --text-color: #333;
}

body {
    scroll-behavior: smooth;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

main {
    max-width: none;
    padding: 0em;
}

.collection-hero {
    background-image: url(../img/johny\ web\ brána\ barva\ 4.3\(1\).png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.collection-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(240, 200, 105, 0.15), transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.collection-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 2em;
}

.collection-hero-inner {
    text-align: center;
    color: #fff;
    max-width: 850px;
    margin: 0 auto;
    padding: 50px 60px;
    background: linear-gradient(rgba(46, 46, 46, 0.85), rgba(49, 49, 49, 0.85));
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.collection-hero-inner:hover {
    transform: translateY(-5px);
}

.collection-hero h1 {
    font-size: 3.2em;
    margin: 0 0 0.4em 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.collection-hero p {
    font-size: 1.3em;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

.products-section {
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2em;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.collection-item {
    margin: auto;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(214, 69, 69, 0.1);
    position: relative;
}

.collection-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 20px 20px 0 0;
}

.collection-item:hover::before {
    transform: scaleX(1);
}

.collection-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(214, 69, 69, 0.15);
    border-color: rgba(214, 69, 69, 0.3);
}

.collection-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(1);
}

.collection-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.collection-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.collection-info h3 {
    margin: 0 0 1rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.collection-item:hover .collection-info h3 {
    color: var(--primary-color);
    transform: translateX(5px);
}

.collection-info p {
    margin: 0;
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
}

.price {
    font-weight: 800;
    color: var(--primary-color);
    margin-top: 1rem;
    font-size: 1.5rem;
}

.collection-item .discount-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FF6B6B, #FF9999, #FF6B6B);
    border-radius: 50px;
    margin-top: 10px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    width: fit-content;
}

.collection-item .discount-amount {
    font-size: 1em;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.collection-item .discount-percentage {
    font-size: 0.9em;
    font-weight: 600;
    color: white;
    opacity: 0.95;
}

.why-choose-us {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    border-radius: 5px;
}

.why-choose-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
}

.why-choose-title {
    text-align: center;
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4rem;
    font-weight: 800;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5em;
}

.why-choose-item {
    text-align: center;
    padding: 2.5em 2em;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(214, 69, 69, 0.1);
    position: relative;
    overflow: hidden;
}

.why-choose-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 20px 20px 0 0;
}

.why-choose-item:hover::before {
    transform: scaleX(1);
}

.why-choose-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(214, 69, 69, 0.15);
    border-color: rgba(214, 69, 69, 0.3);
}

.why-choose-icon {
    font-size: 3.5em;
    margin-bottom: 0.5em;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-choose-icon svg {
    width: 60px;
    height: 60px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
}

.why-choose-item:hover .why-choose-icon {
    transform: scale(1.1) rotate(5deg);
}

.why-choose-item h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 0.7em;
    font-weight: 700;
}

.why-choose-item p {
    color: var(--text-color);
    opacity: 0.85;
    font-size: 1.05em;
    line-height: 1.7;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    border: 2px solid rgba(214, 69, 69, 0.1);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1;
    border-radius: 25px 25px 0 0;
}

.modal-layout {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    min-height: 600px;
}

.modal-gallery {
    padding: 60px 30px 40px 40px;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
    display: flex;
    flex-direction: column;
    border-right: 2px solid rgba(214, 69, 69, 0.08);
}

.modal-image-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#modalProductImage {
    max-width: 100%;
    max-height: 600px;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

#modalProductImage:hover {
    transform: scale(1.02);
}

.modal-prev-image, .modal-next-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(214, 69, 69, 0.95), rgba(190, 50, 50, 0.95));
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 2;
}

.modal-prev-image svg, .modal-next-image svg {
    width: 24px;
    height: 24px;
}

.modal-prev-image:hover, .modal-next-image:hover {
    background: linear-gradient(135deg, rgba(240, 200, 105, 0.95), rgba(253, 216, 109, 0.95));
    color: var(--secondary-color);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.modal-prev-image {
    left: -20px;
}

.modal-next-image {
    right: -20px;
}

.modal-thumbnail-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.modal-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modal-thumbnail:hover {
    border-color: rgba(214, 69, 69, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.modal-thumbnail.active {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 8px 20px rgba(214, 69, 69, 0.3);
    transform: scale(1.05);
}

.modal-details {
    padding: 60px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.close {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), #BE3232);
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(214, 69, 69, 0.4);
    cursor: pointer;
    z-index: 10;
}

.close:hover {
    box-shadow: 0 8px 20px rgba(214, 69, 69, 0.6);
}

#modalProductName {
    font-size: 2.5em;
    background: linear-gradient(135deg, var(--primary-color), #BE3232);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#modalProductPrice {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #ff4757 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

.discount-icon {
    font-size: 1.2em;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
    }
}

#modalProductDescription {
    font-size: 1.1em;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

.gender-selection {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gender-selection label {
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(214, 69, 69, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95em;
}

.gender-selection label:hover {
    background: rgba(214, 69, 69, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.gender-selection input[type="radio"]:checked + label,
.gender-selection label:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, var(--primary-color), #BE3232);
    color: white;
    border-color: var(--primary-color);
}

.size-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.size-label {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-color);
}

.size-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.size-button {
    padding: 15px 28px;
    font-size: 1.1em;
    font-weight: 700;
    border: 2px solid rgba(214, 69, 69, 0.3);
    background: white;
    color: var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
}

.size-button:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 69, 69, 0.2);
}

.size-button.active {
    background: linear-gradient(135deg, var(--primary-color), #BE3232);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(214, 69, 69, 0.4);
}

.inventory-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 600;
    margin-top: 8px;
}

.inventory-status.in-stock {
    background: #d4edda;
    color: #155724;
}

.inventory-status.low-stock {
    background: #fff3cd;
    color: #856404;
}

.inventory-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.add-to-cart {
    background: linear-gradient(135deg, var(--primary-color), #BE3232);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(214, 69, 69, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.add-to-cart svg {
    width: 24px;
    height: 24px;
}

.add-to-cart:hover:not(:disabled) {
    background: linear-gradient(135deg, #BE3232, var(--primary-color));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(214, 69, 69, 0.5);
}

.add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.discount-container {
    display: none;
}

#back-button {
    display: none;
    background: linear-gradient(135deg, var(--primary-color), #BE3232);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(214, 69, 69, 0.3);
    margin: 2rem auto;
}

#back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(214, 69, 69, 0.4);
}

@media (max-width: 968px) {
    .collection-hero {
        min-height: 60vh;
    }
    
    .collection-hero-inner {
        padding: 40px 30px;
    }
    
    .collection-hero h1 {
        font-size: 2.5em;
    }
    
    .collection-hero p {
        font-size: 1.15em;
    }
    
    .filter-title {
        font-size: 2.2rem;
    }
    
    .filter-button {
        padding: 1rem 2rem;
        font-size: 1em;
    }
    
    .modal-layout {
        grid-template-columns: 1fr;
    }
    
    .modal-gallery {
        border-right: none;
        border-bottom: 2px solid rgba(214, 69, 69, 0.08);
    }
}

@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-gallery, .modal-details {
        padding: 40px 25px;
    }
    
    #modalProductName {
        font-size: 2em;
    }
    
    #modalProductPrice {
        font-size: 1.8em;
    }
    
    .discount-badge {
        font-size: 0.9em;
        padding: 8px 16px;
    }
    
    .gender-selection {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .size-buttons {
        gap: 10px;
    }
    
    .size-button {
        padding: 12px 22px;
        font-size: 1em;
        min-width: 60px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-prev-image, .modal-next-image {
        width: 50px;
        height: 50px;
    }
    
    .modal-prev-image svg, .modal-next-image svg {
        width: 20px;
        height: 20px;
    }
    
    .modal-thumbnail {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 480px) {
    .collection-hero h1 {
        font-size: 2em;
    }
    
    .collection-hero p {
        font-size: 1em;
    }
    
    .filter-title {
        font-size: 1.8rem;
    }
    
    .filter-button {
        padding: 0.8rem 1.5rem;
    }
    
    .collection-item img {
        height: 300px;
    }
    
    .modal-gallery, .modal-details {
        padding: 30px 20px;
    }
    
    #modalProductName {
        font-size: 1.6em;
    }
    
    .modal-thumbnail-container {
        gap: 8px;
    }
    
    .modal-thumbnail {
        width: 55px;
        height: 55px;
    }
    
    .add-to-cart {
        padding: 16px 30px;
        font-size: 1.1em;
    }
}

.traditional-filters-section {
    margin: 3rem 0;
    padding: 0 2rem;
}

.traditional-filters-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.traditional-filters-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D64545, #F0C869);
    border-radius: 20px 20px 0 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6rem;
    margin-bottom: 2rem;
}

.filter-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-size: 1.05em;
}

.filter-label-icon {
    margin-right: 0.5rem;
}

.filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.1);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.price-input {
    width: calc(50% - 20px);
}

.price-separator {
    color: #888;
    font-weight: 600;
}

.price-currency {
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}

.size-checkboxes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.size-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    transition: all 0.3s ease;
    user-select: none;
}

.size-checkbox-label:hover {
    border-color: var(--primary-color);
    background: rgba(214, 69, 69, 0.05);
}

.size-checkbox {
    display: none;
}

.size-checkbox:checked + .size-checkbox-text {
    color: white;
}

.size-checkbox:checked ~ .size-checkbox-text,
.size-checkbox-label:has(.size-checkbox:checked) {
    background: linear-gradient(135deg, #D64545, #BE3232);
    border-color: #D64545;
    color: white;
}

.size-checkbox-text {
    font-weight: 600;
    transition: color 0.3s ease;
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.reset-filters-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters-btn:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-count {
    font-size: 1.05em;
    color: #666;
    font-weight: 600;
}

.modal-image.zoomed {
    transform: scale(2.5);
    cursor: zoom-out;
    z-index: 1000;
    position: relative;
}

.modal-image:not(.zoomed) {
    cursor: zoom-in;
}

.zoom-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: none;
}

.zoom-backdrop.active {
    display: block;
}

@media (max-width: 968px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .traditional-filters-container {
        padding: 1.5rem;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .reset-filters-btn {
        width: 100%;
    }
}
