/* Complete CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body,
h1,
h2,
p {
    margin-block-end: 0;
}

body {
    min-height: 100vh;
    line-height: 1.5;
}

h1,
h2,
button {
    line-height: 1.1;
}

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

button {
    font-family: inherit;
    font-size: inherit;
}

/* Linking Fonts */
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: url('./assets/fonts/montserrat-v31-latin-500.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('./assets/fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 700;
    src: url('./assets/fonts/fraunces-v38-latin-700.woff2') format('woff2');
}

/* Global Changes w/ Root */
:root {
    /* Colors */
    --clr-green-500: hsl(158, 36%, 37%);
    --clr-green-700: hsl(158, 42%, 18%);
    --clr-black: hsl(212, 21%, 14%);
    --clr-grey: hsl(228, 12%, 48%);
    --clr-cream: hsl(30, 38%, 92%);
    --clr-white: hsl(0, 0%, 100%);
    --clr-box-shadow: hsla(0, 0%, 0%, 0.1);

    /* Font */
    --FF-Fraunces: "Fraunces", serif;
    --FF-Montserrat: "Montserrat", sans-serif;

    --FS-12: 0.8rem;   /* 12px */
    --FS-14: 0.9rem;   /* 14px */
    --FS-28: 1.8rem;   /* 28px */
    --FS-30: 1.875rem; /* 30px */

    --FW-500: 500;
    --FW-700: 700;
}

/* Typography */
.page__container {
    font-family: var(--FF-Montserrat);
    font-size: var(--FS-14);
}

.product__category {
    font-weight: var(--FW-500);
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--clr-grey);
}

.product__category,
.product__price--original,
.product__cart-btn {
    font-size: var(--FS-12);
}

.product__title {
    font-family: var(--FF-Fraunces);
    color: var(--clr-black);
    font-size: var(--FS-30);
}

.product__description {
    font-size: var(--FS-14);
    color: var(--clr-grey);
}

.product__price--sale,
.product__price--original {
    font-family: var(--FF-Fraunces);
}

.product__price--sale {
    font-weight: var(--FW-700);
    color: var(--clr-green-500);
    font-size: var(--FS-28);
}

.product__price--original {
    color: var(--clr-green-700);
    text-decoration: line-through;
    opacity: 70%;
    font-weight: var(--FW-500);
}

.product__cart-btn {
    font-family: var(--FF-Montserrat);
    font-weight: var(--FW-700);
    color: var(--clr-white);
}

/* General - Mobile View */
.page__container {
    background-color: var(--clr-cream);
    max-width: 375px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product__container {
    max-width: 350px;
    margin: 0 auto;
    background-color: var(--clr-white);
    border-radius: 0.8em;
    box-shadow: 2px 0px 15px 1px var(--clr-box-shadow);
}

.product__image-container {
    margin-bottom: 0.6em;
}

.perfume__image {
    border-top-left-radius: 0.8em;
    border-top-right-radius: 0.8em;
}

.product__details {
    padding: 1.2em;
}

.product__category,
.product__title,
.product__description,
.product__pricing {
    margin-bottom: 1.2em;
}

.product__description {
    width: 90%;
}

.product__pricing {
    display: flex;
    align-items: center;
}

.product__price--sale {
    margin-right: 0.6em;
}

.product__cart-btn {
    background-color: var(--clr-green-500);
    border: none;
    padding: 0.6em;
    width: 85%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.product__cart-btn:hover,
.product__cart-btn:focus {
    background-color: var(--clr-green-700);
}

.product__cart-btn img {
    margin-right: 10px;
}

/* General - Desktop */
@media (min-width: 1000px) {
    .page__container {
        max-width: 100%;
    }

    .product__container {
        display: flex;
        flex-direction: row;
        max-width: 600px;
        border-radius: 12px;
        overflow: hidden;
    }

    .product__image-container,
    .product__details {
        width: 50%;
    }

    .product__image-container {
        margin-bottom: 0;
    }

    .perfume__image {
        height: 100%;
        width: 110%;
        object-fit: cover;
        border-radius: 0;
    }

    .product__title {
        width: 80%;
    }
}