* {
    box-sizing: border-box
}

:root {
    --ink: #171717;
    --muted: #777;
    --gold: #c7a45a;
    --paper: #faf9f6;
    --line: #e8e4dc
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: "DM Sans", sans-serif
}

button,
input,
textarea,
select {
    font: inherit
}

button {
    cursor: pointer
}

.site-header {
    height: 78px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5
}

.brand {
    color: var(--ink);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .18em
}

.brand span {
    font-size: 18px
}

.brand small {
    font-size: 10px;
    letter-spacing: .48em;
    margin-top: 6px
}

.desktop-nav {
    display: flex;
    gap: 30px
}

.desktop-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 13px
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px
}

.text-btn {
    border: 0;
    background: none;
    color: var(--ink);
    font-weight: 600
}

.gold-btn {
    background: var(--gold);
    color: #171717;
    border: 1px solid var(--gold);
    padding: 12px 18px;
    border-radius: 2px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px
}

.gold-btn:hover {
    background: #b89143
}

.link-btn {
    margin-top: 18px
}

.hero {
    min-height: 510px;
    background: var(--paper);
    padding: 70px 9%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px
}

.hero-copy {
    max-width: 480px
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .22em;
    font-weight: 700;
    color: #9b7a3d
}

.hero h1 {
    font: 700 clamp(42px, 6vw, 72px)/1.05 "Playfair Display", serif;
    margin: 14px 0
}

.hero h1 em {
    color: #a9874a
}

.hero-copy>p:not(.eyebrow) {
    color: #666;
    line-height: 1.8;
    max-width: 390px
}

.hero-art {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #29251f, #65543a);
    padding: 25px
}

.hero-frame {
    border: 1px solid #d2b779;
    color: #f4e7c9;
    width: 100%;
    height: 310px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center
}

.hero-frame span {
    letter-spacing: .3em;
    font-size: 10px
}

.hero-frame strong {
    font: 700 42px/1.05 "Playfair Display", serif;
    margin-top: 25px
}

.shop-section {
    padding: 75px 6%
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px
}

.section-heading h2,
.about-section h2,
.contact-strip h2,
.modal-card h2,
.admin-heading h2 {
    font: 700 36px "Playfair Display", serif;
    margin: 8px 0 22px
}

.search {
    border: 1px solid var(--line);
    padding: 12px 14px;
    width: min(280px, 100%)
}

.category-bar {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 15px 0 28px
}

.category {
    border: 1px solid var(--line);
    background: #fff;
    padding: 9px 15px;
    text-transform: capitalize
}

.category.active,
.category:hover {
    background: #211f1b;
    color: #fff
}

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

.product-card {
    border: 1px solid var(--line);
    background: #fff
}

.product-image {
    width: 100%;
    aspect-ratio: 4/4.6;
    object-fit: cover;
    background: #f2f0eb;
    display: block
}

.product-info {
    padding: 15px
}

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

.product-info p {
    font-size: 12px;
    color: var(--muted);
    min-height: 30px
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px
}

.price {
    font-weight: 700
}

.add-btn {
    background: #1c1b19;
    color: white;
    border: 0;
    padding: 9px 12px;
    font-size: 11px
}

.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 55px;
    color: var(--muted)
}

.about-section {
    text-align: center;
    background: var(--paper);
    padding: 70px 20%;
}

.about-section p:last-child {
    color: var(--muted);
    line-height: 1.8
}

.contact-strip {
    padding: 55px 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px
}

.contact-strip h2 {
    margin-bottom: 8px
}

.contact-strip p:last-child {
    color: var(--muted)
}

footer {
    border-top: 1px solid var(--line);
    padding: 25px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 12px
}

.modal {
    position: fixed;
    inset: 0;
    background: #0009;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: auto
}

.modal-card {
    position: relative;
    background: #fff;
    padding: 32px;
    width: min(440px, 100%);
    max-height: 92vh;
    overflow: auto
}

.wide-card {
    width: min(650px, 100%)
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    border: 0;
    background: none;
    font-size: 28px
}

.tab-row {
    display: flex;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px
}

.tab {
    background: none;
    border: 0;
    padding: 12px 20px;
    color: var(--muted)
}

.tab.active {
    border-bottom: 2px solid var(--gold);
    color: var(--ink)
}

.form-stack {
    display: grid;
    gap: 14px
}

.form-stack label {
    font-size: 12px;
    font-weight: 600;
    display: grid;
    gap: 7px
}

.form-stack input,
.form-stack textarea,
.form-stack select {
    width: 100%;
    border: 1px solid var(--line);
    padding: 12px;
    background: white;
    min-width: 0
}

