* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        }

        body {
            background-color: #ffffff;
            color: #111;
            padding: 20px;
        }

        .bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 42%;
    background-color: #FDF4ED;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: -1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 8%;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 45px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icons svg {
    width: 22px;
    height: 22px;
    cursor: pointer;
    fill: none;
    stroke: #111;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero {
    display: flex;
    align-items: center;
    padding: 0 8%;
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    margin-top: -50px;
}

h1 {
    font-size: 96px;
    font-weight: 800;
    color: #261B14;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 45px;
}
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 90%;
    height: auto;
    transform: translateX(8%);
    z-index: 2;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 56px; 
    height: 56px; 
    object-fit: contain; 
}
@media (max-width: 1024px) {
    h1 {
        font-size: 72px;
    }
    nav ul {
        gap: 20px;
    }
    .hero-image img {
        max-width: 110%;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 5%;
    }
    
    nav {
        display: none;
    }

    .icons svg:last-child {
        display: block; 
    }
    
    .hero {
        flex-direction: column;
        padding: 20px 5% 40px;
        text-align: center;
        height: auto;
    }

    .hero-content {
        display: contents; 
    }

    h1 {
        font-size: 52px;
        margin-top: 20px;
        margin-bottom: 0; 
        order: 1;
    }

    .hero-image {
        width: 100%;
        justify-content: center;
        order: 2;
        margin-bottom: 0; 
        height: auto;
    }

    .hero-image img {
        max-width: 130%;
        max-height: 100vh;
        transform: none;
    }

    .buttons {
        order: 3;
        flex-direction: column;
        width: 100%;
        gap: 15px;
        z-index: 5;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .bg-shape {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
        clip-path: polygon(0 20%, 100% 0, 100% 100%, 0% 100%);
    }
}


    .mobile-menu {
        position: absolute;
        top: 70px; 
        width: 100%; 
        background-color: #ffffff;
        border-radius: 20px; 
        padding: 30px 20px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
        z-index: 999;
    }

    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .mobile-menu li {
        width: 100%;
        border-bottom: 1px solid #f0eaef; 
    }
    .mobile-menu li:last-child {
        border-bottom: none;
    }

    .mobile-menu a {
        text-decoration: none;
        color: #111;
        font-size: 22px;
        font-weight: 600;
        display: block;
        padding: 20px 10px;
    }
    
@media (max-width: 768px) {
    .icons svg:last-child { 
        display: block !important; 
    }

    .mobile-menu {
        display: block !important; 
        position: absolute;
        top: 80px;
        right: 5%;
        width: 90%;
        background-color: #ffffff;
        border-radius: 20px;
        padding: 10px 20px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
    }
    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.icons svg:last-child {
    display: none;
}

.mobile-menu {
    display: none;
}


        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        button {
            cursor: pointer;
            border: none;
            background: none;
            outline: none;
        }

        #catalog-view {
            display: block;
        }

        .section-title {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 30px;
            text-align: center;
            text-transform: uppercase;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            gap: 30px;
        }

        @media (min-width: 576px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (min-width: 992px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

        .product-card {
            cursor: pointer;
            position: relative;
            transition: transform 0.2s;
        }

        .product-card:hover {
            transform: translateY(-5px);
        }

        .product-image-wrapper {
            position: relative;
            width: 100%;
            aspect-ratio: 4/5;
            background-color: #f8f8f8;
            overflow: hidden;
            border-radius: 4px;
            margin-bottom: 15px;
        }

        .product-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .badge-top {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: #ffb800;
            color: #fff;
            padding: 4px 8px;
            font-size: 12px;
            font-weight: bold;
            border-radius: 3px;
        }

        .product-title {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
            line-height: 1.4;
            text-transform: uppercase;
        }

        .product-price {
            font-size: 14px;
            color: #666;
        }

        #detail-view {
            display: none; 
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .back-btn {
            display: inline-flex;
            align-items: center;
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 30px;
            padding: 10px 0;
        }

        .back-btn svg {
            width: 16px;
            height: 16px;
            margin-right: 8px;
        }

        .back-btn:hover {
            color: #ffb800;
        }

        .product-detail-layout {
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        @media (min-width: 768px) {
            .product-detail-layout {
                flex-direction: row;
                align-items: flex-start;
            }
        }
        .slider-container {
            flex: 1;
            width: 100%;
            position: relative;
        }

        .slider {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scrollbar-width: none; 
            -ms-overflow-style: none; 
            border-radius: 8px;
            background-color: #f8f8f8;
        }

        .slider::-webkit-scrollbar {
            display: none; 
        }

        .slider img {
            flex: 0 0 100%;
            width: 100%;
            aspect-ratio: 4/5;
            object-fit: cover;
            scroll-snap-align: center;
        }

        .slider-dots {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
        }

        .dot {
            width: 8px;
            height: 8px;
            background-color: rgba(0,0,0,0.2);
            border-radius: 50%;
            transition: background-color 0.3s;
        }

        .dot.active {
            background-color: #111;
        }

        /* Інформація про товар */
        .product-info {
            flex: 1;
            width: 100%;
        }

        .detail-title {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 15px;
            text-transform: uppercase;
            color: #111;
        }

        .detail-price {
            font-size: 16px;
            color: #666;
            margin-bottom: 40px;
        }

        .size-section {
            margin-bottom: 30px;
        }

        .size-title {
            font-size: 14px;
            margin-bottom: 10px;
            color: #111;
        }

        .sizes {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .size-btn {
            font-size: 14px;
            font-weight: 600;
            color: #111;
            padding: 5px 0;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }

        .size-btn:hover {
            color: #ffb800;
        }

        .size-btn.active {
            border-bottom: 2px solid #111;
        }

        .add-to-cart-btn {
            width: 100%;
            background-color: #111;
            color: #fff;
            padding: 18px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 4px;
            margin-bottom: 40px;
            transition: background-color 0.3s;
        }

        .add-to-cart-btn:hover {
            background-color: #333;
        }

        .description-section {
            font-size: 14px;
            line-height: 1.6;
            color: #111;
        }

        .description-title {
            margin-bottom: 15px;
        }

        .description-content {
            color: #444;
        }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    z-index: 2;
    color: #111;
}

.slider-arrow:hover {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.05);
}

.prev-arrow { left: 15px; }
.next-arrow { right: 15px; }

@media (max-width: 768px) {
    .slider-arrow { display: none; }
}/* Стрілки для слайдера */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    z-index: 2;
    color: #111;
}

.slider-arrow:hover {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.05);
}

.prev-arrow { left: 15px; }
.next-arrow { right: 15px; }

@media (max-width: 768px) {
    .slider-arrow { display: none; }
}
.cart-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #ff4747; 
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 15px;
    text-align: center;
    display: none; 
    transition: transform 0.2s ease;
}

