:root {
    --ink: #12261F;
    --paper: #F5FAF7;
    --card: #FFFFFF;
    --teal: #1E8A6E;
    --teal-dark: #146450;
    --line: #DCEAE3;
    --muted: #5C7168;
    --gold: #E7A93C;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Fraunces', serif;
    margin: 0;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: var(--teal-dark);
    color: #fff;
    padding: 28px 0;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gold);
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 22px;
    flex-shrink: 0;
}
.brand h1 { font-size: 24px; font-weight: 600; }
.brand p { margin: 2px 0 0; font-size: 14px; color: #CDE7DC; }
.stat { text-align: right; line-height: 1.1; }
.stat strong { font-size: 22px; font-family: 'Fraunces', serif; display: block; }
.stat span { font-size: 12px; color: #CDE7DC; }

/* Controls */
.controls {
    background: var(--card);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 16px 0;
}
.controls-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#searchBox {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background: var(--paper);
    color: var(--ink);
}
#searchBox:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(30,138,110,0.15);
}
.pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.pill {
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
}
.pill.active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}
.back-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--teal-dark);
    text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* Category grid (homepage) */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 32px 0;
}
.cat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: 14px;
    padding: 24px 20px;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-card:link,
.cat-card:visited {
    color: var(--ink);
}
.cat-card:hover,
.cat-card:focus-visible {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(18,38,31,0.08);
}
.cat-card:hover h2 {
    color: var(--teal-dark);
}
.cat-card-text h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
    transition: color 0.15s ease;
}
.cat-count {
    font-size: 13px;
    color: var(--muted);
}
.cat-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E4F3ED;
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.15s ease, transform 0.15s ease;
}
.cat-card:hover .cat-arrow {
    background: var(--teal);
    color: #fff;
    transform: translateX(2px);
}

/* Catalog */
.category-block { margin: 40px 0; }
.category-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--line);
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
}
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}
.card-top h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}
.unit {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--teal-dark);
    background: #E4F3ED;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}
.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.price-main {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
}
.price-sub { font-size: 12px; color: var(--muted); }
.meta {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    font-size: 12px;
    color: var(--muted);
}

