* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #ffffff;
    color: #111111;
}

h1,
h2,
h3 {
    line-height: 1.1;
    letter-spacing: -0.03em;
}

header {
    padding: 1.5rem 5%;
    background-color: #ffffff;
}

header nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

header nav a:first-of-type {
    margin-right: auto;
}

header img {
    width: 95px;
    height: auto;
    display: block;
}

header nav a {
    color: #111111;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

header nav a:hover {
    opacity: 0.5;
}

header nav a:focus {
    outline: 2px solid #111111;
    outline-offset: 5px;
}

.shop-header {
    padding: 9rem 5% 6rem;
    background-color: #ffffff;
}

.shop-header .section-label {
    margin-bottom: 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.shop-header h1 {
    max-width: 900px;
    margin-bottom: 2rem;
    font-size: clamp(4rem, 9vw, 9rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.shop-header > p:last-child {
    max-width: 550px;
    font-size: 1rem;
    line-height: 1.7;
}

.shop-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 5%;
    background-color: #111111;
    color: #ffffff;
}

.shop-controls label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shop-controls input,
.shop-controls select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #555555;
    border-radius: 0;
    background-color: #111111;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.shop-controls input::placeholder {
    color: #888888;
}

.shop-controls input:focus,
.shop-controls select:focus {
    border-color: #ffffff;
}

.shop-controls select option {
    background-color: #111111;
    color: #ffffff;
}

.product-catalogue {
    padding: 7rem 5% 8rem;
    background-color: #ffffff;
}

.catalogue-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.catalogue-heading h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.catalogue-heading span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555555;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2.5rem;
    row-gap: 5rem;
    padding: 0 2rem;
}

.product-card {
    position: relative;
    overflow: hidden;
    padding-bottom: 0.5rem;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    padding: 0.55rem 0.75rem;
    background-color: #111111;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-brand {
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #777777;
}

.product-card h3 {
    padding-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.product-card:hover h3 {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.product-card > p:not(.product-brand) {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555555;
}

.product-card a {
    display: inline-block;
    padding: 0.85rem 1.4rem;
    border: 1px solid #111111;
    background-color: #111111;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.product-card a:hover {
    background-color: #ffffff;
    color: #111111;
    border-color: #111111;
    transform: translateY(-3px);
}

.product-card a:focus {
    outline: 2px solid #111111;
    outline-offset: 5px;
}

footer {
    padding: 5rem 5% 2rem;
    background-color: #111111;
    color: #ffffff;
}

footer nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 5rem;
}

footer nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

footer nav a:hover {
    opacity: 0.5;
}

footer nav a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 5px;
}

.copyright {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: #777777;
}




/* Responsive design for tablet widths */

@media (max-width: 900px) {

    header {
        padding: 1.5rem 4%;
    }

    header nav {
        gap: 1.5rem;
    }

    header img {
        width: 85px;
    }

    header nav a {
        font-size: 0.7rem;
    }

    .shop-header {
        padding: 7rem 5% 5rem;
    }

    .shop-header h1 {
        font-size: clamp(4rem, 10vw, 7rem);
    }

    .shop-controls {
        gap: 1.5rem;
        padding: 1.75rem 5%;
    }

    .product-catalogue {
        padding: 6rem 5% 7rem;
    }

    .catalogue-heading {
        margin-top: 2rem;
        margin-bottom: 3rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
        row-gap: 4rem;
        padding: 0;
    }

    .product-image img {
        height: 330px;
    }

    .product-card h3 {
        font-size: 0.95rem;
    }

    footer {
        padding: 5rem 5% 2rem;
    }

    footer nav {
        gap: 2rem;
    }

}


/* Responsive design for mobile widths */

@media (max-width: 600px) {

    header {
        padding: 1.25rem 5%;
    }

    header nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-content: stretch;
        align-items: center;
        gap: 0.75rem;
    }

    header nav a:first-of-type {
        grid-column: 1 / 5;
        justify-self: start;
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    header img {
        width: 80px;
    }

    header nav a {
        font-size: 0.6rem;
        letter-spacing: 0.07em;
    }

    .shop-header {
        padding: 5rem 5% 4rem;
    }

    .shop-header .section-label {
        margin-bottom: 1rem;
        font-size: 0.6rem;
    }

    .shop-header h1 {
        margin-bottom: 1.5rem;
        font-size: clamp(3.5rem, 16vw, 5rem);
        line-height: 0.88;
    }

    .shop-header > p:last-child {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .shop-controls {
        display: block;
        padding: 1.5rem 5%;
    }

    .shop-controls > div {
        margin-bottom: 1.5rem;
    }

    .shop-controls > div:last-child {
        margin-bottom: 0;
    }

    .shop-controls label {
        margin-bottom: 0.6rem;
        font-size: 0.6rem;
    }

    .shop-controls input,
    .shop-controls select {
        padding: 0.9rem 1rem;
        font-size: 0.8rem;
    }

    .product-catalogue {
        padding: 5rem 5% 6rem;
    }

    .catalogue-heading {
        display: block;
        margin-top: 0;
        margin-bottom: 2.5rem;
    }

    .catalogue-heading h2 {
        margin-bottom: 0.75rem;
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .catalogue-heading span {
        font-size: 0.6rem;
    }

    .product-grid {
        display: block;
        padding: 0;
    }

    .product-card {
        margin-bottom: 4rem;
    }

    .product-card:last-child {
        margin-bottom: 0;
    }

    .product-image img {
        height: 320px;
        padding: 0 1rem;
    }

    .product-brand {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.6rem;
    }

    .product-card h3 {
        font-size: 1rem;
    }

    .product-card > p:not(.product-brand) {
        font-size: 0.85rem;
    }

    .product-card a {
        padding: 0.8rem 1.2rem;
        font-size: 0.65rem;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .shop-header,
    .shop-controls,
    .product-catalogue,
    footer {
        width: 100%;
        max-width: 100%;
    }

    .product-grid,
    .product-card {
        min-width: 0;
        max-width: 100%;
    }

    .shop-header h1,
    .shop-header p,
    .catalogue-heading h2,
    .product-card h3 {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .shop-controls input,
    .shop-controls select {
        max-width: 100%;
    }

    footer {
        padding: 4rem 5% 2rem;
    }

    footer nav {
        gap: 1.25rem;
        margin-bottom: 3rem;
    }

    footer nav a {
        font-size: 0.65rem;
    }

    .copyright {
        font-size: 0.6rem;
    }

}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    box-sizing: border-box;
    margin: 0;
    padding: 3.5rem 1.5rem 1.5rem;
    border: none;
    background: #111;
    color: #fff;
    overflow: hidden;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.92);
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    z-index: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.65;
}

.lightbox-close:focus-visible,
.product-image img:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.product-image img[role="button"] {
    cursor: zoom-in;
}

@media (max-width: 600px) {
    .lightbox {
        padding: 3.5rem 1rem 1rem;
    }

    .lightbox-image {
        max-height: 100%;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.75rem;
        font-size: 2rem;
    }
}