/* ============================================================
   COMPLETE Product Page Styles (product.css)
   All Desktop + Mobile Product Listing Styles
   ============================================================ */

/* --- Global Product Page Elements --- */
.products-list {
    padding-top: 10px;
}

.products-layout {
    display: flex;
    gap: 15px;
}

/* Sidebar Filters */
.filter-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
    position: sticky;
    top: 80px;
}

.sidebar-block {
    padding-bottom: 20px;
}

.sidebar-title {
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-header {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #212121;
    cursor: pointer;
}

.filter-header i {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s;
}

.filter-header.collapsed i {
    transform: rotate(180deg);
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-list li {
    font-size: 14px;
    color: #212121;
    margin-bottom: 8px;
    cursor: pointer;
}

.filter-list li i {
    font-size: 10px;
    margin-right: 8px;
}

.filter-list li.indent {
    padding-left: 15px;
    color: #666;
}

.filter-list li.active-child {
    font-weight: 700;
    color: #000;
    padding-left: 30px;
}

/* Price Range */
.price-range {
    margin-top: 10px;
}

.price-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input select {
    flex: 1;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    color: #212121;
    outline: none;
    background: white;
    cursor: pointer;
}

.price-input select:focus {
    border-color: var(--primary-color);
}

.price-input span {
    font-size: 12px;
    color: #878787;
}

.filter-search {
    position: relative;
    margin-bottom: 15px;
}

.filter-search i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #878787;
    font-size: 12px;
}

.filter-search input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    padding: 5px 5px 5px 20px;
    font-size: 14px;
    outline: none;
}

/* Products Main Section */
.products-main {
    flex-grow: 1;
    background: white;
    padding: 15px;
}

.listing-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.breadcrumbs {
    font-size: 12px;
    color: #878787;
    margin-bottom: 8px;
}

.results-count {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.results-count span {
    color: #878787;
    font-weight: 400;
}

.sort-options {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
}

.sort-label {
    font-weight: 700;
}

.sort-tab {
    cursor: pointer;
    color: #212121;
    padding-bottom: 5px;
}

.sort-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 700;
}

/* --- Desktop Product Card Styles --- */
.horizontal-card {
    display: grid;
    grid-template-columns: 200px 1fr 240px;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    transition: all 0.3s;
}

.horizontal-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    z-index: 2;
}

.card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.card-left img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
}