/* Recently purchased highlight */
.card.recent {
    position: relative;
    border-color: var(--gold);
    background: #FFFBF2;
}
.recent-badge {
    display: inline-block;
    background: var(--gold);
    color: #1E1503;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: 11px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--teal); }

/* Cart link in header */
.cart-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-badge {
    background: var(--gold);
    color: #1E1503;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}
.flash-added {
    background: #E4F3ED;
    color: var(--teal-dark);
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
}
.flash-added a { color: var(--teal-dark); font-weight: 600; }

/* ===================================================================
   Shared bits
   =================================================================== */
.icon { width: 18px; height: 18px; flex-shrink: 0; }
a.brand { text-decoration: none; color: inherit; }
.page { padding-bottom: 20px; }

/* Bounce the cart count when something is added */
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.cart-badge.pop { animation: pop 0.35s ease; }

/* ===================================================================
   Product cards: layout + add to cart
   =================================================================== */
.grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: 0 10px 24px rgba(18,38,31,0.08); transform: translateY(-2px); }

.add-to-cart-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

/* − 1 +  */
.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.qty-stepper:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(30,138,110,0.15);
}
.qty-btn {
    width: 36px;
    border: 0;
    background: transparent;
    color: var(--teal-dark);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.12s ease;
    user-select: none;
}
.qty-btn:hover { background: #E4F3ED; }
.qty-btn:active { background: #CFE8DD; }
.qty-input {
    width: 42px;
    border: 0;
    padding: 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-input:focus { outline: none; }
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-add {
    flex: 1 1 130px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.1s ease;
}
.btn-add:active { transform: scale(0.98); }
.btn-add:disabled { cursor: default; }
.btn-add.is-added { background: var(--teal-dark); }

/* ===================================================================
   Buttons + alerts (used on cart / checkout)
   =================================================================== */
.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
}
.btn:disabled { opacity: 0.7; cursor: default; }

.alert {
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 18px;
}
.alert-warn  { background: #FFF6E0; border: 1px solid #F0D9A0; color: #7A5410; }
.alert-error { background: #FDF0EC; border: 1px solid #EBC3B6; color: #9A3B27; }

/* ===================================================================
   Progress steps  (Cart > Details > Confirmed)
   =================================================================== */
.steps {
    list-style: none;
    display: flex;
    align-items: center;
    max-width: 520px;
    margin: 28px auto 8px;
    padding: 0;
}
.step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.step:last-child { flex: 0 0 auto; }
.step::after {
    content: "";
    flex: 1;
    height: 2px;
    margin: 0 12px;
    background: var(--line);
}
.step:last-child::after { display: none; }
.step-link { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.step-dot .icon { width: 14px; height: 14px; stroke-width: 3; }
.step.active { color: var(--ink); }
.step.active .step-dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.step.done { color: var(--teal-dark); }
.step.done .step-dot { background: #E4F3ED; border-color: var(--teal); color: var(--teal-dark); }
.step.done::after { background: var(--teal); }

/* ===================================================================
   Page heading
   =================================================================== */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 20px;
}
.page-title { font-size: 30px; font-weight: 600; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.link-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--teal-dark);
    text-decoration: none;
}
.link-back:hover { text-decoration: underline; }

/* ===================================================================
   Panels + two-column layout
   =================================================================== */
.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
}
.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
    align-items: start;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 18px; font-weight: 600; }
.panel-foot { padding-top: 16px; }
.text-btn {
    background: none;
    border: 0;
    padding: 4px 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
}
.text-btn:hover { color: #B03A2E; text-decoration: underline; }

/* ===================================================================
   Cart page
   =================================================================== */
.cart-panel { padding-bottom: 8px; }
.cart-panel.is-updating { opacity: 0.6; pointer-events: none; transition: opacity 0.15s ease; }

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
    flex-shrink: 0;
}
.cart-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto 96px 36px;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.cart-item:last-of-type { border-bottom: 0; }
.cart-item-info h3 { font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.cart-item-sub  { font-size: 12px; color: var(--muted); }
.cart-item-each { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cart-item-total {
    text-align: right;
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 600;
}
.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    border-radius: 10px;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}
.icon-btn:hover { background: #FDF0EC; color: #B03A2E; }

/* Order summary card */
.summary { position: sticky; top: 86px; }
.summary h2 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--muted);
    padding: 8px 0;
}
.sum-row strong { color: var(--ink); font-weight: 600; }
.sum-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 2px solid var(--line);
    font-size: 15px;
    font-weight: 600;
}
.sum-total span:last-child {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    color: var(--teal-dark);
}
.sum-note { margin: 2px 0 18px; font-size: 12px; color: var(--muted); text-align: right; }
.trust {
    list-style: none;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12.5px;
    color: var(--muted);
}
.trust li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.trust .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--teal); }
.edit-cart {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--teal-dark);
    text-decoration: none;
}
.edit-cart:hover { text-decoration: underline; }

/* Empty cart / empty order */
.empty-cart { text-align: center; padding: 64px 24px; }
.empty-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #E4F3ED;
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-icon .icon { width: 34px; height: 34px; }
.empty-cart h3 { font-size: 22px; margin-bottom: 6px; }
.empty-cart p { color: var(--muted); margin: 0 0 22px; }

/* ===================================================================
   Checkout form
   =================================================================== */
