:root {
    --blue: #004efa;
    --red: #e80f26;
    --yellow: #f8ef08;
    --page-background: #40434e;
    --dark-background: #0e0803;
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

a:focus-visible {
    outline: 3px solid var(--yellow);   
    outline-offset: 4px;
}

body {
    margin: 0;
    background-color: var(--page-background);
    color: white;
    font-family: Arial, sans-serif;
}

.logo {
    width: 350px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: var(--yellow);
    font-size: 30px;
    text-align: center;
    margin-top: 2px;
}

nav {
    background-color: var(--dark-background);
    padding: 18px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 800;
    transition: color 0.4s;
}

nav a.active {
    color: var(--yellow);
}

nav a:hover {
    color: var(--red);
}

.tagline {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}

#main-title {
    letter-spacing: 1px;
}

.hero {
    padding: 40px 20px;
    background-color: var(--dark-background);
    text-align: center;
}

.shop-button {
    background-color: var(--blue);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 16px;
    transition: background-color 0.4s;
}
.shop-button:hover {
    background-color: var(--red);
}

.products {
    text-align: center;
    display: block;
    margin-top: 40px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 800;
}

.product-card {
    border: 2px solid white;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
    flex: 1;
    background-color: var(--page-background);
    box-shadow: 0 4px 12px black;
    border-radius: 16px;
    font-weight: 300;
    transition: background-color 0.4s, transform 0.4s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.price {
    background-color: var(--red);
    padding: 12px 24px;
    text-align: center;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 300;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.product-link {
    color: white;
    text-decoration: none;
    font-weight: 800;
    text-align: center;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--blue);
    padding: 10px 18px;
    border-radius: 16px;
    transition: background-color 0.4s, transform 0.2s;
    cursor: pointer;
}

.product-image-link {
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.product-image-link img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.product-image-link:hover img {
    transform: scale(1.05);
}

.product-link:hover {
    background-color: var(--red);
    transform: translateY(-2px);
}

.product-link:active {
    transform: translateY(2px);
}

.about-preview {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
}

.about-link {
    font-weight: 800;
    text-decoration: none;
    color: var(--yellow);
}

.about-link:hover {
    color: var(--blue);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--dark-background);
}

.about-page {
    background-color: var(--dark-background);
    margin: auto;
    padding: 20px;
    text-align: center;
}

.about-content {
    max-width: 700px;
    margin: 10px auto;
    padding: 20px;
}

.about-block {
    background-color: var(--page-background);
    padding: 20px;
    margin: 10px auto;
    margin-bottom: 20px;
    border-radius: 16px;
    text-align: center;
    max-width: 700px;
}

.about-block h2 {
    color: var(--yellow);
}

.about-content p {
    line-height: 1.6;
}

.about-photo {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px black;
}

.about-photo:hover {
    transform: scale(1.05);
    transition: transform 0.3s;

}

.contact-page {
    max-width:  700px; 
    margin: 40px auto;
    padding: 20px;
}

.contact-page h2 {
    text-align: center;
    color: var(--blue);
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input,
textarea {
    padding: 12px;
    border: 2px solid var(--blue);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.4s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--yellow);
}

textarea {
    min-height: 150px;
}

form button {
    color: white;
    font-weight: 700;
    background-color: var(--blue);
    border: none;
    padding: 12px 24px;
    border-radius: 16px;    
    cursor: pointer;
    transition: background-color 0.4s, transform 0.2s;
}

form button:hover {
    background-color: var(--red);
    transform: translateY(-2px);
    
}

form button:active {
    transform: translateY(2px);
}

@media (max-width: 600px) {
    
    .logo {
        width: 250px;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 14px;
    }

    .products { 
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-card {
        max-width: 100%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 24px;
    }

    .tagline {
        font-size: 16px;
    }

    .about-photo {
        width: 100%;
        max-width: 320px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .about-photo:hover {
        transform: none;
    }

    .about-content {
        padding-left: 16px;
        padding-right: 16px;
    }

}