* {
    box-sizing: border-box;
}

:root {
    --primary: #1565d8;
    --primary-dark: #0f4fae;
    --secondary: #ffb703;
    --success: #178a55;
    --danger: #dc3545;
    --dark: #18212b;
    --text: #25313d;
    --muted: #6c7885;
    --light: #f5f8fc;
    --white: #ffffff;
    --border: #dce4ed;
    --shadow: 0 12px 30px rgba(26, 47, 73, 0.10);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.55;
}

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

img {
    max-width: 100%;
}

.site-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 5px 18px rgba(31, 49, 68, 0.06);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--white);
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: #eaf2ff;
    font-size: 26px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-text strong {
    font-size: 1.22rem;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.76rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 7px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary);
    background: #eaf2ff;
}

.site-nav .nav-call {
    color: var(--success);
    background: #e9f7f0;
}

.site-nav .nav-admin {
    color: var(--white);
    background: var(--dark);
}

.site-nav .nav-admin:hover {
    color: var(--white);
    background: #000000;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 1.3rem;
    cursor: pointer;
}

.site-main {
    min-height: calc(100vh - 300px);
}

.hero {
    padding: 72px 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 183, 3, 0.26),
            transparent 34%
        ),
        linear-gradient(135deg, #0f58c7, #1685e7);
    color: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 45px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 5vw, 4.25rem);
    line-height: 1.08;
}

.hero p {
    max-width: 680px;
    margin: 0 0 27px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.button-primary {
    color: var(--primary-dark);
    background: var(--white);
}

.button-secondary {
    color: var(--dark);
    background: var(--secondary);
}

.button-success {
    color: var(--white);
    background: var(--success);
}

.button-dark {
    color: var(--white);
    background: var(--dark);
}

.button-outline {
    color: var(--primary);
    background: var(--white);
    border: 1px solid var(--primary);
}

.button-disabled {
    color: #6d7782;
    background: #e4e8ec;
    cursor: not-allowed;
}

.hero-card {
    padding: 28px;
    border-radius: 22px;
    color: var(--dark);
    background: var(--white);
    box-shadow: var(--shadow);
}

.hero-card h3 {
    margin: 0 0 18px;
    color: var(--primary);
}

.hero-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.hero-feature:last-child {
    border-bottom: 0;
}

.hero-feature span {
    font-size: 1.5rem;
}

.hero-feature strong,
.hero-feature small {
    display: block;
}

.hero-feature small {
    margin-top: 2px;
    color: var(--muted);
}

.section {
    padding: 64px 0;
}

.section-white {
    background: var(--white);
}

.section-heading {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
}

.section-heading h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: -34px;
    position: relative;
    z-index: 2;
}

.stat-card {
    padding: 23px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
}

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

.category-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: 15px;
    color: var(--white);
    background: linear-gradient(135deg, #1565d8, #123f7e);
    box-shadow: var(--shadow);
}

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

.category-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 18px;
    background: linear-gradient(
        transparent 15%,
        rgba(10, 23, 38, 0.88)
    );
}

.category-overlay strong {
    font-size: 1.08rem;
}

.category-overlay small {
    color: rgba(255, 255, 255, 0.78);
}

.category-placeholder {
    height: 170px;
    display: grid;
    place-items: center;
    font-size: 3rem;
}

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

.product-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(26, 47, 73, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-image-wrap {
    position: relative;
    height: 205px;
    background: #f2f5f9;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #8995a2;
    font-size: 3.2rem;
}

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 800;
}

.stock-in {
    background: var(--success);
}

.stock-out {
    background: var(--danger);
}

.product-content {
    padding: 17px;
}

.product-category {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-content h3 {
    min-height: 48px;
    margin: 6px 0 10px;
    color: var(--dark);
    font-size: 1.05rem;
}

.product-description {
    height: 42px;
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.84rem;
}

.product-price-row {
    min-height: 30px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 13px;
}

.product-price {
    color: var(--success);
    font-size: 1.23rem;
    font-weight: 900;
}

.product-mrp {
    color: var(--muted);
    font-size: 0.82rem;
    text-decoration: line-through;
}

.product-content .button {
    width: 100%;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    padding: 27px;
    border-radius: 15px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(26, 47, 73, 0.07);
}

.service-card span {
    font-size: 2.2rem;
}

.service-card h3 {
    margin: 12px 0 8px;
    color: var(--dark);
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

.contact-strip {
    padding: 34px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--dark), #314458);
}

.contact-strip h2 {
    margin: 0 0 8px;
}

.contact-strip p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

.catalog-hero {
    padding: 46px 0;
    color: var(--white);
    background: linear-gradient(135deg, #1565d8, #0b3e85);
}

.catalog-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 5vw, 3.1rem);
}

.catalog-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.filter-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 26px;
}

.filter-form {
    display: grid;
    grid-template-columns: 1fr 260px auto auto;
    gap: 11px;
}

.form-control {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text);
    background: var(--white);
    font: inherit;
}

.empty-state {
    padding: 48px 20px;
    text-align: center;
    border: 1px dashed #b9c6d3;
    border-radius: 14px;
    color: var(--muted);
    background: var(--white);
}

.site-footer {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.78);
    background: var(--dark);
}

.footer-grid {
    padding: 48px 0 35px;
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 1fr;
    gap: 38px;
}

.site-footer h3,
.site-footer h4 {
    color: var(--white);
    margin-top: 0;
}

.site-footer a {
    display: block;
    margin: 7px 0;
}

.site-footer a:hover {
    color: var(--secondary);
}

.site-footer p {
    margin: 7px 0;
}

.footer-bottom {
    padding: 16px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.86rem;
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        text-align: center;
    }

    .stats-grid,
    .service-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .contact-strip {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .site-container {
        width: min(100% - 22px, 1180px);
    }

    .hero {
        padding: 52px 0;
    }

    .section {
        padding: 48px 0;
    }

    .category-grid,
    .product-grid,
    .filter-form {
        grid-template-columns: 1fr;
    }

    .brand-text small {
        display: none;
    }

    .product-image-wrap {
        height: 230px;
    }
}


/* ==========================
   CART & CHECKOUT
========================== */

.nav-cart {
    position: relative;
}

.cart-count {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    margin-left: 4px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: #dc3545;
    font-size: 0.72rem;
    font-weight: 900;
}

.site-alert-wrap {
    padding-top: 18px;
}

.site-alert {
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 700;
}

.site-alert-success {
    color: #0f5132;
    border-color: #badbcc;
    background: #d1e7dd;
}

.site-alert-danger {
    color: #842029;
    border-color: #f5c2c7;
    background: #f8d7da;
}

.site-alert-warning {
    color: #664d03;
    border-color: #ffecb5;
    background: #fff3cd;
}

.site-alert-info {
    color: #055160;
    border-color: #b6effb;
    background: #cff4fc;
}

.product-cart-form {
    margin: 0;
}

.product-whatsapp-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: var(--success);
    font-size: 0.82rem;
    font-weight: 800;
}

.page-heading {
    padding: 42px 0 28px;
}

.page-heading h1 {
    margin: 0 0 7px;
    color: var(--dark);
    font-size: clamp(2rem, 5vw, 3rem);
}

.page-heading p {
    margin: 0;
    color: var(--muted);
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.65fr);
    gap: 24px;
    align-items: start;
}

.cart-panel,
.summary-panel,
.checkout-panel,
.success-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.panel-heading {
    padding: 17px 20px;
    color: var(--white);
    background: var(--dark);
}

