  
body{
    background:#f5f7fb;
    overflow-x:hidden;
}

/* ==================STORES================== 
=======================================================*/



    :root {
        --amazon-orange: #f68b1e;
        --amazon-orange-hover: #e07a10;
        --amazon-orange-light: #fef3e8;
        --amazon-dark: #131921;
        --amazon-blue: #007185;
        --amazon-blue-hover: #005f73;
        --amazon-bg: #eaeded;
        --amazon-white: #ffffff;
        --amazon-border: #d5d9d9;
        --amazon-text: #0f1111;
        --amazon-text-secondary: #565959;
        --amazon-link: #007185;
        --amazon-link-hover: #c7511f;
        --amazon-error: #b12704;
        --amazon-success: #067d62;
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
        --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
        --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
        --radius: 8px;
        --radius-sm: 4px;
    }

    /* ---------- Hero Section ---------- */
    .store-hero {
        background: var(--amazon-dark);
        color: var(--amazon-white);
        padding: 48px 24px;
        position: relative;
        overflow: hidden;
        margin-top: -1rem;
    }

    .store-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(246,139,30,0.15) 0%, transparent 50%);
        pointer-events: none;
    }

    .hero-container {
        max-width: 1400px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 40px;
        align-items: center;
        position: relative;
        z-index: 1;
    }

    .hero-content {
        max-width: 700px;
    }

    .store-label {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--amazon-orange);
        margin-bottom: 16px;
        padding: 6px 14px;
        background: rgba(246,139,30,0.15);
        border-radius: 20px;
        border: 1px solid rgba(246,139,30,0.3);
    }

    .hero-content h1 {
        font-size: clamp(28px, 4vw, 42px);
        font-weight: 400;
        line-height: 1.2;
        margin: 0 0 16px;
        color: var(--amazon-white);
    }

    .hero-content h1 span {
        color: var(--amazon-orange);
        font-weight: 700;
    }

    .hero-content p {
        font-size: 16px;
        line-height: 1.6;
        color: #ccc;
        margin: 0;
        max-width: 540px;
    }

    .store-cart-box {
        background: var(--amazon-white);
        border-radius: var(--radius);
        padding: 24px;
        min-width: 220px;
        box-shadow: var(--shadow-lg);
    }

    .store-cart-box small {
        display: block;
        font-size: 12px;
        color: var(--amazon-text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    .store-cart-box h3 {
        font-size: 24px;
        font-weight: 700;
        color: var(--amazon-text);
        margin: 0 0 16px;
    }

    .cart-btn {
        display: block;
        width: 100%;
        padding: 12px;
        background: var(--amazon-orange);
        color: var(--amazon-white);
        text-align: center;
        text-decoration: none;
        font-size: 14px;
        font-weight: 700;
        border-radius: 20px;
        transition: background 0.2s;
    }

    .cart-btn:hover {
        background: var(--amazon-orange-hover);
    }

    /* ---------- Search Section ---------- */

    .search-section {
        background: var(--amazon-white);
        padding: 20px 24px;
        border-bottom: 1px solid var(--amazon-border);
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: var(--shadow-sm);
    }

    .search-container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .store-search {
        display: flex;
        max-width: 700px;
        margin: 0 auto;
    }

    .store-search input {
        flex: 1;
        padding: 12px 16px;
        border: 2px solid var(--amazon-border);
        border-right: none;
        border-radius: 8px 0 0 8px;
        font-size: 15px;
        color: var(--amazon-text);
        background: var(--amazon-white);
        transition: border-color 0.2s;
    }

    .store-search input:focus {
        outline: none;
        border-color: var(--amazon-orange);
    }

    .store-search button {
        padding: 12px 24px;
        background: var(--amazon-orange);
        color: var(--amazon-white);
        border: none;
        border-radius: 0 8px 8px 0;
        font-size: 18px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .store-search button:hover {
        background: var(--amazon-orange-hover);
    }

    /* ---------- Category Section ---------- */
    .category-section {
        background: var(--amazon-white);
        padding: 12px 24px;
        border-bottom: 1px solid var(--amazon-border);
    }

    .category-container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .category-slider {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .category-slider::-webkit-scrollbar {
        display: none;
    }

    .category-slider a {
        display: inline-flex;
        align-items: center;
        padding: 8px 18px;
        font-size: 13px;
        font-weight: 500;
        color: var(--amazon-text-secondary);
        text-decoration: none;
        border-radius: 20px;
        white-space: nowrap;
        transition: all 0.2s;
        border: 1px solid transparent;
    }

    .category-slider a:hover {
        color: var(--amazon-text);
        background: #f5f5f5;
    }

    .category-slider a.active {
        background: var(--amazon-orange-light);
        color: var(--amazon-orange);
        border-color: var(--amazon-orange);
        font-weight: 600;
    }

    /* ---------- Success Message ---------- */
    .message-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 16px 24px 0;
    }

    .success-message {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        color: var(--amazon-success);
        padding: 14px 20px;
        border-radius: var(--radius);
        font-size: 14px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .success-message::before {
        content: '✓';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        background: var(--amazon-success);
        color: white;
        border-radius: 50%;
        font-size: 12px;
        font-weight: 700;
    }

    /* ---------- Products Page ---------- */
    .products-page {
        max-width: 1400px;
        margin: 0 auto;
        padding: 24px;
        overflow: hidden;
        min-height: 0;
    }

    .products-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .products-header h2 {
        font-size: 20px;
        font-weight: 700;
        color: var(--amazon-text);
        margin: 0;
    }

    .results-count {
        font-size: 14px;
        color: var(--amazon-text-secondary);
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
        grid-auto-rows: min-content;
    }

    /* ---------- Product Card ---------- */
    .product-card {
        background: var(--amazon-white);
        border-radius: var(--radius);
        overflow: hidden;
        border: 1px solid var(--amazon-border);
        transition: all 0.2s;
        display: flex;
        flex-direction: column;
        min-width: 0;
        height: 100%;
    }

    .product-card:hover {
        box-shadow: var(--shadow-md);
        border-color: #c5c9c9;
        transform: translateY(-2px);
    }

    .product-image {
        width: 100%;
        aspect-ratio: 1;
        background: #f7f7f7;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
        min-height: 0;
        flex-shrink: 0;
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 20px;
        transition: transform 0.3s;
        max-width: 100%;
        max-height: 100%;
    }

    .product-card:hover .product-image img {
        transform: scale(1.05);
    }

    .product-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        background: var(--amazon-dark);
        color: var(--amazon-white);
        font-size: 11px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 4px;
        text-transform: uppercase;
    }

    .product-details {
        padding: 16px;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
        overflow: hidden;
    }

    .product-name {
        font-size: 15px;
        font-weight: 400;
        color: var(--amazon-text);
        margin: 0 0 8px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
            /* Standard property for compatibility */
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 42px;
        word-break: break-word;
        hyphens: auto;
    }

    .product-name:hover {
        color: var(--amazon-link-hover);
    }

    .product-description {
        font-size: 13px;
        color: var(--amazon-text-secondary);
        line-height: 1.5;
        margin: 0 0 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
            /* Standard property for compatibility */
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .product-rating {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 12px;
    }

    .stars {
        color: #ffa41c;
        font-size: 14px;
        letter-spacing: -2px;
    }

    .rating-count {
        font-size: 12px;
        color: var(--amazon-link);
    }

    .product-price {
        font-size: 20px;
        font-weight: 700;
        color: var(--amazon-error);
        margin: 0 0 4px;
    }

    .product-price .currency {
        font-size: 13px;
        vertical-align: top;
        position: relative;
        top: 2px;
    }

    .price-note {
        font-size: 12px;
        color: var(--amazon-text-secondary);
        margin-bottom: 14px;
    }

    .add-to-cart-form {
        margin-top: auto;
        flex-shrink: 0;
    }

    .add-to-cart-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: var(--amazon-orange);
        color: var(--amazon-white);
        border: none;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .add-to-cart-btn:hover {
        background: var(--amazon-orange-hover);
    }

    .add-to-cart-btn:active {
        transform: scale(0.98);
    }

    /* ---------- No Products State ---------- */
    .no-products {
        grid-column: 1 / -1;
        text-align: center;
        padding: 80px 20px;
        background: var(--amazon-white);
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
    }

    .no-products img {
        width: 120px;
        height: 120px;
        opacity: 0.4;
        margin-bottom: 24px;
    }

    .no-products p {
        font-size: 16px;
        color: var(--amazon-text-secondary);
        margin: 0;
    }

    /* ==========================================
       RESPONSIVE DESIGN
       ========================================== */

    @media (max-width: 1024px) {

        .hero-container {
            gap: 30px;
        }

        .products-grid {
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            margin-bottom: 80px;
        }
    }

    @media (max-width: 768px) {

         .store-hero{
            margin-top: -2rem;
        }
    }


    @media (max-width: 768px) {
        .store-hero {
            padding: 36px 20px;
        }

        .hero-container {
            grid-template-columns: 1fr;
            text-align: center;
        }

        .hero-content {
            max-width: 100%;
        }

        .hero-content p {
            margin: 0 auto;
        }

        .store-cart-box {
            max-width: 280px;
            margin: 0 auto;
            width: 100%;
        }

        .search-section {
            padding: 16px 20px;
        }

        .category-section {
            padding: 10px 20px;
        }

        .message-container {
            padding: 16px 20px 0;
        }

        .products-page {
            padding: 20px;
        }

        .products-grid {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px;
        }

        .product-image img {
            padding: 16px;
        }

        .product-details {
            padding: 14px;
        }

        .product-name {
            font-size: 14px;
        }

        .product-price {
            font-size: 18px;
        }
    }

    @media (max-width: 480px) {
        .store-hero {
            padding: 28px 16px;
        }

        .hero-content h1 {
            font-size: 24px;
        }

        .hero-content p {
            font-size: 14px;
        }

        .store-cart-box {
            padding: 20px;
        }

        .search-section {
            padding: 12px 16px;
        }

        .store-search input,
        .store-search button {
            padding: 10px 14px;
            font-size: 14px;
        }

        .category-slider a {
            padding: 6px 14px;
            font-size: 12px;
        }

        .message-container {
            padding: 12px 16px 0;
        }

        .products-page {
            padding: 16px;
        }

        .products-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
            margin-bottom: 16px;
        }

        .products-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .product-image {
            aspect-ratio: 1;
        }

        .product-image img {
            padding: 12px;
        }

        .product-details {
            padding: 12px;
        }

        .product-name {
            font-size: 13px;
            min-height: 36px;
        }

        .product-description {
            display: none;
        }

        .product-price {
            font-size: 16px;
        }

        .price-note {
            font-size: 11px;
        }

        .add-to-cart-btn {
            padding: 10px;
            font-size: 12px;
        }

        .no-products {
            padding: 60px 16px;
        }

        .no-products img {
            width: 80px;
            height: 80px;
        }
    }

    @media (max-width: 360px) {
        .products-grid {
            grid-template-columns: 1fr;
        }
    }


/* ======================================================
   ADDITIONAL STYLES FOR STORES.PHP
   Elements not covered in the original CSS
   ====================================================== */

/* ---------- Sort Form ---------- */
.sort-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
}

.sort-form select {
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--amazon-text);
    background: var(--amazon-white);
    border: 1px solid var(--amazon-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23565959' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sort-form select:hover {
    border-color: var(--amazon-orange);
}

.sort-form select:focus {
    outline: none;
    border-color: var(--amazon-orange);
    box-shadow: 0 0 0 3px rgba(246, 139, 30, 0.15);
}

/* ---------- No Image Placeholder ---------- */
.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    color: #ccc;
    font-size: 48px;
}

.no-image i {
    color: #ccc;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--amazon-text);
    text-decoration: none;
    background: var(--amazon-white);
    border: 1px solid var(--amazon-border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    cursor: pointer;
}

.page-link:hover {
    background: var(--amazon-orange-light);
    border-color: var(--amazon-orange);
    color: var(--amazon-orange);
}

.page-link.current {
    background: var(--amazon-orange);
    color: var(--amazon-white);
    border-color: var(--amazon-orange);
    font-weight: 700;
    cursor: default;
}

.page-link.disabled {
    color: #b5b5b5;
    background: #f5f5f5;
    border-color: #e0e0e0;
    cursor: not-allowed;
    pointer-events: none;
}

.page-link.prev,
.page-link.next {
    padding: 0 18px;
    font-weight: 600;
}

.page-link.dots {
    background: transparent;
    border-color: transparent;
    color: var(--amazon-text-secondary);
    cursor: default;
    pointer-events: none;
    min-width: 32px;
    padding: 0 4px;
}

.page-link.dots:hover {
    background: transparent;
    border-color: transparent;
    color: var(--amazon-text-secondary);
}

/* ---------- No Products State - Additional Elements ---------- */
.no-products h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--amazon-text);
    margin: 0 0 12px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--amazon-link);
    text-decoration: none;
    background: var(--amazon-white);
    border: 1px solid var(--amazon-border);
    border-radius: 20px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--amazon-orange-light);
    border-color: var(--amazon-orange);
    color: var(--amazon-orange);
}

