/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */

:root {
    --bg: #ffffff;
    --text: #ffffff;
    --hover: #5C54A0;
    --header: #453F78;
}

/* Base */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}

/* ------------------------- */
/*          design           */
/* ------------------------- */


.header {
    text-align: center;
    justify-content: left;
    display: flex;
    background-color: var(--header);

    color: white;
    font-family: "Comfortaa", arial, sans-serif;
    font-size: large;

    padding-top: 20px;
    padding-bottom: 20px;

}

.page-header {
    padding: 20px;

    color: black;
    text-align: center;
}

.name {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 5px;
}

.tabs {
    text-align: center;
    justify-content: center;
    background-color: var(--header);

    color: white;
    font-style: italic;
    font-size: large;

    padding-top: 3px;

}

.tab.active {
    color: white;
    font-size: 15px;
    background: none;

    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;


    border: 1px solid rgba(0,0,0,0);
    border-radius: 999px;
}

.tab.active::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 999px;
    background: white;
}

.tab {
    position: relative;
    color: white;
    font-size: 15px;
    background: none;

    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;



    border: 1px solid rgba(0,0,0,0);
    border-radius: 999px;
}

.tab:hover {
    color: white;
    background: var(--hover);

    padding-left: 20px;
    padding-right: 20px;


    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
}

.search-bar {
    display: flex;
    align-items: center;

    width: 400px;
    height: 38px;

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    padding: 0 6px;

    margin-left: 80px;
    margin-right: 20px;

    transform: translateY(5px);

    background: white;
}

.search-bar input {
    flex: 1;

    background: none;
    border: none;
    outline: none;

    color: darkgray;
    padding-left: 10px;
    font-size: 14px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
}

.material-symbols-rounded {
    font-size: 20px !important;
    width: 25px;
    transform: translateY(1px);
    color: darkgray;
}

.content {
    background: white;
    padding: 20px;
    justify-content: center;
    text-align: center;


    color: black;

}

.product-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #ddd;

    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 12px;

    transition: transform .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
}

.product-card h3 {
    margin: 0;
}

.product-card p {
    color: #666;
}

.addtocart {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
    padding-bottom: 5px;

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
}