.panel-heading h2,
.panel-heading h3 {
    margin: 0;
    font-size: 1.1rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

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

.cart-table th {
    color: var(--dark);
    background: #f2f5f8;
    font-size: 0.84rem;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.cart-product-image {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border: 1px solid var(--border);
    border-radius: 9px;
    object-fit: contain;
    background: #f2f5f8;
}

.cart-product-placeholder {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #f2f5f8;
    font-size: 1.7rem;
}

.cart-product strong,
.cart-product small {
    display: block;
}

.cart-product small {
    color: var(--muted);
}

.quantity-input {
    width: 78px;
    min-height: 40px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font: inherit;
}

.remove-button {
    border: 0;
    color: var(--danger);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.cart-actions {
    padding: 17px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.summary-body {
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
    border-bottom: 0;
}

.summary-total {
    color: var(--success);
    font-size: 1.25rem;
    font-weight: 900;
}

.summary-panel .button {
    width: 100%;
    margin-top: 16px;
}

.checkout-delivery-message {
    margin-top: 12px;
    line-height: 1.45;
}

.checkout-pincode-slot {
    min-width: 0;
}

.checkout-pincode-slot:empty {
    display: none;
}

.checkout-pincode-slot .address-picker-field {
    width: 100%;
    margin: 0;
}

.checkout-pincode-slot .address-picker-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.checkout-pincode-slot .address-picker-field input {
    width: 100%;
}

.checkout-summary-payment {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--border);
}

.checkout-summary-payment .form-label {
    margin-bottom: 7px;
}

.checkout-summary-payment .form-control:disabled {
    cursor: not-allowed;
    background: #eef1f5;
    color: #66717e;
}

.summary-upi-payment-box {
    margin-top: 14px;
    padding: 14px;
}

.summary-upi-payment-box .upi-payment-layout {
    grid-template-columns: 1fr;
    gap: 14px;
}

.summary-upi-payment-box .upi-qr-image {
    width: 190px;
}

.summary-upi-payment-box .upi-details-column {
    min-width: 0;
}

.summary-upi-payment-box .upi-details-column p,
.summary-upi-payment-box .upi-safety-note,
.summary-upi-payment-box .dynamic-qr-status {
    font-size: 0.76rem;
}

.summary-upi-payment-box .upi-amount-box {
    margin: 10px 0;
}

.checkout-panel-body {
    padding: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
}

.form-group {
    min-width: 0;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 800;
}

.form-help {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.78rem;
}

.form-errors {
    margin: 0 0 20px;
    padding: 14px 17px 14px 36px;
    border: 1px solid #f5c2c7;
    border-radius: 10px;
    color: #842029;
    background: #f8d7da;
}

.checkout-submit {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-submit-bottom {
    margin: 0;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.checkout-submit-bottom .button {
    flex: 1 1 140px;
    margin-top: 0;
    text-align: center;
}

.order-items-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-items-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.order-items-list li:last-child {
    border-bottom: 0;
}

.order-items-list strong,
.order-items-list small {
    display: block;
}

.order-items-list small {
    color: var(--muted);
}

.success-panel {
    max-width: 760px;
    margin: 40px auto;
    padding: 42px 28px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
}

.order-number-box {
    margin: 22px auto;
    padding: 16px;
    max-width: 480px;
    border: 1px dashed var(--primary);
    border-radius: 12px;
    background: #eaf2ff;
}

.order-number-box strong {
    display: block;
    color: var(--primary);
    font-size: 1.35rem;
}

@media (max-width: 900px) {
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .cart-table {
        display: block;
        overflow-x: auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .cart-actions {
        flex-direction: column;
    }

    .cart-actions .button {
        width: 100%;
    }
}


/* CART IMAGE DISPLAY FIX */
.cart-panel {
    max-width: 100%;
}

.cart-table {
    table-layout: auto;
}

.cart-product {
    min-width: 240px;
}

.cart-product-image {
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    object-fit: contain !important;
    padding: 4px;
    overflow: hidden;
}

.cart-product-placeholder {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
}

.cart-table td:first-child {
    width: 42%;
}

@media (max-width: 680px) {
    .cart-product {
        min-width: 210px;
    }

    .cart-product-image,
    .cart-product-placeholder {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
    }
}


/* ==========================
   ORDER TRACKING
========================== */

.tracking-shell {
    max-width: 920px;
    margin: 0 auto;
}

.tracking-search-card,
.tracking-result-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.tracking-search-card {
    max-width: 760px;
    margin: 0 auto 26px;
    padding: 24px;
}

.tracking-search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.tracking-result-header {
    padding: 20px 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    color: var(--white);
    background: linear-gradient(135deg, #1565d8, #0b3e85);
}

.tracking-result-header h2 {
    margin: 0;
}

.tracking-result-header p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.tracking-status-badge {
    align-self: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--dark);
    background: var(--secondary);
    font-weight: 900;
}

.tracking-status-badge.status-completed {
    color: var(--white);
    background: var(--success);
}

.tracking-status-badge.status-cancelled {
    color: var(--white);
    background: var(--danger);
}

.tracking-body {
    padding: 23px;
}

.tracking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.tracking-info-box {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.tracking-info-box h3 {
    margin: 0 0 12px;
    color: var(--dark);
    font-size: 1rem;
}

.tracking-info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.tracking-info-row:last-child {
    border-bottom: 0;
}

.tracking-total {
    color: var(--success);
    font-size: 1.1rem;
    font-weight: 900;
}

.status-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 26px 0;
}

.status-step {
    position: relative;
    text-align: center;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.status-step::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto 8px;
    border: 4px solid #d6dee8;
    border-radius: 50%;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.status-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 100%;
    height: 4px;
    background: #d6dee8;
    z-index: 1;
}

.status-step.complete {
    color: var(--success);
}

.status-step.complete::before {
    border-color: var(--success);
    background: var(--success);
    box-shadow: inset 0 0 0 4px var(--white);
}

.status-step.complete:not(:last-child)::after {
    background: var(--success);
}

.status-step.cancelled {
    color: var(--danger);
}

.status-step.cancelled::before {
    border-color: var(--danger);
    background: var(--danger);
    box-shadow: inset 0 0 0 4px var(--white);
}

.tracking-items {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.tracking-items table {
    width: 100%;
    border-collapse: collapse;
}

.tracking-items th,
.tracking-items td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.tracking-items th {
    color: var(--dark);
    background: #eef3f8;
}

.tracking-items tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 760px) {
    .tracking-search-grid,
    .tracking-grid {
        grid-template-columns: 1fr;
    }

    .tracking-search-grid .button {
        width: 100%;
    }

    .tracking-items {
        overflow-x: auto;
    }
}


/* ==========================
   DELIVERY NOTICE & GIFT
========================== */

.delivery-notice-bar {
    overflow: hidden;
    color: #3b2a00;
    background: #ffd966;
    border-bottom: 1px solid #efc24d;
    font-weight: 800;
    white-space: nowrap;
}

.delivery-notice-track {
    width: max-content;
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 8px 18px;
    animation: deliveryNoticeMove 24s linear infinite;
}

@keyframes deliveryNoticeMove {
    0% {
        transform: translateX(12%);
    }

    100% {
        transform: translateX(-12%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .delivery-notice-track {
        animation: none;
    }
}

.gift-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: #9c27b0;
    font-size: 0.74rem;
    font-weight: 900;
}

.gift-option-select {
    min-width: 210px;
    min-height: 40px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 8px 10px;
    background: #ffffff;
    font: inherit;
    font-size: 0.86rem;
}

.free-delivery-progress {
    margin-top: 14px;
    padding: 13px;
    border: 1px solid #b9d6f6;
    border-radius: 10px;
    background: #edf6ff;
}

.free-delivery-progress strong {
    display: block;
    margin-bottom: 7px;
    color: #0f4fae;
}

.free-delivery-progress p {
    margin: 5px 0;
    color: #354658;
    font-size: 0.84rem;
}

.gift-option-note {
    margin-top: 5px;
    color: #8a3196;
    font-size: 0.78rem;
    font-weight: 800;
}

@media (max-width: 680px) {
    .delivery-notice-track {
        justify-content: flex-start;
        animation-duration: 18s;
    }

    .gift-option-select {
        min-width: 190px;
    }
}


/* ==========================
   UPI PAYMENT
========================== */

.upi-payment-box {
    padding: 18px;
    border: 1px solid #a8d7c0;
    border-radius: 14px;
    background: #f0fff7;
}

.upi-payment-layout {
    display: grid;
    grid-template-columns: minmax(180px, 230px) 1fr;
    gap: 22px;
    align-items: center;
}

.upi-qr-column {
    text-align: center;
}

.upi-qr-image {
    width: 220px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 10px;
    border: 1px solid #cfdae5;
    border-radius: 14px;
    background: #ffffff;
}

.upi-details-column h3 {
    margin: 0 0 12px;
    color: #087f4c;
}

.upi-details-column p {
    margin: 7px 0;
}

.upi-amount-box {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 10px;
    color: #ffffff;
    background: #087f4c;
    font-size: 1rem;
    font-weight: 700;
}

.upi-amount-box strong {
    display: block;
    margin-top: 4px;
    font-size: 1.35rem;
}

.payment-verification-note {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #f0cf70;
    border-radius: 10px;
    background: #fff8dc;
    color: #5a4300;
}

@media (max-width: 700px) {
    .upi-payment-layout {
        grid-template-columns: 1fr;
    }

    .upi-qr-image {
        width: 200px;
    }
}


/* ==========================
   DYNAMIC UPI QR
========================== */

.dynamic-qr-wrapper {
    position: relative;
    display: inline-block;
}

.dynamic-qr-badge {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    min-width: 145px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(8, 127, 76, 0.94);
    font-size: 0.74rem;
    font-weight: 900;
    text-align: center;
}

.dynamic-qr-status {
    max-width: 230px;
    margin: 8px auto 0;
    text-align: center;
    line-height: 1.45;
}

.upi-safety-note {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid #e4bd55;
    border-radius: 10px;
    color: #594200;
    background: #fff8dc;
    font-size: 0.84rem;
    line-height: 1.5;
}


/* ==========================
   CUSTOMER ACCOUNT & OTP
========================== */

.customer-auth-section {
    padding: 56px 0 70px;
    background: linear-gradient(135deg, #edf6ff, #f6fbff);
}

.customer-auth-wrap {
    display: flex;
    justify-content: center;
}

.customer-auth-card {
    width: min(100%, 480px);
    padding: 30px;
    border: 1px solid #d8e4f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(20, 64, 105, 0.12);
}

.customer-auth-card h1 {
    margin: 10px 0 8px;
    text-align: center;
}

.customer-auth-card > p {
    margin: 0 0 24px;
    color: #5c6b7b;
    text-align: center;
    line-height: 1.6;
}

.customer-auth-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    background: #e9f3ff;
    font-size: 2rem;
}

.customer-auth-button {
    width: 100%;
    justify-content: center;
}

.customer-auth-help,
.customer-auth-link {
    display: block;
    margin-top: 16px;
    color: #67788a;
    text-align: center;
    font-size: 0.86rem;
}

.resend-otp-form {
    margin-top: 12px;
}

.otp-input {
    text-align: center;
    letter-spacing: 0.45rem;
    font-size: 1.35rem;
    font-weight: 900;
}

.development-otp-box {
    margin: 0 0 18px;
    padding: 15px;
    border: 1px dashed #f0ad2c;
    border-radius: 12px;
    background: #fff8df;
    text-align: center;
}

.development-otp-box span,
.development-otp-box small {
    display: block;
}

.development-otp-box strong {
    display: block;
    margin: 5px 0;
    color: #9c6200;
    font-size: 1.7rem;
    letter-spacing: 0.3rem;
}

.account-checkout-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #b9dec8;
    border-radius: 10px;
    background: #effcf4;
}

.account-checkout-note span {
    color: #526273;
}

.account-checkout-guest {
    border-color: #cbd8e5;
    background: #f5f8fb;
}

.account-page-heading {
    padding: 40px 0;
    color: #ffffff;
    background: linear-gradient(120deg, #1267d6, #164d91);
}

.account-heading-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.account-page-heading h1 {
    margin: 6px 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.account-page-heading p {
    margin: 0;
    opacity: 0.9;
}

.account-kicker {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    font-size: 0.8rem;
    font-weight: 800;
}

.account-section {
    background: #f4f7fb;
}

.account-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.account-stat-card {
    padding: 20px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(25, 55, 85, 0.07);
}

.account-stat-card span {
    display: block;
    color: #647487;
    font-size: 0.86rem;
}

.account-stat-card strong {
    display: block;
    margin-top: 8px;
    color: #1463c8;
    font-size: 1.7rem;
}

.account-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.account-action-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 150px;
    padding: 20px;
    border: 1px solid #d9e3ed;
    border-radius: 14px;
    color: #172332;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(25, 55, 85, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.account-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(25, 55, 85, 0.11);
}

.account-action-card > span {
    font-size: 1.7rem;
}

.account-action-card small {
    color: #6c7a89;
}

.account-panel {
    overflow: hidden;
    border: 1px solid #dbe4ed;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(25, 55, 85, 0.07);
}

.account-panel-body {
    padding: 20px;
}

.account-panel-heading-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.account-order-list {
    display: grid;
    gap: 10px;
}

.account-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e0e7ee;
    border-radius: 10px;
    color: #172332;
    text-decoration: none;
}

.account-order-row > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-order-row > div:last-child {
    align-items: flex-end;
}

.account-order-row small {
    color: #718093;
}

.customer-status-pill {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: #167a51;
    font-size: 0.75rem;
    font-weight: 800;
}

.account-empty-state {
    display: grid;
    justify-items: center;
    gap: 15px;
    padding: 35px 15px;
    text-align: center;
}

.account-form-wrap {
    max-width: 900px;
}

.account-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.customer-orders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.customer-order-card {
    overflow: hidden;
    border: 1px solid #dfe7ef;
    border-radius: 14px;
    background: #ffffff;
}

.customer-order-card-head,
.customer-order-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px;
}

.customer-order-card-head {
    border-bottom: 1px solid #e6edf3;
    background: #f8fafc;
}

.customer-order-card-head > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-order-card-head small,
.customer-order-card-body span {
    color: #738194;
    font-size: 0.78rem;
}

.customer-order-card-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    padding: 15px;
}

.customer-order-card-body > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-order-card-foot {
    border-top: 1px solid #e6edf3;
}

.customer-order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
    gap: 18px;
    align-items: start;
}

.customer-tracking-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 22px;
}

.customer-tracking-step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #8a97a5;
    text-align: center;
    font-size: 0.82rem;
}

.customer-tracking-step::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 3px;
    background: #dbe3eb;
    z-index: 0;
}

