/* =====================================================
   ASARIF
   Color palette:
   Cream: #FDFDEF
   Olive: #4A5127
===================================================== */


:root {

    --cream: #FDFDEF;

    --olive: #4A5127;

    --dark: #27291c;

    --white: #ffffff;

    --muted: #747664;

    --line: rgba(74, 81, 39, .18);

    --serif: Georgia, "Times New Roman", serif;

    --sans: Arial, Helvetica, sans-serif;

}


/* =====================================================
   RESET
===================================================== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    background: var(--cream);

    color: var(--olive);

    font-family: var(--sans);

    line-height: 1.6;

}


img {

    display: block;

    width: 100%;

}


a {

    color: inherit;

    text-decoration: none;

}


/* =====================================================
   HEADER
===================================================== */

.header {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    z-index: 100;

    color: white;

}


.navbar {

    max-width: 1200px;

    height: 95px;

    margin: auto;

    padding: 0 30px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.logo {

    font-family: var(--serif);

    font-size: 29px;

    letter-spacing: .12em;

    font-weight: bold;

}


.nav-links {

    display: flex;

    gap: 32px;

    align-items: center;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .16em;

}


.nav-links a {

    opacity: .85;

    transition: .25s;

}


.nav-links a:hover {

    opacity: 1;

}


.menu-button {

    display: none;

    border: none;

    background: none;

    color: white;

    font-size: 25px;

    cursor: pointer;

}


/* =====================================================
   HERO
===================================================== */

.hero {

    min-height: 760px;

    height: 100vh;

    max-height: 900px;

    position: relative;

    display: flex;

    align-items: center;

    color: white;

    overflow: hidden;

}


.hero-image {

    position: absolute;

    inset: 0;

    background:

        url("../images/hero.jpg")

        center / cover

        no-repeat;

}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            rgba(35, 39, 20, .75),
            rgba(35, 39, 20, .15)
        );

}


.hero-content {

    position: relative;

    width: min(1200px, 100%);

    margin: auto;

    padding: 100px 30px 0;

}


.eyebrow {

    font-size: 10px;

    letter-spacing: .25em;

    font-weight: bold;

}


.hero h1 {

    font-family: var(--serif);

    font-size: clamp(70px, 9vw, 125px);

    line-height: .84;

    font-weight: normal;

    letter-spacing: -.045em;

    margin: 30px 0;

}


.hero h1 em {

    font-style: italic;

}


.hero-description {

    max-width: 440px;

    font-size: 15px;

    color: rgba(255,255,255,.85);

}


.hero-buttons {

    display: flex;

    align-items: center;

    gap: 28px;

    margin-top: 38px;

}


.button {

    padding: 16px 26px;

    border-radius: 100px;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .13em;

    font-weight: bold;

}


.button-light {

    background: white;

    color: var(--olive);

}


.hero-link {

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .13em;

    border-bottom: 1px solid rgba(255,255,255,.5);

    padding-bottom: 5px;

}


/* =====================================================
   GENERIC SECTIONS
===================================================== */

.section {

    max-width: 1200px;

    margin: auto;

    padding: 120px 30px;

}


.section-label {

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .22em;

    color: var(--muted);

    margin-bottom: 30px;

}


h2 {

    font-family: var(--serif);

    font-size: clamp(50px, 6vw, 82px);

    line-height: .9;

    font-weight: normal;

    letter-spacing: -.04em;

}


h2 em {

    font-style: italic;

}


/* =====================================================
   INTRO
===================================================== */

.intro-grid {

    display: grid;

    grid-template-columns: 1.2fr 1fr;

    gap: 100px;

}


.intro-text {

    max-width: 440px;

    color: var(--muted);

    font-size: 14px;

}


.intro-text p + p {

    margin-top: 20px;

}


.intro-text strong {

    color: var(--olive);

}


.text-link {

    display: inline-block;

    margin-top: 30px;

    border-bottom: 1px solid var(--olive);

    padding-bottom: 5px;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .13em;

    font-weight: bold;

}


