.featured-products {
    padding: 60px 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.9s ease !important;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1/1.25;
}

.product-image-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    flex-grow: 1;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.7s ease;
    opacity: 0;
}

.product-image img.active {
    opacity: 1;
    z-index: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-details {
    padding: 20px 0;
    text-align: center;
    flex-shrink: 0;
}

.product-name {
    font-size: 13px;
    font-weight: 450;
    margin: 0 0 5px 0;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #222;
}

.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 12px;
    font-weight: 400;
    color: #222;
}

.original-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.color-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: #222;
}

.color-option.active {
    border: 2.5px solid #000000;
}

.color-option.active .color-x {
    display: block;
}

.color-x {
    color: black;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    line-height: 1;
    margin-top: -2px;
}

/* Next & Previous Buttons */
.product-card .prev-btn,
.product-card .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    color: #222;
    border: none;
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover .prev-btn,
.product-card:hover .next-btn,
.product-card:focus-within .prev-btn,
.product-card:focus-within .next-btn {
    opacity: 1;
    pointer-events: auto;
}

.product-card .prev-btn {
    left: 20px;
}

.product-card .next-btn {
    right: 20px;
}

.product-card .prev-btn:hover,
.product-card .next-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: #000;
}

.product-card .prev-btn:active,
.product-card .next-btn:active {
    transform: translateY(-50%) scale(0.95);
    transition: transform 0.1s ease;
}

.product-card .prev-btn:focus,
.product-card .next-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1), 0 0 0 2px white;
}

.product-card .prev-btn:hover::before,
.product-card .next-btn:hover::before {
    animation: arrowBounce 0.6s ease;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(3px);
    }
}

.loadMoreBtn-btn {
    position: relative;
    padding: 16px 32px;
    background: rgba(0, 0, 0, 1);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    z-index: 1;
    border: 1px solid black;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
    margin: 30px auto;
    min-width: 180px;
    text-align: center;
}

.loadMoreBtn-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #333, #000);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.loadMoreBtn-btn:hover {
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.loadMoreBtn-btn:hover::before {
    transform: translateX(-100%);
}

.loadMoreBtn-btn:active {
    transform: translateY(0);
}

.loadMoreBtn-btn span {
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}

.loadMoreBtn-btn:hover span {
    transform: translateX(5px);
}

.loadMoreBtn-btn.loading {
    pointer-events: none;
}

.loadMoreBtn-btn.loading::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translateY(-50%);
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Full responsive media queries */

/* Large desktops */
@media (max-width: 1600px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-image {
        height: 450px;
    }
}

/* Laptops */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-image {
        height: 400px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .product-image {
        height: 380px;
    }
}

/* Large mobiles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-image {
        height: 300px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 13px;
    }

    .current-price {
        font-size: 12px;
    }

    .original-price {
        font-size: 11px;
    }
}

/* Small mobiles */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-image {
        height: 250px;
    }

    .product-name {
        font-size: 13px;
    }
}

/* Very small / ultra mobiles */
@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-image {
        height: 220px;
    }

    .product-name {
        font-size: 12px;
    }
}