.compare-checkbox {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.wishlist-icon {
    position: absolute;
    background: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    color: #c2c2c2;
    font-size: 14px;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.horizontal-card .wishlist-icon {
    top: 10px;
    right: 10px;
}

.wishlist-icon:hover {
    box-shadow: 0 5px 15px rgba(255, 67, 67, 0.2);
}

.wishlist-icon i {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wishlist-icon:hover i {
    color: #ff4343;
    transform: scale(1.2);
    font-weight: 900;
}

.card-center {
    display: flex;
    flex-direction: column;
}

.brand-tag {
    font-size: 12px;
    color: #878787;
    margin-bottom: 5px;
}

.product-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 10px;
    cursor: pointer;
}

.product-title:hover {
    color: var(--primary-color);
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-badge {
    background: #388e3c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rating-badge.badge-green {
    background: #388e3c;
}

.rating-count {
    font-size: 14px;
    color: #878787;
}

.product-specs {
    list-style: none;
    padding: 0;
}

.product-specs li {
    font-size: 14px;
    color: #212121;
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.product-specs li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #c2c2c2;
}

.card-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.final-price {
    font-size: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assured-img {
    height: 20px;
}

.price-discount {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

.old-price {
    text-decoration: line-through;
    color: #878787;
    font-size: 14px;
}

.percent {
    color: #388e3c;
    font-weight: 700;
    font-size: 13px;
}

.hot-deal-tag {
    display: inline-block;
    color: #388e3c;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 5px;
}

.bank-offer {
    font-size: 13px;
    color: #212121;
}

.product-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.btn-cart-wide,
.btn-buy-wide {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-cart-wide {
    background: #ffffff;
    color: #0d5c92;
    border: 1px solid #0d5c92;
}

.btn-cart-wide:hover {
    background: #f0f4ff;
}

.btn-buy-wide {
    background: #0d5c92;
    color: white;
}

.btn-buy-wide:hover {
    background: #1e2a5a;
    box-shadow: 0 4px 12px rgba(46, 60, 126, 0.4);
}

/* Refined Card Elements */
.choice-tag {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #26a541;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.discount-badge-horizontal {
    position: absolute;
    top: 40px;
    left: -8px;
    background: #ffc107;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sponsored-tag {
    font-size: 11px;
    color: #878787;
    margin-bottom: 5px;
}

.price-row-mobile {
    display: none;
}

.tags-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.hot-deal,
.bank-offer {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 0;
}

.hot-deal {
    color: #388e3c;
}

.spec-labels {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
}

.spec-labels span {
    font-size: 14px;
    color: #212121;
    position: relative;
    padding-left: 15px;
}

.spec-labels span::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #c2c2c2;
}

.service-tag {
    font-size: 13px;
    color: #878787;
    margin-top: auto;
}

.mobile-btn-container {
    display: none;
}

.mobile-tech-tags {
    display: none;
}

/* Hide mobile elements by default */
.mp-bottom-nav,
.mobile-filter-bar,
.bottom-sheet,
.bottom-sheet-overlay {
    display: none;
}

/* --- MOBILE STYLES --- */
@media (max-width: 991px) {
    .filter-sidebar {
        display: none;
    }
    .products-layout {
        gap: 0;
    }
    .listing-header {
        display: none;
    }
}

@media (max-width: 600px) {
    body .products-section {
        padding: 0 !important;
        background: #f1f3f6 !important;
    }

    body .products-layout {
        display: block !important;
        grid-template-columns: none !important;
    }

    body .products-main {
        padding: 0 !important;
        background: transparent !important;
        width: 100% !important;
    }

    body .products-list {
        display: block !important;
        grid-template-columns: none !important;
        padding: 8px !important;
        background: #f5f5f5 !important;
        width: 100% !important;
    }

    /* Mobile Banner */
    .page-banner {
        padding: 0;
        margin-bottom: 0;
    }

    .page-banner .container {
        padding: 0;
        max-width: 100%;
    }

    .page-banner .desktop-banner {
        display: none !important;
    }

    .page-banner img.mobile-banner {
        height: 180px;
        border-radius: 0;
        display: block !important;
        width: 100%;
        object-fit: cover;
    }

    .mp-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        height: 56px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid #f0f0f0;
        transition: transform 0.3s ease;
    }

    .mp-bottom-nav.hide-bottom-nav {
        transform: translateY(100%);
    }

    /* Mobile Sort/Filter Bar */
    .mobile-filter-bar {
        display: flex !important;
        height: 48px;
        background: white;
        border-bottom: 1px solid #e0e0e0;
        position: sticky;
        top: 60px;
        z-index: 100;
        width: 100%;
    }

    .filter-action {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 14px;
        font-weight: 600;
        color: #212121;
        cursor: pointer;
        transition: background 0.2s;
    }

    .filter-action:hover {
        background: #f8f8f8;
    }

    .filter-action:first-child {
        border-right: 1px solid #f0f0f0;
    }

    .filter-action i {
        font-size: 16px;
        color: #666;
    }

    /* Mobile Filter Overlay - Enhanced Design */
    .mobile-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 3100;
        display: none;
        flex-direction: column;
    }

    .mobile-filter-overlay.active {
        display: flex;
    }

    .filter-panel-header {
        height: 56px;
        display: flex;
        align-items: center;
        padding: 0 15px;
        gap: 15px;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        position: relative;
        z-index: 10;
    }

    .filter-panel-header i {
        font-size: 20px;
        color: #212121;
        cursor: pointer;
    }

    .filter-panel-header h3 {
        font-size: 18px;
        font-weight: 700;
        color: #212121;
        margin: 0;
    }

    .filter-panel-body {
        flex-grow: 1;
        display: flex;
        overflow: hidden;
        background: #fafafa;
    }

    .filter-tabs {
        width: 130px;
        background: #f5f5f5;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        border-right: 1px solid #e0e0e0;
        padding-bottom: 80px;
    }

    .filter-tab {
        padding: 18px 12px;
        font-size: 13px;
        color: #666;
        border-bottom: 1px solid #e8e8e8;
        cursor: pointer;
        transition: all 0.2s;
        font-weight: 500;
        text-align: left;
    }

    .filter-tab.active {
        background: white;
        font-weight: 700;
        color: var(--primary-color);
        border-left: 3px solid var(--primary-color);
        padding-left: 9px;
    }

    .filter-content {
        flex-grow: 1;
        padding: 15px;
        padding-bottom: 80px;
        background: white;
        overflow-y: auto;
    }

    .filter-search {
        position: relative;
        margin-bottom: 20px;
    }

    .filter-search input {
        width: 100%;
        padding: 12px 15px 12px 40px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 14px;
        outline: none;
        transition: all 0.2s;
        background: #f8f8f8;
        color: #333;
    }

    .filter-search input:focus {
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 3px rgba(40, 116, 240, 0.1);
    }

    .filter-search input::placeholder {
        color: #999;
    }

    .filter-search i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #666;
        font-size: 15px;
    }

    .popular-label {
        font-size: 11px;
        color: #999;
        margin: 0 0 15px 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }

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

    .option-list li {
        margin-bottom: 18px;
    }

    .check-box {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 15px;
        color: #333;
        cursor: pointer;
        transition: color 0.2s;
    }

    .check-box:hover {
        color: var(--primary-color);
    }

    .check-box input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
        accent-color: var(--primary-color);
    }

    .filter-panel-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 12px 15px;
        display: flex;
        gap: 12px;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        z-index: 3110;
    }

    .btn-clear {
        flex: 1;
        background: white;
        border: 2px solid #e0e0e0;
        padding: 14px;
        font-weight: 700;
        font-size: 14px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
        color: #333;
    }

    .btn-clear:hover {
        border-color: #999;
        background: #f8f8f8;
    }

    .btn-apply {
        flex: 1;
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 14px;
        font-weight: 700;
        font-size: 14px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 2px 8px rgba(40, 116, 240, 0.3);
    }

    .btn-apply:hover {
        background: #1e2a5a;
        box-shadow: 0 4px 12px rgba(40, 116, 240, 0.4);
    }
}
body .horizontal-card {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    padding: 12px !important;
    background: white;
    margin-bottom: 8px !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    position: relative;
    align-items: stretch !important;
    width: 100% !important;
    transform: none !important;
    min-height: 140px !important;
}

