/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f7f6f2;
    color: #111;
    line-height: 1.5;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;
    height: 72px;

    padding: 0 4vw;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    background: rgba(247, 246, 242, 0.94);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid #d8d7d2;

    transition:
        background 0.35s ease,
        box-shadow 0.35s ease;
}

.navbar-scrolled {
    background: rgba(247, 246, 242, 0.92);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-right {
    justify-content: flex-end;
}

.navbar a,
.cart-button {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.navbar a:hover,
.cart-button:hover {
    opacity: 0.5;
}

.logo {
    font-size: 18px !important;
    letter-spacing: -0.04em !important;
    text-transform: none !important;
    font-weight: 500;
}

.cart-button {
    border: 0;
    background: none;
    cursor: pointer;
    color: #111;
}


/* =========================
   GENERAL
========================= */

main {
    overflow: hidden;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #777;
}

.section-heading {
    margin-bottom: 55px;
}

.section-heading h2 {
    margin-top: 15px;

    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 6vw, 82px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.04em;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: calc(100vh - 72px);

    padding: 5vw 4vw 7vw;

    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5vw;

    align-items: center;
}

.hero-text {
    padding-left: 3vw;

    animation:
        heroTextIn 1s cubic-bezier(0.22, 1, 0.36, 1)
        both;

    animation-delay: 0.15s;
}

.hero h1 {
    margin: 20px 0;

    font-family: "Playfair Display", serif;
    font-size: clamp(58px, 8vw, 120px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.055em;
}

.hero-description {
    max-width: 320px;
    margin-bottom: 32px;

    font-size: 14px;
    color: #555;
}

.shop-link {
    display: inline-block;

    padding-bottom: 7px;

    border-bottom: 1px solid #111;

    font-size: 11px;
    letter-spacing: 0.13em;
}

.shop-link:hover {
    opacity: 0.5;
}

.hero-image {
    height: 78vh;
    min-height: 500px;
    overflow: hidden;

    animation:
        heroImageIn 1.2s cubic-bezier(0.22, 1, 0.36, 1)
        both;

    animation-delay: 0.25s;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================
   COLLECTION
========================= */

.collection {
    padding: 10vw 4vw;
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7vw 2vw;
}

.product-card {
    cursor: default;
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #eee;
    aspect-ratio: 0.82 / 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.035);
}

.product-info {
    padding-top: 17px;

    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-info p {
    font-size: 10px;
    color: #777;
    letter-spacing: 0.1em;
}

.price {
    display: flex;
    gap: 8px;
    align-items: baseline;
    white-space: nowrap;
}

.price span {
    font-size: 13px;
    font-weight: 500;
}

.price del {
    font-size: 11px;
    color: #999;
}


/* =========================
   PRODUCT SIZE SELECTOR
========================= */

.product-actions {
    margin-top: 18px;
}

.size-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid #d8d7d2;
    border-left: 1px solid #d8d7d2;
}

.size-selector button {
    padding: 11px 8px;

    border: 0;
    border-right: 1px solid #d8d7d2;
    border-bottom: 1px solid #d8d7d2;

    background: transparent;
    color: #111;

    font-size: 10px;
    letter-spacing: 0.08em;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.size-selector button:hover {
    background: #ecebe6;
}

.size-selector button.selected {
    background: #111;
    color: #fff;
}

.add-product-button {
    width: 100%;

    margin-top: 8px;
    padding: 12px;

    border: 1px solid #111;

    background: transparent;
    color: #111;

    font-size: 10px;
    letter-spacing: 0.12em;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.add-product-button:hover {
    background: #111;
    color: #fff;
}

.size-selector.size-required {
    animation: sizeShake 0.28s ease;
}

@keyframes sizeShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-3px);
    }
}


/* =========================
   THE EDIT
========================= */

.edit {
    padding: 10vw 4vw;
}

.edit-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.edit-heading h2 {
    margin-top: 0;
    text-align: right;
}

.lookbook {
    display: grid;
    grid-template-columns: 1.1fr 0.7fr;
    gap: 2vw;
    align-items: start;
}

.look {
    overflow: hidden;
}

.look img {
    transition:
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.look:hover img {
    transform: scale(1.02);
}

.look-large {
    grid-row: span 2;
}

.look-large img {
    aspect-ratio: 0.76 / 1;
    object-fit: cover;
}

.look-small img {
    aspect-ratio: 0.9 / 1;
    object-fit: cover;
}

.look-wide {
    grid-column: 2;
}

.look-wide img {
    aspect-ratio: 1.25 / 1;
    object-fit: cover;
}


/* =========================
   COLORWAYS
========================= */

.color-section {
    padding: 10vw 4vw;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;

    background: #e9e8e3;
}

.colors {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 16px;

    border-bottom: 1px solid #c7c6c1;
    padding-bottom: 20px;
}

.color-item p {
    font-size: 11px;
    letter-spacing: 0.12em;
}

.swatch {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #aaa;
}

.swatch.black {
    background: #111;
}

.swatch.navy {
    background: #182438;
}


/* =========================
   SIZE
========================= */

.size-section {
    padding: 10vw 4vw;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
}

.size-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.size-content > p {
    font-family: "Playfair Display", serif;
    font-size: clamp(28px, 4vw, 50px);
    margin-bottom: 40px;
}

.sizes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
}

.sizes span {
    padding: 20px;

    text-align: center;

    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;

    font-size: 12px;
}


/* =========================
   ABOUT
========================= */

.about {
    padding: 0 4vw 10vw;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;

    align-items: center;
}

.about-image {
    overflow: hidden;
}

.about-image img {
    aspect-ratio: 0.9 / 1;
    object-fit: cover;
}

.about-text {
    max-width: 470px;
}

.about-text h2 {
    margin: 15px 0 35px;

    font-family: "Playfair Display", serif;
    font-size: clamp(50px, 6vw, 85px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.about-text > p:not(.eyebrow) {
    max-width: 330px;
    margin-bottom: 20px;

    font-size: 14px;
    color: #555;
}


/* =========================
   SOCIAL / CONTACT
========================= */

.social {
    padding: 140px 4vw 120px;

    text-align: center;

    border-top: 1px solid #d8d7d2;
}

.social .eyebrow {
    margin-bottom: 28px;
}

.social h2 {
    margin: 0 0 45px;

    font-family: "Playfair Display", serif;
    font-size: clamp(52px, 7vw, 100px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.social-links a {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;

    transition: opacity 0.25s ease;
}

.social-links a:hover {
    opacity: 0.45;
}

.contact-number {
    display: inline-block;

    margin-top: 20px;

    font-size: 13px;
    letter-spacing: 0.08em;

    transition: opacity 0.25s ease;
}

.contact-number:hover {
    opacity: 0.45;
}


/* =========================
   CART
========================= */

.cart-overlay {
    position: fixed;
    inset: 0;

    z-index: 200;

    background: rgba(0, 0, 0, 0.35);

    opacity: 0;
    visibility: hidden;

    transition: 0.3s;
}

.cart-drawer {
    position: fixed;

    top: 0;
    right: 0;

    z-index: 201;

    width: min(450px, 90vw);
    height: 100vh;

    background: #f7f6f2;

    transform: translateX(100%);

    transition:
        transform 0.4s ease;

    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    height: 72px;

    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #d8d7d2;
}

.cart-header h2 {
    font-family: "Playfair Display", serif;

    font-size: 28px;
    font-weight: 400;
}

.cart-header button {
    border: 0;
    background: none;

    font-size: 28px;

    cursor: pointer;
}

.cart-items {
    flex: 1;

    padding: 25px;

    overflow-y: auto;
}

.empty-cart {
    font-size: 13px;
    color: #777;
}

.cart-item {
    padding: 18px 0;

    border-bottom: 1px solid #d8d7d2;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;

    gap: 15px;
}

.cart-item h3 {
    font-size: 13px;
    font-weight: 500;

    margin-bottom: 5px;
}

.cart-item p {
    font-size: 10px;

    color: #777;

    letter-spacing: 0.08em;
}

.cart-item-price {
    font-size: 12px;
    white-space: nowrap;
}

.remove-item {
    margin-top: 12px;

    border: 0;
    background: none;

    font-size: 9px;
    letter-spacing: 0.12em;

    cursor: pointer;
}

.remove-item:hover {
    opacity: 0.5;
}

.cart-bottom {
    padding: 25px;

    border-top: 1px solid #d8d7d2;
}

.cart-total {
    display: flex;
    justify-content: space-between;

    margin-bottom: 20px;

    font-size: 13px;
}

.checkout-button {
    width: 100%;

    padding: 17px;

    border: 1px solid #111;

    background: #111;
    color: white;

    cursor: pointer;

    font-size: 11px;
    letter-spacing: 0.12em;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.checkout-button:hover {
    background: transparent;
    color: #111;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 35px 4vw;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid #d8d7d2;
}

.footer-logo {
    font-size: 15px;
}

footer p {
    font-size: 10px;
    color: #777;
}


/* =========================
   SCROLL REVEAL
========================= */

.reveal-item {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   IMAGE LOAD
========================= */

img {
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

img:not(.image-loaded) {
    opacity: 0;
}

img.image-loaded {
    opacity: 1;
}


/* =========================
   HERO ANIMATION
========================= */

@keyframes heroTextIn {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes heroImageIn {

    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .navbar {
        height: 62px;

        padding: 0 20px;

        grid-template-columns: 1fr auto;
    }

    .nav-left {
        display: none;
    }

    .nav-right a {
        display: none;
    }

    .logo {
        font-size: 17px !important;
    }


    .hero {

        min-height: auto;

        padding: 50px 20px 70px;

        display: flex;
        flex-direction: column;

        gap: 45px;
    }

    .hero-text {
        padding-left: 0;
        width: 100%;
    }

    .hero h1 {
        font-size: 62px;
    }

    .hero-image {
        width: 100%;
        height: 110vw;
        min-height: 0;
    }


    .collection,
    .edit,
    .color-section,
    .size-section,
    .social {
        padding: 80px 20px;
    }


    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: 48px;
    }


    .product-grid {
        grid-template-columns: 1fr 1fr;

        gap: 45px 10px;
    }

    .product-info {
        display: block;
    }

    .product-info h3 {
        font-size: 12px;
    }

    .product-info p {
        font-size: 9px;
    }

    .price {
        margin-top: 8px;
    }

    .price span {
        font-size: 11px;
    }

    .price del {
        font-size: 9px;
    }


    .product-actions {
        margin-top: 12px;
    }

    .size-selector button {
        padding: 9px 4px;
        font-size: 9px;
    }

    .add-product-button {
        padding: 10px 5px;
        font-size: 9px;
    }


    .edit-heading {
        display: block;
    }

    .edit-heading h2 {
        text-align: left;
        margin-top: 15px;
    }


    .lookbook {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .look-large {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .look-small,
    .look-wide {
        grid-column: auto;
    }


    .color-section,
    .size-section {
        display: block;
    }

    .colors {
        margin-top: 50px;
    }

    .size-content {
        margin-top: 50px;
    }


    .about {

        padding: 0 20px 80px;

        display: flex;

        flex-direction: column;

        gap: 50px;
    }

    .about-text {
        width: 100%;
    }

    .about-text h2 {
        font-size: 58px;
    }


    .social {
        padding: 90px 20px 80px;
    }

    .social h2 {
        font-size: 48px;
        margin-bottom: 38px;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 18px 25px;
    }

    .contact-number {
        margin-top: 22px;
        font-size: 12px;
    }


    footer {
        padding: 25px 20px;
    }


    .reveal-item {
        transform: translateY(30px);
    }

}