/* PRODUCT CARD STYLES - IMPROVED VERSION */
.product-card2 {
    background-color: white;
    border: 1px solid #eee;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.product-card2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.product-image2 {
    position: relative;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    aspect-ratio: 3/4;
    width: 100%;
}

.product-image2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.product-card2:hover .product-image2 img {
    transform: scale(1.05);
}

.product-actions2 {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card2:hover .product-actions2 {
    opacity: 1;
    transform: translateX(0);
}

.action-btn2 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.action-btn2:hover {
    background: #000;
    color: white;
    transform: scale(1.1);
}

.wishlist-btn2.active2 {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
}

.wishlist-btn2.active2 i {
    color: white;
}

.out-of-stock-badge2 {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    font-size: 0.8em;
    letter-spacing: 1px;
    z-index: 2;
}

.out-of-stock2 .product-image2 {
    opacity: 0.7;
}

.product-info2 {
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    background: white;
}

.product-title2 {
    font-size: 1.1em;
    margin: 0 0 8px;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-color2 {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price2 {
    font-size: 1.2em;
    font-weight: 600;
    color: #000;
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
}

/* Стара (перекреслена) ціна — для розпродажу */
.old-price {
    text-decoration: line-through;
    color: #999;
    font-weight: 500;
    font-size: 0.95em;
}

/* Нова (актуальна) ціна — акцент */
.new-price {
    color: #d32f2f;
    font-weight: 700;
}

/* Для одиничних цін без знижки повертаємо звичайний вигляд */
.product-price2 > .new-price:only-child,
.modal-product-price2 > .new-price:only-child {
    color: #000;
    font-weight: 600;
}

/* У кошику/wishlist той самий стиль */
.cart-item-price .old-price,
.wishlist-item-price .old-price {
    font-size: 0.9em;
    margin-right: 6px;
}

/* Бейдж розпродажу на картці товару */
.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d32f2f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 2px;
    z-index: 5;
    pointer-events: none;
}

.new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 2px;
    z-index: 5;
    pointer-events: none;
}

/* PRODUCT GRID - GRID VIEW (LARGE CARDS) */
.product-grid2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.product-grid2 .product-card2 {
    height: 100%;
    min-height: 450px;
}

/* LIST VIEW - COMPACT VERSION */
.product-grid2.list-view2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-grid2.list-view2 .product-card2 {
    flex-direction: row;
    height: 200px;
    min-height: 200px;
    align-items: stretch;
    padding: 0;
    border: 1px solid #eee;
}

.product-grid2.list-view2 .product-image2 {
    flex: 0 0 200px;
    max-width: 200px;
    aspect-ratio: 1;
    min-height: auto;
    height: 100%;
}

.product-grid2.list-view2 .product-info2 {
    flex: 1;
    padding: 25px;
    text-align: left;
    justify-content: center;
    min-height: auto;
}

.product-grid2.list-view2 .product-title2 {
    font-size: 1.2em;
    height: auto;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
}

.product-grid2.list-view2 .product-color2 {
    font-size: 0.95em;
    margin: 8px 0;
}

.product-grid2.list-view2 .product-price2 {
    font-size: 1.3em;
}

.product-grid2.list-view2 .product-actions2 {
    top: 50%;
    right: 20px;
    transform: translateY(-50%) translateX(20px);
    opacity: 0;
}

.product-grid2.list-view2 .product-card2:hover .product-actions2 {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

/* MODAL WINDOW - NO SCROLL */
.product-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal-product-card2 {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background-color: #fff;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-product-card2.active {
    display: flex;
    opacity: 1;
}

.modal-close-btn2 {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.modal-close-btn2:hover {
    transform: rotate(90deg) scale(1.1);
    background: #000;
    color: white;
}

/* Modal Slider Styles - FIXED CENTERING */
.modal-product-images2 {
    flex: 0 0 50%;
    padding: 40px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    max-height: 90vh;
}

.modal-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.modal-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-slide.active {
    display: flex;
    position: relative;
    z-index: 2;
}

.modal-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.modal-image-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #000;
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(0,0,0,0.5);
}

.modal-product-details2 {
    flex: 0 0 50%;
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-product-title2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #222;
    font-weight: 700;
}

.modal-product-price2 {
    font-size: 1.8em;
    color: #000;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-product-reviews2 {
    color: #777;
    font-size: 0.95em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.modal-product-reviews2 i {
    color: #ffd700;
    margin-right: 5px;
}

.modal-see-on-you2 {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    color: #555;
    text-decoration: none;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.modal-see-on-you2:hover {
    background-color: #000;
    color: white;
}

.modal-color-selector2 {
    margin-bottom: 25px;
}

.modal-color-selector2 h3 {
    font-size: 1em;
    margin-bottom: 12px;
    color: #333;
    display: flex;
    align-items: center;
}

.modal-color-options2 {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-color-option2 {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.modal-color-option2:hover {
    transform: scale(1.1);
}

.modal-color-option2.selected2::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.modal-color-option2[data-color="white"].selected2::after {
    color: #333;
}

.modal-size-selector2 {
    margin-bottom: 25px;
}

.modal-size-selector2 h3 {
    font-size: 1em;
    margin-bottom: 12px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-size-selector2 h3 span:last-child {
    font-size: 0.9em;
    color: #777;
    text-decoration: underline;
    cursor: pointer;
    font-weight: normal;
}

.modal-size-dropdown2 {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    appearance: none;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.modal-size-dropdown2:focus {
    border-color: #000;
    outline: none;
}

.modal-in-stock2 {
    display: flex;
    align-items: center;
    color: #28a745;
    margin-bottom: 30px;
    font-weight: 500;
}

.modal-in-stock2::before {
    content: '✓';
    margin-right: 10px;
    font-size: 1.2em;
}

.modal-add-to-cart2 {
    width: 100%;
    padding: 16px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-add-to-cart2:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-add-to-cart2:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* VIEW OPTIONS - ORIGINAL BUTTON STYLE */
.view-options2 {
    display: flex;
    gap: 5px;
}

.view-options2 button {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
    font-size: 1em;
}

.view-options2 button.active2 {
    background-color: #333;
    color: white;
    border-color: #333;
}

.view-options2 button:hover:not(.active2) {
    background-color: #f5f5f5;
}

/* NOTIFICATIONS - FIXED */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #000;
    color: white;
    padding: 18px 25px;
    border-radius: 8px;
    z-index: 10001;
    animation: slideInRight 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification i {
    font-size: 1.2em;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* CART STYLES IN HEADER */
.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* CART ITEMS STYLING */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 0.95em;
    font-weight: 500;
}

.cart-item-details p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.cart-item-price {
    font-weight: 600;
    color: #000 !important;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.cart-item-total {
    font-weight: 700;
    color: #000;
    font-size: 1.1em;
}

.remove-item {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;
    transition: color 0.2s ease;
}

.remove-item:hover {
    color: #ff4757;
}

/* COLLECTION PAGE STYLES */
.collection-page2 {
    max-width: 1200px;
    /* Top відступ враховує top-announcement bar + header — щоб SHOP заголовок не обрізався */
    margin: calc(var(--top-bar-h, 38px) + 90px) auto 80px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .collection-page2 {
        margin: calc(var(--top-bar-h, 32px) + 70px) auto 60px;
    }
}

.collection-title2 {
    text-align: center;
    font-size: 2.5em;
    font-weight: normal;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.controls-bar2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    /* reveal-up додає transform → новий stacking context. Підіймаємо весь bar над сіткою товарів,
       щоб SORT dropdown не опинявся під .product-card2 */
    position: relative;
    z-index: 50;
}

.product-count2 {
    font-size: 0.9em;
    color: #777;
    font-weight: 600;
}

.sort-filter-options2 {
    display: flex;
    align-items: center;
    position: relative;
}

.sort-by2 {
    position: relative;
    margin-right: 15px;
}

.sort-by2 button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    color: #555;
    padding: 0;
}

.sort-by2 button i {
    margin-left: 5px;
    font-size: 0.8em;
}

.dropdown-content2 {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin-top: 5px;
    right: 0;
}

.dropdown-content2.show2 {
    display: block !important;
}

.dropdown-content2 li {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    font-size: 0.9em;
}

.dropdown-content2 li:hover {
    background-color: #f1f1f1;
}

#shop-filter-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    color: #555;
    padding: 0;
    margin-left: 10px;
}

/* FILTER STYLES */
.filter-sidebar2 {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    /* Має бути вище top-announcement bar (z-index: 1002), інакше FILTERS заголовок перекривається */
    z-index: 1100;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.filter-sidebar2.open2 {
    right: 0;
    z-index: 1101;
}

.filter-header2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.filter-header2 h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: normal;
}

.filter-header2 button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #555;
}

.filter-content2 {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.filter-group2 {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.filter-group2:last-child {
    border-bottom: none;
}

.filter-group-header2 {
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
}

.filter-options2 {
    display: none;
    padding-left: 10px;
    margin-top: 10px;
}

.filter-options2.show2 {
    display: block;
}

.filter-options2 label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
}

.filter-options2 input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Стили для цветовых фильтров */
.color-filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.color-filter-option:hover {
    background-color: #f5f5f5;
}

.color-filter-option input[type="checkbox"] {
    display: none;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-filter-option input[type="checkbox"]:checked + .color-dot {
    border-color: #000;
    transform: scale(1.1);
}

.color-name {
    font-size: 0.95em;
    color: #333;
}

.filter-footer2 {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-clear-filters {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 20px;
    font-size: 0.9em;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.shop-clear-filters:hover {
    background-color: #eee;
    border-color: #ccc;
}

.shop-view-results {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
}

/* Size Chart Modal Styles */
.size-chart-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10010;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.size-chart-modal-overlay.active {
    display: block;
    opacity: 1;
}

.size-chart-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: #fff;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    z-index: 10011;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.size-chart-modal.active {
    display: block;
    opacity: 1;
}

.size-chart-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.size-chart-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: #000;
    color: white;
}

.size-chart-content {
    padding: 40px;
    max-height: 80vh;
    overflow-y: auto;
}

.size-chart-content h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #222;
    font-weight: 700;
    text-align: center;
}

.size-chart-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.size-chart-table-container {
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid #eee;
    border-radius: 8px;
}

.size-chart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.size-chart-table thead {
    background-color: #f8f8f8;
}

.size-chart-table th {
    padding: 15px;
    text-align: center;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #eee;
    font-size: 1.1em;
}

.size-chart-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 1em;
}

.size-chart-table tbody tr:last-child td {
    border-bottom: none;
}

.size-chart-table tbody tr:hover {
    background-color: #f9f9f9;
}

.size-chart-notes {
    margin-top: 40px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.size-chart-notes h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #222;
}

.size-chart-notes ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.size-chart-notes li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    line-height: 1.5;
}

.size-chart-notes li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: #000;
    font-size: 1.2em;
}

.size-chart-tip {
    padding: 12px 20px;
    background-color: #e8f4ff;
    border-left: 4px solid #1890ff;
    color: #333;
    font-style: italic;
    margin-top: 15px;
    border-radius: 4px;
}

/* Social Icons in Footer */
.ff-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.ff-icons a {
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
}

.ff-icons a:hover {
    color: #000;
    transform: translateY(-3px);
}

.ff-icons i {
    font-size: 1.2em;
}

/* Стили для цвета в вишлисте */
.wishlist-item-color {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .product-grid2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .product-grid2.list-view2 .product-image2 {
        flex: 0 0 180px;
        max-width: 180px;
    }
    
    .product-grid2.list-view2 .product-card2 {
        height: 180px;
        min-height: 180px;
    }
    
    .modal-product-card2 {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
        width: 95%;
    }
    
    .modal-product-images2 {
        flex: none;
        max-height: 60vh;
        padding: 20px;
    }
    
    .modal-slide img {
        max-height: 35vh;
    }
    
    .modal-product-details2 {
        flex: none;
        max-height: 50vh;
        padding: 30px;
    }
    
    .slider-btn {
        opacity: 1;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .size-chart-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .size-chart-content {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .product-grid2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .product-grid2 .product-card2 {
        min-height: 380px;
    }
    
    .product-grid2.list-view2 .product-card2 {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .product-grid2.list-view2 .product-image2 {
        flex: 0 0 200px;
        max-width: 100%;
        width: 100%;
        aspect-ratio: 3/4;
    }
    
    .product-grid2.list-view2 .product-info2 {
        text-align: center;
        padding: 15px;
    }
    
    .product-grid2.list-view2 .product-actions2 {
        top: 15px;
        right: 15px;
        transform: translateX(20px);
    }
    
    .product-grid2.list-view2 .product-card2:hover .product-actions2 {
        transform: translateX(0);
    }
    
    .modal-product-card2 {
        width: 98%;
        max-height: 95vh;
        flex-direction: column;
    }
    
    .modal-product-images2 {
        max-height: 60vh;
        padding: 15px;
        flex: none;
    }
    
    .modal-product-details2 {
        padding: 25px;
        max-height: 55vh;
        flex: none;
    }
    
    .modal-product-title2 {
        font-size: 1.6em;
    }
    
    .modal-product-price2 {
        font-size: 1.5em;
    }
    
    .slider-btn {
        width: 36px;
        height: 36px;
    }
    
    .notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
    
    .size-chart-content h2 {
        font-size: 1.8em;
    }
    
    .size-chart-table th,
    .size-chart-table td {
        padding: 12px 8px;
        font-size: 0.95em;
    }
    
    .size-chart-notes {
        padding: 20px;
    }
    
    /* Адаптивность для цветных фильтров */
    .color-filter-option {
        padding: 6px;
    }
    
    .color-dot {
        width: 20px;
        height: 20px;
    }
    
    .color-name {
        font-size: 0.9em;
    }
}

@media (max-width: 580px) {
    .product-grid2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .dropdown-content2 {
        right: -100px;
    }
    
    .product-grid2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-grid2 .product-card2 {
        min-height: 500px;
        max-width: 70%;
        margin: 0 auto;
    }
    
    .product-grid2.list-view2 .product-card2 {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .product-grid2.list-view2 .product-image2 {
        flex: 0 0 250px;
        max-width: 100%;
        width: 100%;
        aspect-ratio: 3/4;
    }
    
    .product-grid2.list-view2 .product-info2 {
        padding: 15px;
        text-align: center;
    }
    
    .product-grid2.list-view2 .product-title2 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .product-grid2.list-view2 .product-color2 {
        font-size: 0.9em;
    }
    
    .product-grid2.list-view2 .product-price2 {
        font-size: 1.2em;
    }
    
    .controls-bar2 {
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .view-options2,
    .product-count2,
    .sort-filter-options2 {
        width: 100%;
    }
    
    .sort-filter-options2 {
        display: flex;
        justify-content: space-between;
    }
    
    .size-chart-modal {
        width: 98%;
    }
}

/* Стили для уведомлений магазина */
.shop-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 10001;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.shop-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.shop-notification.error {
    background: #dc3545;
}

/* Стили для белого хедера на странице магазина */
.shop-page header {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.shop-page header .logo,
.shop-page header .nav-links a,
.shop-page header .header-icons i:not(.fa-heart),
.shop-page header .current-currency {
    color: black !important;
}

.shop-page header .wishlist-icon i {
    color: #ee5180 !important;
}

/* На странице магазина не нужно показывать хедер с наведением */
.shop-page header:hover:not(.scrolled) {
    background-color: white !important;
}

.shop-page header:hover:not(.scrolled) .logo,
.shop-page header:hover:not(.scrolled) .nav-links a,
.shop-page header:hover:not(.scrolled) .header-icons i:not(.fa-heart),
.shop-page header:hover:not(.scrolled) .current-currency {
    color: black !important;
}

/* Дополнительные стили для центрирования изображений в слайдере */
.modal-slides-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-slide.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Убедимся, что кнопки слайдера видны и работают */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.slider-btn:hover {
    background: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Убедимся, что индикаторы видны */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

/* Убедимся, что слайды правильно переключаются */
.modal-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-slide.active {
    display: flex;
}

/* ==========================================================================
   ВЕЛИКА МОДАЛКА ТОВАРУ + ГОРИЗОНТАЛЬНИЙ СЛАЙДЕР ФОТО (touch-friendly)
   ========================================================================== */

.modal-product-card2 {
    max-width: 1500px !important;
    width: 95vw !important;
    height: 95vh !important;
    max-height: 95vh !important;
    border-radius: 14px;
}

/* Ліва частина — слайдер фото на повну висоту */
.modal-product-images2 {
    flex: 0 0 58% !important;
    padding: 0 !important;
    background: #f7f7f7 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    height: 100% !important;
    overflow: hidden !important;
}

.modal-image-slider {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: pan-y; /* дозволяємо вертикальний скрол сторінки, ловимо горизонтальні свайпи */
    user-select: none;
}

/* Контейнер слайдів — горизонтальна стрічка зі transform-переключенням */
.modal-slides-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    display: block !important;
}

/* Кожен слайд позиціонується абсолютно, активний — видимий, інші — поруч */
.modal-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
    margin: 0 !important;
}

.modal-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
}

.modal-slide img,
.modal-product-image2 {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    pointer-events: none; /* щоб drag за картинку не блокував свайп */
}

/* Кнопки prev/next — видимі, кругленькі */
.modal-image-slider .slider-btn,
.modal-prev-btn,
.modal-next-btn {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}
.modal-image-slider .slider-btn i {
    font-size: 14px;
    color: #222;
}
.modal-prev-btn { left: 14px !important; }
.modal-next-btn { right: 14px !important; }
.modal-image-slider .slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08) !important;
}

/* Індикатори (точки) під фото */
.modal-image-slider .slider-indicators {
    display: flex !important;
    position: absolute !important;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 10;
}
.modal-image-slider .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.modal-image-slider .indicator.active {
    background: #000;
    transform: scale(1.2);
}

/* Права частина — деталі товару, окремий скрол */
.modal-product-details2 {
    flex: 0 0 42% !important;
    padding: 40px !important;
    overflow-y: auto !important;
    height: 100% !important;
    max-height: none !important;
}

/* Mobile / Tablet — фото зверху, деталі знизу, повний екран */
@media (max-width: 900px) {
    .modal-product-card2 {
        flex-direction: column !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
    .modal-product-images2 {
        flex: none !important;
        width: 100% !important;
        height: 60vh !important;
        max-height: 60vh !important;
    }
    .modal-product-details2 {
        flex: 1 1 auto !important;
        width: 100% !important;
        padding: 24px !important;
    }
    /* На мобільному ховаємо стрілки — користуємось свайпом */
    .modal-image-slider .slider-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .modal-product-details2 {
        padding: 20px !important;
    }
    .modal-image-slider .slider-indicators {
        bottom: 10px;
    }
}