/* =====================================================
   COLLECTIONS
===================================================== */

.collections {

    background: var(--white);

    padding: 120px 30px;

}


.section-container {

    max-width: 1140px;

    margin: auto;

}


.section-heading {

    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 80px;

}


.section-heading > p {

    max-width: 330px;

    color: var(--muted);

    font-size: 13px;

}


.collection-category {

    margin-bottom: 120px;

}


.category-title {

    display: grid;

    grid-template-columns: 50px 1fr 1fr;

    align-items: end;

    gap: 20px;

    margin-bottom: 30px;

}


.category-title > span {

    font-size: 10px;

    color: var(--muted);

}


.category-title h3 {

    font-family: var(--serif);

    font-size: 55px;

    font-weight: normal;

    line-height: .8;

}


.category-title p {

    color: var(--muted);

    font-size: 12px;

}


.category-gallery {

    display: grid;

    grid-template-columns: 1.1fr .9fr;

    gap: 18px;

}


.gallery-card {

    height: 520px;

    position: relative;

    overflow: hidden;

}


.gallery-card.large {

    height: 720px;

    grid-row: span 2;

}


.gallery-card img {

    height: 100%;

    object-fit: cover;

    transition: transform .7s ease;

}


.gallery-card:hover img {

    transform: scale(1.04);

}


.card-overlay {

    position: absolute;

    left: 25px;

    right: 25px;

    bottom: 22px;

    color: white;

    display: flex;

    flex-direction: column;

    text-shadow: 0 2px 10px rgba(0,0,0,.4);

}


.card-overlay strong {

    font-family: var(--serif);

    font-size: 29px;

    font-weight: normal;

}


.card-overlay span {

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .15em;

}


/* =====================================================
   KIDS
===================================================== */

.kids-gallery {

    grid-template-columns: .9fr 1.1fr;

}


/* =====================================================
   CRAFT
===================================================== */

.craft {

    background: var(--olive);

    color: var(--cream);

    padding: 120px 30px;

}


.craft-container {

    max-width: 1140px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;

}


.craft-image {

    height: 700px;

    overflow: hidden;

}


.craft-image img {

    height: 100%;

    object-fit: cover;

}


.craft-content .section-label {

    color: rgba(253,253,239,.6);

}


.craft-content h2 {

    margin-bottom: 35px;

}


.craft-intro {

    max-width: 400px;

    color: rgba(253,253,239,.72);

    font-size: 14px;

    margin-bottom: 45px;

}


.steps {

    border-top: 1px solid rgba(253,253,239,.2);

}


.step {

    display: grid;

    grid-template-columns: 45px 1fr;

    gap: 15px;

    padding: 25px 0;

    border-bottom: 1px solid rgba(253,253,239,.2);

}


.step > span {

    font-size: 10px;

    color: rgba(253,253,239,.55);

}


.step h4 {

    font-family: var(--serif);

    font-size: 27px;

    font-weight: normal;

}


.step p {

    margin-top: 5px;

    font-size: 12px;

    color: rgba(253,253,239,.65);

}


/* =====================================================
   QUOTE
===================================================== */

.quote {

    padding: 150px 30px;

    text-align: center;

    background: var(--cream);

}


.quote p {

    font-family: var(--serif);

    font-size: clamp(45px, 6vw, 80px);

    line-height: .9;

}


.quote em {

    font-style: italic;

}


.quote span {

    display: block;

    margin-top: 35px;

    font-size: 10px;

    letter-spacing: .3em;

}


/* =====================================================
   CONTACT
===================================================== */

.contact {

    padding: 120px 30px;

    background: white;

}


.contact-container {

    max-width: 1140px;

    margin: auto;

    display: grid;

    grid-template-columns: 1.1fr .9fr;

    gap: 100px;

}


.contact-details > p {

    max-width: 420px;

    color: var(--muted);

    font-size: 14px;

    margin-bottom: 35px;

}