/* ---------- Product Rating Stars (if used) ---------- */
.stars {
    color: #ffa41c;
    font-size: 14px;
    letter-spacing: -2px;
}

.rating-count {
    font-size: 12px;
    color: var(--amazon-link);
}

/* ---------- Product Badge ---------- */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--amazon-dark);
    color: var(--amazon-white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* ---------- Currency Symbol ---------- */
.product-price .currency {
    font-size: 13px;
    vertical-align: top;
    position: relative;
    top: 2px;
}

/* ---------- Font Awesome / Unicons Icon Support ---------- */
.fas,
.fab,
.far,
.uil {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* ---------- Smooth Scroll ---------- */
html {
    scroll-behavior: smooth;
}

/* ---------- Focus Visible for Accessibility ---------- */
*:focus-visible {
    outline: 2px solid var(--amazon-orange);
    outline-offset: 2px;
}

/* ---------- Sort Form in Search Container Layout ---------- */
.search-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.search-container .store-search {
    flex: 1;
    max-width: 700px;
    margin: 0;
}

.search-container .sort-form {
    margin-top: 0;
    flex-shrink: 0;
}

/* ======================================================
   RESPONSIVE DESIGN - ADDITIONAL ELEMENTS
   ====================================================== */

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container .store-search {
        max-width: 100%;
    }

    .search-container .sort-form {
        justify-content: center;
        margin-top: 12px;
    }

    .sort-form select {
        width: 100%;
        max-width: 280px;
    }

    .pagination {
        gap: 4px;
        margin-top: 28px;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .page-link.prev,
    .page-link.next {
        padding: 0 12px;
    }

    .no-products h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 3px;
        margin-top: 24px;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }

    .page-link.prev,
    .page-link.next {
        padding: 0 10px;
        font-size: 12px;
    }

    .sort-form select {
        padding: 8px 32px 8px 12px;
        font-size: 13px;
    }

    .no-products h2 {
        font-size: 18px;
    }

    .btn-secondary {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* ---------- Error Message ---------- */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b12704;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #b12704;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}
/* ==========================================
    CART PAGE
   ========================================== */

:root {
    --amazon-orange: #f68b1e;
    --amazon-orange-hover: #e07a10;
    --amazon-dark: #131921;
    --amazon-blue: #007185;
    --amazon-blue-hover: #005f73;
    --amazon-bg: #eaeded;
    --amazon-white: #ffffff;
    --amazon-border: #d5d9d9;
    --amazon-text: #0f1111;
    --amazon-text-secondary: #565959;
    --amazon-link: #007185;
    --amazon-link-hover: #c7511f;
    --amazon-success: #067d62;
    --amazon-error: #b12704;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 8px;
}

/* ---------- Base Page ---------- */
.cart-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px 40px;
    background: var(--amazon-bg);
    min-height: calc(100vh - 200px);
}

.cart-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--amazon-text);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--amazon-border);
}

