*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg: #f8f7f4;
    --surface: #ffffff;
    --surface-2: #f1f0ec;
    --text: #1a1a18;
    --text-muted: #7a7a72;
    --accent: #2a7a5e;
    --accent-light: #ebf5f0;
    --accent-dark: #1d5c46;
    --danger: #c94040;
    --danger-light: #fef2f2;
    --border: #e6e5e1;
    --shadow-sm:
        0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md:
        0 4px 14px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg:
        0 16px 40px rgba(0, 0, 0, 0.09), 0 4px 8px rgba(0, 0, 0, 0.04);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 22px;
    --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ── NAV ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 247, 244, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    height: 62px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    text-decoration: none;
}

.logo-tds {
    
}


.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 9px 18px 9px 14px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ease);
}

.cart-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cart-badge {
    background: white;
    color: var(--accent);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0);
    transition: var(--ease);
}

.cart-badge.show {
    opacity: 1;
    transform: scale(1);
}

/* ── HERO ── */
.hero {
    max-width: 1080px;
    margin: 0 auto;
    padding: 52px 28px 28px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.hero h1 {
    /* font-family: "Playfair Display", serif; */
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 10px;
}

.hero h1 em {
    font-family: segoe script, cursive;
    font-style: italic;
    color: var(--accent);
}

.hero p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 440px;
}

/* ── SEARCH ── */
.toolbar {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px 24px;
}

.search-wrap {
    position: relative;
    max-width: 380px;
}

.search-wrap svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: var(--surface);
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: var(--ease);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 122, 94, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* ── TABS ── */
.tabs-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px 28px;
}

.tabs-scroll {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
}

.tabs-scroll::-webkit-scrollbar {
    display: none;
}

.cat-tab {
    flex-shrink: 0;
    padding: 7px 17px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-family: "DM Sans", sans-serif;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
}

.cat-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cat-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ── CONTENT ── */
.content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px 80px;
}

/* ── SKELETON ── */
.skeleton-section {
    margin-bottom: 44px;
}

.skeleton-title {
    height: 22px;
    width: 200px;
    background: var(--surface-2);
    border-radius: 6px;
    margin-bottom: 18px;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.skeleton-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.skeleton-img {
    height: 175px;
}

.skeleton-body {
    padding: 15px;
}

.s-line {
    height: 11px;
    border-radius: 5px;
    margin-bottom: 8px;
}

.s-line.short {
    width: 55%;
}

.s-line.price {
    width: 40%;
    height: 17px;
    margin-top: 14px;
}

@keyframes shimmer {
    0% {
        background-position: -500px 0;
    }

    100% {
        background-position: 500px 0;
    }
}

.skeleton-title,
.skeleton-img,
.s-line {
    background: linear-gradient(90deg,
            var(--surface-2) 25%,
            #eae9e3 50%,
            var(--surface-2) 75%);
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite linear;
}

/* ── CATEGORY SECTION ── */
.cat-section {
    margin-bottom: 46px;
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.cat-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
}

.cat-count {
    background: var(--surface-2);
    color: var(--text-muted);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ── PRODUCT GRID ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

/* ── CARD ── */
.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--ease);
    animation: fadeUp 0.35s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* ── CARD IMAGE ── */
.card-img-wrap {
    position: relative;
    height: 175px;
    overflow: hidden;
    background: var(--surface-2);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .card-img-wrap img {
    transform: scale(1.04);
}

/* ── NO IMAGE ── */
.no-img {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.no-img svg {
    opacity: 0.25;
}

.no-img span {
    font-size: 0.78rem;
}

/* ── IMG ERROR ── */
.img-err {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    background: var(--surface-2);
    font-size: 0.75rem;
}

.img-err svg {
    opacity: 0.3;
}

/* ── CAROUSEL ── */
.carousel {
    position: relative;
    height: 175px;
}

.c-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.c-slide.active {
    opacity: 1;
}

.c-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.88);
    border: none;
    border-radius: 50%;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: var(--ease);
    opacity: 0;
    z-index: 2;
}

.carousel:hover .c-arrow {
    opacity: 1;
}

.c-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.06);
}

.c-arrow.prev {
    left: 8px;
}

.c-arrow.next {
    right: 8px;
}

.c-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 2;
}

.c-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--ease);
}

.c-dot.active {
    background: white;
    width: 16px;
    border-radius: 3px;
}

/* ── CARD BODY ── */
.card-body {
    padding: 15px;
}

.card-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.card-desc {
    font-size: 0.79rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 13px;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price {
    font-family: "DM Sans", sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text);
}