.customer-tracking-step:first-child::before { left: 50%; }
.customer-tracking-step:last-child::before { right: 50%; }
.customer-tracking-step span {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #cbd5df;
}
.customer-tracking-step.complete span { background: #198754; }
.customer-tracking-step.complete { color: #166b46; }
.customer-tracking-step.cancelled span { background: #dc3545; }
.customer-tracking-step.cancelled { color: #b12b38; }

.customer-order-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.customer-order-info-grid > div {
    padding: 12px;
    border: 1px solid #e0e7ef;
    border-radius: 10px;
    background: #f9fbfd;
}

.customer-order-info-grid span,
.customer-order-info-grid strong {
    display: block;
}
.customer-order-info-grid span { color: #728194; font-size: 0.78rem; }
.customer-order-info-grid strong { margin-top: 5px; }

.customer-order-items-table-wrap { overflow-x: auto; }
.customer-order-items-table { width: 100%; border-collapse: collapse; }
.customer-order-items-table th,
.customer-order-items-table td { padding: 11px; border: 1px solid #dfe6ed; text-align: left; }
.customer-order-items-table th { color: #ffffff; background: #1c2837; }

.customer-order-totals {
    width: min(100%, 390px);
    margin: 18px 0 0 auto;
}
.customer-order-totals > div {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #dfe6ed;
    border-top: 0;
}
.customer-order-totals > div:first-child { border-top: 1px solid #dfe6ed; }
.customer-order-totals .grand { color: #ffffff; background: #198754; }

.customer-delivery-details p {
    display: grid;
    gap: 5px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f5;
}
.customer-delivery-details p strong { color: #1b2735; }
.customer-delivery-details p span { color: #5e6c7b; }

@media (max-width: 980px) {
    .account-stat-grid,
    .account-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-order-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .customer-auth-section { padding: 32px 0 45px; }
    .customer-auth-card { padding: 22px; }
    .account-heading-inner { align-items: flex-start; flex-direction: column; }
    .account-stat-grid,
    .account-action-grid,
    .customer-orders-grid,
    .customer-order-info-grid { grid-template-columns: 1fr; }
    .account-checkout-note { align-items: flex-start; flex-direction: column; }
    .customer-order-card-body { grid-template-columns: 1fr 1fr; }
}


/* ==========================
   LOYALTY POINTS
========================== */

.loyalty-account-card {
    border-color: #e8c547;
    background:
        linear-gradient(
            135deg,
            #fffdf0,
            #ffffff
        );
}

.loyalty-checkout-box {
    padding: 18px;
    border: 1px solid #e3c557;
    border-radius: 14px;
    background: #fffbea;
}

.loyalty-checkout-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.loyalty-checkout-heading strong,
.loyalty-checkout-heading span {
    display: block;
}

.loyalty-checkout-heading strong {
    margin-bottom: 4px;
    color: #7a5900;
    font-size: 1.08rem;
}

.loyalty-checkout-heading a {
    color: #0d6efd;
    font-weight: 800;
    text-decoration: none;
}

.loyalty-discount-value {
    color: #0b8f55;
}

.loyalty-rule-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.loyalty-rule-card {
    padding: 20px;
    border: 1px solid #e0d18a;
    border-radius: 14px;
    background: #fffdf3;
    box-shadow: 0 8px 24px rgba(44, 50, 60, 0.08);
}

.loyalty-rule-card span,
.loyalty-rule-card strong {
    display: block;
}

.loyalty-rule-card span {
    margin-bottom: 8px;
    color: #6b7280;
}

.loyalty-rule-card strong {
    color: #6d5100;
    line-height: 1.45;
}

.loyalty-history-list {
    display: grid;
    gap: 12px;
}

.loyalty-history-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    background: #ffffff;
}

.loyalty-history-row strong,
.loyalty-history-row small {
    display: block;
}

.loyalty-history-row p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 0.88rem;
}

.loyalty-history-points {
    min-width: 95px;
    text-align: right;
}

.loyalty-history-points strong {
    font-size: 1.3rem;
}

.loyalty-history-points .positive {
    color: #0b8f55;
}

.loyalty-history-points .negative {
    color: #dc3545;
}

.loyalty-success-note {
    margin: 14px 0;
    padding: 13px 15px;
    border: 1px solid #dfc45f;
    border-radius: 10px;
    color: #614900;
    background: #fff8d8;
}

@media (max-width: 900px) {
    .loyalty-rule-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .loyalty-rule-grid {
        grid-template-columns: 1fr;
    }

    .loyalty-checkout-heading,
    .loyalty-history-row {
        flex-direction: column;
    }

    .loyalty-history-points {
        text-align: left;
    }
}


/* ==========================
   HOME POPULAR PRODUCTS
========================== */

.home-featured-section {
    padding-top: 48px;
    padding-bottom: 52px;
}

.home-featured-grid {
    align-items: stretch;
}

.home-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-product-card .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-product-card .product-cart-form {
    margin-top: auto;
}

/* ==========================
   SHOP CONTACT AND MAP
========================== */

.compact-section-heading {
    margin-bottom: 20px;
}

.shop-contact-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);
    gap: 20px;
    align-items: stretch;
}

.shop-contact-card,
.shop-map-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(26, 47, 73, 0.09);
}

.shop-contact-card {
    padding: 25px;
}

.shop-contact-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shop-contact-card h3 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: 1.5rem;
}

.shop-address-text {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
}

.shop-contact-lines {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.shop-contact-lines p {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 0;
    color: var(--dark);
}

.shop-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-contact-actions .button {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 0.9rem;
}

.shop-map-card {
    min-height: 310px;
}

.shop-map-card iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 310px;
    border: 0;
}

.shop-map-placeholder {
    height: 100%;
    min-height: 310px;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 25px;
    text-align: center;
    color: var(--muted);
    background:
        linear-gradient(
            135deg,
            #f5f8fc,
            #eaf1f9
        );
}

.shop-map-placeholder span {
    font-size: 3rem;
}

.shop-map-placeholder strong {
    color: var(--dark);
    font-size: 1.25rem;
}

.shop-map-placeholder p {
    max-width: 360px;
    margin: 0;
}

/* ==========================
   COMPACT FOOTER
========================== */

.compact-footer-grid {
    grid-template-columns: 1.15fr 1fr 0.95fr 1.1fr;
    gap: 26px;
    padding-top: 34px;
    padding-bottom: 26px;
    align-items: start;
}

.footer-brand-block p {
    max-width: 420px;
    line-height: 1.6;
}

.footer-links-block,
.footer-policies-block,
.footer-contact-block {
    min-width: 0;
}

.footer-link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 3px 18px;
    align-content: start;
}

.footer-policy-list {
    grid-template-columns: repeat(2, minmax(0, max-content));
}

.footer-contact-block a {
    display: block;
    margin: 8px 0;
    line-height: 1.5;
}

.footer-address-link {
    max-width: 360px;
}

@media (max-width: 1180px) {
    .compact-footer-grid {
        grid-template-columns: 1.1fr 1fr 1fr;
    }

    .footer-brand-block {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .shop-contact-layout {
        grid-template-columns: 1fr;
    }

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

    .footer-brand-block {
        grid-column: 1 / -1;
    }

    .footer-contact-block {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .compact-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-brand-block,
    .footer-contact-block {
        grid-column: auto;
    }

    .footer-link-list,
    .footer-policy-list {
        grid-template-columns: repeat(2, minmax(0, max-content));
    }

    .shop-contact-card {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .footer-link-list,
    .footer-policy-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .home-featured-section {
        padding-top: 34px;
        padding-bottom: 38px;
    }

    .home-featured-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-product-card {
        border-radius: 12px;
    }

    .home-product-card .product-image-wrap {
        height: 132px;
    }

    .home-product-card .product-image-wrap img {
        padding: 7px;
    }

    .home-product-card .product-placeholder {
        font-size: 2.3rem;
    }

    .home-product-card .stock-badge {
        top: 7px;
        right: 7px;
        padding: 4px 6px;
        font-size: 0.61rem;
    }

    .home-product-card .gift-badge {
        top: 7px;
        left: 7px;
        padding: 4px 6px;
        font-size: 0.61rem;
    }

    .home-product-card .product-content {
        padding: 10px;
    }

    .home-product-card .product-category {
        font-size: 0.64rem;
    }

    .home-product-card .product-content h3 {
        min-height: 36px;
        margin: 4px 0 7px;
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .home-product-card .product-description {
        display: none;
    }

    .home-product-card .product-price-row {
        min-height: 25px;
        margin-bottom: 8px;
        gap: 5px;
    }

    .home-product-card .product-price {
        font-size: 1rem;
    }

    .home-product-card .product-mrp {
        font-size: 0.7rem;
    }

    .home-product-card .button {
        min-height: 39px;
        padding: 7px 8px;
        border-radius: 7px;
        font-size: 0.76rem;
    }

    .home-product-card .product-whatsapp-link {
        display: none;
    }

    .shop-contact-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .shop-contact-actions .button:last-child {
        grid-column: 1 / -1;
    }

    .shop-map-card,
    .shop-map-card iframe,
    .shop-map-placeholder {
        min-height: 245px;
    }

    .footer-link-list {
        grid-template-columns: 1fr 1fr;
    }
}


/* ==========================
   MOBILE-FIRST SHOPPING UI
========================== */

.mobile-header-actions,
.mobile-search-wrap,
.mobile-bottom-nav,
.mobile-category-strip,
.mobile-quick-actions {
    display: none;
}

.footer-admin-login {
    margin-top: 8px;
    color: #f5c451 !important;
    font-weight: 800;
}

@media (max-width: 760px) {
    body {
        padding-bottom: 72px;
        overflow-x: hidden;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 1100;
        box-shadow: 0 4px 18px rgba(24, 39, 57, 0.08);
    }

    .header-inner {
        min-height: 64px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .brand-logo,
    .brand-logo-placeholder {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .brand-text strong {
        font-size: 1.04rem;
    }

    .brand-text small {
        display: none;
    }

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

    .mobile-header-icon,
    .menu-toggle {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid #d8e1eb;
        border-radius: 11px;
        color: #182534;
        background: #ffffff;
        text-decoration: none;
        font-size: 1.12rem;
    }

    .mobile-cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        display: grid;
        place-items: center;
        border: 2px solid #ffffff;
        border-radius: 999px;
        color: #ffffff;
        background: #ea3345;
        font-size: 0.64rem;
        font-weight: 900;
    }

    .site-nav {
        position: fixed;
        top: 68px;
        left: 12px;
        right: 12px;
        z-index: 1200;
        max-height: calc(100vh - 155px);
        overflow-y: auto;
        padding: 10px;
        border: 1px solid #dce5ef;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 18px 45px rgba(21, 38, 58, 0.18);
    }

    .site-nav:not(.open) {
        display: none;
    }

    .site-nav.open {
        display: grid;
        gap: 3px;
    }

    .site-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 13px;
        border-radius: 10px;
        text-align: left;
    }

    .site-nav .nav-call {
        color: #087f49;
        background: #e9f8f0;
    }

    .mobile-search-wrap {
        display: block;
        padding: 0 12px 10px;
        background: #ffffff;
    }

    .mobile-search-form {
        display: flex;
        align-items: center;
        overflow: hidden;
        border: 1px solid #d8e1eb;
        border-radius: 12px;
        background: #f8fafc;
    }

    .mobile-search-form input {
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0 13px;
        border: 0;
        outline: 0;
        color: #172332;
        background: transparent;
        font-size: 0.92rem;
    }

    .mobile-search-form button {
        width: 48px;
        height: 44px;
        border: 0;
        color: #ffffff;
        background: #1467d9;
        font-size: 1rem;
    }

    .delivery-notice-bar {
        position: relative;
        z-index: 10;
        min-height: 36px;
        padding: 0;
    }

    .delivery-notice-track {
        justify-content: flex-start;
        padding: 8px 12px;
        animation: mobileNoticeScroll 17s linear infinite;
        font-size: 0.78rem;
    }

    @keyframes mobileNoticeScroll {
        0% {
            transform: translateX(100vw);
        }

        100% {
            transform: translateX(-100%);
        }
    }

    .mobile-category-strip {
        display: block;
        padding: 12px 0 8px;
        background: #ffffff;
    }

    .mobile-category-track {
        display: flex;
        gap: 13px;
        padding: 0 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .mobile-category-track::-webkit-scrollbar {
        display: none;
    }

    .mobile-category-item {
        width: 68px;
        min-width: 68px;
        color: #263648;
        text-align: center;
        text-decoration: none;
    }

    .mobile-category-icon {
        width: 54px;
        height: 54px;
        margin: 0 auto 6px;
        display: grid;
        place-items: center;
        overflow: hidden;
        border: 1px solid #dce5ef;
        border-radius: 50%;
        background: #f1f6fc;
        font-size: 1.55rem;
    }

    .mobile-category-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-category-item small {
        display: block;
        overflow: hidden;
        color: #263648;
        font-size: 0.68rem;
        font-weight: 800;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero {
        padding-top: 27px;
        padding-bottom: 27px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero h1 {
        margin-top: 14px;
        font-size: clamp(2rem, 9.5vw, 2.65rem);
        line-height: 1.05;
    }

    .hero p {
        margin-top: 14px;
        font-size: 0.96rem;
        line-height: 1.5;
    }

    .hero-badge {
        font-size: 0.7rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .hero-actions .button {
        width: 100%;
        min-height: 46px;
        padding: 9px 8px;
        font-size: 0.82rem;
    }

    .hero-card {
        display: none;
    }

    .mobile-quick-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 12px;
        background: #f4f7fb;
    }

    .mobile-quick-actions a {
        min-width: 0;
        padding: 11px 5px;
        border: 1px solid #dce5ef;
        border-radius: 12px;
        color: #223143;
        background: #ffffff;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 5px 15px rgba(30, 47, 67, 0.06);
    }

    .mobile-quick-actions span,
    .mobile-quick-actions strong {
        display: block;
    }

    .mobile-quick-actions span {
        margin-bottom: 5px;
        font-size: 1.25rem;
    }

    .mobile-quick-actions strong {
        overflow: hidden;
        font-size: 0.67rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-featured-section {
        padding-top: 28px;
    }

    .section-heading {
        align-items: flex-end;
        gap: 10px;
        margin-bottom: 16px;
    }

    .section-heading h2 {
        font-size: 1.55rem;
    }

    .section-heading p {
        font-size: 0.82rem;
    }

    .section-heading .button {
        min-height: 37px;
        padding: 7px 10px;
        font-size: 0.72rem;
    }

    .stats-grid {
        display: none;
    }

    .site-footer {
        padding-bottom: 74px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: 64px;
        padding: 6px 5px calc(6px + env(safe-area-inset-bottom));
        border-top: 1px solid #dce5ef;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -5px 20px rgba(24, 41, 61, 0.1);
        backdrop-filter: blur(12px);
    }

    .mobile-bottom-nav a {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #657284;
        text-decoration: none;
    }

    .mobile-bottom-nav a > span {
        position: relative;
        font-size: 1.12rem;
        line-height: 1;
    }

    .mobile-bottom-nav small {
        font-size: 0.61rem;
        font-weight: 800;
    }

    .mobile-bottom-nav a.active {
        color: #1267dc;
    }

    .mobile-bottom-cart b {
        position: absolute;
        top: -8px;
        right: -11px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        color: #ffffff;
        background: #ea3345;
        font-size: 0.58rem;
    }

    .floating-help,
    .floating-pdf,
    .pdf-floating-button {
        bottom: 78px !important;
    }
}

@media (max-width: 390px) {
    .brand-text strong {
        font-size: 0.92rem;
    }

    .mobile-header-icon,
    .menu-toggle {
        width: 39px;
        height: 39px;
    }

    .hero h1 {
        font-size: 1.92rem;
    }
}


/* ==========================
   MOBILE CART COMPACT FIX
========================== */

@media (max-width: 680px) {
    /* Slower moving delivery notice */
    .delivery-notice-track {
        animation-duration: 34s !important;
    }

    /* Compact cart page heading */
    .page-heading {
        padding: 26px 0 18px;
    }

    .page-heading h1 {
        margin-bottom: 4px;
        font-size: 1.75rem;
    }

    .page-heading p {
        font-size: 0.86rem;
    }

    /* Compact cart cards */
    .cart-layout {
        gap: 14px;
    }

    .cart-panel,
    .summary-panel {
        border-radius: 12px;
    }

    .cart-panel .panel-heading,
    .summary-panel .panel-heading {
        padding: 12px 14px;
    }

    .cart-panel .panel-heading h2,
    .summary-panel .panel-heading h3 {
        font-size: 0.98rem;
    }

    /* Smaller cart table */
    .cart-table {
        font-size: 0.76rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 8px 7px;
    }

    .cart-table th {
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .cart-product {
        min-width: 155px;
        gap: 8px;
    }

    .cart-product-image,
    .cart-product-placeholder {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        border-radius: 8px;
    }

    .cart-product-placeholder {
        font-size: 1.25rem;
    }

    .cart-product strong {
        font-size: 0.82rem;
        line-height: 1.25;
    }

    .cart-product small {
        margin-top: 2px;
        font-size: 0.67rem;
        line-height: 1.25;
    }

    .quantity-input {
        width: 52px;
        min-height: 34px;
        padding: 5px;
        font-size: 0.78rem;
    }

    .gift-option-select {
        min-width: 148px;
        min-height: 34px;
        padding: 5px 7px;
        font-size: 0.72rem;
    }

    .gift-option-note {
        font-size: 0.66rem;
    }

    .remove-button {
        font-size: 0.72rem;
    }

    .cart-actions {
        padding: 11px;
        gap: 8px;
    }

    .cart-actions .button {
        min-height: 42px;
        margin: 0;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    /* Compact order summary */
    .summary-body {
        padding: 14px;
    }

    .summary-row {
        gap: 10px;
        padding: 7px 0;
        font-size: 0.81rem;
    }

    .summary-total {
        font-size: 1.08rem;
    }

    .free-delivery-progress {
        margin-top: 10px;
        padding: 10px;
        border-radius: 9px;
    }

    .free-delivery-progress strong {
        margin-bottom: 5px;
        font-size: 0.84rem;
    }

    .free-delivery-progress p {
        margin: 4px 0;
        font-size: 0.74rem;
        line-height: 1.45;
    }

    .summary-panel .button {
        min-height: 43px;
        margin-top: 10px;
        padding: 8px 10px;
        font-size: 0.82rem;
    }
}


/* ==========================
   BALANCED MOBILE HOME HERO
========================== */

@media (max-width: 680px) {
    .hero {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

    .hero-grid {
        gap: 14px !important;
    }

    .hero-badge {
        margin-bottom: 8px;
        padding: 6px 11px;
        font-size: 0.66rem !important;
    }

    .hero h1 {
        margin-top: 9px !important;
        margin-bottom: 10px !important;
        font-size: 2rem !important;
        line-height: 1.07 !important;
    }

    .hero p {
        margin-top: 0 !important;
        margin-bottom: 14px !important;
        font-size: 0.88rem !important;
        line-height: 1.45 !important;
    }

    .hero-actions {
        gap: 9px !important;
    }

    .hero-actions .button {
        min-height: 43px !important;
        padding: 8px 9px !important;
        font-size: 0.79rem !important;
    }

    .hero-card {
        display: none !important;
    }

    /* Bottom navigation already has these shortcuts */
    .mobile-quick-actions {
        display: none !important;
    }

    .home-featured-section {
        padding-top: 24px !important;
    }

    .home-featured-section .section-heading {
        margin-bottom: 13px;
    }

    .home-featured-section .section-heading h2 {
        font-size: 1.46rem;
    }

    .home-featured-section .section-heading p {
        font-size: 0.76rem;
        line-height: 1.35;
    }
}

@media (max-width: 390px) {
    .hero h1 {
        font-size: 1.82rem !important;
    }

    .hero p {
        font-size: 0.84rem !important;
    }
}


/* ========================================
   SMALLER HERO + FULL MOBILE CART LAYOUT
======================================== */

/* Desktop/Laptop hero slightly smaller */
@media (min-width: 761px) {
    .hero {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }

    .hero-grid {
        gap: 34px !important;
    }

    .hero h1 {
        max-width: 760px;
        margin-bottom: 13px !important;
        font-size: clamp(
            2.25rem,
            4.2vw,
            3.45rem
        ) !important;
        line-height: 1.06 !important;
    }

    .hero p {
        margin-bottom: 19px !important;
        font-size: 0.98rem !important;
    }

    .hero-badge {
        margin-bottom: 12px !important;
    }

    .hero-card {
        padding: 22px !important;
        border-radius: 18px !important;
    }

    .hero-card h3 {
        margin-bottom: 10px !important;
    }

    .hero-feature {
        padding: 9px 0 !important;
    }
}

/* Mobile hero compact but readable */
@media (max-width: 680px) {
    .hero {
        padding-top: 17px !important;
        padding-bottom: 18px !important;
    }

    .hero-badge {
        margin-bottom: 6px !important;
        padding: 5px 9px !important;
        font-size: 0.61rem !important;
    }

    .hero h1 {
        margin-top: 6px !important;
        margin-bottom: 8px !important;
        font-size: 1.67rem !important;
        line-height: 1.06 !important;
    }

    .hero p {
        margin-bottom: 11px !important;
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    .hero-actions .button {
        min-height: 39px !important;
        padding: 7px 6px !important;
        font-size: 0.73rem !important;
    }

    .home-featured-section {
        padding-top: 18px !important;
    }

    /* Cart table becomes complete item cards.
       No horizontal sliding is required. */
    .cart-panel {
        overflow: visible !important;
    }

    .cart-table {
        display: block !important;
        width: 100% !important;
        overflow: visible !important;
        font-size: 0.78rem !important;
    }

    .cart-table thead {
        display: none !important;
    }

    .cart-table tbody {
        display: grid !important;
        width: 100% !important;
        gap: 10px;
        padding: 10px;
        background: #f3f6fa;
    }

    .cart-table tr {
        display: block !important;
        width: 100% !important;
        overflow: hidden;
        border: 1px solid #dbe3ec;
        border-radius: 11px;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(25, 43, 63, 0.06);
    }

    .cart-table td {
        display: grid !important;
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: center;
        width: 100% !important;
        padding: 7px 10px !important;
        border: 0 !important;
        border-bottom: 1px solid #edf0f4 !important;
        text-align: left !important;
    }

    .cart-table td:last-child {
        border-bottom: 0 !important;
    }

    .cart-table td::before {
        color: #687587;
        font-size: 0.68rem;
        font-weight: 800;
    }

    .cart-table td:nth-child(1) {
        display: block !important;
        padding: 10px !important;
        background: #f8fafc;
    }

    .cart-table td:nth-child(1)::before {
        display: none;
    }

    .cart-table td:nth-child(2)::before {
        content: "Price";
    }

    .cart-table td:nth-child(3)::before {
        content: "Quantity";
    }

    .cart-table td:nth-child(4)::before {
        content: "Gift Packing";
    }

    .cart-table td:nth-child(5)::before {
        content: "Subtotal";
    }

    .cart-table td:nth-child(6)::before {
        content: "Action";
    }

    .cart-product {
        width: 100% !important;
        min-width: 0 !important;
        gap: 9px !important;
    }

    .cart-product-image,
    .cart-product-placeholder {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
    }

    .cart-product strong {
        font-size: 0.86rem !important;
    }

    .cart-product small {
        font-size: 0.69rem !important;
    }

    .quantity-input {
        width: 64px !important;
        min-height: 35px !important;
    }

    .gift-option-select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 36px !important;
        font-size: 0.72rem !important;
    }

    .gift-option-note {
        margin-top: 3px;
    }

    .remove-button {
        justify-self: start;
        min-height: 32px;
        padding: 5px 9px;
        border: 1px solid #f2b8bf;
        border-radius: 7px;
        background: #fff5f6;
        font-size: 0.7rem !important;
    }

    .cart-actions {
        padding: 10px !important;
    }

    .cart-actions .button {
        min-height: 40px !important;
        font-size: 0.78rem !important;
    }

    .summary-panel {
        margin-top: 0;
    }

    .summary-body {
        padding: 12px !important;
    }

    .checkout-summary-payment {
        margin-top: 12px;
        padding-top: 12px;
    }

    .summary-upi-payment-box {
        padding: 12px;
    }

    .summary-upi-payment-box .upi-qr-image {
        width: 180px;
    }

    .free-delivery-progress {
        padding: 9px !important;
    }

    .free-delivery-progress p {
        font-size: 0.71rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 390px) {
    .hero h1 {
        font-size: 1.55rem !important;
    }

    .cart-table td {
        grid-template-columns: 82px minmax(0, 1fr);
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}


/* ==========================
   DESKTOP PRODUCT SEARCH
========================== */

.desktop-search-form {
    flex: 1 1 220px;
    max-width: 285px;
    min-width: 190px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cfd9e5;
    border-radius: 10px;
    background: #f8fafc;
}

.desktop-search-form input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    color: var(--dark);
    background: transparent;
    font: inherit;
    font-size: 0.84rem;
}

.desktop-search-form button {
    width: 44px;
    height: 42px;
    flex: 0 0 44px;
    border: 0;
    color: #ffffff;
    background: var(--primary);
    cursor: pointer;
}

@media (min-width: 761px) and (max-width: 1120px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 9px 14px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .brand-link {
        order: 1;
    }

    .site-nav {
        order: 2;
        margin-left: auto;
    }

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

@media (max-width: 760px) {
    .desktop-search-form {
        display: none;
    }
}

/* ==========================
   CUSTOM PRINT CUSTOMER UI
========================== */

.custom-print-hero {
    padding: 54px 0;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(255, 191, 48, 0.34),
            transparent 30%
        ),
        linear-gradient(135deg, #172b56, #1565d8);
}

.custom-print-hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(300px, 0.8fr);
    gap: 36px;
    align-items: center;
}

.custom-print-kicker {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.custom-print-hero h1 {
    max-width: 760px;
    margin: 17px 0 12px;
    font-size: clamp(2.1rem, 4.5vw, 3.7rem);
    line-height: 1.08;
}

.custom-print-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}

.custom-print-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 23px;
}

.custom-print-light-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: transparent;
}

.custom-print-preview-cards {
    display: grid;
    gap: 11px;
}

.custom-print-preview-cards > div {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 2px 12px;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
}

.custom-print-preview-cards span {
    grid-row: 1 / 3;
    font-size: 2rem;
}

.custom-print-preview-cards strong,
.custom-print-preview-cards small {
    display: block;
}

.custom-print-preview-cards small {
    color: rgba(255, 255, 255, 0.76);
}

.custom-print-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.custom-print-info-grid article {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 7px 20px rgba(26, 47, 73, 0.06);
}

.custom-print-info-grid article > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    margin-bottom: 9px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--primary);
    font-weight: 900;
}

.custom-print-info-grid strong,
.custom-print-info-grid small {
    display: block;
}

.custom-print-info-grid small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.4;
}

.custom-print-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(260px, 0.45fr);
    gap: 22px;
    align-items: start;
}

.custom-print-form-card,
.custom-print-side-card,
.custom-track-form-card,
.custom-track-result,
.custom-order-view-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.custom-print-form-body {
    padding: 22px;
}

.custom-print-side-card {
    position: sticky;
    top: 98px;
    padding: 22px;
}

.custom-print-side-card h2 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: 1.3rem;
}

.custom-print-side-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.custom-print-side-card li {
    margin-bottom: 10px;
}

.custom-print-support {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.custom-print-support span {
    display: block;
    margin-bottom: 9px;
    font-weight: 900;
}

.custom-print-support .button {
    width: 100%;
}

.custom-upload-box {
    min-height: 135px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 20px;
    border: 2px dashed #90afe0;
    border-radius: 13px;
    color: var(--primary);
    background: #f1f6ff;
    text-align: center;
    cursor: pointer;
}

.custom-upload-box span {
    font-size: 2rem;
}

.custom-upload-box small {
    color: var(--muted);
}

.custom-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.custom-file-name {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.78rem;
}

.custom-design-preview {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #f8fafc;
    text-align: center;
}

.custom-design-preview img {
    max-height: 360px;
    object-fit: contain;
}

.custom-price-note {
    display: grid;
    gap: 3px;
    margin-top: 19px;
    padding: 14px;
    border: 1px solid #eed077;
    border-radius: 11px;
    color: #6e5100;
    background: #fff8dd;
}

.custom-price-note span {
    font-size: 0.82rem;
}

.service-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card-link {
    display: block;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(26, 47, 73, 0.13);
}

.service-card-action {
    display: block;
    margin-top: 14px;
    color: var(--primary);
    font-size: 0.82rem;
}

/* ==========================
   CUSTOM PRINT TRACKING
========================== */

.custom-track-container {
    max-width: 940px;
}

.custom-track-form-card {
    padding: 20px;
}

.custom-track-button {
    margin-top: 15px;
}

.custom-track-error {
    margin-top: 18px;
}

.custom-track-result,
.custom-order-view-card {
    margin-top: 20px;
    padding: 22px;
}

.custom-track-status-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--border);
}

.custom-track-status-head span,
.custom-track-status-head strong {
    display: block;
}

.custom-track-status-head > div > span {
    color: var(--muted);
    font-size: 0.78rem;
}

.custom-track-status-head > div > strong {
    color: var(--dark);
    font-size: 1.15rem;
}

.custom-status-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--success);
    font-size: 0.78rem;
    font-weight: 900;
}

.custom-track-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin-top: 17px;
}

.custom-track-grid > div {
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
}

.custom-track-grid span,
.custom-track-grid strong {
    display: block;
}

.custom-track-grid span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.72rem;
}

.custom-track-grid strong {
    color: var(--dark);
    line-height: 1.35;
}

.custom-admin-message,
.custom-detail-message {
    margin-top: 17px;
    padding: 14px;
    border: 1px solid #9ed0b8;
    border-radius: 11px;
    color: #075e38;
    background: #eaf8f1;
}

.custom-detail-message {
    border-color: var(--border);
    color: var(--text);
    background: #f8fafc;
}

.custom-admin-message p,
.custom-detail-message p {
    margin: 6px 0 0;
}

.custom-track-timeline {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-top: 24px;
}

.custom-track-timeline > div {
    position: relative;
    min-width: 0;
    padding-top: 21px;
    text-align: center;
}

.custom-track-timeline > div::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 3px;
    background: #dce4ed;
}

.custom-track-timeline > div:first-child::before {
    left: 50%;
}

.custom-track-timeline > div:last-child::before {
    right: 50%;
}

.custom-track-timeline > div > span {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 50%;
    width: 17px;
    height: 17px;
    transform: translateX(-50%);
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #b7c0ca;
    box-shadow: 0 0 0 1px #b7c0ca;
}

.custom-track-timeline > div.complete::before,
.custom-track-timeline > div.complete > span {
    background: var(--success);
}

.custom-track-timeline small {
    display: block;
    padding: 0 3px;
    color: var(--muted);
    font-size: 0.62rem;
    line-height: 1.3;
}

.custom-cancelled-note {
    margin-top: 18px;
    padding: 13px;
    border-radius: 10px;
    color: #842029;
    background: #f8d7da;
    text-align: center;
    font-weight: 900;
}

.custom-success-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.custom-success-summary > div {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
}

.custom-success-summary span,
.custom-success-summary strong {
    display: block;
}

.custom-success-summary span {
    color: var(--muted);
    font-size: 0.7rem;
}

.custom-success-summary strong {
    margin-top: 3px;
}

.custom-account-orders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.custom-account-orders article {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #ffffff;
}

.custom-account-orders article > div:first-child {
    display: inline-block;
}

.custom-account-orders article > .custom-status-pill {
    float: right;
}

.custom-account-orders small,
.custom-account-orders strong {
    display: block;
}

.custom-account-order-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 14px 0;
    clear: both;
}

.custom-account-order-info p {
    margin: 0;
    padding: 9px;
    border-radius: 8px;
    background: #f5f8fc;
}

.custom-account-order-info span {
    display: block;
    color: var(--muted);
    font-size: 0.68rem;
}

.custom-account-order-info strong {
    margin-top: 2px;
}

.custom-account-orders .button {
    width: 100%;
}

@media (max-width: 1050px) {
    .service-grid-four,
    .custom-print-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom-track-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .custom-print-hero-grid,
    .custom-print-layout {
        grid-template-columns: 1fr;
    }

    .custom-print-side-card {
        position: static;
    }
}

@media (max-width: 560px) {
    .custom-print-hero {
        padding: 30px 0;
    }

    .custom-print-hero h1 {
        font-size: 2rem;
    }

    .custom-print-hero p {
        font-size: 0.88rem;
    }

    .custom-print-preview-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .custom-print-preview-cards > div {
        display: block;
        padding: 10px 6px;
        text-align: center;
    }

    .custom-print-preview-cards span {
        display: block;
        margin-bottom: 4px;
        font-size: 1.55rem;
    }

    .custom-print-preview-cards strong {
        font-size: 0.72rem;
    }

    .custom-print-preview-cards small {
        display: none;
    }

    .custom-print-info-grid,
    .service-grid-four,
    .custom-account-orders {
        grid-template-columns: 1fr;
    }

    .custom-print-form-body,
    .custom-print-side-card,
    .custom-track-form-card,
    .custom-track-result,
    .custom-order-view-card {
        padding: 14px;
    }

    .custom-track-grid,
    .custom-success-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom-track-timeline {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .custom-track-timeline > div {
        min-height: 34px;
        padding: 4px 0 4px 34px;
        text-align: left;
    }

    .custom-track-timeline > div::before {
        top: 0;
        bottom: 0;
        left: 8px !important;
        right: auto !important;
        width: 3px;
        height: auto;
    }

    .custom-track-timeline > div:first-child::before {
        top: 50%;
    }

    .custom-track-timeline > div:last-child::before {
        bottom: 50%;
    }

    .custom-track-timeline > div > span {
        top: 50%;
        left: 9px;
        transform: translate(-50%, -50%);
    }

    .custom-track-timeline small {
        font-size: 0.72rem;
    }
}


/* ==========================
   BATCH 14: PRINT STORE
========================== */

.print-store-hero {
    padding: 48px 0;
    color: #17212b;
    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(255,255,255,.8),
            transparent 28%
        ),
        linear-gradient(135deg, #ffd34f, #fff4c8);
}

.print-store-hero .site-container {
    max-width: 980px;
    text-align: center;
}

.print-store-kicker {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 999px;
    color: #17622f;
    background: #ffffff;
    font-size: .76rem;
    font-weight: 900;
}

.print-store-hero h1 {
    margin: 12px 0 7px;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1;
}

.print-store-hero p {
    max-width: 660px;
    margin: 0 auto;
    color: #56616d;
}

.print-store-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.print-store-track-button {
    background: #ffffff;
}

.print-store-section {
    background: #fffdf4;
}

.print-store-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.print-store-service-card {
    min-height: 250px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid #e7dfc5;
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fffdf4
        );
    box-shadow: 0 10px 28px rgba(47, 52, 58, .08);
}

.print-service-content {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
}

.print-service-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fff2bb;
    font-size: 2.8rem;
}

.print-store-service-card h3 {
    margin: 0 0 9px;
    font-size: 1.45rem;
}

.print-store-service-card ul {
    margin: 0 0 16px;
    padding-left: 19px;
    color: #66717d;
}

.print-store-service-card li {
    margin: 7px 0;
}

.print-service-button {
    width: auto;
    min-width: 145px;
}

.print-store-security-note {
    display: grid;
    gap: 4px;
    margin-top: 21px;
    padding: 16px;
    border: 1px solid #a9d6b8;
    border-radius: 13px;
    color: #075e36;
    background: #edf9f1;
}

.print-order-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(250px, .55fr);
    gap: 22px;
    align-items: start;
}

