/* ============================================================
   EXPRESS SHOP
   TYPE 1 - UI ONLY
   All classes use "es-" prefix to avoid theme conflicts.
============================================================ */

.es-shop {
    --es-brand: #3bb77e;
    --es-brand-dark: #29a568;
    --es-text: #253d4e;
    --es-muted: #7e8c98;
    --es-border: #e9ecef;
    --es-bg: #f8f9fa;
    --es-white: #ffffff;
    --es-danger: #e74c3c;
    --es-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px 0;
    color: var(--es-text);
}

table.es-product-table input {
    
    padding-left: 0px;
    
}


/* ============================================================
   HEADER
============================================================ */

.es-shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
}

.es-shop-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.es-shop-title-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 183, 126, 0.12);
    color: var(--es-brand);
    font-size: 22px;
}

.es-shop-title h1 {
    margin: 0 0 3px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--es-text);
}

.es-shop-title p {
    margin: 0;
    color: var(--es-muted);
    font-size: 14px;
}

.es-shop-search {
    width: min(420px, 100%);
    height: 48px;
    position: relative;
}

.es-shop-search > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--es-muted);
    font-size: 17px;
    pointer-events: none;
}

.es-shop-search input {
    width: 100%;
    height: 100%;
    border: 1px solid var(--es-border);
    border-radius: 10px;
    background: var(--es-white);
    color: var(--es-text);
    padding: 0 45px 0 44px;
    outline: none;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.es-shop-search input:focus {
    border-color: var(--es-brand);
    box-shadow: 0 0 0 3px rgba(59, 183, 126, 0.10);
}

.es-search-clear {
    border: 0;
    background: transparent;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: var(--es-muted);
}


/* ============================================================
   CATEGORY NAVIGATION
============================================================ */

.es-category-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.es-category-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 2px;
}

.es-category-scroll::-webkit-scrollbar {
    display: none;
}

.es-category-btn {
    flex: 0 0 auto;
    border: 1px solid var(--es-border);
    background: var(--es-white);
    color: var(--es-text);
    border-radius: 8px;
    padding: 10px 16px;
    min-height: 40px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s ease;
    white-space: nowrap;
}

.es-category-btn:hover {
    border-color: var(--es-brand);
    color: var(--es-brand);
}

.es-category-btn.is-active {
    background: var(--es-brand);
    border-color: var(--es-brand);
    color: #fff;
}

.es-category-arrow {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid var(--es-border);
    background: var(--es-white);
    border-radius: 50%;
    color: var(--es-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.es-category-prev {
    margin-right: 8px;
}

.es-category-next {
    margin-left: 8px;
}


/* ============================================================
   TABLE
============================================================ */

.es-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--es-border);
    border-radius: 12px;
    background: var(--es-white);
}

.es-product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 850px;
}

.es-product-table thead th {
    background: #f8faf9;
    border-bottom: 1px solid var(--es-border);
    padding: 15px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--es-muted);
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.es-product-table thead th:first-child {
    border-top-left-radius: 12px;
}

.es-product-table thead th:last-child {
    border-top-right-radius: 12px;
}

.es-product-row {
    transition: background .15s ease;
}

.es-product-row:hover {
    background: #fbfdfc;
}

.es-product-row:not(:last-child) td {
    border-bottom: 1px solid var(--es-border);
}

.es-product-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.es-col-product {
    width: 38%;
}

.es-col-mrp {
    width: 12%;
}

.es-col-price {
    width: 14%;
}

.es-col-discount {
    width: 12%;
}

.es-col-qty {
    width: 14%;
}

.es-col-total {
    width: 12%;
}


/* ============================================================
   PRODUCT
============================================================ */

.es-product-info {
    display: flex;
    align-items: center;
    gap: 13px;
}

.es-product-image {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid var(--es-border);
}

.es-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.es-product-name {
    min-width: 0;
}

.es-product-name strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    color: var(--es-text);
}

.es-product-name small {
    display: block;
    margin-top: 4px;
    color: var(--es-muted);
    font-size: 11px;
}

.es-price-cell {
    white-space: nowrap;
    font-size: 14px;
}

.es-mrp {
    color: #9aa3aa;
    text-decoration: line-through;
}

.es-sale-price {
    color: var(--es-brand-dark);
    font-weight: 700;
}

.es-discount-cell span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 5px;
    background: rgba(59, 183, 126, 0.10);
    color: var(--es-brand-dark);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}


/* ============================================================
   QUANTITY
============================================================ */

