/* Products Section Styles */
.products-section {
    padding: 80px 0;
    background: #ffffff;
}

.product-item {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.3;
    min-height: 66px;
}

.product-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-btn:hover {
    background: #333;
    transform: translateX(5px);
}

#loadMoreBtn {
    padding: 15px 40px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: #1a1a1a;
    background: transparent;
    border: 2px solid #1a1a1a;
}

#loadMoreBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #1a1a1a;
    color: #fff;
}

/* Product Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.product-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1100px;
    border-radius: 12px;
    position: relative;
    animation: slideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 35px;
    font-weight: 300;
    color: #fff;
    background: #1a1a1a;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    line-height: 1;
}

.product-modal-close:hover {
    background: #ff4444;
    transform: rotate(90deg);
}

.product-modal-body {
    padding: 40px;
}

.product-modal-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 20px;
}

.product-modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-modal-details {
    padding-left: 30px;
}

.product-modal-details h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.product-modal-details p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.product-modal-specs,
.product-modal-features {
    margin-bottom: 30px;
}

.product-modal-specs h4,
.product-modal-features h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.product-modal-specs ul,
.product-modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-modal-specs ul li,
.product-modal-features ul li {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.product-modal-specs ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1a1a1a;
    font-weight: bold;
}

.product-modal-features ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 20px;
}

.product-modal-actions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .product-modal-details {
        padding-left: 0;
        margin-top: 20px;
    }

    .product-modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .product-modal-body {
        padding: 30px 20px;
    }

    .product-modal-details h2 {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .products-section {
        padding: 60px 0;
    }

    .product-title {
        font-size: 20px;
    }

    .product-description {
        font-size: 13px;
    }

    .product-btn {
        padding: 10px 25px;
        font-size: 13px;
    }

    .product-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }

    .product-modal-body {
        padding: 25px 15px;
    }

    .product-modal-close {
        right: 15px;
        top: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .product-modal-details h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .product-modal-details p {
        font-size: 14px;
    }

    .product-modal-specs h4,
    .product-modal-features h4 {
        font-size: 18px;
    }

    .product-modal-specs ul li,
    .product-modal-features ul li {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .product-content {
        padding: 20px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-modal-image {
        margin-bottom: 15px;
    }

    .product-modal-actions a {
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* Scrollbar Styling for Modal */
.product-modal-content::-webkit-scrollbar {
    width: 8px;
}

.product-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.product-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
