* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffe6e6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: #d32f2f;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.header-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.header-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: #b71c1c;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.header-button i {
    margin-right: 0.5rem;
}

.header-button:hover {
    background-color: #8e0000;
}

.search-form {
    display: flex;
    justify-content: center;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1.5rem;
    border: 1px solid #fff;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #b71c1c;
}

.search-button, .clear-button {
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #fff;
    transition: color 0.3s;
}

.search-button {
    right: 10px;
}

.clear-button {
    right: 35px;
}

.search-button:hover, .clear-button:hover {
    color: #b71c1c;
}

main {
    padding: 2rem 0;
}

.products-section {
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    color: #222;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.4rem;
    color: #222;
}

.product-title i {
    margin-right: 0.5rem;
}

.product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-details-img {
    flex: 1;
    min-width: 320px;
}

.product-main-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
}

.variant-images {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.variant-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.product-details-info {
    flex: 1;
    min-width: 320px;
}

.product-details-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #222;
}

.product-details-info h2 i {
    margin-right: 0.5rem;
}

.product-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.product-variants {
    margin-bottom: 1.5rem;
}

.variant {
    margin-bottom: 1rem;
}

.variant label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.variant label i {
    margin-right: 0.5rem;
}

.variant-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: #d32f2f;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #b71c1c;
}

.back-button i {
    margin-right: 0.5rem;
}

.contact-section {
    margin-top: 2rem;
    text-align: center;
}

.contact-container {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.8rem;
    color: #d32f2f;
}

.contact-text {
    font-size: 1.1rem;
    color: #333;
}

.contact-phone {
    color: #d32f2f;
    text-decoration: none;
}

.contact-phone:hover {
    text-decoration: underline;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.error-message h2 {
    font-size: 2rem;
    color: #d32f2f;
    margin-bottom: 1rem;
}

.error-message h2 i {
    margin-right: 0.5rem;
}

.lead-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.lead-button button {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.lead-button button i {
    margin-right: 0.5rem;
}

.lead-button button:hover {
    background-color: #b71c1c;
}

.lead-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lead-form-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lead-form-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #d32f2f;
}

.lead-form-content h2 i {
    margin-right: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group label i {
    margin-right: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button,
.close-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button {
    background-color: #d32f2f;
    color: #fff;
    margin-right: 1rem;
}

.submit-button i,
.close-button i {
    margin-right: 0.5rem;
}

.submit-button:hover {
    background-color: #b71c1c;
}

.close-button {
    background-color: #ccc;
    color: #333;
}

.close-button:hover {
    background-color: #aaa;
}

/* Footer */
footer {
    background-color: #b71c1c;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

footer p {
    font-size: 1rem;
}

footer p i {
    margin-right: 0.5rem;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .products {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .product-details {
        flex-direction: column;
        align-items: center;
    }

    .product-main-img {
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.6rem;
    }

    .header-buttons {
        gap: 0.5rem;
    }

    .header-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .search-container {
        max-width: 400px;
    }

    .products {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .product-img-container {
        height: 200px;
    }

    .product-details-img,
    .product-details-info {
        min-width: 100%;
    }

    .lead-button button {
        padding: 0.8rem; /* Reduce padding to make button smaller */
        width: 48px; /* Fixed width to fit icon */
        height: 48px; /* Fixed height to fit icon */
        justify-content: center; /* Center the icon */
        border-radius: 50%; /* Make it circular */
    }

    .lead-button button span {
        display: none; /* Hide the text content */
    }

    .lead-button button i {
        margin-right: 0; /* Remove margin since text is hidden */
        font-size: 1.2rem; /* Adjust icon size */
    }

    .lead-form-content {
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.4rem;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 0.6rem 2.5rem 0.6rem 1rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-details-info h2 {
        font-size: 1.8rem;
    }

    .lead-button button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .lead-form-content h2 {
        font-size: 1.5rem;
    }
}