.contact-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 0;

    border-top: 1px solid var(--line);

}


.contact-item:last-child {

    border-bottom: 1px solid var(--line);

}


.contact-item span {

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .15em;

    color: var(--muted);

}


.contact-item strong {

    font-size: 12px;

    font-weight: normal;

}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    background: var(--dark);

    color: var(--cream);

    padding: 35px 30px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.footer-logo {

    font-family: var(--serif);

    font-size: 22px;

    letter-spacing: .12em;

}


.footer-logo span {

    display: block;

    font-family: var(--sans);

    font-size: 8px;

    letter-spacing: .15em;

    opacity: .6;

}


.footer p,
.footer > a {

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .1em;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {


    .navbar {

        height: 75px;

        padding: 0 20px;

    }


    .menu-button {

        display: block;

    }


    .nav-links {

        display: none;

        position: absolute;

        top: 75px;

        left: 15px;

        right: 15px;

        padding: 25px;

        background: var(--olive);

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

    }


    .nav-links.open {

        display: flex;

    }


    .hero {

        min-height: 700px;

    }


    .hero-content {

        padding: 100px 20px 0;

    }


    .hero h1 {

        font-size: 70px;

    }


    .hero-buttons {

        align-items: flex-start;

        flex-direction: column;

        gap: 20px;

    }


    .section {

        padding: 80px 20px;

    }


    .intro-grid {

        grid-template-columns: 1fr;

        gap: 45px;

    }


    .collections {

        padding: 80px 20px;

    }


    .section-heading {

        display: block;

    }


    .section-heading > p {

        margin-top: 25px;

    }


    .category-title {

        grid-template-columns: 35px 1fr;

    }


    .category-title p {

        grid-column: 2;

        margin-top: -10px;

    }


    .category-title h3 {

        font-size: 50px;

    }


    .category-gallery,
    .kids-gallery {

        grid-template-columns: 1fr;

    }


    .gallery-card.large {

        grid-row: auto;

        height: 600px;

    }


    .gallery-card {

        height: 500px;

    }


    .craft {

        padding: 80px 20px;

    }


    .craft-container {

        grid-template-columns: 1fr;

        gap: 50px;

    }


    .craft-image {

        height: 520px;

    }


    .quote {

        padding: 100px 20px;

    }


    .contact {

        padding: 80px 20px;

    }


    .contact-container {

        grid-template-columns: 1fr;

        gap: 50px;

    }


    .footer {

        flex-direction: column;

        gap: 20px;

        text-align: center;

    }

}

/* =====================================================
   ORDER PAGE
===================================================== */

.simple-header {

    height: 90px;

    padding: 0 30px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: var(--olive);

    color: var(--cream);

}


.order-page {

    padding: 100px 30px;

}


.order-container {

    max-width: 900px;

    margin: auto;

}


.order-container > h1 {

    font-family: var(--serif);

    font-size: clamp(55px, 7vw, 90px);

    line-height: .9;

    font-weight: normal;

}


.order-container > h1 em {

    font-style: italic;

}


.order-intro {

    max-width: 500px;

    color: var(--muted);

    margin: 30px 0 70px;

}


.form-section {

    padding: 50px 0;

    border-top: 1px solid var(--line);

}


.form-section h2 {

    font-size: 38px;

    margin-bottom: 35px;

}


.form-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

}


.form-field {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 25px;

}


.form-field label {

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .15em;

}


.form-field input,
.form-field textarea {

    width: 100%;

    padding: 15px;

    border: 1px solid var(--line);

    background: white;

    color: var(--olive);

    font: inherit;

    outline: none;

}


.form-field input:focus,
.form-field textarea:focus {

    border-color: var(--olive);

}


.product-order-card {

    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 30px;

    padding: 25px 0;

    border-bottom: 1px solid var(--line);

}


.product-order-card img {

    height: 230px;

    object-fit: cover;

}