.cart-badge.show {
    display: block;
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- БІЧНА ПАНЕЛЬ КОШИКА --- */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar {
    position: fixed;
    top: 0; right: -450px; /* Сховано за екраном */
    width: 100%; max-width: 450px; height: 100vh;
    background: #fff;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.active { right: 0; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid #eee;
}
.cart-header h3 { font-size: 22px; font-weight: 600; margin: 0;}
.close-cart-btn { background: none; border: none; cursor: pointer; color: #111; }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cart-item { display: flex; gap: 20px; }
.cart-item-img {
    width: 120px; height: 140px;
    background: #f4f4f4;
    object-fit: contain;
}
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 16px; font-weight: 500; text-transform: uppercase; margin-bottom: 15px; line-height: 1.4; }
.cart-item-meta { font-size: 14px; color: #555; margin-bottom: 5px; }
.cart-item-price { color: #ff4747; font-weight: 500; font-size: 15px; margin-bottom: 15px; margin-top: 15px;}

.qty-controls { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.qty-btn { width: 35px; height: 35px; border: 1px solid #111; background: #fff; cursor: pointer; font-size: 18px; }
.qty-btn:hover { background: #f4f4f4; }
.qty-number { font-size: 16px; font-weight: 500; }

.remove-btn { font-size: 13px; font-weight: 600; color: #111; cursor: pointer; background: none; border: none; padding: 0;}
.remove-btn:hover { color: #ff4747; }

.cart-footer { padding: 30px; border-top: 1px solid #eee; }
.checkout-btn { width: 100%; background: #111; color: #fff; padding: 20px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; border-radius: 4px;}
.checkout-btn:hover { background: #333; }

.cart-sidebar {
    position: fixed;
    top: 0; right: -450px; 
    width: 100%; 
    max-width: 450px; 
    height: 100vh;
    background: #fff;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.active { right: 0; }

.checkout-layout { display: flex; flex-direction: column; gap: 40px; margin-bottom: 60px; }
@media(min-width: 992px) { 
    .checkout-layout { flex-direction: row; align-items: flex-start; } 
    .checkout-form { flex: 2; } 
    .checkout-summary { flex: 1; position: sticky; top: 20px; } 
}

.checkout-form h2 { font-size: 22px; margin: 30px 0 20px; font-weight: 500; }
.checkout-form h2:first-child { margin-top: 0; }

.form-row { display: flex; gap: 15px; margin-bottom: 15px; flex-direction: column; }
@media(min-width: 576px) { .form-row { flex-direction: row; } }

.chk-input { flex: 1; padding: 15px 20px; border: none; background-color: #f4f4f4; font-size: 14px; outline: none; border-radius: 2px;}
.chk-input:focus { background-color: #ebebeb; }
.chk-textarea { resize: vertical; min-height: 100px; width: 100%; margin-bottom: 15px; }

.warning-text { color: #ff4747; font-size: 13px; line-height: 1.5; margin-bottom: 20px; }

.radio-label { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 15px; cursor: pointer; }

.checkout-summary { background-color: #f4f4f4; padding: 30px; border: 1px solid #111; }
.checkout-summary h3 { font-size: 20px; font-weight: 500; margin-bottom: 25px; }

.chk-item { display: flex; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #ddd; }
.chk-item-img { width: 80px; height: 100px; object-fit: cover; background: #fff; }
.chk-item-info { flex: 1; font-size: 14px; }
.chk-item-title { font-weight: 600; margin-bottom: 10px; text-transform: uppercase; font-size: 13px; line-height: 1.4;}
.chk-item-meta { color: #666; margin-bottom: 3px; font-size: 13px;}
.chk-item-price { color: #ff4747; font-weight: 500; margin-top: 10px;}

.summary-totals { border-bottom: 1px solid #111; padding-bottom: 20px; margin-bottom: 20px; }
.total-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.total-final { font-weight: 600; font-size: 18px; margin-bottom: 0; margin-top: 15px;}

.summary-agreements { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px;}
.check-label { display: flex; align-items: center; gap: 10px; font-size: 12px; cursor: pointer; }
.check-label a { color: #111; text-decoration: underline; }

.checkout-submit-btn { width: 100%; background: #111; color: #fff; padding: 18px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: 0.3s;}
.checkout-submit-btn:hover { background: #333; }

@media (max-width: 768px) {

    #catalog-view .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important; 
        padding: 0 10px !important; 
    }
    #catalog-view .product-card {
        width: 100% !important;
        max-width: none !important;
        padding: 0 0 15px 0 !important;
        background-color: transparent !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    #catalog-view .product-image-wrapper {
        width: 100% !important;
        aspect-ratio: 3 / 4 !important; 
        padding: 0 !important;
        margin-bottom: 10px !important;
        background-color: #f5f5f5 !important; 
        border-radius: 4px !important; 
        position: relative !important; 
        overflow: hidden !important; 
    }

    #catalog-view .product-image-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    #catalog-view .product-title {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #333 !important;
        line-height: 1.4 !important;
        margin-bottom: 5px !important;
        text-align: left !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    #catalog-view .product-price {
        font-size: 12px !important;
        color: #111 !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }
    #catalog-view .badge-top {
        font-size: 11px !important;
        font-weight: 600 !important;
        padding: 4px 8px !important;
        top: 8px !important;
        right: 8px !important;
        background-color: #f2cb05 !important;
        color: #fff !important;
        border-radius: 4px !important;
        z-index: 2 !important;
    }
}
.mobile-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important; 
    }