.add-btn {
    background: var(--accent-light);
    color: var(--accent);
    border: none;
    border-radius: 8px;
    padding: 7px 13px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.79rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-btn:hover {
    background: var(--accent);
    color: white;
}

.add-btn.added {
    background: var(--accent);
    color: white;
}

/* ── ERROR STATE ── */
.err-state {
    text-align: center;
    padding: 72px 24px;
}

.err-state .err-icon {
    font-size: 3.2rem;
    margin-bottom: 16px;
}

.err-state h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 8px;
}

.err-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 22px;
}

.retry-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ease);
}

.retry-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 44px 24px;
    color: var(--text-muted);
}

.empty-state svg {
    opacity: 0.3;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ── TOAST ── */
.toast-wrap {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--text);
    color: white;
    padding: 11px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    pointer-events: all;
    animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.success {
    background: var(--accent);
}

.toast.error {
    background: var(--danger);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(8px) scale(0.94);
    }
}

.toast.out {
    animation: toastOut 0.25s ease forwards;
}

/* ── OVERLAY ── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(3px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ── CART DRAWER ── */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(410px, 100vw);
    height: 100%;
    background: var(--surface);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.07);
}

.drawer.open {
    transform: translateX(0);
}

.drawer-head {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-head h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.icon-btn {
    background: var(--surface-2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--ease);
}

.icon-btn:hover {
    background: var(--border);
    color: var(--text);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 22px;
}

/* ── CART EMPTY ── */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60%;
    gap: 12px;
    color: var(--text-muted);
    text-align: center;
}

.cart-empty svg {
    opacity: 0.22;
}

.cart-empty p {
    font-size: 0.875rem;
}

/* ── CART ITEM ── */
.cart-item {
    display: flex;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeUp 0.22s ease both;
}

.ci-img {
    width: 58px;
    height: 58px;
    border-radius: 9px;
    object-fit: cover;
    background: var(--surface-2);
    flex-shrink: 0;
}

.ci-img-ph {
    width: 58px;
    height: 58px;
    border-radius: 9px;
    background: var(--surface-2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.ci-info {
    flex: 1;
}

.ci-name {
    font-size: 0.86rem;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 1.3;
    margin-bottom: 3px;
}

.ci-price {
    font-size: 0.79rem;
    color: var(--text-muted);
}

.ci-controls {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1;
    transition: var(--ease);
}

.qty-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.qty-num {
    font-size: 0.86rem;
    font-weight: 600;
    min-width: 22px;
    text-align: center;
}

.ci-del {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.82rem;
    padding: 4px;
    border-radius: 4px;
    transition: var(--ease);
    flex-shrink: 0;
    align-self: flex-start;
}

.ci-del:hover {
    color: var(--danger);
    background: var(--danger-light);
}

/* ── DRAWER FOOTER ── */
.drawer-foot {
    padding: 18px 22px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.total-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.total-val {
    font-family: "Playfair Display", serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
}

.checkout-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 13px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.checkout-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.checkout-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── ORDER MODAL ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 450px;
    max-height: 92vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal {
    transform: scale(1) translateY(0);
}

.modal-head {
    padding: 22px 22px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.modal-head h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.modal-head p {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.modal-body {
    padding: 18px 22px 22px;
}

/* ── ORDER SUMMARY ── */
.order-sum {
    background: var(--surface-2);
    border-radius: var(--radius);
    padding: 13px 15px;
    margin-bottom: 18px;
}

.sum-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.sum-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.83rem;
    color: var(--text);
    padding: 2px 0;
}

.sum-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 9px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

.sum-total .label {
    font-size: 0.84rem;
    font-weight: 600;
}

.sum-total .val {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

/* ── FORM ── */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label .req {
    color: var(--danger);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: var(--ease);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 122, 94, 0.1);
}

.form-input.err,
.form-textarea.err {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(201, 64, 64, 0.08);
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.err-msg {
    font-size: 0.73rem;
    color: var(--danger);
    margin-top: 4px;
    display: none;
    align-items: center;
    gap: 4px;
}

.form-textarea {
    resize: vertical;
    min-height: 76px;
}

.submit-btn {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 13px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
}

.submit-btn:hover {
    background: #1da950;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 580px) {
    .navbar {
        padding: 0 16px;
    }

    .hero {
        padding: 32px 16px 20px;
    }

    .toolbar,
    .tabs-section,
    .content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
        gap: 11px;
    }

    .card-img-wrap,
    .carousel {
        height: 140px;
    }
}
.footer {
    text-align: center;
    padding: 18px 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    
}