.product-order-info h3 {

    font-family: var(--serif);

    font-size: 30px;

    font-weight: normal;

}


.product-order-info p {

    color: var(--muted);

    font-size: 13px;

    margin: 10px 0;

}


.product-order-info label {

    display: flex;

    flex-direction: column;

    gap: 5px;

    margin-top: 20px;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .1em;

}


.quantity-input {

    width: 100px;

    padding: 10px;

    border: 1px solid var(--line);

}


.item-extra-fields {

    display: flex;

    gap: 10px;

    margin-top: 15px;

}


.item-extra-fields input {

    padding: 10px;

    border: 1px solid var(--line);

    width: 50%;

}


.order-submit {

    border: none;

    background: var(--olive);

    color: var(--cream);

    cursor: pointer;

}


.form-message {

    margin: 20px 0;

    font-size: 13px;

}


.order-success {

    padding: 70px 0;

}


.order-success h2 {

    margin-bottom: 30px;

}


.order-success p {

    max-width: 500px;

    color: var(--muted);

    margin-bottom: 15px;

}


/* =====================================================
   ADMIN
===================================================== */

.admin-body {

    background: #f5f5eb;

}


.admin-login {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background: var(--olive);

}


.admin-login-box {

    width: min(400px, 100%);

    padding: 50px;

    background: var(--cream);

}


.admin-login-box > p {

    color: var(--muted);

    margin: 10px 0 30px;

}


.admin-login-box form {

    display: flex;

    flex-direction: column;

    gap: 15px;

}


.admin-login-box input {

    padding: 15px;

    border: 1px solid var(--line);

    background: white;

}


.admin-login-box button {

    border: none;

    cursor: pointer;

    background: var(--olive);

    color: var(--cream);

}


.admin-header {

    height: 90px;

    padding: 0 40px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: var(--olive);

    color: var(--cream);

}


.admin-header > div {

    display: flex;

    align-items: center;

    gap: 20px;

}


.admin-header span {

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .15em;

    opacity: .7;

}


.admin-logout {

    padding: 10px 18px;

    border: 1px solid rgba(253,253,239,.3);

    background: transparent;

    color: var(--cream);

    cursor: pointer;

}


.admin-main {

    max-width: 1200px;

    margin: auto;

    padding: 70px 30px;

}


.admin-title h1 {

    font-family: var(--serif);

    font-size: 65px;

    font-weight: normal;

}


.admin-stats {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin: 50px 0;

}


.admin-stat {

    background: white;

    padding: 25px;

}


.admin-stat span {

    display: block;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .15em;

    color: var(--muted);

}


.admin-stat strong {

    display: block;

    font-family: var(--serif);

    font-size: 45px;

    font-weight: normal;

    margin-top: 10px;

}


.admin-orders {

    background: white;

    padding: 30px;

}


.admin-orders-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

}


.admin-orders-header h2 {

    font-size: 35px;

}


.admin-orders-header .button {

    border: none;

    background: var(--olive);

    color: var(--cream);

    cursor: pointer;

}


.order-row {

    display: grid;

    grid-template-columns:
        120px 1fr 180px;

    gap: 25px;

    align-items: center;

    padding: 20px 0;

    border-top: 1px solid var(--line);

}


.order-number {

    display: flex;

    flex-direction: column;

}


.order-number strong {

    font-family: var(--serif);

    font-size: 22px;

    font-weight: normal;

}


.order-number span,
.order-customer span {

    font-size: 10px;

    color: var(--muted);

}


.order-customer {

    display: flex;

    flex-direction: column;

}


.order-customer strong {

    font-size: 13px;

}


.status-select {

    width: 100%;

    padding: 10px;

    border: 1px solid var(--line);

    background: var(--cream);

}


