:root {
    --bg: #0b0908;
    --surface: #14110f;
    --surface2: #1c1713;
    --cream: #fff8ef;
    --muted: #a99d91;
    --brown: #b88963;
    --brown2: #d2a47d;
    --line: #ffffff18;
    --danger: #d96b62;
    --success: #72b889;
    --shadow: 0 24px 70px #0008
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--cream);
    line-height: 1.6
}

body.light {
    background: #f8f5f1;
    color: #17120e
}

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

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

.container {
    width: min(1180px, 92%);
    margin: auto
}

.site-header {
    height: 78px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0b0908ee;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line)
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px
}

.logo {
    font-weight: 950;
    letter-spacing: 2px;
    font-size: 1.2rem
}

.logo span {
    color: var(--brown2)
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px
}

.nav-links a {
    color: #c9beb4;
    font-size: .9rem;
    font-weight: 700;
    transition: .2s
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.cart-btn {
    position: relative;
    border: 1px solid var(--line);
    background: #ffffff0b;
    color: #fff;
    border-radius: 999px;
    padding: 10px 15px;
    cursor: pointer
}

.cart-count {
    position: absolute;
    right: -5px;
    top: -5px;
    min-width: 19px;
    height: 19px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brown2);
    color: #17100c;
    font-size: .68rem;
    font-weight: 900
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    color: #fff;
    font-size: 1.5rem
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 850;
    cursor: pointer;
    transition: .2s
}

.btn:hover {
    transform: translateY(-2px)
}

.btn-primary {
    background: var(--cream);
    color: #17110d
}

.btn-brown {
    background: var(--brown);
    color: #fff
}

.btn-outline {
    border: 1px solid var(--line);
    background: #ffffff08;
    color: #fff
}

.btn-danger {
    background: #5a201d;
    color: #fff
}

.hero {
    min-height: calc(100vh - 78px);
    display: grid;
    align-items: center;
    background: radial-gradient(circle at 78% 24%, #b8896338, transparent 28%), linear-gradient(135deg, #0b0908, #2b211b)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 55px;
    padding: 90px 0
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: .7rem;
    font-weight: 900;
    color: var(--brown2);
    margin-bottom: 16px
}

.hero h1 {
    font-size: clamp(3.3rem, 8vw, 7.5rem);
    line-height: .9;
    letter-spacing: -5px;
    margin-bottom: 28px
}

.hero h1 span,
h2 span {
    color: var(--brown2)
}

.lead {
    color: #b9afa7;
    max-width: 680px
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px
}

.hero-card {
    border: 1px solid var(--line);
    background: #ffffff0a;
    border-radius: 28px;
    padding: 14px;
    box-shadow: var(--shadow);
    transform: rotate(2deg)
}

.hero-card img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 20px
}

.section {
    padding: 95px 0
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 36px
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05
}

.grid {
    display: grid;
    gap: 22px
}

.products {
    grid-template-columns: repeat(3, 1fr)
}

.card {
    background: linear-gradient(145deg, #211b17, #14110f);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 18px 50px #0004
}

.product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover
}

.product-info {
    padding: 22px
}

.tag {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 99px;
    background: #ffffff0b;
    border: 1px solid var(--line);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbb9aa
}

.product-info h3 {
    font-size: 1.25rem;
    margin: 10px 0 6px
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px
}

.price {
    font-size: 1.25rem;
    font-weight: 950;
    color: var(--brown2)
}

.add-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: #17110d;
    border-radius: 12px;
    padding: 10px 13px;
    font-weight: 900;
    cursor: pointer
}

.add-btn:hover {
    background: var(--brown2)
}

.page-hero {
    padding: 80px 0 55px;
    background: linear-gradient(180deg, #2a201a, #0b0908)
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center
}

.feature-list {
    display: grid;
    gap: 16px;
    margin-top: 28px
}

.feature {
    display: flex;
    gap: 14px;
    align-items: flex-start
}

.icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #b8896326;
    color: var(--brown2);
    display: grid;
    place-items: center;
    flex: none
}

.feature strong {
    display: block;
    margin-bottom: 2px
}

.muted {
    color: var(--muted)
}

.image-frame {
    border: 1px solid var(--line);
    padding: 10px;
    border-radius: 25px;
    background: #ffffff08
}

.image-frame img {
    display: block;
    width: 100%;
    height: 470px;
    object-fit: cover;
    border-radius: 18px
}

footer {
    border-top: 1px solid var(--line);
    padding: 38px 0;
    color: var(--muted)
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px
}

.footer-links {
    display: flex;
    gap: 18px
}

.form {
    display: grid;
    gap: 15px
}

.form-group {
    display: grid;
    gap: 7px
}

.form label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 850;
    color: #cbbfb5
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--line);
    background: #ffffff0b;
    color: #fff;
    border-radius: 13px;
    outline: none
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: #b8896388;
    box-shadow: 0 0 0 3px #b8896320
}

.form textarea {
    min-height: 150px;
    resize: vertical
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 24px
}

.info-card {
    padding: 28px
}

.info-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--line)
}