body .card-left {
    flex-shrink: 0 !important;
    width: 110px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 8px !important;
    background: #fafafa !important;
    border-radius: 8px;
    margin: 0 !important;
    position: relative;
}

body .card-left img {
    width: 100% !important;
    height: 100px !important;
    object-fit: contain;
    margin-bottom: 8px;
}

body .choice-tag {
    /* top: 5px !important;
    left: 5px !important; */
    font-size: 9px !important;
    padding: 2px 6px !important;
    display: none !important;
}

body .discount-badge-horizontal {
    display: none !important;
}

body .wishlist-icon {
    top: 5px !important;
    right: 5px !important;
    background: white !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

body .compare-checkbox {
    display: none !important;
}

/* Right Side - Content */
body .card-center {
    flex: 1 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-width: 0;
    justify-content: space-between;
}

/* Top Section - Title & Rating */
body .sponsored-tag {
    font-size: 9px;
    color: #878787;
    margin: 0 0 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

body .product-title {
    font-size: 13px !important;
    color: #212121;
    line-height: 1.35;
    margin: 0 0 6px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

body .rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px 0 !important;
}

body .rating-badge {
    padding: 2px 4px !important;
    font-size: 10px !important;
    border-radius: 2px;
}

body .rating-count {
    font-size: 11px !important;
    color: #878787;
}

body .assured-img {
    height: 14px !important;
}

/* Mobile Price Row */
body .price-row-mobile {
    display: flex !important;
    align-items: baseline; /* Align base of text */
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

body .final-price {
    font-size: 16px !important;
    font-weight: 700;
}

body .old-price {
    font-size: 12px !important;
}

body .percent {
    font-size: 12px !important;
}

/* Tech Tags - Clean Layout */
body .mobile-tech-tags {
    display: flex !important;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: auto; /* Push buttons to bottom */
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

body .mobile-tech-tags::-webkit-scrollbar {
    display: none;
}

body .tech-tag {
    font-size: 10px;
    color: #555;
    background: #f1f3f6;
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide Desktop Elements */
body .card-right,
body .product-specs,
body .service-tag,
body .spec-labels {
    display: none !important;
}

/* Mobile Buttons - Side by Side at Bottom */
body .mobile-btn-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

body .mobile-btn-cart,
body .mobile-btn-buy {
    flex: 1;
    height: 32px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

body .mobile-btn-cart {
    background: #ffffff;
    color: #0d5c92;
    border: 1px solid #0d5c92;
}

body .mobile-btn-buy {
    background: #0d5c92; /* Primary Color */
    color: white;
}

/* Bottom Navigation */
.mp-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    height: 56px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
}

.mp-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #878787;
    gap: 2px;
}

.mp-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.mp-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.mp-nav-item.active {
    color: #2874f0;
}

/* Bottom Sheet */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 2001;
    border-radius: 16px 16px 0 0;
    padding: 0;
    transform: translateY(100%);
    padding: 0;
    overflow: hidden;
    display: block !important;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.sheet-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sheet-body li {
    padding: 15px 20px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer;
}

.sheet-body li.active {
    color: #2874f0;
    font-weight: 600;
    background: #f5faff;
}

.product-detail-page {
    background: #f1f3f6;
}

.pd-container {
    padding-top: 10px;
    padding-bottom: 30px;
}

.pd-breadcrumbs {
    padding: 10px 0;
    font-size: 12px;
    color: #878787;
    margin-bottom: 12px;
}

.pd-breadcrumbs a {
    color: #878787;
    text-decoration: none;
}

.pd-breadcrumbs a:hover {
    color: var(--primary-color);
}

.pd-breadcrumbs i {
    margin: 0 5px;
    font-size: 8px;
}

.pd-main-layout {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 20px;
    background: white;
    padding: 20px 0;
}

/* Left Column - Sticky Section */
.pd-left-col {
    padding-left: 20px;
}

.sticky-image-section {
    position: sticky;
    top: 80px;
}

.image-gallery-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.thumbnails-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 65px;
}

.thumb-item {
    border: 1px solid #e0e0e0;
    padding: 2px;
    cursor: pointer;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.thumb-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 4px rgba(40, 116, 240, 0.3);
}

.thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-image-display {
    flex: 1;
    border: 1px solid #f0f0f0;
    padding: 15px;
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    overflow: hidden; /* Essential for zoom */
    cursor: crosshair;
}

.main-image-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-out; /* Smooth zoom entry/exit */
    transform-origin: center center;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    color: #d1d1d1;
    transition: all 0.2s;
    z-index: 10;
}

.wishlist-btn:hover {
    color: #ff4343;
}

.pd-action-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.btn-pd-cart,
.btn-pd-buy {
    height: 48px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: white;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-pd-cart {
    background: #ffffff;
    color: #212121;
    border: 1px solid #e0e0e0;
}

.btn-pd-cart:hover {
    background: #f1f3f6;
}

.btn-pd-buy {
    background: #0d5c92; /* Flip/Primary orange or original primary */
    color: white;
}

.btn-pd-buy:hover {
    background: #f65a0e;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pd-right-col {
    padding-right: 20px;
}

.pd-title {
    font-size: 18px;
    font-weight: 500;
    color: #212121;
    line-height: 1.4;
    margin-bottom: 10px;
}

.pd-rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-badge-active {
    background: #388e3c;
    color: white;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 700;
}

.rating-text {
    color: #878787;
    font-size: 14px;
    font-weight: 600;
}

.assured-badge-inline {
    height: 18px;
}

.pd-price-section {
    padding: 15px 0;
}

.special-price-label {
    color: #388e3c;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.pd-final-price {
    font-size: 28px;
    font-weight: 600;
    color: #212121;
}

.pd-old-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #878787;
}

.pd-percent {
    font-size: 16px;
    color: #388e3c;
    font-weight: 700;
}

.pd-delivery-info {
    font-size: 14px;
    color: #212121;
    margin-top: 10px;
}

.pd-delivery-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.pd-offers-section {
    margin-top: 25px;
}

.pd-offers-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.offers-list {
    list-style: none;
    padding: 0;
}

.offers-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.offers-list li i {
    color: #388e3c;
    font-size: 16px;
    margin-top: 3px;
}

.offers-list li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.view-more-offers {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
}

.pd-exchange-container {
    margin: 25px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    max-width: 500px;
}

.exchange-option {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.exchange-option:last-child {
    border-bottom: none;
}

.exchange-option.active {
    background: #f5faff;
}

.exchange-option label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
}

.pd-info-block {
    margin-top: 0px;
}

.info-row {
    display: flex;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
}

.info-label {
    width: 150px;
    color: #878787;
    font-size: 14px;
    font-weight: 600;
}

.info-content {
    flex: 1;
    font-size: 14px;
}

.highlights-list {
    padding-left: 20px;
}

.highlights-list li {
    margin-bottom: 12px;
    position: relative;
    list-style: none;
}

.highlights-list li::before {
    content: "•";
    color: #d1d1d1;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.pd-section-header {
    border-top: 1px solid #f0f0f0;
    padding: 25px 0 15px;
    margin-top: 25px;
}

.pd-section-header h2 {
    font-size: 24px;
    font-weight: 500;
}

.pd-description {
    font-size: 14px;
    line-height: 1.6;
    color: #212121;
}

.pd-specs-container {
    padding: 15px 0;
}

.spec-group h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #212121;
}

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

.specs-table td {
    padding: 16px 0;
    font-size: 14px;
    border-bottom: 1px solid #f9f9f9;
}

.specs-table td:first-child {
    width: 25%;
    color: #878787;
}

.specs-table td:last-child {
    color: #212121;
}

/* Response for Product Detail */
@media (max-width: 991px) {
    .pd-main-layout {
        grid-template-columns: 1fr;
    }

    .pd-left-col,
    .pd-right-col {
        padding: 0 15px;
    }
}

@media (min-width: 769px) {
    /* Explicitly hide on desktop */
    .mp-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .pd-breadcrumbs {
        display: none !important;
    }

    .pd-main-layout {
        padding: 0;
        gap: 0;
    }

    .pd-left-col,
    .pd-right-col {
        padding: 0 15px;
    }

    .sticky-image-section {
        position: relative;
        top: 0;
        margin-bottom: 15px;
    }

    .image-gallery-wrapper {
        flex-direction: column-reverse; /* Thumbnails below main image */
        gap: 10px;
    }

    .thumbnails-list {
        flex-direction: row;
        width: 100%;
        overflow-x: auto; /* Scroll horizontally */
        padding-bottom: 5px;
        justify-content: flex-start;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }

    .thumbnails-list::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }

    .thumb-item {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
    }

    .main-image-display {
        height: 280px;
        border: none;
        padding: 5px;
    }

    .product-title-section {
        border-bottom: 1px solid #f0f0f0;
    }

    .pd-title {
        font-size: 15px;
        line-height: 1.4;
    }

    .pd-final-price {
        font-size: 22px;
    }

    .pd-info-block {
        margin-top: 10px; /* Reduced margin */
    }

    .info-row {
        flex-direction: column;
        gap: 4px;
        padding: 10px 0; /* Reduced padding */
        border-top: 1px solid #eff0f5;
    }

    .info-label {
        width: 100%;
        color: #878787;
        font-size: 13px;
    }

    .specs-table td {
        display: block;
        width: 100%;
        padding: 6px 0;
        border-bottom: none;
    }

    .specs-table td:first-child {
        color: #878787;
        font-size: 12px;
        padding-bottom: 0;
    }

    .specs-table td:last-child {
        padding-top: 2px;
        border-bottom: 1px solid #f0f0f0;
        font-weight: 500;
        font-size: 13px;
    }

    /* Fixed Actions - Positioned above Bottom Nav */
    .pd-action-btns {
        position: fixed;
        bottom: 56px; /* Height of bottom nav */
        left: 0;
        width: 100%;
        margin: 0;
        z-index: 999;
        background: white;
        padding: 6px 10px;
        box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        border-top: 1px solid #f0f0f0;
    }

    .btn-pd-cart,
    .btn-pd-buy {
        height: 38px; /* Further reduced height */
        font-size: 13px;
        border-radius: 4px;
    }

    /* Increase padding to account for BOTH bars (56px nav + ~50px buttons) */
    body.product-detail-page {
        padding-bottom: 110px;
    }

    /* Reduce footer bottom padding */
    .product-detail-page footer {
        padding-bottom: 20px;
    }

    .product-detail-page .footer-bottom {
        padding-bottom: 10px;
    }

    /* Ensure Bottom Nav is Visible */
    .product-detail-page .mp-bottom-nav {
        display: flex !important;
        z-index: 1000;
    }

    .mp-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #878787;
        gap: 2px;
    }

    .mp-nav-item i {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .mp-nav-item span {
        font-size: 10px;
        font-weight: 500;
    }

    .mp-nav-item.active {
        color: #0d5c92;
    }
}