.print-order-card,
.print-order-help-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.print-order-body {
    padding: 22px;
}

.print-order-help-card {
    position: sticky;
    top: 95px;
    padding: 21px;
}

.print-order-help-card h2 {
    margin-top: 0;
}

.print-order-help-card ul {
    padding-left: 19px;
    color: var(--muted);
}

.print-order-help-card li {
    margin: 10px 0;
    line-height: 1.45;
}

.print-upload-box {
    min-height: 145px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 20px;
    border: 2px dashed #74a2de;
    border-radius: 14px;
    color: var(--primary);
    background: #f1f6ff;
    text-align: center;
    cursor: pointer;
}

.print-upload-box span {
    font-size: 2.2rem;
}

.print-upload-box small {
    color: var(--muted);
}

/* ==========================
   BATCH 14: REFERRAL
========================== */

.referral-hero-card {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
    padding: 25px;
    margin-bottom: 18px;
    border: 1px solid #ead17b;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 95% 0,
            rgba(255,255,255,.9),
            transparent 35%
        ),
        linear-gradient(135deg, #fff3b5, #fff9e0);
    box-shadow: 0 10px 28px rgba(77, 65, 20, .09);
}

.referral-hero-card small,
.referral-hero-card strong {
    display: block;
}

.referral-hero-card > div > small {
    color: #72601c;
    font-weight: 800;
}