.form-section + .form-section {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-title h3 { font-size: 17px; font-weight: 600; }
.section-title .step-dot { background: var(--teal); border-color: var(--teal); color: #fff; }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field:first-of-type { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .field:first-of-type { margin-top: 14px; }
.lbl { font-size: 13px; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--ink);
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #9DB0A7; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(30,138,110,0.15);
}
.field.has-error input,
.field.has-error textarea { border-color: #D2563F; background: #FFFAF8; }
.field-error { font-size: 12.5px; color: #B03A2E; }

/* Mini item list (checkout summary + order confirmation) */
.mini-list { max-height: 300px; overflow-y: auto; margin-bottom: 8px; }
.mini-list.padded { max-height: none; padding-top: 6px; }
.mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}
.mini-item .avatar { width: 40px; height: 40px; border-radius: 11px; font-size: 16px; }
.mini-info { flex: 1; min-width: 0; }
.mini-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.mini-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mini-total { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ===================================================================
   Order confirmation
   =================================================================== */
@keyframes pop-in { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.steps + .success-card { margin-top: 24px; }
.success-card { text-align: center; padding: 40px 24px; margin-bottom: 24px; }
.success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pop-in 0.45s ease both;
}
.success-icon .icon { width: 32px; height: 32px; stroke-width: 3; }
.success-card h2 { font-size: 28px; margin-bottom: 6px; }
.success-lead { color: var(--muted); margin: 0 0 16px; }
.order-pill {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    background: #E4F3ED;
    color: var(--teal-dark);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
}
.success-note { margin: 18px auto 0; max-width: 460px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.success-note strong { color: var(--ink); }
.address-block { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; }
.address-block strong { color: var(--ink); }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
}
@media (max-width: 640px) {
    .page-title { font-size: 26px; }
    .panel { padding: 18px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .steps { margin-top: 18px; }
    .step-label { font-size: 12px; }
    .step::after { margin: 0 8px; }

    .cart-item {
        grid-template-columns: 48px minmax(0, 1fr) auto 36px;
        grid-template-areas:
            "avatar info info  remove"
            "step   step total total";
        row-gap: 14px;
        column-gap: 14px;
    }
    .cart-item > .avatar { grid-area: avatar; width: 48px; height: 48px; }
    .cart-item-info      { grid-area: info; }
    .cart-item > .qty-stepper { grid-area: step; justify-self: start; }
    .cart-item-total     { grid-area: total; align-self: center; justify-self: end; }
    .cart-item > .icon-btn { grid-area: remove; align-self: start; }
}

/* Empty state */
.empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
}
.empty h2 { color: var(--ink); margin-bottom: 8px; }

/* Footer */
.site-footer {
    margin-top: 60px;
    padding: 24px 0 40px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 600px) {
    .site-header .wrap { flex-direction: column; align-items: flex-start; }
    .stat { text-align: left; }
}

/* Toast + accessibility helpers */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    background: var(--ink);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap; }
.visually-hidden {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* MRP price slabs */
.price-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
.price-mrp{font-size:14px;color:#8a948f;text-decoration:line-through}
.price-off{font-size:12px;font-weight:600;color:#b45309}

.mode-panel{margin-top:16px}
.mode-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;padding:14px 18px 18px}
.mode-opt{display:flex;flex-direction:column;gap:4px;padding:12px;border:1.5px solid #d9e6df;border-radius:10px;cursor:pointer;background:#fff}
.mode-opt input{position:absolute;opacity:0;pointer-events:none}
.mode-opt.active{border-color:#146450;background:#f0f8f4}
.mode-name{font-size:13px;font-weight:600;color:#33433c}
.mode-total{font-size:16px;font-weight:700;color:#146450}

.mode-save{font-size:12px;color:#b45309;font-weight:600}
.card-link{display:block;color:inherit;text-decoration:none}
.card-link:hover h3{text-decoration:underline}
.pd-tiers{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.pd-tiers li{display:flex;flex-direction:column;align-items:center;min-width:96px;padding:8px 12px;border:1px solid #d9e6df;background:#f4faf7;border-radius:10px}
.pd-tiers strong{font-size:16px;color:#146450}
.pd-tiers em{font-style:normal;font-size:12px;color:#b45309}
.pd-card{max-width:520px}
.pd-card .price-main{font-size:30px}
.pd-card .price-mrp{font-size:18px}
.pd-card h2{margin:0 0 4px}
.pd-note{font-size:14px;font-weight:600;color:#33433c;margin-top:14px}

/* ---- Product images ---- */
.card-img{width:100%;height:210px;margin-bottom:10px;border-radius:10px;background:#f6f8f7;display:flex;align-items:center;justify-content:center;overflow:hidden}
.card-img img{max-width:100%;max-height:100%;object-fit:contain}
.card-img-empty{background:#f6f8f7}
.pd-gallery{margin-bottom:16px}
.pd-main{width:100%;max-width:520px;aspect-ratio:1/1;margin:0 auto;border-radius:14px;background:#f6f8f7;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pd-main img{max-width:100%;max-height:100%;object-fit:contain}
.pd-thumbs{display:flex;gap:10px;justify-content:center;margin-top:10px}
.pd-thumb{width:64px;height:64px;padding:3px;border:2px solid #d9e6df;border-radius:8px;background:#fff;cursor:pointer}
.pd-thumb.active{border-color:#146450}
.pd-thumb img{width:100%;height:100%;object-fit:contain}
@media (max-width:520px){.card-img{height:170px}}

/* ---- Add to Cart button: icon only (text kept for screen readers) ---- */
.btn-add .btn-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---- In-cart button colour ---- */
.btn.btn-primary.btn-add.in-cart{background:#E0761A;border-color:#E0761A}
.btn.btn-primary.btn-add.in-cart:hover{background:#C96612}

/* ---- Cart button always on the same line as the qty box ---- */
.add-to-cart-form{flex-wrap:nowrap;align-items:center}
.btn-add{flex:1 1 60px;min-width:0;padding:0 10px}
@media (max-width:640px){
    .add-to-cart-form{gap:8px}
    .add-to-cart-form .qty-btn{width:30px}
    .add-to-cart-form .qty-input{width:34px}
}

/* ---- Product page: Buy more, pay less (P3/P4/P5) in one line on mobile ---- */
@media (max-width:520px){
    .pd-tiers{flex-wrap:nowrap;gap:6px}
    .pd-tiers li{flex:1 1 0;min-width:0;padding:6px 4px}
    .pd-tiers strong{font-size:14px}
    .pd-tiers em{font-size:11px}
}

/* ---- Product grid: 5 per row on desktop (4 / 3 on smaller screens, 1 on phones) ---- */
@media (min-width:561px){
    .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
    .grid .card{padding:12px;border-radius:12px}
    .grid .card-img{height:130px;margin-bottom:8px}
    .grid .card-top{flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:8px}
    .grid .card-top h3{font-size:14px}
    .grid .unit{font-size:11px;padding:2px 6px}
    .grid .price-row{flex-wrap:wrap;gap:2px 6px}
    .grid .price-main{font-size:19px}
    .grid .price-mrp{font-size:12px}
    .grid .price-off{font-size:11px}
    .grid .meta{font-size:11px;margin-top:8px;padding-top:8px}
    .grid .recent-badge{font-size:10px;margin-bottom:8px}
    .grid .add-to-cart-form{padding-top:10px;gap:6px}
    .grid .qty-stepper{height:36px}
    .grid .qty-btn{width:26px;font-size:18px}
    .grid .qty-input{width:30px;font-size:14px}
    .grid .btn-add{padding:0 6px}
}
@media (min-width:800px){ .grid{grid-template-columns:repeat(4,minmax(0,1fr))} }
@media (min-width:1100px){ .grid{grid-template-columns:repeat(5,minmax(0,1fr))} }

/* ---- Main navigation buttons ---- */
.site-nav{background:#fff;border-bottom:1px solid var(--line)}
.site-nav .wrap{display:flex;flex-wrap:wrap;gap:8px;padding-top:10px;padding-bottom:10px}
.site-nav a{padding:8px 16px;border-radius:999px;border:1px solid var(--line);background:var(--paper);color:var(--teal-dark);font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
.site-nav a:hover{border-color:var(--teal)}
.site-nav a.active{background:var(--teal);border-color:var(--teal);color:#fff}
@media (max-width:600px){.site-nav a{padding:7px 12px;font-size:13px}}

/* ---- Price list ---- */
.pl-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin:24px 0 14px}
.pl-head h2{font-size:22px;margin:0}
.pl-head p{margin:2px 0 0;font-size:13px;color:var(--muted)}
.pl-tools{display:flex;gap:8px;flex-wrap:wrap}
.pl-tools input{padding:9px 12px;border:1px solid var(--line);border-radius:8px;font-size:14px;min-width:220px}
.pl-tools button{padding:9px 16px;border:1px solid var(--teal);background:#fff;color:var(--teal-dark);border-radius:8px;font-weight:600;cursor:pointer}
.pl-scroll{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:12px}
.pl-table{width:100%;border-collapse:collapse;font-size:14px;min-width:640px}
.pl-table th{background:var(--teal-dark);color:#fff;text-align:right;padding:10px 12px;font-weight:600;white-space:nowrap}
.pl-table th:first-child,.pl-table td:first-child{text-align:left}
.pl-table th.pl-unit,.pl-table td.pl-unit{text-align:center}
.pl-table td{padding:9px 12px;border-top:1px solid var(--line);text-align:right;white-space:nowrap}
.pl-table td:first-child{white-space:normal;font-weight:500}
.pl-table td:first-child a{color:var(--ink);text-decoration:none}
.pl-table td:first-child a:hover{color:var(--teal-dark);text-decoration:underline}
.pl-table tr.pl-cat td{background:#E4F3ED;color:var(--teal-dark);font-weight:700;text-align:left;text-transform:uppercase;font-size:12px;letter-spacing:.03em}
.pl-table .pl-mrp{color:#8a948f;text-decoration:line-through}
.pl-table .pl-price{font-weight:700}
.pl-table small{display:block;font-size:11px;color:#b45309}
@media print{
    .site-header,.site-nav,.pl-tools,.site-footer,.flash-added{display:none!important}
    .pl-scroll{border:0;overflow:visible}
    .pl-table th{background:#fff!important;color:#000;border-bottom:2px solid #000}
    .pl-table tr.pl-cat td{background:#eee!important;color:#000}
}

/* ---- About / Contact ---- */
.info-page{max-width:820px;margin:28px auto}
.info-page h2{font-size:26px;margin:0 0 10px}
.info-page p{line-height:1.7;color:#33433c}
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:18px}
.info-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}
.info-card h3{margin:0 0 6px;font-size:15px;color:var(--teal-dark)}
.info-card p{margin:0;font-size:14px}
.info-card a{color:var(--teal-dark);font-weight:600;word-break:break-word}

/* ---- Discount sticker on the image box (overlaps the image, takes no space) ---- */
.card-img{position:relative}
.card-badge{position:absolute;top:8px;right:8px;z-index:2;background:#D64545;color:#fff;font-size:11px;font-weight:700;line-height:1;padding:5px 8px;border-radius:999px;box-shadow:0 2px 6px rgba(0,0,0,.18);pointer-events:none}

/* ---- Site search in the nav bar ---- */
.site-nav .nav-search{flex:1 1 220px;max-width:340px;min-width:0;padding:8px 14px;border:1px solid var(--line);border-radius:999px;font-family:inherit;font-size:14px;background:#fff;color:var(--ink)}
.site-nav .nav-search:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(30,138,110,.15)}
@media (max-width:600px){.site-nav .nav-search{flex-basis:100%;max-width:none}}
.site-search-results{margin-top:24px}

/* ---- Admin logout button (nav bar) ---- */
.site-nav .nav-logout{margin:0 0 0 auto}
.site-nav .nav-logout button{padding:8px 16px;border-radius:999px;border:1px solid #d9a3a0;background:#fff5f4;color:#a3312a;font-size:14px;font-weight:600;cursor:pointer}
.site-nav .nav-logout button:hover{background:#a3312a;color:#fff;border-color:#a3312a}
@media (max-width:600px){.site-nav .nav-logout button{padding:7px 12px;font-size:13px}}

/* ---- Brand pages ---- */
.brand-crumbs{margin:20px 0 6px;font-size:14px;color:var(--muted)}
.brand-crumbs a{color:var(--teal-dark);font-weight:600;text-decoration:none}
.brand-crumbs a:hover{text-decoration:underline}
.brand-section-title{font-size:16px;font-weight:600;color:var(--teal-dark);margin:26px 0 12px}

/* ---- Admin: three image dots on cards + gallery popup ---- */
.admin-meta{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px}
.img-dots{display:inline-flex;gap:8px;flex-shrink:0;margin-left:auto}
.img-dot{width:22px;height:22px;padding:0;border-radius:50%;border:2px solid #9fb0a8;background:#fff;cursor:pointer;transition:transform .12s}
.img-dot:hover{transform:scale(1.2);border-color:var(--teal-dark)}
.img-dot.filled{background:var(--teal);border-color:var(--teal-dark)}
#agModal{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:center;justify-content:center;z-index:100;padding:14px}
#agModal.open{display:flex}
.ag-box{background:#fff;border-radius:12px;width:100%;max-width:900px;max-height:92vh;display:flex;flex-direction:column;overflow:hidden}
.ag-top{padding:14px 16px;border-bottom:1px solid #e3ebe6;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ag-top strong{font-size:14px;flex:1 1 200px}
.ag-top input{padding:6px 10px;border:1px solid #cdd8d2;border-radius:6px;font-size:13px}
.ag-top button{border:1px solid #cdd8d2;background:#fff;border-radius:6px;padding:6px 12px;cursor:pointer}
.ag-tools{padding:8px 16px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #e3ebe6}
.ag-tools button{border:1px solid #146450;background:#146450;color:#fff;border-radius:6px;padding:6px 12px;cursor:pointer;font-size:13px}
.ag-tools button.alt{background:#fff;color:#146450}
.ag-tools button.danger{background:#fff;color:#a3312a;border-color:#d9a3a0}
.ag-tools button:disabled{opacity:.6;cursor:default}
#agStatus{font-size:12px;color:#6b7a74;flex:1 1 200px}
#agStatus.err{color:#a3312a}
.ag-crumbs{padding:8px 16px;font-size:13px;background:#f6f8f7;border-bottom:1px solid #e3ebe6}
.ag-crumbs a{color:#146450;cursor:pointer;text-decoration:underline}
.ag-body{padding:14px 16px;overflow:auto}
.ag-folders{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.ag-folders button{border:1px solid #cdd8d2;background:#eef6f1;border-radius:8px;padding:7px 12px;cursor:pointer;font-size:13px}
.ag-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.ag-item{position:relative;border:1px solid #d9e6df;border-radius:8px;padding:6px;cursor:pointer;background:#fff;text-align:center}
.ag-item:hover{border-color:#146450;box-shadow:0 0 0 2px #e4f4ec}
.ag-item.new{border-color:#146450;background:#e4f4ec}
.ag-item img{width:100%;height:100px;object-fit:contain}
.ag-item span{display:block;font-size:11px;color:#6b7a74;word-break:break-all;margin-top:4px}
.ag-item small{display:block;font-size:10px;color:#146450}
.ag-del{position:absolute;top:4px;right:4px;width:26px;height:26px;padding:0;border:1px solid #e0b4b0;background:#fff;color:#a3312a;border-radius:6px;cursor:pointer;font-size:14px;line-height:1}
.ag-del:hover{background:#a3312a;color:#fff}
.ag-msg{color:#6b7a74;font-size:13px;padding:10px 0}

/* ===== Modern footer (content from admin.php > Configuration) ===== */
.sf{margin-top:64px;background:#0f2a22;color:#c9ddd4;font-size:14px}
.sf a{color:#e6f3ed;text-decoration:none}
.sf a:hover{color:#fff;text-decoration:underline}
.sf-grid{display:grid;grid-template-columns:1.6fr 1fr 1.4fr;gap:40px;padding:52px 0 36px}
.sf-col h4{margin:0 0 14px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#fff;font-weight:600}
.sf-col ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.sf-brand p{margin:14px 0 0;line-height:1.65;max-width:360px;color:#a9c4b8}
.sf-logo{display:inline-flex;align-items:center;gap:10px;font-family:'Fraunces',serif;font-size:22px;font-weight:600;color:#fff!important}
.sf-logo:hover{text-decoration:none!important}
.sf-social{display:flex;gap:10px;margin-top:20px}
.sf-social a{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.08);transition:background .15s,transform .15s}
.sf-social a:hover{background:var(--teal);transform:translateY(-2px);text-decoration:none}
.sf-social .icon{width:18px;height:18px}
.sf-contact li{display:flex;gap:12px;align-items:flex-start;line-height:1.55}
.sf-contact .icon{width:18px;height:18px;flex:0 0 18px;margin-top:2px;color:#6fd0b2}
.sf-dir{font-size:13px;color:#6fd0b2!important}
.sf-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;padding:18px 0 28px;border-top:1px solid rgba(255,255,255,.1);font-size:12.5px;color:#8fb0a2}
@media (max-width:820px){.sf-grid{grid-template-columns:1fr 1fr;gap:32px}.sf-brand{grid-column:1/-1}}
@media (max-width:520px){.sf-grid{grid-template-columns:1fr;padding-top:36px}.sf-bottom{flex-direction:column}}

/* "Buy more, pay less" strip on product cards */
.bm-strip{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}
.bm-title{flex:0 0 100%;font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.bm-chip{font-size:12.5px;font-weight:600;color:var(--teal-dark);background:#eaf5ee;border-radius:999px;padding:3px 9px}