/* ---------- Layout Grid ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

/* ---------- Cart Items Column ---------- */
.cart-items {
    background: var(--amazon-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 0;
    overflow: hidden;
}

.cart-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--amazon-border);
    transition: background 0.2s;
}

.cart-card:last-child {
    border-bottom: none;
}

.cart-card:hover {
    background: #fafafa;
}

.item-left {
    display: flex;
    gap: 16px;
    flex: 1;
}

.item-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: #f7f7f7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.placeholder-img {
    font-size: 40px;
    color: #ccc;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-info h3 {
    font-size: 16px;
    font-weight: 400;
    color: var(--amazon-text);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--amazon-error);
    margin-bottom: 6px;
}

.item-qty {
    font-size: 14px;
    color: var(--amazon-text-secondary);
    margin: 0;
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.remove-btn {
    color: var(--amazon-link);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.remove-btn:hover {
    color: var(--amazon-link-hover);
    background: #f7fafa;
}

/* ---------- Order Summary Sidebar ---------- */
.summary {
    background: var(--amazon-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    position: sticky;
    top: 20px;
}

.summary h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--amazon-text);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--amazon-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--amazon-text-secondary);
}

.summary-row span:last-child {
    color: var(--amazon-text);
    font-weight: 500;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin: 12px 0;
    border-top: 2px solid var(--amazon-border);
    border-bottom: 1px solid var(--amazon-border);
}