.referral-hero-card > div > strong {
    margin: 4px 0 10px;
    color: #0f5bc4;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 2px;
}

.referral-hero-card p {
    max-width: 650px;
    margin: 0;
    color: #635a38;
}

.referral-actions {
    min-width: 210px;
    display: grid;
    gap: 9px;
}

.referral-actions .button {
    width: 100%;
}

.referral-stat-grid {
    margin-bottom: 18px;
}

/* Mobile Print Store */
@media (max-width: 820px) {
    .print-order-layout {
        grid-template-columns: 1fr;
    }

    .print-order-help-card {
        position: static;
    }
}

@media (max-width: 680px) {
    .print-store-hero {
        padding: 30px 0 27px;
    }

    .print-store-hero h1 {
        font-size: 2.55rem;
    }

    .print-store-hero p {
        padding: 0 9px;
        font-size: .86rem;
        line-height: 1.45;
    }

    .print-store-card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .print-store-service-card {
        min-height: 0;
        padding: 15px;
        border-radius: 15px;
    }

    .print-service-content {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
    }

    .print-service-icon {
        width: 58px;
        height: 58px;
        border-radius: 14px;
        font-size: 2rem;
    }

    .print-store-service-card h3 {
        font-size: 1.15rem;
    }

    .print-store-service-card ul {
        margin-bottom: 12px;
        font-size: .78rem;
        line-height: 1.35;
    }

    .print-service-button {
        min-height: 39px;
        padding: 7px 11px;
        font-size: .78rem;
    }

    .print-order-body,
    .print-order-help-card {
        padding: 14px;
    }

    .print-upload-box {
        min-height: 125px;
        padding: 15px;
    }

    .referral-hero-card {
        display: block;
        padding: 18px;
    }

    .referral-actions {
        min-width: 0;
        margin-top: 15px;
    }
}