.es-qty-control {
    display: inline-flex;
    align-items: center;
    height: 38px;
    border: 1px solid var(--es-border);
    border-radius: 7px;
    overflow: hidden;
    background: var(--es-white);
}

.es-qty-btn {
    width: 34px;
    height: 100%;
    border: 0;
    background: #f7f8f8;
    color: var(--es-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.es-qty-btn:hover {
    background: var(--es-brand);
    color: #fff;
}

.es-qty-input {
    width: 40px;
    height: 100%;
    border: 0;
    outline: none;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--es-text);
    background: #fff;
}

.es-total-cell {
    white-space: nowrap;
}

.es-line-total {
    font-size: 14px;
    color: var(--es-text);
}


/* ============================================================
   MOBILE PRODUCTS
============================================================ */

.es-mobile-products {
    display: none;
}

.es-mobile-product {
    background: var(--es-white);
    border: 1px solid var(--es-border);
    border-radius: 12px;
    padding: 14px;
}

.es-mobile-product-top {
    display: flex;
    gap: 12px;
}

.es-mobile-product-image {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid var(--es-border);
}

.es-mobile-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.es-mobile-product-info {
    min-width: 0;
    flex: 1;
}

.es-mobile-product-info strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.es-mobile-product-info small {
    display: block;
    margin-top: 4px;
    color: var(--es-muted);
    font-size: 11px;
}

.es-mobile-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.es-mobile-mrp {
    color: #9aa3aa;
    text-decoration: line-through;
    font-size: 12px;
}

.es-mobile-price {
    color: var(--es-brand-dark);
    font-weight: 700;
    font-size: 15px;
}

.es-mobile-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--es-border);
}

.es-mobile-amount {
    display: flex;
    flex-direction: column;
}

.es-mobile-amount span {
    font-size: 10px;
    color: var(--es-muted);
}

.es-mobile-amount strong {
    margin-top: 2px;
    font-size: 15px;
}


/* ============================================================
   EMPTY
============================================================ */

.es-empty-state {
    padding: 60px 20px;
    text-align: center;
    background: var(--es-white);
    border: 1px solid var(--es-border);
    border-radius: 12px;
}

.es-empty-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #f4f6f5;
    color: var(--es-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.es-empty-state h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.es-empty-state p {
    margin: 0;
    color: var(--es-muted);
    font-size: 13px;
}


/* ============================================================
   SUMMARY
============================================================ */

.es-summary-spacer {
    height: 90px;
}

.es-summary {
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 15px;
    pointer-events: none;
}

.es-summary-inner {
    width: min(1360px, calc(100% - 20px));
    min-height: 68px;
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--es-border);
    border-radius: 14px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, .13);
    pointer-events: auto;
}

