:root {
    --primary-color: #e63946;
    --dark-color: #0f2027;
    --light-color: #f1faee;
    --accent-color: #a8dadc;
    --text-color: #ffffff;
    --secondary-text: #9ca3af;
}



/* Product Section */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--secondary-text);
    max-width: 700px;
    margin: 0 auto;
}

.section-title:after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: #ffffff;
    margin: 15px auto 0;
    border-radius: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #1f2937;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}



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

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

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

.product-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.product-content .category {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-content p {
    color: var(--secondary-text);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-specs {
    margin: 15px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.spec-item i {
    color: #ffffff;
    opacity: 0.8;
}

.price {
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.btn {
    background-color: #ffffff;
    color: #0f2027;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 700;
}

.btn:hover {
    background-color: #f1faee;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Filter */
.filter-section {
    margin-bottom: 40px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background: transparent;
    color: var(--secondary-text);
    border: 1px solid var(--secondary-text);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #ffffff;
    color: #0f2027;
    border-color: #ffffff;
    font-weight: 700;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    position: relative;
    background-color: #1f2937;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

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

.close1 {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 10;
    cursor: pointer;
    transition: color 0.3s;
}

.close1:hover,
.close1:focus {
    color: var(--primary-color);
}

.modal-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
}

.modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.modal-details {
    flex: 1;
}

.modal-details h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
}

.modal-details p {
    color: var(--secondary-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.modal-specs h3, .modal-features h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid #374151;
    padding-bottom: 8px;
}

.modal-specs .spec-item {
    margin-bottom: 10px;
}

.modal-features ul {
    list-style-type: none;
    padding-left: 0;
}

.modal-features li {
    color: var(--secondary-text);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.modal-features li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

.modal-footer .price {
    font-size: 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #c1121f;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
        gap: 30px;
    }

    .modal-image {
        width: 40%;
        height: auto;
        margin-bottom: 0;
    }

    .modal-details {
        width: 60%;
    }
}

@media (max-width: 767px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .modal-footer .btn {
        width: 100%;
    }
}
