:root {
    --black: #090909;
    --gold: #e8a91b;
    --gold2: #f7c65c;
    --gold-dark: #b86700;
    --cream: #fff8ea;
    --cream2: #fffaf3;
    --line: #eae2d4;
    --text: #161616;
    --muted: #646464;
    --green: #1a923b;
    --red: #d92323;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: "Playfair Display", Georgia, serif
}

.header {
    background: var(--black);
    color: #fff;
    font-family: Poppins, Arial, sans-serif
}

.top {
    height: 93px;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 8px 34px
}

.logo {
    font: 700 37px/1 "Playfair Display";
    color: #f1b52d;
    white-space: nowrap
}

.logo small {
    display: block;
    color: #fff;
    font: 600 8px/1.1 Poppins;
    margin-top: 5px
}

.search {
    height: 44px;
    display: flex;
    flex: 1;
    max-width: 585px;
    margin-left: 18px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden
}

.search input {
    border: 0;
    outline: 0;
    flex: 1;
    padding: 0 18px;
    font: 12px Poppins
}

.search button {
    width: 54px;
    border: 0;
    background: #f4b42a;
    font-size: 24px
}

.actions {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-left: auto
}

.action {
    text-align: center;
    font-size: 11px
}

.action b {
    display: block;
    font: 28px Arial
}

.action sup {
    background: #f1ab1f;
    color: #000;
    border-radius: 10px;
    padding: 2px 5px;
    font: 10px Poppins;
    position: relative;
    top: -23px;
    left: 11px
}

.nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    min-height: 48px;
    background: #080808;
    color: #fff;
    border-top: 1px solid #29231a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
}

.nav-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 5px;
    width: 100%;
    padding: 0 2%;
}

.nav-menu>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 48px;
    padding: 14px 8px;
    border-bottom: 2px solid transparent;
    color: #f8f4ed;
    font: 12px Arial, sans-serif;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s ease, background .2s ease,
        border-color .2s ease;
}

.nav-menu>a:hover {
    color: var(--gold);
    background: rgba(255, 192, 71, .05);
}

.nav-menu>a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.nav-toggle {
    display: none;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 42px;
    margin: 3px 12px;
    padding: 8px;
    border: 1px solid #41351f;
    border-radius: 7px;
    background: #111;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* Sidebar-only elements stay hidden on desktop */

.drawer-brand,
.drawer-close {
    display: none;
}

.nav-overlay {
    display: none;
}

.nav-toggle:focus-visible,
.drawer-close:focus-visible,
.nav-menu>a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -3px;
}

.bread {
    height: 38px;
    padding: 10px 32px;
    color: #555;
    font-size: 12px;
    background: #fff
}

.hero {
    height: 160px;
    background: linear-gradient(90deg, rgba(255, 248, 231, .98) 0%, rgba(255, 248, 231, .93) 35%, rgba(255, 248, 231, .1) 75%), url("assets/cart-banner.jpg") right center/cover no-repeat;
    padding: 17px 38px
}

.hero h1 {
    margin: 0 0 2px;
    font-size: 49px;
    line-height: 1
}

.hero p {
    margin: 8px 0 0;
    font-size: 19px
}

.main {
    padding: 14px 18px 26px;
    background: linear-gradient(#fff, #fffaf3)
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.35fr) minmax(280px, 1fr);
    gap: 16px;
    align-items: start
}

.card,
.summary,
.service-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .04);
    border: 1px solid #eee7db
}

.cart-head {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #eee7dc
}

.cart-head h2 {
    margin: 0;
    font-size: 23px
}

.clear {
    background: none;
    border: 0;
    color: #d92323;
    font: 12px Poppins;
    cursor: pointer
}

.table-head {
    display: grid;
    grid-template-columns: 2.2fr .65fr .78fr .72fr .28fr;
    padding: 10px 20px;
    font-size: 12px;
    color: #222
}

.item-row {
    display: grid;
    grid-template-columns: 2.2fr .65fr .78fr .72fr .28fr;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid #eee7dc;
    min-height: 119px
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0
}

.product-cell img {
    width: 99px;
    height: 97px;
    border-radius: 8px;
    object-fit: cover;
    flex: none
}

.product-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px
}

.meta {
    font-size: 11px;
    color: #555;
    line-height: 1.45
}

.instock {
    color: var(--green);
    font: 600 12px Poppins;
    margin-top: 5px
}

.lowstock {
    color: #e58c00;
    font: 600 12px Poppins;
    margin-top: 5px
}

.price {
    font-size: 15px;
    font-weight: 600
}

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

.qty button {
    width: 32px;
    height: 32px;
    border: 1px solid #dedede;
    background: #fff;
    font: 18px Poppins;
    cursor: pointer
}