/* Customer-visible delivery tracking */
.customer-delivery-progress {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px 12px;
    align-items: center;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid #8ab9ef;
    border-radius: 12px;
    color: #0d4f9f;
    background: #edf5ff;
}

.customer-delivery-progress > span {
    grid-row: 1 / 3;
    font-weight: 900;
}

.customer-delivery-progress > strong,
.customer-delivery-progress > small {
    display: block;
}

.customer-delivery-progress > small {
    color: #5d6c7b;
}

@media (max-width: 520px) {
    .customer-delivery-progress {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px;
    }

    .customer-delivery-progress > span {
        grid-row: auto;
    }
}


/* Batch 15: exact address picker and live delivery tracking */
.delivery-address-picker {
    border: 1px solid #d8e5f2;
    border-radius: 16px;
    padding: 16px;
    background: #f8fbff;
}
.delivery-address-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.delivery-address-heading strong,
.delivery-address-heading small { display: block; }
.delivery-address-heading small { margin-top: 4px; color: #667788; }
.delivery-address-heading > span {
    white-space: nowrap;
    background: #e4f7eb;
    color: #08743e;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}
.delivery-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.address-picker-field label {
    display: block;
    font-weight: 750;
    margin-bottom: 6px;
}
.address-picker-full { grid-column: 1 / -1; }
.delivery-map-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 10px;
}
.delivery-map-actions .button {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.delivery-location-map,
.customer-live-delivery-map {
    width: 100%;
    height: 280px;
    border-radius: 14px;
    border: 1px solid #cad8e5;
    overflow: hidden;
    background: #e8eef4;
}
.delivery-location-status {
    margin-top: 9px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef4fa;
    color: #4d6072;
    font-size: 13px;
}
.delivery-location-status.location-selected { background: #e4f7eb; color: #11663b; }
.delivery-location-status.location-error { background: #fde8e8; color: #9c2525; }
.delivery-address-note {
    margin: 10px 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7d6;
    color: #6d5600;
    font-size: 13px;
    line-height: 1.45;
}
.simple-delivery-address-grid {
    margin-top: 2px;
}
.save-address-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    font-weight: 700;
}
.save-address-check input { width: auto; }
.live-delivery-card {
    margin: 18px 0;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #cfe0f2;
    background: #f8fbff;
}
.live-delivery-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.live-delivery-head strong,
.live-delivery-head small { display: block; }
.live-delivery-head small { margin-top: 4px; color: #647587; }
.live-delivery-head > span {
    background: #1769d2;
    color: #fff;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}
.live-delivery-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
}
.live-delivery-info-grid > div {
    background: #fff;
    border: 1px solid #dce6f0;
    border-radius: 11px;
    padding: 10px;
}
.live-delivery-info-grid span,
.live-delivery-info-grid strong { display: block; }
.live-delivery-info-grid span { color: #697989; font-size: 12px; margin-bottom: 4px; }
.live-driver-call { margin-top: 12px; }
.live-delivery-note { margin: 10px 0 0; color: #687888; font-size: 12px; }
.delivery-map-div-icon { background: transparent; border: 0; }
.driver-pin-icon,
.customer-pin-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.25);
    font-size: 21px;
}
.driver-pin-icon { border: 3px solid #1769d2; }
.customer-pin-icon { border: 3px solid #168a4b; }
@media (max-width: 760px) {
    .delivery-address-grid,
    .delivery-map-actions { grid-template-columns: 1fr; }
    .address-picker-full { grid-column: auto; }
    .delivery-location-map { height: 180px; }
    .customer-live-delivery-map { height: 300px; }
    .delivery-map-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .delivery-map-actions .button {
        min-height: 42px;
        padding-left: 6px;
        padding-right: 6px;
        font-size: 12px;
        white-space: nowrap;
    }

    .delivery-address-heading {
        gap: 8px;
        align-items: center;
    }

    .delivery-address-heading strong {
        font-size: 0.92rem;
        line-height: 1.25;
    }

    .delivery-address-heading > span {
        padding: 5px 8px;
        font-size: 10px;
    }

    .checkout-submit-bottom {
        padding: 14px;
        display: grid;
        grid-template-columns: 1fr;
    }

    .checkout-submit-bottom .button {
        width: 100%;
        min-height: 46px;
    }
    .live-delivery-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================
   CART CHECKOUT WIDTH FIX
========================== */
@media (max-width: 1200px) and (min-width: 681px) {
    .cart-layout {
        grid-template-columns: 1fr !important;
    }

    .cart-panel {
        overflow-x: auto !important;
    }

    .cart-table {
        min-width: 760px;
    }

    .cart-table th:nth-child(4),
    .cart-table td:nth-child(4) {
        min-width: 230px;
    }

    .summary-panel {
        max-width: 520px;
        width: 100%;
        margin-left: auto;
    }
}


/* ==========================
   FINAL CART AMOUNT / ACTION CUT FIX
   Keeps rupee amounts and remove button visible on laptop screens.
========================== */
.cart-panel {
    overflow-x: auto !important;
    overflow-y: hidden;
}

.cart-table th:nth-child(2),
.cart-table td:nth-child(2),
.cart-table th:nth-child(5),
.cart-table td:nth-child(5) {
    min-width: 110px;
    white-space: nowrap;
}

.cart-table th:nth-child(3),
.cart-table td:nth-child(3) {
    min-width: 110px;
}

.cart-table th:nth-child(4),
.cart-table td:nth-child(4) {
    min-width: 260px;
}

.cart-table th:nth-child(6),
.cart-table td:nth-child(6) {
    min-width: 105px;
    white-space: nowrap;
}

.cart-table .remove-button {
    white-space: nowrap;
}

@media (max-width: 1400px) and (min-width: 681px) {
    .cart-layout {
        grid-template-columns: 1fr !important;
    }

    .cart-table {
        min-width: 930px;
    }

    .summary-panel {
        max-width: 520px;
        width: 100%;
        margin-left: auto;
    }
}


/* =========================================================
   FINAL COMPACT CART — DESKTOP / LAPTOP
   Keeps the cart and summary visible without horizontal cut.
   Mobile card layout defined above remains unchanged.
========================================================= */
@media (min-width: 681px) {
    .page-heading {
        padding-top: 28px;
        padding-bottom: 18px;
    }

    .page-heading h1 {
        font-size: clamp(1.75rem, 3vw, 2.35rem);
    }

    .cart-layout {
        grid-template-columns: minmax(0, 1fr) minmax(270px, 315px) !important;
        gap: 16px !important;
    }

    .cart-panel {
        min-width: 0;
        overflow: hidden !important;
        border-radius: 12px;
    }

    .cart-panel .panel-heading,
    .summary-panel .panel-heading {
        padding: 12px 16px;
    }

    .cart-panel .panel-heading h2,
    .summary-panel .panel-heading h3 {
        font-size: 1rem;
    }

    .cart-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed;
        font-size: 0.79rem;
    }

    .cart-table th,
    .cart-table td {
        min-width: 0 !important;
        padding: 9px 7px;
        overflow-wrap: anywhere;
    }

    .cart-table th {
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .cart-table th:nth-child(1),
    .cart-table td:nth-child(1) { width: 27%; }

    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) { width: 10%; }

    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) { width: 10%; }

    .cart-table th:nth-child(4),
    .cart-table td:nth-child(4) { width: 30%; }

    .cart-table th:nth-child(5),
    .cart-table td:nth-child(5) { width: 12%; }

    .cart-table th:nth-child(6),
    .cart-table td:nth-child(6) { width: 11%; }

    .cart-product {
        min-width: 0 !important;
        gap: 8px;
    }

    .cart-product-image,
    .cart-product-placeholder {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        flex-basis: 46px !important;
        border-radius: 8px;
    }

    .cart-product-placeholder {
        font-size: 1.2rem;
    }

    .cart-product strong {
        font-size: 0.82rem;
        line-height: 1.25;
    }

    .cart-product small {
        margin-top: 2px;
        font-size: 0.66rem;
        line-height: 1.3;
    }

    .quantity-input {
        width: 58px;
        min-height: 34px;
        padding: 5px;
        font-size: 0.78rem;
    }

    .gift-option-select {
        width: 100%;
        min-width: 0 !important;
        max-width: 100%;
        min-height: 34px;
        padding: 5px 7px;
        font-size: 0.71rem;
    }

    .cart-table textarea.form-control {
        width: 100%;
        min-height: 54px;
        margin-top: 5px;
        padding: 7px 8px;
        resize: vertical;
        font-size: 0.72rem;
    }

    .gift-option-note {
        margin-top: 3px;
        font-size: 0.64rem;
        line-height: 1.3;
    }

    .cart-table td:nth-child(2),
    .cart-table td:nth-child(5),
    .cart-table td:nth-child(6) {
        white-space: nowrap;
    }

    .remove-button {
        padding: 5px 3px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .cart-actions {
        padding: 11px 13px;
    }

    .cart-actions .button {
        min-height: 38px;
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .summary-panel {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        border-radius: 12px;
    }

    .summary-body {
        padding: 14px;
    }

    .summary-row {
        gap: 9px;
        padding: 7px 0;
        font-size: 0.8rem;
    }

    .summary-total {
        font-size: 1.08rem;
    }

    .free-delivery-progress {
        margin-top: 10px;
        padding: 10px;
    }

    .free-delivery-progress strong {
        font-size: 0.82rem;
    }

    .free-delivery-progress p {
        margin: 4px 0;
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .summary-panel .button {
        min-height: 40px;
        margin-top: 10px;
        padding: 7px 9px;
        font-size: 0.78rem;
    }
}

/* On smaller tablets stack the summary, but keep the compact table. */
@media (min-width: 681px) and (max-width: 1050px) {
    .cart-layout {
        grid-template-columns: 1fr !important;
    }

    .summary-panel {
        max-width: 430px !important;
        margin-left: auto !important;
    }
}

/* =========================================================
   CART SUBTOTAL / REMOVE OVERLAP FIX
   Gift option details already appear in the wrapping column,
   so the subtotal cell only shows amount and paid wrap charge.
========================================================= */
.cart-subtotal-cell,
.cart-remove-cell {
    overflow: hidden;
}

.cart-subtotal-amount {
    display: block;
    white-space: nowrap;
}

.cart-subtotal-extra {
    display: block;
    margin-top: 3px;
    color: #8d2bb5;
    font-size: 0.64rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.cart-remove-cell {
    text-align: center;
}

@media (min-width: 681px) {
    .cart-table td.cart-subtotal-cell,
    .cart-table td.cart-remove-cell {
        white-space: normal !important;
    }

    .cart-remove-cell .remove-button {
        display: inline-flex;
        max-width: 100%;
        align-items: center;
        justify-content: center;
        padding-left: 4px;
        padding-right: 4px;
    }
}

@media (max-width: 680px) {
    .cart-subtotal-cell,
    .cart-remove-cell {
        overflow: visible;
    }
}

/* =========================================================
   DESKTOP HEADER COMPACT SPACING
   Keep the full shop name visible by preventing brand shrink
   and reducing navigation/search spacing on desktop.
========================================================= */
@media (min-width: 1121px) {
    .header-inner {
        gap: 9px;
    }

    .brand-link {
        flex: 0 0 210px;
        width: 210px;
        min-width: 210px;
        gap: 8px;
    }

    .brand-logo,
    .brand-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .brand-text {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-text strong {
        font-size: 1.08rem;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
    }

    .brand-text small {
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .desktop-search-form {
        flex: 0 1 205px;
        width: 205px;
        min-width: 165px;
        max-width: 205px;
    }

    .desktop-search-form input {
        height: 40px;
        padding-left: 10px;
        padding-right: 8px;
        font-size: 0.8rem;
    }

    .desktop-search-form button {
        width: 42px;
        height: 40px;
        flex-basis: 42px;
    }

    .site-nav {
        flex: 0 0 auto;
        gap: 1px;
        margin-left: 0;
    }

    .site-nav a {
        padding: 8px 8px;
        border-radius: 7px;
        font-size: 0.82rem;
        line-height: 1.25;
    }

    .site-nav .nav-cart,
    .site-nav .nav-call {
        padding-left: 8px;
        padding-right: 8px;
    }

    .cart-count {
        min-width: 20px;
        height: 20px;
        margin-left: 2px;
        font-size: 0.66rem;
    }
}

/* Compact the first desktop row slightly before it wraps. */
@media (min-width: 1121px) and (max-width: 1240px) {
    .brand-link {
        flex-basis: 198px;
        width: 198px;
        min-width: 198px;
    }

    .brand-text strong {
        font-size: 1rem;
    }

    .desktop-search-form {
        flex-basis: 180px;
        width: 180px;
        max-width: 180px;
        min-width: 155px;
    }

    .site-nav a {
        padding-left: 6px;
        padding-right: 6px;
        font-size: 0.78rem;
    }
}


/* Google + Email customer login */
.customer-login-card { width: min(100%, 520px); }
.google-login-button {
    width: 100%; min-height: 50px; display:flex; align-items:center; justify-content:center;
    gap:12px; border:1px solid #cfd8e3; border-radius:10px; background:#fff;
    color:#1f2937; font:inherit; font-weight:800; cursor:pointer; box-shadow:0 2px 8px rgba(20,45,70,.06);
}
.google-login-button:hover { background:#f8fbff; border-color:#9eb9da; }
.google-g { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; color:#4285f4; font-size:1.35rem; font-weight:900; }
.login-divider { display:flex; align-items:center; gap:12px; margin:20px 0; color:#7b8795; font-size:.78rem; font-weight:800; }
.login-divider::before,.login-divider::after { content:""; height:1px; flex:1; background:#dfe6ee; }


/* ==========================
   PRODUCT MULTI-IMAGE GALLERY
========================== */
.product-gallery-wrap .product-gallery-main {
    cursor: zoom-in;
}

.product-gallery-thumbs {
    display: flex;
    gap: 7px;
    min-height: 54px;
    padding: 8px 10px 6px;
    overflow-x: auto;
    background: #ffffff;
    scrollbar-width: thin;
}

.product-gallery-thumbs:empty {
    display: none;
}

.product-gallery-thumb {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 2px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #f2f5f9;
    cursor: pointer;
}

.product-gallery-thumb.active {
    border-color: var(--success);
}

.product-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.product-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0, 0, 0, 0.88);
}

.product-image-lightbox.open {
    display: flex;
}

.product-image-lightbox img {
    max-width: min(94vw, 1200px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.product-image-lightbox button {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #111827;
    background: #ffffff;
    cursor: pointer;
    font-size: 1.65rem;
    line-height: 1;
}


/* ==========================
   ULTRA COMPACT FOOTER POLISH
========================== */
.site-footer .compact-footer-grid {
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 16px;
}

.site-footer h3,
.site-footer h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

.site-footer .footer-brand-block p {
    margin: 0;
    line-height: 1.45;
    font-size: .93rem;
}

.site-footer .footer-link-list {
    grid-template-columns: repeat(3, minmax(0, max-content));
    gap: 2px 14px;
}

.site-footer .footer-policy-list {
    grid-template-columns: repeat(3, minmax(0, max-content));
}

.site-footer .footer-link-list a,
.site-footer .footer-contact-block a {
    font-size: .91rem;
    line-height: 1.35;
}

.site-footer .footer-contact-block a {
    margin: 5px 0;
}

.site-footer .footer-bottom {
    padding-top: 10px;
    padding-bottom: 10px;
}

.site-footer .footer-brand-block,
.site-footer .footer-links-block,
.site-footer .footer-policies-block,
.site-footer .footer-contact-block {
    align-self: start;
}

@media (min-width: 1181px) {
    .site-footer .compact-footer-grid {
        grid-template-columns: 1.05fr 1.35fr 1.15fr 1.15fr;
    }
}

@media (max-width: 1180px) and (min-width: 761px) {
    .site-footer .footer-link-list,
    .site-footer .footer-policy-list {
        grid-template-columns: repeat(2, minmax(0, max-content));
    }
}

@media (max-width: 760px) {
    .site-footer .compact-footer-grid {
        padding-top: 18px;
        padding-bottom: 14px;
        gap: 16px;
    }

    .site-footer .footer-link-list,
    .site-footer .footer-policy-list {
        grid-template-columns: repeat(2, minmax(0, max-content));
        gap: 3px 12px;
    }
}

@media (max-width: 520px) {
    .site-footer .footer-link-list,
    .site-footer .footer-policy-list {
        grid-template-columns: 1fr 1fr;
    }
}


/* ==========================
   FOOTER SOCIAL LINKS
========================== */
.site-footer .footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 11px;
}

.site-footer .footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    color: #ffffff;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.site-footer .footer-social-links a[aria-label="YouTube"] {
    border-color: rgba(255,76,76,.72);
    background: rgba(255,0,0,.14);
    box-shadow: 0 0 0 1px rgba(255,0,0,.05) inset;
}

.site-footer .footer-social-links a[aria-label="Facebook"] {
    border-color: rgba(79,150,255,.72);
    background: rgba(24,119,242,.15);
    box-shadow: 0 0 0 1px rgba(24,119,242,.05) inset;
}

.site-footer .footer-social-links a[aria-label="Instagram"] {
    border-color: rgba(225,48,108,.70);
    background: linear-gradient(135deg, rgba(131,58,180,.17), rgba(225,48,108,.17), rgba(252,175,69,.13));
    box-shadow: 0 0 0 1px rgba(225,48,108,.04) inset;
}

.site-footer .footer-social-links a:hover {
    transform: translateY(-1px);
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(0,0,0,.18);
}

.site-footer .footer-social-links a[aria-label="YouTube"]:hover {
    border-color: rgba(255,92,92,.98);
    background: rgba(255,0,0,.24);
}

.site-footer .footer-social-links a[aria-label="Facebook"]:hover {
    border-color: rgba(93,161,255,.98);
    background: rgba(24,119,242,.26);
}

.site-footer .footer-social-links a[aria-label="Instagram"]:hover {
    border-color: rgba(238,78,137,.95);
    background: linear-gradient(135deg, rgba(131,58,180,.27), rgba(225,48,108,.28), rgba(252,175,69,.22));
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-social-links a {
        transition: none;
    }
    .site-footer .footer-social-links a:hover {
        transform: none;
    }
}

@media (max-width: 520px) {
    .site-footer .footer-social-links {
        gap: 6px;
    }
    .site-footer .footer-social-links a {
        flex: 1 1 auto;
    }
}

/* ==========================
   FINAL ONE-ROW DESKTOP FOOTER
   Keeps Brand / Quick Links / Policies / Contact in one row
   even on Windows display scaling where CSS viewport is narrower.
========================== */
@media (min-width: 901px) {
    .site-footer .compact-footer-grid {
        grid-template-columns: minmax(180px, .9fr) minmax(275px, 1.35fr) minmax(260px, 1.15fr) minmax(225px, 1fr) !important;
        gap: 16px !important;
        align-items: start;
    }

    .site-footer .footer-brand-block,
    .site-footer .footer-links-block,
    .site-footer .footer-policies-block,
    .site-footer .footer-contact-block {
        grid-column: auto !important;
        min-width: 0;
    }

    .site-footer .footer-link-list,
    .site-footer .footer-policy-list {
        grid-template-columns: repeat(2, minmax(0, max-content)) !important;
        gap: 2px 12px !important;
    }

    .site-footer .footer-address-link {
        max-width: 260px;
    }
}

@media (min-width: 901px) and (max-width: 1060px) {
    .site-footer .compact-footer-grid {
        grid-template-columns: .85fr 1.2fr 1fr .95fr !important;
        gap: 12px !important;
    }

    .site-footer .footer-link-list a,
    .site-footer .footer-contact-block a {
        font-size: .84rem;
    }

    .site-footer .footer-brand-block p {
        font-size: .86rem;
    }

    .site-footer .footer-address-link {
        max-width: 215px;
    }
}

@media (max-width: 900px) and (min-width: 621px) {
    .site-footer .compact-footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .site-footer .footer-brand-block,
    .site-footer .footer-contact-block {
        grid-column: auto !important;
    }
}


/* ==========================================================
   VERIFIED FINAL FOOTER LAYOUT - 2026-08-07
   Desktop: Brand | Quick Links | Policies | Shop Contact
   This block intentionally comes last so older breakpoints cannot override it.
========================================================== */
@media (min-width: 901px) {
    .site-footer .compact-footer-grid {
        display: grid !important;
        grid-template-columns: minmax(0,.82fr) minmax(0,1.16fr) minmax(0,1.04fr) minmax(0,1.48fr) !important;
        gap: 18px !important;
        align-items: start !important;
        padding-top: 20px !important;
        padding-bottom: 14px !important;
    }
    .site-footer .footer-brand-block,
    .site-footer .footer-links-block,
    .site-footer .footer-policies-block,
    .site-footer .footer-contact-block {
        grid-column: auto !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        width: auto !important;
    }
    .site-footer .footer-link-list,
    .site-footer .footer-policy-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 12px !important;
        row-gap: 3px !important;
    }
    .site-footer .footer-link-list a,
    .site-footer .footer-policy-list a,
    .site-footer .footer-contact-block a {
        min-width: 0 !important;
        overflow-wrap: anywhere;
    }
    .site-footer .footer-address-link {
        max-width: none !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
}
@media (min-width: 901px) and (max-width: 1050px) {
    .site-footer .compact-footer-grid {
        gap: 12px !important;
    }
    .site-footer .footer-link-list a,
    .site-footer .footer-policy-list a,
    .site-footer .footer-contact-block a,
    .site-footer .footer-brand-block p {
        font-size: .82rem !important;
    }
}

/* =========================================================
   PUBLIC SITE HORIZONTAL OVERFLOW GUARD - 2026-08-09
   Keep the page itself inside the viewport. Components that
   intentionally scroll horizontally retain their own overflow.
========================================================= */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.site-header,
.delivery-notice-bar,
.online-offer-notice-bar,
.site-main,
.site-footer {
    max-width: 100%;
}

/* The full desktop navigation can otherwise exceed the 1180px
   container by a few pixels when all public links are visible. */
@media (min-width: 1121px) {
    .header-inner {
        width: min(1180px, calc(100% - 32px));
        max-width: calc(100vw - 32px);
        gap: 6px;
    }

    .brand-link {
        flex: 0 1 198px;
        width: 198px;
        min-width: 188px;
    }

    .desktop-search-form {
        flex: 1 1 170px;
        width: auto;
        min-width: 135px;
        max-width: 190px;
    }

    .site-nav {
        flex: 0 1 auto;
        min-width: 0;
        gap: 0;
    }

    .site-nav a {
        padding-left: 5px;
        padding-right: 5px;
        font-size: 0.77rem;
        white-space: nowrap;
    }

    .site-nav .nav-cart,
    .site-nav .nav-call {
        padding-left: 6px;
        padding-right: 6px;
    }
}

@media (min-width: 1121px) and (max-width: 1240px) {
    .brand-link {
        flex-basis: 188px;
        width: 188px;
        min-width: 180px;
    }

    .desktop-search-form {
        min-width: 125px;
        max-width: 165px;
    }

    .site-nav a {
        padding-left: 4px;
        padding-right: 4px;
        font-size: 0.74rem;
    }
}

/* =========================================================
   HEADER BRAND NAME VISIBILITY FIX - 2026-08-09
   Keep the complete shop name inside its own column instead
   of letting it render underneath the search box.
========================================================= */
@media (min-width: 1121px) {
    .header-inner > .brand-link {
        flex: 0 0 222px;
        width: 222px;
        min-width: 222px;
        overflow: hidden;
    }

    .header-inner > .brand-link .brand-text {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .header-inner > .brand-link .brand-text strong {
        display: block;
        max-width: 100%;
        font-size: 0.9rem;
        line-height: 1.12;
        white-space: normal;
        overflow: hidden;
        text-overflow: clip;
        overflow-wrap: normal;
    }

    .header-inner > .brand-link .brand-text small {
        display: none;
    }

    .header-inner > .desktop-search-form {
        min-width: 120px;
        max-width: 165px;
    }
}

@media (min-width: 1121px) and (max-width: 1240px) {
    .header-inner > .brand-link {
        flex-basis: 210px;
        width: 210px;
        min-width: 210px;
    }

    .header-inner > .brand-link .brand-text strong {
        font-size: 0.84rem;
    }

    .header-inner > .desktop-search-form {
        min-width: 115px;
        max-width: 145px;
    }
}