.empty-orders {

    padding: 60px;

    text-align: center;

    color: var(--muted);

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 700px) {

    .form-grid {

        grid-template-columns: 1fr;

    }


    .product-order-card {

        grid-template-columns: 1fr;

    }


    .product-order-card img {

        height: 350px;

    }


    .item-extra-fields {

        flex-direction: column;

    }


    .item-extra-fields input {

        width: 100%;

    }


    .admin-header {

        padding: 0 20px;

    }


    .admin-header > div {

        gap: 10px;

    }


    .admin-header span {

        display: none;

    }


    .admin-main {

        padding: 50px 20px;

    }


    .admin-stats {

        grid-template-columns: 1fr 1fr;

    }


    .admin-orders {

        padding: 20px;

        overflow-x: auto;

    }


    .order-row {

        min-width: 650px;

    }

}

/* ========================================================= */
/* ORDER DETAILS MODAL                                        */
/* ========================================================= */

.order-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}


.order-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}


.order-modal-content {
    position: relative;
    z-index: 1;

    width: min(900px, 100%);
    max-height: 90vh;

    background: #FDFDEF;

    border-radius: 18px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.20);

    overflow: hidden;

    display: flex;
    flex-direction: column;
}


.order-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding: 24px 28px;

    border-bottom: 1px solid rgba(74, 81, 39, 0.12);
}


.order-modal-header h2 {
    margin: 4px 0 0;
}


.order-modal-close {
    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: transparent;

    color: #4A5127;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}


.order-modal-close:hover {
    background: rgba(74, 81, 39, 0.08);
}


.order-modal-body {
    overflow-y: auto;
    padding: 28px;
}


.order-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.order-detail-section {
    padding: 20px;

    background: rgba(74, 81, 39, 0.035);

    border: 1px solid rgba(74, 81, 39, 0.10);

    border-radius: 14px;
}


.order-detail-section h3 {
    margin: 0 0 16px;

    color: #4A5127;

    font-size: 16px;
}


.order-detail-info {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


.order-detail-info div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.order-detail-info span {
    font-size: 12px;

    opacity: 0.65;
}


.order-detail-info strong {
    word-break: break-word;
}


.order-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}


.order-section-heading > span {
    font-size: 13px;
    opacity: 0.65;
}


.order-products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.order-product {
    padding: 16px;

    background: #fff;

    border: 1px solid rgba(74, 81, 39, 0.10);

    border-radius: 12px;
}


.order-product-main {
    display: flex;
    justify-content: space-between;

    gap: 16px;
}


.order-product-main strong {
    color: #4A5127;
}


.order-product-main span {
    white-space: nowrap;
    font-size: 14px;
}


.order-product-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 10px;
}


.order-product-options span {
    padding: 5px 9px;

    border-radius: 20px;

    background: rgba(74, 81, 39, 0.08);

    font-size: 12px;
}


.order-product-note {
    margin-top: 10px;

    padding-top: 10px;

    border-top: 1px solid rgba(74, 81, 39, 0.08);

    font-size: 13px;

    line-height: 1.5;
}


.order-note-box {
    padding: 14px;

    background: #fff;

    border-radius: 10px;

    line-height: 1.6;

    white-space: pre-wrap;

    word-break: break-word;
}


.order-empty-items {
    opacity: 0.65;
}


/* ========================================================= */
/* ORDER ACTIONS                                              */
/* ========================================================= */

.order-actions {
    display: flex;
    align-items: center;
}


.order-details-button {
    white-space: nowrap;
}


/* ========================================================= */
/* MOBILE                                                     */
/* ========================================================= */

@media (max-width: 700px) {

    .order-modal {
        padding: 10px;
        align-items: flex-end;
    }


    .order-modal-content {
        max-height: 94vh;

        border-radius: 18px 18px 0 0;
    }


    .order-modal-header {
        padding: 20px;
    }


    .order-modal-body {
        padding: 16px;
    }


    .order-detail-info {
        grid-template-columns: 1fr;
    }


    .order-product-main {
        flex-direction: column;
        gap: 6px;
    }


    .order-actions {
        width: 100%;
    }


    .order-details-button {
        width: 100%;
    }

}