* {
    font-family: Helvetica;
}

.main {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.wrapper {
    margin-top: 150px;
    height: 100%;
    max-width: 962px;
    width: 576px;
    border-style: solid;
    border-color: #DDDDDD;
    background-color: #ffffff;
    border-width: 10px;
    display: flex;
    flex-direction: column;
}

.title-box {
    width: 556px;
    height: 115px;
    background-color: #013d7a;
    color: white;
    text-align: center;
    align-items: start;
    margin: 0 auto;
    padding: 20px 10px;
}

.buttons {
    display: flex;
    min-height: 500px;
    flex-direction: column;
    align-items: center;
    color: black;
    text-decoration: none;
}

.buttons button {
    margin: 10px;
    width: fit-content;
    padding: 15px;
    border-radius: 10px;
}

h1 {
    font-size: 4rem;
    margin-top: 25px;
}

.hero {
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 20px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-svg {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.hero-text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    text-align: center;
    color: black;
    z-index: 1;
}

.carport-link {
    display: inline-block;
}

.carport-icon {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-text .btn {
    background-color: #013d7a;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.hero-text .btn:hover {
    background-color: #022a56;
}

.featured-categories {
    padding: 60px 20px;
    text-align: center;
    background-color: #f2f2f2;
}

.featured-categories h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.category-item {
    width: 200px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.category-item:hover {
    transform: scale(1.05);
}

.category-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-item span {
    display: block;
    padding: 10px;
    font-weight: bold;
}

.featured-products {
    padding: 60px 20px;
    text-align: center;
}

.featured-products h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.product-card {
    width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
}

.product-card h4 {
    margin: 10px 0 5px;
    font-size: 1.2rem;
}

.product-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.btn-sm {
    background-color: #013d7a;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-sm:hover {
    background-color: #022a56;
}

.newsletter {
    padding: 60px 20px;
    background-color: #013d7a;
    color: white;
    text-align: center;
}

.newsletter h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.newsletter form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input[type="email"] {
    padding: 10px;
    border-radius: 5px;
    border: none;
    flex: 1;
    min-width: 200px;
}

.newsletter button {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.newsletter button:hover {
    background-color: #9f1818;
}


@media (max-width: 768px) {
    .hero {
        height: 300px;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .product-card,
    .category-item {
        width: 90%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-text {
        display: none;
    }
}

@media (max-width: 650px) {

    .main {
        align-items: normal;
        justify-content: normal;
    }

    .wrapper {
        width: 100%;
        min-width: 300px;
        border-width: 5px;
        box-sizing: border-box;
    }

    .title-box {
        width: calc(100% - 10px);
        min-width: 280px;
        height: auto;
        padding: 5px;
        align-content: center;
    }

    .title-box h1 {
        font-size: 2rem;
    }

    .buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        min-width: 280px;
    }

    .buttons button {
        width: calc(100% - 20px);
        min-width: 270px;
        font-size: 1rem;
    }
}