* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    color: #333;
    padding-bottom: 70px;
}

/* HEADER */

.header {
    height: 70px;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 5%;
    gap: 30px;
    border-bottom: 1px solid #ddd;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #9f2089;
}

.search-box {
    width: 400px;
    height: 45px;
    border: 1px solid #aaa;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
}

.header-links {
    display: flex;
    gap: 22px;
    font-size: 14px;
    margin-left: auto;
}

.header-links span {
    cursor: pointer;
}

/* RUNNING SALE */

.running-sale {
    width: 100%;
    height: 38px;
    background: #a90078;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.sale-text {
    display: inline-block;
    padding-left: 100%;
    font-size: 14px;
    font-weight: bold;
    animation: saleLoop 12s linear infinite;
}

@keyframes saleLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* CATEGORIES */

.categories {
    height: 55px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.categories span {
    cursor: pointer;
}

/* HERO SECTION */

.hero {
    max-width: 1100px;
    margin: 20px auto;
    height: 300px;
    background: linear-gradient(135deg, #9f2089 0%, #d946aa 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.hero-content button {
    background: white;
    color: #9f2089;
    border: none;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

/* BENEFITS */

.benefits {
    max-width: 1100px;
    margin: 20px auto;
    background: white;
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
    padding: 18px;
    font-size: 14px;
}

/* DAILY DEALS */

.deals {
    max-width: 1100px;
    margin: auto;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border-radius: 8px;
}

.deals h2 {
    font-size: 20px;
}

.timer {
    border: 1px solid #aaa;
    padding: 7px 12px;
    border-radius: 5px;
    font-weight: bold;
}

/* PRODUCTS */

.products-section {
    max-width: 1100px;
    margin: 25px auto;
}

.products-section h2 {
    margin-bottom: 15px;
}

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

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 12px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    background: #eee;
}

.product-card h3 {
    font-size: 14px;
    font-weight: normal;
    padding: 10px 12px 5px;
}

.price {
    font-size: 21px;
    font-weight: bold;
    padding-left: 12px;
    display: inline-block;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 12px;
    margin-left: 5px;
}

.discount {
    color: #888;
    font-size: 12px;
    margin-left: 4px;
}

.offer {
    margin: 8px 12px;
    background: #e8f6ef;
    color: #16864b;
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.rating {
    margin-left: 12px;
    font-size: 12px;
}

/* BOTTOM NAV */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.bottom-nav button {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}

.bottom-nav small {
    display: block;
    font-size: 11px;
    margin-top: 3px;
}

/* PRODUCT DETAIL PAGE */

.product-detail {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    overflow-y: auto;
    padding-bottom: 75px;
}

.detail-header {
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.detail-header button {
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

.detail-product-image {
    width: 100%;
    height: 450px;
    object-fit: contain;
    background: #f5f5f5;
}

.detail-content {
    padding: 15px;
}

.detail-content h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    margin-top: -45px;
    margin-bottom: 25px;
}

.product-actions button {
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #555;
}

.product-actions button span {
    font-size: 30px;
    line-height: 30px;
}

.product-actions button small {
    font-size: 12px;
    margin-top: 5px;
}

.product-actions button:first-child.active span {
    color: #9f2089;
}

.detail-rating {
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-box {
    background: #16864b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.rating-count {
    color: #666;
}

.rating-dot {
    color: #999;
}

.trusted-logo {
    width: 125px;
    height: 35px;
    object-fit: contain;
}

.detail-price {
    font-size: 25px;
    font-weight: bold;
}

.detail-price del {
    font-size: 13px;
    color: #888;
    margin-left: 8px;
}

.detail-price span {
    font-size: 13px;
    color: #777;
    margin-left: 6px;
}

.delivery-text {
    margin: 15px 0;
    font-size: 13px;
}

.detail-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 18px 0;
}

.sizes {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.sizes button {
    min-width: 45px;
    padding: 9px;
    background: white;
    border: 1px solid #aaa;
    border-radius: 5px;
    cursor: pointer;
}

.sizes button:hover {
    border-color: #9f2089;
    background: #fef5fc;
}

.detail-content p {
    font-size: 13px;
    line-height: 20px;
    color: #555;
}

/* REVIEWS */

.reviews {
    margin-top: 20px;
}

.reviews h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.review {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.review-stars {
    color: #16864b;
    font-size: 14px;
    margin-bottom: 6px;
}

.review b {
    font-size: 14px;
}

.review p {
    font-size: 13px;
    color: #444;
    margin: 7px 0;
    line-height: 19px;
}

.review small {
    display: block;
    color: #777;
    font-size: 11px;
    margin-top: 4px;
}

/* RECOMMENDED PRODUCTS */

.detail-recommendations {
    padding: 15px;
    background: #f6f6f6;
}

.detail-recommendations h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.detail-recommendations .products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.detail-recommendations .product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 10px;
}

.detail-recommendations .product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.detail-recommendations .product-card h3 {
    font-size: 12px;
    font-weight: normal;
    padding: 8px 10px 4px;
    margin: 0;
}

.detail-recommendations .price {
    font-size: 17px;
    padding-left: 10px;
}

.detail-recommendations .old-price {
    font-size: 11px;
}

.detail-recommendations .discount {
    font-size: 11px;
}

.detail-recommendations .offer {
    margin: 6px 10px;
    font-size: 10px;
}

.detail-recommendations .rating {
    margin-left: 10px;
    font-size: 11px;
}

/* BUY BUTTONS */

.buy-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    padding: 8px;
    z-index: 10000;
}

.buy-buttons button {
    flex: 1;
    border: 1px solid #9f2089;
    border-radius: 5px;
    background: white;
    color: #9f2089;
    font-weight: bold;
    cursor: pointer;
}

.buy-buttons button:last-child {
    background: #9f2089;
    color: white;
}

/* CHECKOUT PAGE */

.checkout-page {
    position: fixed;
    inset: 0;
    background: #f6f6f6;
    z-index: 20000;
    overflow-y: auto;
    padding-bottom: 80px;
}

.checkout-header {
    height: 55px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 2;
}

.checkout-header button {
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

.checkout-section {
    background: white;
    margin-top: 10px;
    padding: 15px;
}

.checkout-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.address-box {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
}

.address-box p {
    font-size: 12px;
    color: #777;
    margin: 8px 0 12px;
}

.address-btn {
    border: 1px solid #9f2089;
    background: white;
    color: #9f2089;
    padding: 9px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.order-product {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.order-product b {
    font-size: 13px;
}

.order-product p {
    font-size: 11px;
    color: #777;
    margin-top: 6px;
}

.payment-option {
    display: block;
    padding: 13px 5px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    cursor: pointer;
}

.payment-option input {
    margin-right: 8px;
    cursor: pointer;
}

.checkout-total {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    z-index: 20001;
}

.checkout-total small {
    display: block;
    font-size: 10px;
    color: #777;
}

.checkout-total strong {
    font-size: 20px;
}

.checkout-total button {
    background: #9f2089;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 13px 22px;
    font-weight: bold;
    cursor: pointer;
}

/* ADDRESS PAGE */

.address-page {
    position: fixed;
    inset: 0;
    background: #f6f6f6;
    z-index: 30000;
    overflow-y: auto;
}

.address-header {
    height: 55px;
    background: white;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 2;
}

.address-header button {
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

.address-form {
    background: white;
    margin-top: 10px;
    padding: 18px;
}

.address-form h3 {
    font-size: 16px;
    margin: 10px 0 15px;
}

.address-form input {
    width: 100%;
    height: 48px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 12px;
    margin-bottom: 12px;
    font-size: 14px;
    outline: none;
}

.address-form input:focus {
    border-color: #9f2089;
}

.save-address {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 5px;
    background: #9f2089;
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
}

/* MOBILE RESPONSIVE */

@media (max-width: 700px) {

    .header {
        height: auto;
        padding: 12px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo {
        font-size: 27px;
    }

    .search-box {
        width: 100%;
        order: 3;
    }

    .header-links {
        display: none;
    }

    .categories {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 15px;
        gap: 22px;
        white-space: nowrap;
    }

    .hero {
        margin: 10px;
        height: 200px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .benefits {
        margin: 10px;
        font-size: 11px;
    }

    .deals {
        margin: 10px;
    }

    .products-section {
        margin: 20px 10px;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card img {
        height: 190px;
    }

    .product-card h3 {
        font-size: 12px;
    }

    .price {
        font-size: 18px;
    }

    .detail-product-image {
        height: 380px;
    }
}

/* =========================================================================
   ADDITIONS
   Upar ka poora CSS aapka original design hai - usme kuch change nahi kiya.
   Neeche sirf (a) theme color ko admin se control karne ke overrides
   aur (b) jo naye pages bane (cart, track, order success, pagination)
   unki styling hai - same design language me.
   ========================================================================= */

/* ---- Admin se theme color (default bilkul original: #9f2089 / #a90078) ---- */
:root {
    --brand: #9f2089;
    --brand-2: #d946aa;
    --ticker-bg: #a90078;
    --ticker-color: #ffffff;
    --ticker-speed: 12s;
}

.logo { color: var(--brand); }
.running-sale { background: var(--ticker-bg); color: var(--ticker-color); }
.sale-text { animation-duration: var(--ticker-speed); }
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); }
.hero-content button, .hero-content .hero-btn { color: var(--brand); }
.sizes button:hover { border-color: var(--brand); background: #fef5fc; }
.sizes label input:checked + span { border-color: var(--brand); background: #fef5fc; }
.product-actions button:first-child.active span { color: var(--brand); }
.buy-buttons button { border-color: var(--brand); color: var(--brand); }
.buy-buttons button:last-child { background: var(--brand); color: white; }
.address-btn { border-color: var(--brand); color: var(--brand); }
.address-form input:focus { border-color: var(--brand); }
.save-address { background: var(--brand); }
.checkout-total button { background: var(--brand); }

/* ---- Links ko original spans/buttons jaisa dikhana ---- */
a { color: inherit; text-decoration: none; }

.logo { display: inline-flex; align-items: center; }
.logo img { max-height: 42px; width: auto; display: block; }

.header-links a { cursor: pointer; }
.header-links a:hover { color: var(--brand); }

.cart-link { position: relative; }
.cart-badge {
    position: absolute; top: -9px; right: -13px;
    background: var(--brand); color: #fff;
    font-size: 10px; font-style: normal; font-weight: bold;
    min-width: 17px; height: 17px; line-height: 17px;
    border-radius: 9px; text-align: center; padding: 0 4px;
}

.categories a { cursor: pointer; }
.categories a:hover { color: var(--brand); }
.categories a.active { color: var(--brand); font-weight: bold; }

.bottom-nav a {
    border: none; background: none; font-size: 20px;
    cursor: pointer; color: #333; text-align: center;
}
.bottom-nav a.active { color: var(--brand); }

/* Product card ab <a> hai - look bilkul same rakha */
a.product-card { display: block; color: #333; }
.product-card { position: relative; }
.pc-badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--brand); color: #fff;
    font-size: 10px; font-weight: bold;
    padding: 4px 8px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.pc-out {
    position: absolute; top: 0; left: 0; right: 0; height: 250px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.8); color: #c0392b;
    font-weight: bold; font-size: 14px;
}
.reviews-count { margin-left: 8px; font-size: 12px; color: #777; }

/* ---- Hero: admin se image + ek se zyada banner (slider) ---- */
.hero-slider { position: relative; }
.hero { display: none; position: relative; background-size: cover; background-position: center; }
.hero.active { display: flex; }
.hero.has-image::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.25); border-radius: 8px;
}
.hero-content { position: relative; z-index: 1; padding: 0 20px; }
.hero-content .hero-btn {
    display: inline-block; background: white;
    padding: 12px 35px; font-size: 16px; font-weight: bold;
    border-radius: 5px; cursor: pointer;
}
.hero-dots {
    position: absolute; bottom: 14px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 7px; z-index: 2;
}
.hero-dots button {
    width: 9px; height: 9px; padding: 0; border: none;
    border-radius: 50%; background: rgba(255, 255, 255, 0.55); cursor: pointer;
}
.hero-dots button.active { background: #fff; width: 22px; border-radius: 5px; }

/* ---- Deals: heading + timer + horizontal product row ---- */
.deals { flex-wrap: wrap; }
.deals-head {
    width: 100%; display: flex; align-items: center;
    justify-content: center; gap: 15px;
}
.deal-scroll {
    width: 100%; display: flex; gap: 15px;
    overflow-x: auto; padding: 4px 0 6px;
}
.deal-scroll .product-card { min-width: 200px; max-width: 200px; flex-shrink: 0; }
.deal-scroll .product-card img { height: 210px; }

/* ---- Section heading ke saath sort dropdown ---- */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 15px; flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 0; }
.section-head h2 small { font-size: 13px; font-weight: normal; color: #777; margin-left: 6px; }
.sort-select {
    height: 40px; padding: 0 10px; font-size: 13px;
    border: 1px solid #aaa; border-radius: 5px; background: white; cursor: pointer;
}

/* ---- Flash / alert ---- */
.site-flash {
    max-width: 1100px; margin: 12px auto 0;
    background: #e8f6ef; color: #16864b; border: 1px solid #b8e2cd;
    padding: 12px 15px; border-radius: 6px; font-size: 14px; font-weight: bold;
}
.site-flash.error { background: #fdecea; color: #c0392b; border-color: #f5c6c2; }
.alert {
    background: #fdecea; color: #c0392b; border: 1px solid #f5c6c2;
    padding: 12px 15px; border-radius: 6px; font-size: 13px; margin-bottom: 12px;
}
.alert div { line-height: 20px; }

/* ---- Pagination ---- */
.pagination {
    display: flex; gap: 8px; justify-content: center;
    margin-top: 25px; flex-wrap: wrap;
}
.pagination a {
    min-width: 40px; text-align: center;
    padding: 10px 14px; background: white;
    border: 1px solid #ddd; border-radius: 5px;
    font-size: 14px; cursor: pointer;
}
.pagination a:hover, .pagination a.active {
    background: var(--brand); color: white; border-color: var(--brand);
}

/* ---- Empty state ---- */
.empty-state {
    max-width: 1100px; margin: 60px auto; text-align: center;
    background: white; border-radius: 8px; padding: 50px 20px; border: 1px solid #eee;
}
.empty-state .icon { font-size: 50px; margin-bottom: 15px; }
.empty-state p { font-size: 15px; color: #777; margin-bottom: 20px; }

/* ---- Buttons (naye pages ke liye) ---- */
.btn-primary, .btn-outline {
    display: inline-block; text-align: center; cursor: pointer;
    padding: 13px 26px; border-radius: 5px;
    font-size: 14px; font-weight: bold;
    border: 1px solid var(--brand);
}
.btn-primary { background: var(--brand); color: white; }
.btn-outline { background: white; color: var(--brand); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.block { display: block; width: 100%; }
.link-danger {
    background: none; border: none; color: #c0392b;
    font-size: 12px; cursor: pointer; padding: 0; text-decoration: underline;
}
.muted { color: #777; font-size: 12px; }

/* ---- Product detail & checkout: overlay ki jagah normal page ---- */
.product-detail.page-mode,
.checkout-page.page-mode {
    position: static; inset: auto; z-index: auto; overflow: visible;
}
.product-detail.page-mode { padding-bottom: 80px; }
.checkout-page.page-mode { background: transparent; padding-bottom: 90px; }
.product-detail.page-mode .detail-header { display: none; }
.checkout-page.page-mode .checkout-header { display: none; }
.detail-content { max-width: 1100px; margin-left: auto; margin-right: auto; }
.detail-image-wrap { max-width: 1100px; margin: 0 auto; position: relative; }
.detail-recommendations { max-width: 1100px; margin: 0 auto; }
.checkout-page.page-mode .checkout-section {
    max-width: 1100px; margin-left: auto; margin-right: auto; border-radius: 8px;
}

/* Size / color chooser ko original .sizes button jaisa rakha (radio label) */
.sizes label { cursor: pointer; }
.sizes label input { display: none; }
.sizes label span {
    display: block; min-width: 45px; text-align: center;
    padding: 9px; background: white; border: 1px solid #aaa;
    border-radius: 5px; font-size: 14px;
}

.qty-picker {
    display: flex; align-items: center; width: fit-content;
    border: 1px solid #aaa; border-radius: 5px; overflow: hidden; background: white;
}
.qty-picker button { width: 40px; height: 40px; border: none; background: #f2f2f2; font-size: 18px; cursor: pointer; }
.qty-picker input { width: 50px; height: 40px; border: none; text-align: center; font-weight: bold; }

.stock-warning {
    font-size: 13px; font-weight: bold; color: #b9770e;
    background: #fff8e5; border: 1px solid #f5dfa0;
    padding: 9px 12px; border-radius: 5px; margin: 12px 0;
}
.stock-warning.out { color: #c0392b; background: #fdecea; border-color: #f5c6c2; }

.offer-box {
    margin: 15px 0; background: #e8f6ef; color: #16864b;
    border: 1px dashed #b8e2cd; padding: 10px 12px;
    border-radius: 5px; font-size: 12px; font-weight: bold;
}

.breadcrumb { max-width: 1100px; margin: 15px auto 0; padding: 0 15px; font-size: 12px; color: #777; }
.breadcrumb a:hover { color: var(--brand); }

/* ---- Page wrapper (cart / track / order success / static pages) ---- */
.page-wrap { max-width: 1100px; margin: 20px auto; padding: 0 15px; }
.page-wrap.narrow { max-width: 720px; }
.page-title { font-size: 22px; margin-bottom: 15px; }
.panel {
    background: white; border-radius: 8px; border: 1px solid #eee;
    padding: 18px; margin-bottom: 15px;
}
.panel h3 { font-size: 16px; margin-bottom: 12px; }
.static-content { font-size: 14px; line-height: 22px; color: #555; }

/* ---- Cart page ---- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.cart-item {
    display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 15px;
    background: white; border: 1px solid #eee; border-radius: 8px;
    padding: 15px; margin-bottom: 12px; align-items: start;
}
.cart-item img { width: 90px; height: 110px; object-fit: cover; border-radius: 5px; background: #eee; }
.ci-name { font-size: 14px; display: block; margin-bottom: 5px; }
.ci-info small { font-size: 11px; color: #777; }
.ci-price { font-size: 19px; font-weight: bold; margin: 8px 0; }
.ci-price del { font-size: 12px; font-weight: normal; color: #888; margin-left: 5px; }
.ci-controls { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.qty-form { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 5px; overflow: hidden; }
.qty-form button { width: 30px; height: 30px; border: none; background: #f2f2f2; cursor: pointer; }
.qty-form span { width: 36px; text-align: center; font-weight: bold; font-size: 13px; }
.ci-total { font-size: 16px; font-weight: bold; }
.clear-cart { text-align: right; padding: 4px; }

.cart-summary { background: white; border: 1px solid #eee; border-radius: 8px; padding: 18px; }
.cart-summary.sticky { position: sticky; top: 15px; }
.cart-summary h3 { font-size: 14px; color: #777; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.sum-row.green { color: #16864b; font-weight: bold; }
.sum-row.total {
    border-top: 1px dashed #ddd; margin-top: 8px; padding-top: 12px;
    font-size: 18px; font-weight: bold;
}
.cart-summary .btn-primary { margin-top: 14px; }
.continue-link { display: block; text-align: center; margin-top: 12px; font-size: 12px; color: #777; }
.coupon-form { display: flex; gap: 8px; margin-bottom: 15px; }
.coupon-form input {
    flex: 1; height: 44px; border: 1px solid #ccc; border-radius: 5px;
    padding: 0 12px; text-transform: uppercase; outline: none;
}
.coupon-form input:focus { border-color: var(--brand); }
.coupon-form button {
    border: none; background: var(--brand); color: white;
    padding: 0 18px; border-radius: 5px; font-weight: bold; cursor: pointer;
}

/* ---- Checkout ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid label { display: block; font-size: 12px; color: #666; font-weight: bold; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input {
    width: 100%; height: 48px; border: 1px solid #ccc; border-radius: 5px;
    padding: 0 12px; margin: 5px 0 12px; font-size: 14px; outline: none;
}
.form-grid input:focus { border-color: var(--brand); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.order-product { align-items: center; }
.order-product img { width: 55px; height: 68px; object-fit: cover; border-radius: 5px; background: #eee; }
.order-product > div { flex: 1; }
.payment-option small { display: block; color: #777; font-size: 11px; margin-left: 24px; }

/* ---- Order success ---- */
.success-card {
    background: white; border: 1px solid #eee; border-radius: 8px;
    padding: 35px 20px; text-align: center; margin-bottom: 15px;
}
.success-icon { font-size: 52px; margin-bottom: 10px; }
.success-card h1 { font-size: 24px; color: #16864b; margin-bottom: 8px; }
.success-card p { font-size: 14px; color: #666; }
.order-no {
    display: inline-block; margin-top: 15px; background: #f6f6f6;
    padding: 9px 16px; border-radius: 5px; font-size: 14px;
}
.success-actions { display: flex; gap: 12px; }
.success-actions > * { flex: 1; }
.upi-panel { border: 2px solid var(--brand); }
.address-text { font-size: 14px; line-height: 23px; color: #555; }

/* ---- Track order ---- */
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.track-form label { display: block; font-size: 12px; color: #666; font-weight: bold; }
.track-form input {
    width: 100%; height: 48px; border: 1px solid #ccc; border-radius: 5px;
    padding: 0 12px; margin-top: 5px; font-size: 14px; outline: none;
}
.track-form input:focus { border-color: var(--brand); }
.track-steps { display: flex; margin: 20px 0 25px; }
.ts { flex: 1; text-align: center; position: relative; font-size: 11px; color: #999; }
.ts i { display: block; width: 14px; height: 14px; border-radius: 50%; background: #ddd; margin: 0 auto 7px; position: relative; z-index: 1; }
.ts::before { content: ''; position: absolute; top: 6px; left: 0; right: 50%; height: 2px; background: #e5e5e5; }
.ts::after { content: ''; position: absolute; top: 6px; left: 50%; right: 0; height: 2px; background: #e5e5e5; }
.ts:first-child::before, .ts:last-child::after { display: none; }
.ts.done { color: #16864b; font-weight: bold; }
.ts.done i { background: #16864b; }
.ts.done::before { background: #16864b; }

/* ---- Footer ---- */
.site-footer { background: white; border-top: 1px solid #ddd; margin-top: 40px; padding: 30px 5% 20px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 25px; }
.footer-inner b { display: block; margin-bottom: 10px; font-size: 14px; }
.footer-inner p { font-size: 12px; color: #777; line-height: 20px; }
.footer-inner a { display: block; font-size: 12px; color: #777; padding: 4px 0; }
.footer-inner a:hover { color: var(--brand); }
.footer-bottom { text-align: center; font-size: 11px; color: #999; margin-top: 22px; padding-top: 15px; border-top: 1px solid #eee; }

/* ---- Naye pages ka responsive (original 700px breakpoint follow karta hai) ---- */
@media (max-width: 900px) {
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary.sticky { position: static; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .site-flash { margin: 10px; }
    .breadcrumb { padding: 0 12px; }
    .page-wrap { padding: 0 10px; }
    .form-grid, .track-form { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .deal-scroll .product-card { min-width: 165px; max-width: 165px; }
    .deal-scroll .product-card img { height: 180px; }
    .pc-out { height: 190px; }
    .cart-item { grid-template-columns: 75px minmax(0, 1fr); }
    .cart-item img { width: 75px; height: 92px; }
    .ci-total { grid-column: 2; text-align: right; }
    .success-actions { flex-direction: column; }
}


/* ---- Checkout: COD shown as unavailable, saved address card ---- */
.payment-option.disabled { color: #999; cursor: not-allowed; }
.payment-option.disabled input { cursor: not-allowed; }
.payment-option small.cod-note { color: #c0392b; font-size: 12px; margin-top: 4px; }
.payment-option small.cod-note b { color: #c0392b; }
.saved-address b { font-size: 14px; }
.saved-address p { font-size: 13px; color: #555; line-height: 19px; }

/* ---- UPI payment page ---- */
.pay-head { text-align: center; }
.pay-head small { font-size: 12px; color: #777; }
.pay-amount { font-size: 34px; font-weight: bold; color: var(--brand); margin: 4px 0 6px; }
.pay-head p { font-size: 13px; color: #555; }

.upi-apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.upi-app {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 50px; border: 1px solid var(--brand); border-radius: 5px;
    background: white; color: var(--brand); font-weight: bold; font-size: 14px;
}
.upi-app:active { background: #fef5fc; }

.pay-qr { text-align: center; }
.pay-qr #upiQr { display: inline-block; padding: 10px; background: white; border: 1px solid #eee; border-radius: 8px; margin-bottom: 10px; }
.pay-qr #upiQr img, .pay-qr #upiQr canvas { display: block; margin: 0 auto; }
.pay-qr p { margin: 0 auto 12px; max-width: 420px; }

.copy-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid #eee; font-size: 14px;
}
.copy-row:last-child { border-bottom: none; }
.copy-row span { word-break: break-all; }
.copy-row .address-btn { padding: 7px 12px; font-size: 12px; flex-shrink: 0; }
