@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* =========================================================
   FARBOUND — GLOBAL STYLES
   ========================================================= */

:root {
    --black: #111;
    --white: #fff;
    --background: #f4f4f1;
    --grey: #e9e9e5;
    --image-grey: #deded9;
    --muted: #6d6d68;
    --line: #d6d6d0;
    --border: #bbb;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--black);
    font-family: Inter, Arial, sans-serif;
}

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

button,
input,
select {
    font: inherit;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    height: 76px;
    padding: 0 5%;
    background: var(--black);
    color: var(--white);

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

    position: sticky;
    top: 0;
    z-index: 20;
}

.logo {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 4px;
}

.site-header nav {
    display: flex;
    gap: 27px;

    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-header nav a {
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.site-header nav a:hover,
.site-header nav .active {
    opacity: 1;
}

.menu-btn {
    display: none;

    padding: 0;
    border: 0;
    background: none;
    color: var(--white);

    font-size: 24px;
    cursor: pointer;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 78vh;
    padding: 8vw;
    background: #d7d7d2;

    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 900px;
}

.eyebrow {
    margin: 0 0 16px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.hero h1 {
    margin: 0;

    font-size: clamp(55px, 10vw, 145px);
    line-height: 0.84;
    letter-spacing: -7px;
}

.hero-sub {
    margin: 28px 0;

    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    padding: 15px 25px;
    border: 0;

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

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;

    cursor: pointer;
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--black);
}

/* =========================================================
   FEATURE STRIP
   ========================================================= */

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-bottom: 1px solid var(--line);
}

.feature-strip div {
    padding: 25px 5%;

    display: flex;
    gap: 18px;
}

.feature-strip strong {
    font-size: 11px;
}

.feature-strip span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    max-width: 1400px;
    margin: auto;
    padding: 90px 5%;
}

.section-heading {
    margin-bottom: 35px;

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

.section h1,
.section h2 {
    margin: 0;

    font-size: 46px;
    letter-spacing: -2px;
}

.text-link {
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    min-width: 0;
    overflow: hidden;
}

/*
   Product image wrapper.

   This keeps the image centred inside the card and prevents
   it from hanging outside the left/right edges.
*/

.product-image {
    width: 100%;
    aspect-ratio: 4 / 5;

    background: var(--image-grey);

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

    position: relative;
    overflow: hidden;

    color: #8a8a84;
    font-size: 11px;
    letter-spacing: 2px;
}

/*
   IMPORTANT:
   Keep the image centred and contained.

   "contain" prevents the product from being cropped and
   keeps the entire product visible inside the card.
*/

.product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center center;

    margin: 0;
    padding: 0;
}

/*
   Background branding.
   Put this behind the actual product image.
*/

.product-image::after {
    content: "FARBOUND";

    position: absolute;
    inset: 0;

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

    font-size: 36px;
    font-weight: 900;
    letter-spacing: 4px;

    opacity: 0.1;

    pointer-events: none;
}

/*
   Make sure the actual image stays above the
   background branding.
*/

.product-image img {
    position: relative;
    z-index: 1;
}

/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.product-info {
    padding: 15px 0;
}

.product-info h3 {
    margin: 0 0 7px;
    font-size: 14px;
}

.product-info p {
    margin: 0;
    font-size: 13px;
}

.product-link {
    display: block;
}

/* =========================================================
   STATEMENT
   ========================================================= */

.statement {
    padding: 120px 8%;

    background: var(--black);
    color: var(--white);

    text-align: center;
}

.statement h2 {
    margin: 0 0 45px;

    font-size: clamp(45px, 8vw, 100px);
    line-height: 0.9;
    letter-spacing: -5px;
}

/* =========================================================
   PAGE TITLE
   ========================================================= */

.page-title {
    padding: 100px 20px;

    background: var(--image-grey);

    text-align: center;
}

.page-title h1 {
    margin: 0;

    font-size: clamp(60px, 11vw, 140px);
    letter-spacing: -6px;
}

.page-title p:last-child {
    margin-top: 25px;
}

/* =========================================================
   SHOP TOOLBAR
   ========================================================= */

.shop-toolbar {
    margin-bottom: 30px;
    padding-bottom: 18px;

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

    border-bottom: 1px solid var(--line);
}

.filter {
    margin-right: 22px;
    padding: 0;

    border: 0;
    background: none;

    color: #777;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;

    cursor: pointer;
}

.filter.active {
    color: var(--black);
    font-weight: 800;
}

.shop-toolbar select {
    padding: 9px;

    border: 1px solid var(--line);
    background: transparent;
}

/* =========================================================
   PRODUCT PAGE
   ========================================================= */

.product-page {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
}

.product-gallery {
    min-width: 0;
}

.product-large {
    aspect-ratio: 1 / 1;

    background: var(--image-grey);

    display: grid;
    place-items: center;

    color: #777;

    overflow: hidden;
}

.product-large img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center center;

    margin: 0;
}

/* =========================================================
   PRODUCT THUMBNAILS
   ========================================================= */

.product-thumbnails {
    display: flex;
    gap: 10px;

    margin-top: 12px;

    overflow-x: auto;
}

.product-thumbnail {
    width: 78px;
    height: 96px;

    flex: 0 0 auto;

    padding: 0;

    border: 1px solid var(--line);
    background: var(--image-grey);

    overflow: hidden;

    cursor: pointer;
}

.product-thumbnail.selected {
    border: 2px solid var(--black);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center center;
}

/* =========================================================
   PRODUCT DETAILS
   ========================================================= */

.product-copy h1 {
    margin: 0 0 15px;

    font-size: 55px;
    line-height: 0.95;
    letter-spacing: -3px;
}