.summary-total span {
    font-size: 18px;
    font-weight: 700;
    color: var(--amazon-error);
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--amazon-orange);
    color: var(--amazon-white);
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 16px;
}

.checkout-btn:hover {
    background: var(--amazon-orange-hover);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-buttons a {
    font-size: 13px;
    text-decoration: none;
    color: var(--amazon-link);
    padding: 6px 0;
    transition: color 0.2s;
}

.action-buttons a:hover {
    color: var(--amazon-link-hover);
    text-decoration: underline;
}

.action-buttons .continue {
    font-weight: 500;
}

.action-buttons .clear {
    color: var(--amazon-error);
}

.action-buttons .home {
    color: var(--amazon-text-secondary);
}

/* ---------- Empty Cart ---------- */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: var(--amazon-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.empty-cart h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--amazon-text);
    margin: 24px 0 12px;
}

.empty-cart p {
    font-size: 14px;
    color: var(--amazon-text-secondary);
    max-width: 400px;
    margin: 0 auto 28px;
    line-height: 1.5;
}

.shop-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--amazon-orange);
    color: var(--amazon-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 20px;
    transition: background 0.2s;
}

.shop-btn:hover {
    background: var(--amazon-orange-hover);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr 260px;
        /* margin-bottom: 80px; */
    }
    
    .item-image {
        width: 100px;
        height: 100px;
    }
}