.qty input {
    width: 38px;
    height: 32px;
    border: 1px solid #dedede;
    border-left: 0;
    border-right: 0;
    text-align: center;
    font: 13px Poppins
}

.remove {
    border: 0;
    background: transparent;
    font-size: 19px;
    color: #444;
    cursor: pointer
}

.coupon {
    margin-top: 11px;
    display: grid;
    grid-template-columns: auto 1fr 130px;
    align-items: center;
    gap: 12px;
    padding: 11px 14px
}

.coupon-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap
}

.coupon-icon {
    font-size: 25px;
    color: #c87300
}

.coupon input {
    height: 39px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 13px;
    font: 12px Poppins
}

.coupon button {
    height: 39px;
    background: var(--gold2);
    border: 0;
    border-radius: 5px;
    font: 600 13px "Playfair Display";
    cursor: pointer
}

.summary {
    padding: 15px
}

.summary h2 {
    font-size: 21px;
    margin: 0 0 10px;
    border-bottom: 1px solid #eee5d7;
    padding-bottom: 11px
}

.sumline {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 7px 0
}

.sumline .free {
    color: var(--green);
    font: 600 12px Poppins
}

.total {
    background: linear-gradient(90deg, #fff8ea, #fff);
    margin: 9px -15px 9px;
    padding: 12px 15px;
    border-top: 1px solid #eee2ce;
    border-bottom: 1px solid #f1e5d2;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.total strong {
    font-size: 17px
}

.total .amount {
    font: 700 21px Poppins;
    color: #c26d00
}

.taxes {
    font-size: 11px;
    color: #666;
    margin-top: 1px
}

.checkout {
    width: 100%;
    height: 43px;
    background: #f2ad24;
    border: 0;
    border-radius: 5px;
    font: 600 14px "Playfair Display";
    cursor: pointer
}

.or {
    text-align: center;
    font-size: 12px;
    margin: 7px
}

.continue {
    width: 100%;
    height: 40px;
    background: #fff;
    border: 1px solid #222;
    border-radius: 5px;
    font: 13px "Playfair Display";
    cursor: pointer
}

.service-box {
    margin-top: 8px;
    padding: 10px 20px;
    background: #fff8ea
}

.service {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 9px 0
}

.service+.service {
    border-top: 0
}

.service-icon {
    width: 35px;
    font: 27px Arial;
    color: #c87200;
    text-align: center
}

.service b {
    display: block;
    font-size: 13px
}

.service span {
    font-size: 11px;
    color: #555
}

.recommend {
    padding: 18px 32px 22px;
    background: #fffaf3
}

.recommend-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

.recommend h2 {
    font-size: 27px;
    margin: 0
}

.view-all {
    font: 12px Poppins;
    color: #c17100
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px
}

.related {
    background: #fff;
    border: 1px solid #eee6da;
    border-radius: 8px;
    padding: 7px;
    text-align: center;
    position: relative
}

.related img {
    width: 100%;
    height: 128px;
    object-fit: cover;
    border-radius: 6px
}

.related .heart {
    position: absolute;
    right: 14px;
    top: 11px;
    color: #fff;
    text-shadow: 0 1px 3px #222;
    font-size: 21px
}

.rname {
    height: 38px;
    margin: 4px 0 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center
}

.rprice {
    font: 600 15px Poppins;
    margin: 2px 0 8px
}

.related button {
    width: 100%;
    height: 33px;
    border: 0;
    border-radius: 5px;
    background: #ffc653;
    font: 12px Poppins;
    cursor: pointer
}

.footer {
    background: #090909;
    color: #fff;
    padding: 22px 34px 27px;
    display: grid;
    grid-template-columns: 1.6fr .9fr .9fr 1.1fr;
    gap: 34px;
    font-family: "Playfair Display", Georgia, serif
}

.footer-logo {
    font: 700 31px "Playfair Display";
    color: #f3b52e
}

.footer-logo small {
    display: block;
    color: #fff;
    font: 600 8px Poppins;
    width: max-content
}

.footer p {
    font-size: 13px;
    line-height: 1.4;
    color: #ddd;
    max-width: 360px
}

.social {
    display: flex;
    gap: 14px;
    font: 18px Arial
}

.footer h3 {
    font-size: 14px;
    color: #f4be3c;
    margin: 7px 0 10px
}

.footer a {
    display: block;
    color: #eee;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.9
}

.newsletter input {
    width: 100%;
    height: 37px;
    border: 0;
    border-radius: 5px;
    padding: 0 11px;
    font: 11px Poppins;
    margin-top: 5px
}

.newsletter button {
    margin-top: 8px;
    width: 100%;
    height: 37px;
    border: 0;
    border-radius: 5px;
    background: #ffc653;
    font: 600 12px "Playfair Display"
}

@media(max-width:1050px) {
    .top {
        padding: 8px 18px;
        gap: 14px
    }

    .logo {
        font-size: 29px
    }

    .search {
        margin-left: 5px
    }

    .actions {
        gap: 12px
    }

     .nav {
        min-height: 50px;
    }

    .nav-inner {
        justify-content: flex-start;
    }

    .nav-toggle {
        display: flex;
    }

    /* Full-page dark overlay */

    .nav-overlay {
        position: fixed;
        inset: 0;
        z-index: 10000;
        /* display: none; */
        background: rgba(0, 0, 0, .58);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .3s ease, visibility .3s ease;
    }

    .nav-overlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Left-to-right drawer */

    .nav-menu {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 10001;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: min(86vw, 340px);
        height: 100vh;
        height: 100dvh;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #080808;
        box-shadow: 12px 0 35px rgba(0, 0, 0, .25);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .3s ease, visibility .3s ease;
    }

    .nav-menu.open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-menu>a:hover,
    .nav-menu>a.active {
        background: #17130c;
        color: var(--gold);
        border-left-color: var(--gold);
        border-bottom-color: #332818;
    }

    .nav-menu .hot {
        margin-left: 8px;
    }

    body.nav-drawer-open {
        overflow: hidden;
    }

    .cart-layout {
        grid-template-columns: 1fr 340px
    }

    .table-head,
    .item-row {
        grid-template-columns: 2fr .65fr .85fr .75fr .25fr
    }

    .product-cell img {
        width: 82px;
        height: 82px
    }

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

@media(max-width:760px) {
    .top {
        height: auto;
        flex-wrap: wrap
    }

    .search {
        order: 3;
        flex-basis: 100%;
        max-width: none
    }

    .actions {
        margin-left: auto
    }

     .nav {
        min-height: 50px;
    }

    .nav-inner {
        justify-content: flex-start;
    }

    .nav-toggle {
        display: flex;
    }

    /* Full-page dark overlay */

    .nav-overlay {
        position: fixed;
        inset: 0;
        z-index: 10000;
        /* display: none; */
        background: rgba(0, 0, 0, .58);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .3s ease, visibility .3s ease;
    }

    .nav-overlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Left-to-right drawer */

    .nav-menu {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 10001;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: min(86vw, 340px);
        height: 100vh;
        height: 100dvh;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #080808;
        box-shadow: 12px 0 35px rgba(0, 0, 0, .25);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .3s ease, visibility .3s ease;
    }

    .nav-menu.open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-menu>a:hover,
    .nav-menu>a.active {
        background: #17130c;
        color: var(--gold);
        border-left-color: var(--gold);
        border-bottom-color: #332818;
    }

    .nav-menu .hot {
        margin-left: 8px;
    }

    body.nav-drawer-open {
        overflow: hidden;
    }

    .bread {
        padding-left: 16px
    }

    .hero {
        height: 150px;
        padding: 21px 18px
    }

    .hero h1 {
        font-size: 39px
    }

    .hero p {
        font-size: 16px
    }

    .main {
        padding: 10px
    }

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

    .table-head {
        display: none
    }

    .item-row {
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "product price remove" "product qty remove";
        gap: 5px 8px;
        padding: 13px
    }

    .product-cell {
        grid-area: product
    }

    .row-price {
        grid-area: price;
        align-self: center
    }

    .row-qty {
        grid-area: qty
    }

    .row-remove {
        grid-area: remove;
        grid-row: 1/3
    }

    .coupon {
        grid-template-columns: auto 1fr;
        gap: 8px
    }

    .coupon button {
        grid-column: 2
    }

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

    .recommend {
        padding: 16px 10px
    }

    .related img {
        height: 125px
    }

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

    .footer .brand-foot {
        grid-column: 1/-1
    }
}

@media(max-width:480px) {
    .logo {
        font-size: 24px
    }

    .hero h1 {
        font-size: 34px
    }

    .hero p {
        font-size: 14px
    }

    .cart-head h2 {
        font-size: 20px
    }

    .product-cell img {
        width: 75px;
        height: 75px
    }

    .product-name {
        font-size: 12px
    }

    .meta {
        font-size: 10px
    }

    .price {
        font-size: 13px
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px
    }

    .related img {
        height: 105px
    }

    .rname {
        font-size: 11px
    }

    .rprice {
        font-size: 13px
    }

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

    .footer .brand-foot {
        grid-column: auto
    }
}