.price {
    font-size: 18px;
}

.product-description {
    color: var(--muted);
    line-height: 1.7;
}

/* =========================================================
   SIZES
   ========================================================= */

.sizes {
    display: flex;
    gap: 8px;

    margin: 25px 0;
}

.size-btn {
    padding: 12px 18px;

    border: 1px solid var(--border);
    background: var(--white);

    cursor: pointer;
}

.size-btn.selected {
    background: var(--black);
    color: var(--white);
}

.quantity {
    width: 70px;

    margin-bottom: 15px;
    padding: 13px;

    border: 1px solid var(--border);
}

/* =========================================================
   CART
   ========================================================= */

.cart-section {
    min-height: 70vh;
}

.cart-row {
    padding: 18px 0;

    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;

    border-bottom: 1px solid var(--line);
}

.cart-thumb {
    width: 100px;
    height: 120px;

    background: #ddd;

    display: grid;
    place-items: center;

    font-size: 9px;

    overflow: hidden;
}

.cart-thumb img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center center;
}

.cart-summary {
    max-width: 420px;
    margin: 35px 0 0 auto;
    padding-top: 20px;

    border-top: 2px solid var(--black);
}

.summary-line {
    margin: 12px 0;

    display: flex;
    justify-content: space-between;
}

.discount-line {
    font-weight: 700;
}

/* =========================================================
   AUTH
   ========================================================= */

.auth-wrap {
    min-height: calc(100vh - 76px);
    padding: 40px 20px;

    display: grid;
    place-items: center;
}

.auth-card {
    width: min(460px, 100%);
    padding: 42px;

    background: var(--white);
}

.auth-card h1 {
    margin: 0 0 30px;

    font-size: 48px;
    letter-spacing: -3px;
}

.auth-card form {
    display: grid;
    gap: 18px;
}

.auth-card label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-card input {
    display: block;

    width: 100%;

    margin-top: 7px;
    padding: 14px;

    border: 1px solid var(--border);
}

.auth-card small {
    display: block;

    margin-top: 5px;

    color: #777;
}

.auth-switch {
    font-size: 13px;
    color: #666;
}

.auth-switch a {
    color: var(--black);
    text-decoration: underline;
}

/* =========================================================
   NOTICES
   ========================================================= */

.notice {
    margin: 20px 0;
    padding: 17px;

    background: #e6e6e1;
}

/* =========================================================
   EMPLOYEE / DASHBOARD
   ========================================================= */

.employee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.dashboard-card {
    min-height: 150px;
    padding: 30px;

    background: var(--white);
}

.dashboard-card h3 {
    margin-top: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding: 55px 5%;

    background: var(--black);
    color: var(--white);

    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 30px;
    align-items: end;
}

.footer p {
    color: #aaa;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;

    font-size: 12px;
}

.copyright {
    margin: 0;
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .site-header nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        min-height: 70vh;
        padding: 45px 7%;
    }

    .hero h1 {
        letter-spacing: -4px;
    }

    .feature-strip {
        grid-template-columns: 1fr;
    }

    .feature-strip div {
        border-bottom: 1px solid var(--line);
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding: 60px 5%;
    }

    .product-page {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .employee-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        grid-template-columns: 1fr;
    }

    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .cart-row {
        grid-template-columns: 70px 1fr;
    }

    .cart-row > div:last-child {
        grid-column: 2;
    }

    .cart-thumb {
        width: 70px;
        height: 85px;
    }

    .auth-card {
        padding: 28px;
    }

    .page-title {
        padding: 70px 20px;
    }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 450px) {

    .product-grid {
        gap: 12px;
    }

    .hero h1 {
        font-size: 54px;
    }

    .section h1,
    .section h2 {
        font-size: 38px;
    }

    .product-copy h1 {
        font-size: 42px;
    }

    .product-image {
        aspect-ratio: 4 / 5;
    }
}

/* Authentication / employee dashboard */
.auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:#777;font-size:12px;letter-spacing:.12em}
.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#ddd;flex:1}
.dashboard-intro{margin-bottom:24px}
.order-tabs{display:flex;gap:8px;border-bottom:1px solid #ddd;margin:24px 0}
.tab-btn{border:0;background:transparent;padding:13px 18px;cursor:pointer;font:inherit}
.tab-btn.active{border-bottom:2px solid currentColor;font-weight:700}
.order-panel{display:none}
.order-panel.active{display:block}
.order-card{border:1px solid #ddd;padding:20px;margin:0 0 16px;background:#fff}
.order-head{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #eee;padding-bottom:12px}
.order-head p,.user-row p{margin:5px 0 0;color:#666}
.order-status{font-weight:700;text-transform:uppercase;font-size:12px;letter-spacing:.08em}
.order-details{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:16px 0}
.order-details h4{margin:0 0 8px;text-transform:uppercase;font-size:12px;letter-spacing:.08em}
.order-details ul{padding-left:18px;margin:0}
.order-actions{display:flex;gap:8px;flex-wrap:wrap}
.admin-section{margin-top:56px;padding-top:32px;border-top:1px solid #ddd}
.user-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid #ddd;padding:16px;margin:8px 0}
.user-role{display:flex;align-items:center;gap:12px}
.user-role>span{text-transform:uppercase;font-size:12px;letter-spacing:.08em}
.address-field{display:block;margin:24px 0}
.address-field textarea{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #ccc;font:inherit;box-sizing:border-box}
@media(max-width:700px){
  .order-details{grid-template-columns:1fr}
  .user-row{align-items:flex-start;flex-direction:column}
}