/* Tablet portrait: 768px and below */
@media (max-width: 768px) {
    .cart-page {
        padding: 16px;
        margin-bottom: 80px;
    }
    
    .cart-title {
        font-size: 24px;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .summary {
        position: static;
        order: -1;
        margin-bottom: 16px;
    }
    
    .cart-card {
        padding: 16px;
    }
    
    .item-image {
        width: 90px;
        height: 90px;
    }
    
    .item-info h3 {
        font-size: 15px;
    }
    
    .item-price {
        font-size: 16px;
    }
    
    .checkout-btn {
        padding: 14px;
        font-size: 16px;
    }
}

/* Mobile: 480px and below */
@media (max-width: 480px) {
    .cart-page {
        padding: 12px;
    }
    
    .cart-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .cart-card {
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }
    
    .item-left {
        width: 100%;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
    }
    
    .item-info h3 {
        font-size: 14px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .item-price {
        font-size: 15px;
    }
    
    .item-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }
    
    .remove-btn {
        font-size: 13px;
    }
    
    .summary {
        padding: 16px;
    }
    
    .summary h2 {
        font-size: 16px;
    }
    
    .summary-row,
    .summary-total {
        font-size: 13px;
    }
    
    .summary-total span {
        font-size: 16px;
    }
    
    .checkout-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 16px;
    }
    
    .action-buttons a {
        font-size: 12px;
        padding: 4px 0;
    }
    
    .empty-cart {
        padding: 60px 16px;
    }
    
    .empty-cart h2 {
        font-size: 20px;
    }
    
    .empty-cart p {
        font-size: 13px;
    }
    
    .shop-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Extra small: 360px and below */
@media (max-width: 360px) {
    .item-image {
        width: 70px;
        height: 70px;
    }
    
    .item-left {
        gap: 12px;
    }
}




    /* ==========================================
         CHECKOUT PAGE
       ========================================== */

    :root {
        --amazon-orange: #f68b1e;
        --amazon-orange-hover: #e07a10;
        --amazon-dark: #131921;
        --amazon-blue: #007185;
        --amazon-blue-hover: #005f73;
        --amazon-bg: #eaeded;
        --amazon-white: #ffffff;
        --amazon-border: #d5d9d9;
        --amazon-text: #0f1111;
        --amazon-text-secondary: #565959;
        --amazon-link: #007185;
        --amazon-link-hover: #c7511f;
        --amazon-error: #b12704;
        --amazon-success: #067d62;
        --amazon-input-bg: #f7fafa;
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
        --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
        --radius: 8px;
    }

    /* ---------- Page Layout ---------- */
    .checkout-page {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px 24px 40px;
        background: var(--amazon-bg);
        min-height: calc(100vh - 200px);
        margin-bottom: 80px;
    }

    .checkout-title {
        font-size: 28px;
        font-weight: 400;
        color: var(--amazon-text);
        margin: 0 0 20px 0;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--amazon-border);
    }

    /* ---------- Two-Column Layout ---------- */
    .checkout-layout {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 20px;
        align-items: start;
    }

    /* ---------- Left Column: Forms & Items ---------- */
    .checkout-main {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .checkout-section {
        background: var(--amazon-white);
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
        padding: 24px;
    }

    .section-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--amazon-border);
    }

    .section-number {
        width: 32px;
        height: 32px;
        background: var(--amazon-dark);
        color: var(--amazon-white);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 700;
        flex-shrink: 0;
    }

    .section-header h2 {
        font-size: 18px;
        font-weight: 700;
        color: var(--amazon-text);
        margin: 0;
    }

    /* ---------- Cart Items List ---------- */
    .checkout-items {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .checkout-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
        border-bottom: 1px solid #eee;
    }

    .checkout-item:last-child {
        border-bottom: none;
    }

    .item-details {
        display: flex;
        align-items: center;
        gap: 16px;
        flex: 1;
    }

    .item-number {
        width: 24px;
        height: 24px;
        background: var(--amazon-bg);
        color: var(--amazon-text-secondary);
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 600;
        flex-shrink: 0;
    }

    .item-name {
        font-size: 15px;
        color: var(--amazon-text);
        font-weight: 400;
        line-height: 1.4;
    }

    .item-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    .item-qty-badge {
        font-size: 13px;
        color: var(--amazon-text-secondary);
        background: var(--amazon-bg);
        padding: 4px 10px;
        border-radius: 12px;
    }

    .item-price {
        font-size: 16px;
        font-weight: 700;
        color: var(--amazon-error);
        min-width: 80px;
        text-align: right;
    }

    /* ---------- Form Styling ---------- */
    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .form-group.full-width {
        grid-column: 1 / -1;
    }

    .form-group label {
        font-size: 13px;
        font-weight: 600;
        color: var(--amazon-text);
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid var(--amazon-border);
        border-radius: 6px;
        font-size: 15px;
        color: var(--amazon-text);
        background: var(--amazon-input-bg);
        transition: all 0.2s;
        font-family: inherit;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--amazon-blue);
        background: var(--amazon-white);
        box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.1);
    }

    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }

    .required {
        color: var(--amazon-error);
    }

    /* ---------- Right Column: Order Summary ---------- */
    .checkout-summary {
        background: var(--amazon-white);
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
        padding: 24px;
        position: sticky;
        top: 20px;
    }

    .checkout-summary h2 {
        font-size: 18px;
        font-weight: 700;
        color: var(--amazon-text);
        margin: 0 0 20px 0;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--amazon-border);
    }

    .summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        font-size: 14px;
        color: var(--amazon-text-secondary);
    }

    .summary-row span:last-child {
        color: var(--amazon-text);
        font-weight: 500;
    }

    .summary-divider {
        height: 1px;
        background: var(--amazon-border);
        margin: 12px 0;
    }

    .summary-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        border-top: 2px solid var(--amazon-border);
        margin-top: 4px;
    }

    .summary-total span {
        font-size: 18px;
        font-weight: 700;
        color: var(--amazon-error);
    }

    .place-order-btn {
        display: block;
        width: 100%;
        padding: 14px;
        background: var(--amazon-orange);
        color: var(--amazon-white);
        text-align: center;
        text-decoration: none;
        font-size: 15px;
        font-weight: 700;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        transition: background 0.2s;
        margin: 20px 0 16px;
    }

    .place-order-btn:hover {
        background: var(--amazon-orange-hover);
    }

    .secure-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 12px;
        color: var(--amazon-text-secondary);
        margin-bottom: 16px;
    }

    .secure-badge svg {
        width: 16px;
        height: 16px;
        color: var(--amazon-success);
    }

    .checkout-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 16px;
        border-top: 1px solid var(--amazon-border);
    }

    .checkout-actions a {
        font-size: 13px;
        text-decoration: none;
        color: var(--amazon-link);
        padding: 6px 0;
        transition: color 0.2s;
        text-align: center;
    }

    .checkout-actions a:hover {
        color: var(--amazon-link-hover);
        text-decoration: underline;
    }

    /* ---------- Empty Cart State ---------- */
    .empty-checkout {
        text-align: center;
        padding: 80px 20px;
        background: var(--amazon-white);
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
        max-width: 500px;
        margin: 0 auto;
    }

    .empty-checkout svg {
        margin-bottom: 24px;
    }

    .empty-checkout h2 {
        font-size: 24px;
        font-weight: 400;
        color: var(--amazon-text);
        margin: 0 0 12px;
    }

    .empty-checkout p {
        font-size: 14px;
        color: var(--amazon-text-secondary);
        margin: 0 0 28px;
        line-height: 1.5;
    }

    .shop-link {
        display: inline-block;
        padding: 12px 32px;
        background: var(--amazon-orange);
        color: var(--amazon-white);
        text-decoration: none;
        font-size: 15px;
        font-weight: 700;
        border-radius: 20px;
        transition: background 0.2s;
    }

    .shop-link:hover {
        background: var(--amazon-orange-hover);
    }

    /* ==========================================
       RESPONSIVE DESIGN
       ========================================== */

    @media (max-width: 1024px) {
        .checkout-layout {
            grid-template-columns: 1fr 340px;
        }
    }

    @media (max-width: 768px) {
        .checkout-page {
            padding: 16px;
            margin-bottom: 80px;
        }

        .checkout-title {
            font-size: 24px;
        }

        .checkout-layout {
            grid-template-columns: 1fr;
        }

        .checkout-summary {
            position: static;
            order: -1;
            margin-bottom: 16px;
        }

        .checkout-section {
            padding: 20px;
        }

        .form-grid {
            grid-template-columns: 1fr;
        }

        .item-details {
            gap: 12px;
        }

        .item-name {
            font-size: 14px;
        }

        .item-price {
            font-size: 15px;
        }
    }

    @media (max-width: 480px) {
        .checkout-page {
            padding: 12px;
        }

        .checkout-title {
            font-size: 20px;
            margin-bottom: 16px;
        }

        .checkout-section {
            padding: 16px;
        }

        .section-header {
            margin-bottom: 16px;
            padding-bottom: 12px;
        }

        .section-header h2 {
            font-size: 16px;
        }

        .checkout-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
            padding: 14px 0;
        }

        .item-meta {
            width: 100%;
            justify-content: space-between;
        }

        .item-price {
            text-align: left;
        }

        .form-group input,
        .form-group textarea {
            padding: 12px;
            font-size: 16px; /* Prevents iOS zoom on focus */
        }

        .place-order-btn {
            padding: 16px;
            font-size: 16px;
        }

        .checkout-summary {
            padding: 20px;
        }

        .checkout-summary h2 {
            font-size: 16px;
        }

        .summary-row {
            font-size: 13px;
        }

        .summary-total span {
            font-size: 16px;
        }

        .empty-checkout {
            padding: 60px 16px;
        }

        .empty-checkout h2 {
            font-size: 20px;
        }
    }


















    