.es-summary-item,
.es-summary-payable {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.es-summary-label {
    color: var(--es-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}

.es-summary-item strong,
.es-summary-payable strong {
    margin-top: 3px;
    font-size: 15px;
    color: var(--es-text);
}

.es-summary-saving strong {
    color: var(--es-brand-dark);
}

.es-summary-payable {
    margin-left: auto;
}

.es-summary-payable strong {
    font-size: 20px;
    color: var(--es-brand-dark);
}

.es-cart-button {
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--es-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}

.es-cart-button:hover {
    background: var(--es-brand-dark);
    transform: translateY(-1px);
}

.es-cart-button i {
    font-size: 17px;
}

.es-cart-button b {
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    font-size: 11px;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 991px) {

    .es-shop {
        padding-left: 15px;
        padding-right: 15px;
    }

    .es-shop-header {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .es-shop-search {
        width: 100%;
    }

    .es-summary-inner {
        gap: 16px;
    }

    .es-summary-mrp {
        display: none;
    }
}


@media (max-width: 767px) {

    .es-shop {
        padding: 20px 12px 0;
    }

    .es-shop-title h1 {
        font-size: 23px;
    }

    .es-shop-title p {
        font-size: 12px;
    }

    .es-shop-title-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .es-category-arrow {
        display: none;
    }

    .es-table-wrap {
        display: none;
    }

    .es-mobile-products {
        display: grid;
        gap: 10px;
    }

    .es-summary {
        padding: 7px 8px;
    }

    .es-summary-inner {
        width: 100%;
        min-height: 62px;
        padding: 8px 9px;
        gap: 10px;
        border-radius: 11px;
    }

    .es-summary-item {
        min-width: auto;
    }

    .es-summary-item strong {
        font-size: 13px;
    }

    .es-summary-label {
        font-size: 9px;
    }

    .es-summary-payable {
        margin-left: auto;
    }

    .es-summary-payable strong {
        font-size: 16px;
    }

    .es-cart-button {
        height: 42px;
        padding: 0 11px;
        gap: 5px;
    }

    .es-cart-button span {
        display: none;
    }

    .es-cart-button b {
        min-width: 20px;
        height: 20px;
    }

    .es-summary-spacer {
        height: 82px;
    }
}


@media (max-width: 420px) {

    .es-summary-saving {
        display: none;
    }

    .es-mobile-product-bottom {
        align-items: flex-end;
    }

    .es-qty-btn {
        width: 32px;
    }

    .es-qty-input {
        width: 36px;
    }
}

/* ============================================================
   QUICK SHOP — TABLE COLUMN ALIGNMENT
   ============================================================ */
.es-product-table {
    width: 100%;
}

/* Product */
.es-product-table th:nth-child(1),
.es-product-table td:nth-child(1) {
    text-align: left;
}

/* MRP */
.es-product-table th:nth-child(2),
.es-product-table td:nth-child(2) {
    text-align: right;
}

/* Our Price */
.es-product-table th:nth-child(3),
.es-product-table td:nth-child(3) {
    text-align: right;
}

/* Discount */
.es-product-table th:nth-child(4),
.es-product-table td:nth-child(4) {
    text-align: center;
}

/* Quantity */
.es-product-table th:nth-child(5),
.es-product-table td:nth-child(5) {
    text-align: center;
}

/* Quantity input */
.es-product-table td:nth-child(5) input {
    text-align: center;
}

/* Amount */
.es-product-table th:nth-child(6),
.es-product-table td:nth-child(6) {
    text-align: right;
}

/* ============================================================
   PRODUCT CATEGORY GROUP
============================================================ */

.es-category-group-row td {
    padding: 0 !important;
    border-bottom: 0 !important;
}

.es-product-category-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 16px;
    background: #f5f8f6;
    border-top: 1px solid var(--es-border);
    border-bottom: 1px solid var(--es-border);
}

.es-product-category-heading::before {
    content: "";
    width: 4px;
    height: 22px;
    flex: 0 0 4px;
    border-radius: 4px;
    background: var(--es-brand);
}

.es-product-category-heading span {
    color: var(--es-text);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}


/* First category should not have an unnecessary top border */
.es-category-group-row:first-child
.es-product-category-heading {
    border-top: 0;
}

/* ============================================================
   EXPRESS SHOP
   TYPE 1 MOBILE UI
============================================================ */

@media (max-width: 767px) {

    /* --------------------------------------------------------
       Mobile product container
    -------------------------------------------------------- */

    .es-mobile-products {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }


    /* --------------------------------------------------------
       Category heading
    -------------------------------------------------------- */

    .es-mobile-category-heading {
        display: flex;
        align-items: center;
        min-height: 42px;
        margin-top: 8px;
        padding: 10px 12px;

        background: #f5f8f6;

        border-top: 1px solid var(--es-border);
        border-bottom: 1px solid var(--es-border);

        color: var(--es-text);

        font-size: 12px;
        font-weight: 700;

        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .es-mobile-category-heading::before {
        content: "";

        width: 4px;
        height: 20px;

        margin-right: 9px;

        border-radius: 4px;

        background: var(--es-brand);
    }

    .es-mobile-category-heading:first-child {
        margin-top: 0;
    }


    /* --------------------------------------------------------
       Product card
    -------------------------------------------------------- */

    .es-mobile-product {
        width: 100%;
        box-sizing: border-box;

        padding: 13px;

        background: var(--es-white);

        border: 1px solid var(--es-border);
        border-radius: 12px;

        overflow: hidden;
    }


    /* --------------------------------------------------------
       Product top
    -------------------------------------------------------- */

    .es-mobile-product-main {
        display: flex;
        align-items: flex-start;

        gap: 12px;

        min-width: 0;
    }


    /* --------------------------------------------------------
       Product image
    -------------------------------------------------------- */

    .es-mobile-product-image {
        width: 70px;
        height: 70px;

        flex: 0 0 70px;

        overflow: hidden;

        border: 1px solid var(--es-border);
        border-radius: 9px;

        background: #f6f6f6;
    }

    .es-mobile-product-image img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;
    }


    /* --------------------------------------------------------
       Product information
    -------------------------------------------------------- */

    .es-mobile-product-info {
        min-width: 0;
        flex: 1;
    }

    .es-mobile-product-info strong {
        display: -webkit-box;

        overflow: hidden;

        color: var(--es-text);

        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;

        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .es-mobile-product-info small {
        display: block;

        margin-top: 4px;

        color: var(--es-muted);

        font-size: 11px;
    }


    /* --------------------------------------------------------
       Price row
    -------------------------------------------------------- */

    .es-mobile-price-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;

        gap: 7px;

        margin-top: 8px;
    }

    .es-mobile-mrp {
        color: #9aa3aa;

        font-size: 11px;

        text-decoration: line-through;
    }

    .es-mobile-price {
        color: var(--es-brand-dark);

        font-size: 15px;
        font-weight: 700;
    }

    .es-mobile-discount {
        display: inline-flex;
        align-items: center;

        min-height: 21px;

        padding: 2px 6px;

        border-radius: 4px;

        background: rgba(59, 183, 126, 0.10);

        color: var(--es-brand-dark);

        font-size: 10px;
        font-weight: 700;

        white-space: nowrap;
    }


    /* --------------------------------------------------------
       Bottom section
    -------------------------------------------------------- */

    .es-mobile-product-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 12px;

        margin-top: 13px;
        padding-top: 11px;

        border-top: 1px solid var(--es-border);
    }


    /* --------------------------------------------------------
       Amount
    -------------------------------------------------------- */

    .es-mobile-amount {
        display: flex;
        flex-direction: column;

        min-width: 0;
    }

    .es-mobile-amount span {
        color: var(--es-muted);

        font-size: 10px;
        line-height: 1.2;
    }

    .es-mobile-amount strong {
        margin-top: 3px;

        color: var(--es-text);

        font-size: 15px;
        line-height: 1.2;
    }


    /* --------------------------------------------------------
       Quantity
    -------------------------------------------------------- */

    .es-mobile-qty-control {
        height: 40px;

        flex: 0 0 auto;

        border-radius: 8px;
    }

    .es-mobile-qty-control .es-qty-btn {
        width: 38px;

        font-size: 19px;
    }

    .es-mobile-qty-control .es-qty-input {
        width: 42px;

        font-size: 14px;
        font-weight: 700;

        text-align: center;
    }


    /* --------------------------------------------------------
       Search
    -------------------------------------------------------- */

    .es-shop-search {
        width: 100%;
    }


    /* --------------------------------------------------------
       Category navigation
    -------------------------------------------------------- */

    .es-category-scroll {
        gap: 7px;

        padding-bottom: 3px;
    }

    .es-category-btn {
        min-height: 38px;

        padding: 8px 13px;

        font-size: 12px;
    }


    /* --------------------------------------------------------
       Bottom summary
    -------------------------------------------------------- */

    .es-summary {
        padding: 7px 8px;
    }

    .es-summary-inner {
        width: 100%;

        min-height: 62px;

        padding: 8px 9px;

        gap: 10px;

        border-radius: 11px;
    }


    /* Don't allow summary to overflow */
    .es-summary-item,
    .es-summary-payable {
        min-width: 0;
    }

    .es-summary-item strong {
        font-size: 13px;
    }

    .es-summary-label {
        font-size: 9px;
    }

    .es-summary-payable {
        margin-left: auto;
    }

    .es-summary-payable strong {
        font-size: 16px;
    }


    /* --------------------------------------------------------
       Cart button
    -------------------------------------------------------- */

    .es-cart-button {
        height: 42px;

        padding: 0 11px;

        gap: 5px;

        border-radius: 8px;
    }

    .es-cart-button span {
        display: none;
    }

    .es-cart-button b {
        min-width: 20px;
        height: 20px;
    }


    /*
     * Space below page content so sticky summary doesn't
     * cover the last product.
     */
    .es-summary-spacer {
        height: 82px;
    }
}


/* ============================================================
   SMALL PHONES
============================================================ */

@media (max-width: 420px) {

    .es-mobile-product {
        padding: 11px;
    }

    .es-mobile-product-image {
        width: 62px;
        height: 62px;

        flex-basis: 62px;
    }

    .es-mobile-product-main {
        gap: 10px;
    }

    .es-mobile-product-info strong {
        font-size: 13px;
    }

    .es-mobile-price {
        font-size: 14px;
    }

    .es-mobile-product-bottom {
        gap: 8px;
    }

    .es-mobile-qty-control .es-qty-btn {
        width: 34px;
    }

    .es-mobile-qty-control .es-qty-input {
        width: 36px;
    }

    .es-summary-saving {
        display: none;
    }
}

.es-mobile-product input { padding-left: 0px; }