.info-item:last-child {
    border: 0
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    padding: 13px 18px;
    border-radius: 12px;
    background: var(--cream);
    color: #17110d;
    font-weight: 800;
    display: none;
    z-index: 300;
    box-shadow: var(--shadow)
}

.toast.show {
    display: block
}

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none
}

.cart-drawer.show {
    display: block
}

.cart-overlay {
    position: absolute;
    inset: 0;
    background: #000b
}

.cart-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: min(460px, 94vw);
    background: #15110f;
    border-left: 1px solid var(--line);
    padding: 25px;
    display: flex;
    flex-direction: column
}

.cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px
}

.icon-btn {
    border: 1px solid var(--line);
    background: #ffffff08;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer
}

.cart-items {
    flex: 1;
    overflow: auto;
    padding: 18px 0
}

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

.cart-item img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover
}

.cart-item h4 {
    font-size: .95rem
}

.qty {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px
}

.qty button {
    width: 27px;
    height: 27px;
    border: 1px solid var(--line);
    background: #ffffff08;
    color: #fff;
    border-radius: 7px;
    cursor: pointer
}

.cart-total {
    border-top: 1px solid var(--line);
    padding-top: 18px
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 16px
}

.modal {
    position: fixed;
    inset: 0;
    background: #000b;
    display: none;
    place-items: center;
    padding: 20px;
    z-index: 250
}

.modal.show {
    display: grid
}

.modal-box {
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #17120f;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 25px
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px
}

.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line)
}

.success {
    color: var(--success)
}

.empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--muted)
}

.testimonial-grid {
    grid-template-columns: repeat(3, 1fr)
}

.quote {
    padding: 28px
}

.stars {
    color: var(--brown2);
    letter-spacing: 2px
}

.admin {
    background: #0b0908
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 245px 1fr
}

.sidebar {
    padding: 28px 22px;
    border-right: 1px solid var(--line);
    position: sticky;
    top: 0;
    height: 100vh;
    background: #0d0b09
}

.side-links {
    display: grid;
    gap: 7px;
    margin-top: 38px
}

.side-links a {
    padding: 12px 14px;
    color: #aaa;
    border-radius: 12px
}

.side-links a:hover,
.side-links a.active {
    background: #fff1;
    color: #fff
}

.admin-main {
    padding: 32px
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px
}

.stats {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 24px
}

.stat {
    padding: 24px
}

.stat strong {
    font-size: 2.3rem;
    display: block
}

.stat small {
    color: var(--muted)
}

.table-wrap {
    overflow: auto
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px
}

.table th,
.table td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top
}

.table th {
    font-size: .7rem;
    color: #8e877f;
    text-transform: uppercase
}

.small-btn {
    padding: 8px 11px;
    border-radius: 9px;
    background: #fff1;
    color: #fff;
    border: 1px solid var(--line);
    cursor: pointer
}

.status {
    padding: 5px 10px;
    border-radius: 99px;
    background: #b8896328;
    color: #dbc1a8;
    font-size: .72rem
}

.resolved {
    background: #72b88925;
    color: #b9d8be
}

.mobile-only {
    display: none
}

@media(max-width:900px) {

    .hero-grid,
    .split,
    .contact-grid,
    .checkout-grid {
        grid-template-columns: 1fr
    }

    .products,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero-card {
        max-width: 600px;
        margin: auto
    }

    .hero-card img {
        height: 400px
    }

    .admin-layout {
        grid-template-columns: 1fr
    }

    .sidebar {
        position: static;
        height: auto
    }

    .side-links {
        display: flex;
        overflow: auto;
        margin-top: 18px
    }

    .stats {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:680px) {
    .nav-links {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: #0b0908f7;
        border-bottom: 1px solid var(--line);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px 5%;
        gap: 0
    }

    .nav-links.open {
        display: flex
    }

    .nav-links a {
        padding: 13px 0
    }

    .menu-toggle {
        display: block
    }

    .nav-actions .btn {
        display: none
    }

    .products,
    .testimonial-grid {
        grid-template-columns: 1fr
    }

    .section {
        padding: 70px 0
    }

    .hero-grid {
        padding: 65px 0
    }

    .hero h1 {
        letter-spacing: -3px
    }

    .hero-card img {
        height: 340px
    }

    .section-head {
        display: block
    }

    .section-head p {
        margin-top: 12px
    }

    .admin-main {
        padding: 20px
    }

    .stats {
        grid-template-columns: 1fr
    }

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

    .footer-inner {
        display: block
    }

    .footer-links {
        margin-top: 15px
    }

    .mobile-only {
        display: block
    }
}

/* Professional e-commerce fixes */
img {
    max-width: 100%;
}

button {
    -webkit-tap-highlight-color: transparent;
}

input::placeholder,
textarea::placeholder {
    color: #8f857c;
    opacity: 1;
}

.form select option {
    background: #17120f;
    color: #fff;
}

@media (max-width: 680px) {
    .site-header {
        height: auto;
        min-height: 78px;
    }

    .nav-inner {
        min-height: 78px;
    }

    .nav-actions {
        margin-left: auto;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 15vw, 4.5rem);
    }

    .cart-panel {
        width: min(460px, 100vw);
    }
}