/* ============================================================
   CART PAGE STYLES - EXTRAORDINARY DESIGN
   ============================================================ */

.cart-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

.cart-container-main {
    padding: 15px 0 40px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: flex-start;
}

.cart-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-right {
    position: sticky;
    top: 90px;
}

/* Cart Header - Premium Style */
.cart-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.cart-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.address-select {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    background: #f8f9fa;
    border: 1px solid #e3e6ea;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.address-select:hover {
    background: #fff;
    border-color: #0d5c92;
}

.address-select i {
    color: #0d5c92;
    font-size: 16px;
}

.btn-change-addr {
    background: linear-gradient(135deg, #0d5c92 0%, #1e2a5a 100%);
    color: white;
    border: none;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(46, 60, 126, 0.25);
}

.btn-change-addr:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 60, 126, 0.35);
}

/* Cart Item - Premium Card Design */
.cart-item {
    background: white;
    padding: 28px;
    display: flex;
    gap: 28px;
    border-radius: 12px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item:hover {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.item-left {
    width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.item-left img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cart-item:hover .item-left img {
    transform: scale(1.05);
}

.item-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-title {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.5;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-seller {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 6px;
}

.item-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.item-price-row .final-price {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.item-price-row .old-price {
    font-size: 15px;
    text-decoration: line-through;
    color: #999;
}

.item-price-row .percent {
    font-size: 14px;
    color: #388e3c;
    font-weight: 700;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 4px;
}

.offer-applied {
    font-size: 13px;
    color: #388e3c;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
    font-weight: 600;
}

.offer-applied i {
    font-size: 14px;
}

.delivery-info {
    font-size: 13px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.delivery-info i {
    color: #0d5c92;
}

.delivery-info strong {
    color: #1a1a1a;
}

.free-delivery {
    color: #388e3c;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

/* Actions */
.cart-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    justify-content: flex-end;
}

.qty-selector-desktop {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e3e6ea;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #495057;
}

.qty-btn:hover:not(:disabled) {
    background: #0d5c92;
    color: white;
    border-color: #0d5c92;
    transform: scale(1.1);
}

.qty-btn:disabled {
    border-color: #e9ecef;
    color: #ced4da;
    cursor: not-allowed;
    opacity: 0.5;
}

.qty-selector-desktop input {
    width: 45px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.action-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: #495057;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #f8f9fa;
    color: #0d5c92;
}

.action-btn i {
    font-size: 14px;
}

/* Place Order - Desktop */
.place-order-wrapper {
    display: none;
}

.btn-place-order {
    background: linear-gradient(135deg, #0d5c92 0%, #1e2a5a 100%);
    color: white;
    border: none;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 16px rgba(46, 60, 126, 0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(46, 60, 126, 0.45);
}

.btn-place-order i {
    font-size: 16px;
}

/* Price Details Card - Premium */
.price-details-card {
    background: white;
    border-radius: 12px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.price-header {
    background: linear-gradient(135deg, #0d5c92 0%, #1e2a5a 100%);
    padding: 16px 24px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-header i {
    font-size: 16px;
}

.price-body {
    padding: 20px 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
    font-size: 15px;
    color: #495057;
}

.price-row span:last-child {
    font-weight: 600;
    color: #1a1a1a;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 0;
    font-size: 19px;
    font-weight: 700;
    border-top: 2px dashed #e9ecef;
    padding-top: 20px;
    color: #1a1a1a;
}

.green-text {
    color: #388e3c !important;
    font-weight: 700;
}

.green-text i {
    margin-right: 4px;
}

.savings-msg {
    border-top: 1px solid #f0f0f0;
    padding: 16px 0 0;
    margin-top: 16px;
    color: #388e3c;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.savings-msg i {
    font-size: 18px;
}

.safe-payment-badge {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e3e6ea;
}

.safe-payment-badge i {
    color: #388e3c;
    font-size: 24px;
    margin-top: 2px;
}

.safe-payment-badge div {
    flex: 1;
}

.safe-payment-badge strong {
    display: block;
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 4px;
}

.safe-payment-badge p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
}

/* Mobile Utilities */
.mobile-only {
    display: none !important;
}
.desktop-only {
    display: flex !important;
}
.qty-selector-mobile {
    display: none;
}

/* Responsive Cart - EXTRAORDINARY MOBILE DESIGN */
@media (max-width: 768px) {
    .cart-page {
        background: #f8f9fa;
    }

    .cart-page .main-header .search-bar,
    .cart-page .main-header .nav-menu {
        display: none !important;
    }

    .cart-page .main-header {
        justify-content: space-between;
        padding: 12px 16px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cart-left,
    .cart-right {
        width: 100%;
    }

    .cart-right {
        position: static;
        padding-bottom: 20px;
    }

    .cart-header {
        border-radius: 0;
        margin-bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .cart-header h2 {
        font-size: 18px;
    }

    .address-select {
        width: 100%;
        justify-content: space-between;
        font-size: 13px;
    }

    .cart-item {
        padding: 16px;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 8px;
        border-radius: 0;
    }

    .item-left {
        width: 100%;
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
    }

    .item-left img {
        width: 90px;
        height: 90px;
    }

    .qty-selector-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        background: #f8f9fa;
        padding: 4px 8px;
        border-radius: 6px;
    }

    .qty-selector-mobile .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .qty-selector-mobile input {
        width: 35px;
        text-align: center;
        border: none;
        background: transparent;
        font-weight: 700;
        font-size: 14px;
    }

    .item-right {
        gap: 8px;
    }

    .item-title {
        font-size: 15px;
        line-height: 1.4;
    }

    .item-price-row .final-price {
        font-size: 20px;
    }

    .offer-applied {
        font-size: 12px;
        padding: 3px 8px;
    }

    .delivery-info {
        font-size: 12px;
    }

    /* Actions Mobile */
    .cart-actions {
        border-top: 1px solid #f0f0f0;
        padding-top: 12px;
        justify-content: space-around;
        margin-top: 8px;
        gap: 0;
    }

    .qty-selector-desktop {
        display: none;
    }

    .action-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
        color: #495057;
        font-size: 12px;
        padding: 8px 4px;
    }

    .action-btn:not(:last-child) {
        border-right: 1px solid #f0f0f0;
    }

    /* Price Details Mobile */
    .price-details-card {
        border-radius: 0;
    }

    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }

    /* Sticky Bottom Bar - EXTRAORDINARY */
    .place-order-bar-sticky {
        position: fixed;
        bottom: 60px;
        left: 0;
        width: 100%;
        background: white;
        padding: 10px 16px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 999;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .total-amount-mobile {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .total-amount-mobile .price-label {
        font-size: 11px;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }

    .total-amount-mobile .price-value {
        font-size: 24px;
        font-weight: 800;
        color: #1a1a1a;
        letter-spacing: -0.5px;
    }

    .btn-place-order {
        min-width: auto;
        width: auto;
        padding: 10px 24px;
        font-size: 12px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(46, 60, 126, 0.25);
        font-weight: 600;
    }

    .btn-place-order i {
        font-size: 14px;
    }
}

/* ============================================================
   ADDRESS CHANGE MODAL
   ============================================================ */

.address-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.address-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.address-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.address-modal-overlay.active .address-modal {
    transform: scale(1);
}

.address-modal-header {
    background: linear-gradient(135deg, #0d5c92 0%, #1e2a5a 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.address-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0d5c92;
    box-shadow: 0 0 0 3px rgba(46, 60, 126, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.btn-check-pincode {
    position: absolute;
    right: 4px;
    top: 34px;
    background: #0d5c92;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-check-pincode:hover {
    background: #1e2a5a;
}

.address-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel,
.btn-save-address {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: #f3f4f6;
    color: #495057;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

.btn-save-address {
    background: linear-gradient(135deg, #0d5c92 0%, #1e2a5a 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(46, 60, 126, 0.3);
}

.btn-save-address:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 60, 126, 0.4);
}

/* Mobile Bottom Sheet Design */
@media (max-width: 768px) {
    .address-modal-overlay {
        align-items: flex-end;
    }

    .address-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        transform: translateY(100%);
    }

    .address-modal-overlay.active .address-modal {
        transform: translateY(0);
    }

    .address-modal-header {
        padding: 16px 20px;
    }

    .address-modal-header h3 {
        font-size: 16px;
    }

    .address-modal-body {
        padding: 20px;
    }

    .address-modal-footer {
        padding: 12px 20px;
        flex-direction: column-reverse;
    }

    .btn-cancel,
    .btn-save-address {
        width: 100%;
        padding: 14px;
    }
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */

.checkout-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

.checkout-container-main {
    padding: 20px 0 40px;
}

/* Progress Steps */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.progress-step.completed .step-icon,
.progress-step.active .step-icon {
    background: linear-gradient(135deg, #0d5c92 0%, #1e2a5a 100%);
    color: white;
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
}

.progress-step.completed .step-label,
.progress-step.active .step-label {
    color: #0d5c92;
}

.progress-line {
    width: 80px;
    height: 3px;
    background: #e9ecef;
    margin: 0 16px;
}

.progress-line.completed,
.progress-line.active {
    background: #0d5c92;
}

/* Checkout Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: flex-start;
}

.checkout-right {
    position: sticky;
    top: 90px;
}

/* Checkout Cards */
.checkout-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d5c92 0%, #1e2a5a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.btn-change {
    background: transparent;
    border: 1px solid #0d5c92;
    color: #0d5c92;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-change:hover {
    background: #0d5c92;
    color: white;
}

.card-body {
    padding: 24px;
}

/* Address Display */
.address-display {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0d5c92;
}

.address-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.address-details {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
}

/* Order Items List */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    padding: 4px;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-qty {
    font-size: 12px;
    color: #6c757d;
}

.item-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.payment-option:hover {
    border-color: #0d5c92;
    background: #f8f9fa;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option input[type="radio"]:checked ~ .option-content {
    color: #0d5c92;
}

.payment-option input[type="radio"]:checked ~ .option-check {
    color: #0d5c92;
}

.payment-option input[type="radio"]:checked + .option-content + .option-check,
.payment-option:has(input[type="radio"]:checked) {
    border-color: #0d5c92;
    background: #f0f3ff;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.option-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #495057;
}

.option-details {
    flex: 1;
}

.option-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.option-desc {
    font-size: 12px;
    color: #6c757d;
}

.option-check {
    font-size: 20px;
    color: #e9ecef;
}

.payment-security {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 13px;
    color: #2e7d32;
}

.payment-security i {
    font-size: 16px;
}

/* Price Summary */
.price-summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, #0d5c92 0%, #1e2a5a 100%);
    color: white;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-body {
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #495057;
}

.summary-divider {
    height: 1px;
    background: #e9ecef;
    margin: 16px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.summary-savings {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
}

.btn-pay-now {
    background: linear-gradient(135deg, #0d5c92 0%, #1e2a5a 100%);
    color: white;
    border: none;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 16px rgba(46, 60, 126, 0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.btn-pay-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(46, 60, 126, 0.45);
}

/* Trust Badges */
.trust-badges {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 13px;
    color: #495057;
}

.trust-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.trust-item i {
    color: #0d5c92;
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checkout-container-main .container {
        padding-bottom: 0;
    }
    .checkout-progress {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 0;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-label {
        font-size: 11px;
    }

    .progress-line {
        width: 40px;
        margin: 0 8px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .checkout-left {
        padding-bottom: 0;
    }

    /* Hide desktop price summary on mobile */
    .checkout-right {
        display: none !important;
    }

    /* Mobile Sticky Payment Bar */
    .checkout-mobile-bar {
        position: fixed;
        bottom: 60px;
        left: 0;
        width: 100%;
        background: white;
        padding: 10px 16px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        z-index: 999;
    }

    .mobile-total {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .total-label {
        font-size: 11px;
        font-weight: 600;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .total-value {
        font-size: 20px;
        font-weight: 800;
        color: #1a1a1a;
    }

    .btn-mobile-pay {
        background: linear-gradient(135deg, #0d5c92 0%, #1e2a5a 100%);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(46, 60, 126, 0.3);
        transition: all 0.2s ease;
    }

    .btn-mobile-pay:active {
        transform: scale(0.98);
    }

    .checkout-card {
        border-radius: 0;
        margin-bottom: 12px;
    }

    .card-header {
        padding: 16px;
    }

    .card-header h3 {
        font-size: 15px;
    }

    .card-body {
        padding: 16px;
    }

    .order-item {
        flex-direction: row;
        gap: 12px;
    }

    .order-item img {
        width: 50px;
        height: 50px;
    }

    .item-name {
        font-size: 13px;
    }

    .item-price {
        font-size: 14px;
    }

    .payment-option {
        padding: 12px;
    }

    .option-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