.form-stack textarea {
    resize: vertical
}

.full-btn {
    width: 100%;
    margin-top: 5px
}

.form-message {
    font-size: 12px;
    color: #8a6a2f;
    line-height: 1.5
}

.hidden {
    display: none !important
}

.cart-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px
}

.qty-controls button {
    border: 1px solid var(--line);
    background: #fff;
    width: 25px;
    height: 25px
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 16px
}

.bank-box {
    background: var(--paper);
    padding: 18px;
    border: 1px solid var(--line);
    font-size: 13px
}

.bank-box p {
    margin: 8px 0
}

.account-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 20px
}

.outline-btn {
    border: 1px solid var(--line);
    background: white;
    padding: 9px 12px
}

.small-note {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5
}

.two-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.admin-panel {
    padding: 35px 6%;
    background: #f6f4ef;
    min-height: 80vh
}

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0
}

.admin-stats>div,
.admin-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 20px
}

.admin-stats span {
    display: block;
    color: var(--muted);
    font-size: 12px
}

.admin-stats strong {
    font-size: 25px
}

.admin-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px
}

.admin-card h3 {
    font: 700 20px "Playfair Display", serif;
    margin-top: 0
}

.admin-order {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    font-size: 12px
}

.admin-order select {
    padding: 7px;
    border: 1px solid var(--line);
    margin-top: 7px
}

.admin-product {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1b1b1b;
    color: white;
    padding: 12px 18px;
    font-size: 12px;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s
}

.toast.show {
    opacity: 1
}

@media(max-width:850px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero {
        padding: 45px 7%;
        gap: 25px
    }

    .hero-frame strong {
        font-size: 32px
    }

    .desktop-nav {
        display: none
    }
}

@media(max-width:560px) {
    .site-header {
        padding: 0 4%;
        height: 68px
    }

    .header-actions {
        gap: 8px
    }

    .header-actions .text-btn {
        font-size: 12px
    }

    .brand span {
        font-size: 15px
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 45px 7%
    }

    .hero-art {
        min-height: 260px
    }

    .hero-frame {
        height: 230px
    }

    .section-heading {
        align-items: stretch;
        flex-direction: column
    }

    .search {
        width: 100%
    }

    .shop-section {
        padding: 50px 5%
    }

    .product-grid {
        gap: 10px
    }

    .product-info {
        padding: 10px
    }

    .product-info h3 {
        font-size: 12px
    }

    .product-bottom {
        align-items: flex-start;
        flex-direction: column
    }

    .about-section {
        padding: 55px 8%
    }

    .contact-strip {
        padding: 40px 7%;
        align-items: flex-start;
        flex-direction: column
    }

    .two-fields,
    .admin-columns,
    .admin-stats {
        grid-template-columns: 1fr
    }

    .modal-card {
        padding: 26px 20px
    }

    .cart-row {
        grid-template-columns: 1fr auto
    }

    .cart-row .qty-controls {
        grid-column: 1/-1
    }

    footer {
        padding: 20px 5%
    }
}

/* MY ORDERS BUTTON */
.my-orders-section {
    margin: 30px auto;
    max-width: 1100px;
    padding: 20px;
}

.my-orders-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    background: #171717;
    color: #c7a45a;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.my-orders-btn:hover {
    background: #292929;
    transform: translateY(-2px);
}

#myOrdersContent {
    margin-top: 20px;
}

.order-card {
    background: #faf9f6;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    margin: 15px 0;
}

.order-card h3 {
    color: #171717;
    margin-top: 0;
}

.order-card p {
    color: #555;
    margin: 8px 0;
}

/* PROFESSIONAL CUSTOMER ORDER CARDS */

#myOrdersContent {
    margin-top: 25px;
}

#myOrdersContent h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.order-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 16px;
    padding: 22px;
    margin: 18px 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.order-card h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #171717;
}

.order-card h4 {
    margin: 20px 0 12px;
    color: #a78336;
}

.order-product {
    background: #faf9f6;
    border: 1px solid #eee9df;
    border-radius: 10px;
    padding: 14px;
    margin: 10px 0;
}

.order-product p {
    margin: 6px 0;
    color: #555;
    font-size: 14px;
}

.order-product p strong {
    color: #171717;
    font-size: 15px;
}

.order-card>p {
    font-size: 14px;
    margin: 10px 0;
    color: #555;
}

.order-card>h3:last-of-type {
    border-top: 1px solid #eee9df;
    padding-top: 15px;
    color: #a78336;
}

@media (max-width: 600px) {
    .order-card {
        padding: 16px;
    }

    .my-orders-btn {
        padding: 16px;
    }
}