
/* =================================
   PART 2: WEBSITE HEADER
================================= */

:root {
    --color-black: #111111;
    --color-white: #FFFFFF;
    --color-background: #F7F7F5;
    --color-border: #E5E5E3;
    --color-text: #333333;
    --color-muted: #777777;

    --font-heading: "DM Serif Display", serif;
    --font-body: "Manrope", sans-serif;

    --container-width: 1320px;
}

/* Basic Reset */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

button {
    font: inherit;
}

/* Header */

.site-header {
    width: 100%;
    height: 76px;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 100;
}

.header-container {
    width: min(calc(100% - 120px), var(--container-width));
    height: 100%;
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Logo */

.brand-logo {
    display: inline-flex;
    align-items: baseline;

    font-family: var(--font-body);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 2.5px;
    line-height: 1;

    color: var(--color-black);
    white-space: nowrap;
}

.logo-dot {
    color: var(--color-black);
}

/* Search Button */

.header-search {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;

    color: var(--color-black);
    cursor: pointer;

    transition:
        background-color 250ms ease,
        border-color 250ms ease;
}

.header-search i {
    font-size: 23px;
    line-height: 1;
}

.header-search:hover {
    background-color: var(--color-background);
    border-color: var(--color-border);
}

.header-search:focus-visible,
.brand-logo:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: 4px;
}

/* END PART 2: WEBSITE HEADER */



/* =================================
   PART 2: HEADER RESPONSIVE
================================= */

@media (max-width: 768px) {

    .site-header {
        height: 68px;
    }

    .header-container {
        width: calc(100% - 40px);
    }

    .brand-logo {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .header-search {
        width: 40px;
        height: 40px;
    }

    .header-search i {
        font-size: 22px;
    }

}

@media (max-width: 380px) {

    .header-container {
        width: calc(100% - 28px);
    }

    .brand-logo {
        font-size: 20px;
    }

}

/* =================================
   PART 5: PRODUCT LISTING SECTION
================================= */

.product-listing {
    width: min(calc(100% - 120px), var(--container-width));
    margin-inline: auto;
    padding-top: 48px;
    padding-bottom: 72px;
}

/* Listing Header */

.listing-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 28px;
}

.listing-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.listing-eyebrow {
    color: var(--color-muted);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.listing-title {
    color: var(--color-black);
    font-family: var(--font-heading);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.listing-count {
    flex-shrink: 0;
    padding-bottom: 5px;

    color: var(--color-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

/* Product Grid Container */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 38px;
    align-items: start;
}

/* END PART 5: PRODUCT LISTING SECTION */
