/* User-Style.css - Mobile Town E-commerce Frontend Styles */
/* Extracted and organized from frontend demo files */

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HEADER STYLES ===== */
.main-header,
.header {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-name{
    font-size: 24px;
    font-weight: 700;
    color: #1a1f36;
    text-decoration: none;
}

.search-container {
    min-width: 200px;
    max-width: 600px;
    margin: 0 20px;
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 12px 20px;
    padding-right: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-bar:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #4a6cf7;
    border: none;
    border-radius: 6px;
    color: white;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #3451c9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    transition: color 0.3s ease;
}

.action-item:hover {
    color: #4a6cf7;
}

.action-icon {
    font-size: 23px;
    margin-bottom: 4px;
}

.cart-count {
    background: #4a6cf7;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: absolute;
    top: -9px;
    right: -15px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background-color: #4a5568;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.cart-wrapper {
    position: relative;
}

/* ===== PAGE HEADER STYLES ===== */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    color: #2d3748;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    color: #718096;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== HERO SLIDER STYLES ===== */
.hero-slider {
    margin-bottom: 50px;
    position: relative;
    height: auto;
    overflow: hidden;
}

.slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;
    max-width: 1500px;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    height: auto;
    display: block;
}

.dots {
    text-align: center;
    margin-top: 15px;
}

.hero-dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-dot.active {
    background-color: #4a6cf7;
}

/* Hide mobile slider by default */
#slider2 {
    display: none;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a6cf7, #3b5bdb);
    border-radius: 2px;
}

.categories-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.categories-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.category-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 0 0 200px;
    touch-action: manipulation;
    cursor: pointer;
}

.category-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 15px;
    text-align: center;
    height: 100%;
    cursor: pointer;
}

.category-card-link:hover .category-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.category-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.category-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #4a6cf7;
    padding: 3px;
}

.category-content {
    padding: 10px 5px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.category-offer {
    font-size: 13px;
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 12px;
}

.shop-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #4a6cf7;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s ease;
    cursor: pointer;
}

.category-card-link:hover .shop-btn {
    background: #3451c9;
    color: white;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #4a6cf7;
}



/* ===== PRODUCTS GRID ===== */

 .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }

        /* Mobile-first approach - minimum 2 products on small screens */
        @media (max-width: 576px) {
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
        }

        /* Medium screens - 3 products */
        @media (min-width: 577px) and (max-width: 768px) {
            .products-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
            }
        }

        /* Large screens - 4 products */
        @media (min-width: 769px) and (max-width: 1024px) {
            .products-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* Extra large screens - 5 products */
        @media (min-width: 1025px) {
            .products-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* Square image container with 1:1 aspect ratio */
        .product-image {
            position: relative;
            width: 100%;
            padding-bottom: 100%; /* This creates a 1:1 aspect ratio */
            overflow: hidden;
        }

        .product-image img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover; /* Ensures image fills the square without distortion */
        }

        .product-card {
           
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
        }

        .discount-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: #4a6cf7;
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            z-index: 1;
        }

        .product-info {
            padding: 20px;
        }

        .product-title {
            font-size: 16px;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 10px;
            line-height: 1.3;
            height: 2.6em; /* Fixed height for consistent layout */
            overflow: hidden;
            display: -webkit-box;
            /* -webkit-line-clamp: 2; */
            -webkit-box-orient: vertical;
        }

        .product-price {
            display: flex;
            align-items: center;
            margin-bottom: 5px;
        }

        .current-price {
            font-size: 18px;
            font-weight: 700;
            color: #1a1f36;
        }

        .original-price {
            font-size: 14px;
            color: #a0aec0;
            text-decoration: line-through;
            margin-left: 10px;
        }

        .discount-text {
            color: #4a6cf7;
            font-size: 12px;
            font-weight: 600;
        }

        /* Section title styling */
        .section-title {
            font-size: 25px;
            font-weight: 600;
            color: #2d3748;
            margin-top: 24px;
            margin-bottom: 30px;
        }


        /* Section title styling */
        .section-title {
            font-size: 25px;
            font-weight: 600;
            color: #2d3748;
            margin-top: 24px;
            margin-bottom: 30px;
        }

        /* Additional styles for other sections */
        .categories-section {
            padding: 40px 0;
        }

        .top-brands-section {
            padding: 40px 0;
            background-color: #f8f9fa;
        }

        .benefits {
            margin-top: 40px;
        }



/* ===== TOP BRANDS SECTION ===== */
.top-brands-section {
    margin: 50px 0;
    padding: 20px 0;
}

.brands-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #222;
    position: relative;
    padding-bottom: 15px;
}

.brands-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a6cf7, #3b5bdb);
    border-radius: 2px;
}

.brands-container {
    overflow: hidden;
    position: relative;
    padding: 15px 0;
}

.brands-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.brand-item {
    flex: 0 0 auto;
    margin: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brands-container:hover .brands-track {
    animation-play-state: paused;
}

/* ===== ASSURED CARDS ===== */
.assured-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    height: 100%;
    transition: transform .3s;
    border: 1px solid #f1f5f9;
}

.assured-card:hover {
    transform: translateY(-5px);
}

.assured-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: #f8fafc;
}

/* ===== FEATURES STRIP ===== */
.features {
    background: #0f172a;
    color: #fff;
}

.feat-item {
    border-right: 1px solid rgba(255,255,255,.1);
}

/* ===== DEAL BADGE ===== */
.deal-badge {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: #1a1f36;
    color: white;
    border-radius: 12px;
    padding: 40px 20px 20px;
    margin-top: 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #4a6cf7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #4a6cf7;
    transform: translateX(5px);
}

.footer-newsletter p {
    color: #a0aec0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    background: #2d3748;
    color: white;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #4a6cf7;
}

.newsletter-btn {
    background: #4a6cf7;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-btn:hover {
    background: #3451c9;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #4a6cf7;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: #a0aec0;
}

.footer-payment {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.payment-method {
    width: 50px;
    height: 30px;
    background: #2d3748;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
}

.footer-app {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.app-download {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2d3748;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: background 0.3s ease;
}

.app-download:hover {
    background: #4a6cf7;
}

.app-icon {
    font-size: 24px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (min-width: 768px) {
    .search-container {
        flex: 1;
    }
}

@media (max-width: 1024px) {
    .category-card {
        flex: 0 0 calc(25% - 20px);
    }
    
    .brand-logo {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .category-card {
        flex: 0 0 calc(33.333% - 20px);
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Show mobile slider and hide desktop slider */
    #slider1 {
        display: none;
    }

    #slider2 {
        display: block;
    }

    #slider2 .slide img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 15px;
    }
    
    .brand-logo {
        height: 40px;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 15px 0 0 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    /* Hide "Login" and "Cart" text on mobile */
    .action-item .login-text,
    .action-item .cart-text {
        display: none;
    }
    
    /* Keep customer name visible on mobile */
    .action-item .customer-name {
        display: inline !important;
        font-size: 11px;
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
    }
    
    /* Cart count badge always visible */
    .cart-count,
    .cart-badge {
        display: flex !important;
    }
    
    .action-item {
        font-size: 18px;
    }

    .main-header,
    .header {
        justify-content: space-between;
    }

    .brand {
        flex: 1;
        /* justify-content: center; */
        position: relative;
    }

    .hamburger {
        position: absolute;
        left: 0;
    }

    .header-actions {
        right: 20px;
    }

    .brand-name {
        font-size: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .category-card {
        flex: 0 0 calc(50% - 20px);
    }
    
    .category-title {
        font-size: 15px;
    }
    
    .category-image {
        width: 80px;
        height: 80px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    /* .products-grid {
        grid-template-columns: 1fr;
    } */
    
    .product-title {
        font-size: 16px;
    }
    
    .current-price {
        font-size: 18px;
    }
    
    .brand-logo {
        height: 30px;
        margin: 0 15px;
    }
    
    .brands-title {
        font-size: 24px;
    }
}

/* ===
== CHECKOUT PAGE STYLES ===== */
/* Mobile-First Responsive Design for Checkout & Buy Now Checkout */

.checkout-steps {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 1.5rem;
    position: relative;
    gap: 0.5rem;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
    display: none;
}

/* Tablet+ */
@media (min-width: 768px) {
    .checkout-steps {
        margin-bottom: 2.5rem;
    }
    
    .checkout-steps::before {
        display: block;
    }
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
   
    padding: 0 0.5rem;
}

/* Tablet+ */
@media (min-width: 768px) {
    .step {
        padding: 0 1.25rem;
    }
}

.step-number {
    width: 2.5rem; /* 35px mobile */
    height: 2.5rem;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.375rem;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    font-size: 0.8571rem; /* 12px mobile */
}

/* Tablet+ */
@media (min-width: 768px) {
    .step-number {
        width: 2.75rem; /* 44px tablet+ */
        height: 2.75rem;
        font-size: 1rem;
    }
}

.step-label {
    font-size: 0.7857rem; /* 11px mobile */
    color: #999;
    transition: all 0.3s ease;
    text-align: center;
}

/* Tablet+ */
@media (min-width: 768px) {
    .step-label {
        font-size: 0.875rem; /* 14px tablet+ */
    }
}

.step.active .step-number {
    background-color: #4361ee;
    color: white;
    border-color: #4361ee;
}

.step.active .step-label {
    color: #4361ee;
    font-weight: 600;
}

.step.completed .step-number {
    background-color: #4361ee;
    color: white;
    border-color: #4361ee;
}

.step.completed .step-label {
    color: #4361ee;
    font-weight: 600;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* Desktop */
@media (min-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr 400px;
        gap: 1.875rem;
    }
}

.checkout-form {
    background-color: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Tablet+ */
@media (min-width: 768px) {
    .checkout-form {
        padding: 1.875rem;
    }
}

.order-summary {
    background-color: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

/* Tablet+ */
@media (min-width: 768px) {
    .order-summary {
        padding: 1.875rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .order-summary {
        position: sticky;
        top: 1.25rem;
    }
}

.section-title {
    font-size: 1.1429rem; /* 16px mobile */
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #e9ecef;
    color: #212529;
}

/* Tablet+ */
@media (min-width: 768px) {
    .section-title {
        font-size: 1.25rem; /* 20px tablet+ */
        margin-bottom: 1.25rem;
    }
}

.form-section {
    margin-bottom: 1.5rem;
}

/* Tablet+ */
@media (min-width: 768px) {
    .form-section {
        margin-bottom: 1.875rem;
    }
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.25rem;
}

/* Tablet+ */
@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
        gap: 1.25rem;
    }
}

.form-col {
    flex: 1;
}

.checkout-form label,
.order-summary label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #212529;
    font-size: 0.8571rem; /* 12px mobile */
}

/* Tablet+ */
@media (min-width: 768px) {
    .checkout-form label,
    .order-summary label {
        font-size: 0.875rem; /* 14px tablet+ */
    }
}

.required::after {
    content: ' *';
    color: #f72585;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem; /* 14px mobile, 16px tablet+ */
    transition: all 0.3s ease;
    min-height: 2.75rem; /* 44px touch target */
}

.form-control:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    min-height: 2.75rem; /* 44px touch target */
}

.checkbox-group input {
    width: 1.25rem; /* 18px mobile */
    height: 1.25rem;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.pay-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Tablet+ */
@media (min-width: 768px) {
    .pay-methods {
        gap: 1rem;
    }
}

.pay-method {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 3.5rem; /* 56px touch target */
}

.pay-method:hover {
    border-color: #4361ee;
}

.pay-method.selected {
    border-color: #4361ee;
    background-color: rgba(67, 97, 238, 0.05);
}

.pay-method input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.payment-icon {
    width: 2.5rem; /* 35px mobile */
    height: 2.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 1rem;
}

/* Tablet+ */
@media (min-width: 768px) {
    .payment-icon {
        width: 2.75rem; /* 44px tablet+ */
        height: 2.75rem;
        font-size: 1.25rem;
    }
}

.payment-details {
    flex: 1;
}

.payment-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem; /* 14px mobile, 16px tablet+ */
}

.payment-desc {
    font-size: 0.8571rem; /* 12px mobile */
    color: #6c757d;
}

/* Tablet+ */
@media (min-width: 768px) {
    .payment-desc {
        font-size: 0.875rem; /* 14px tablet+ */
    }
}

.coupon-section {
    background-color: rgba(76, 201, 240, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

/* Tablet+ */
@media (min-width: 768px) {
    .coupon-section {
        padding: 1.25rem;
    }
}

.coupon-section h3 {
    font-size: 1rem; /* 14px mobile */
    margin-bottom: 0.75rem;
}

/* Tablet+ */
@media (min-width: 768px) {
    .coupon-section h3 {
        font-size: 1rem; /* 16px tablet+ */
    }
}

.coupon-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Tablet+ */
@media (min-width: 768px) {
    .coupon-input-group {
        flex-direction: row;
        gap: 0.625rem;
    }
}

.coupon-input {
    flex: 1;
}

.btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem; /* 14px mobile, 16px tablet+ */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem; /* 44px touch target */
    white-space: nowrap;
}

/* Tablet+ */
@media (min-width: 768px) {
    .btn {
        padding: 0.875rem 1.5rem;
    }
}

.btn-primary {
    background-color: #4361ee;
    color: white;
}

.btn-primary:hover {
    background-color: #3f37c9;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #4361ee;
    color: #4361ee;
}

.btn-outline:hover {
    background-color: #4361ee;
    color: white;
}

.btn-success {
    background-color: #4361ee;
    color: white;
}

.btn-success:hover {
    background-color: #3f37c9;
}

.btn-light {
    background-color: #e9ecef;
    color: #212529;
}

.order-items {
    margin-bottom: 1.25rem;
}

.order-item {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 4rem; /* 56px mobile */
    height: 4rem;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Tablet+ */
@media (min-width: 768px) {
    .item-image {
        width: 5rem; /* 80px tablet+ */
        height: 5rem;
    }
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    margin-bottom: 0.375rem;
    font-size: 1rem; /* 14px mobile, 16px tablet+ */
    line-height: 1.4;
}

.item-specs,
.item-variants {
    font-size: 0.8571rem; /* 12px mobile */
    color: #6c757d;
    margin-bottom: 0.375rem;
}

/* Tablet+ */
@media (min-width: 768px) {
    .item-specs,
    .item-variants {
        font-size: 0.875rem; /* 14px tablet+ */
    }
}

.item-price {
    font-weight: 600;
    color: #4361ee;
    font-size: 1rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.quantity-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.quantity-input {
    width: 2.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 0.375rem;
    font-size: 1rem;
}

.price-breakdown {
    margin-bottom: 1.25rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.8571rem; /* 12px mobile */
}

/* Tablet+ */
@media (min-width: 768px) {
    .price-row {
        font-size: 1rem; /* 16px tablet+ */
    }
}

.price-total {
    font-weight: 700;
    font-size: 1.1429rem; /* 16px mobile */
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

/* Tablet+ */
@media (min-width: 768px) {
    .price-total {
        font-size: 1.125rem; /* 18px tablet+ */
    }
}

.discount {
    color: #4361ee;
}

.security-badges {
    display: flex;
    justify-content: space-around;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e9ecef;
    gap: 0.5rem;
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.7143rem; /* 10px mobile */
    color: #6c757d;
    text-align: center;
}

/* Tablet+ */
@media (min-width: 768px) {
    .security-badge {
        font-size: 0.75rem; /* 12px tablet+ */
    }
}

.security-icon {
    width: 2.25rem; /* 32px mobile */
    height: 2.25rem;
    border-radius: 50%;
    background-color: rgba(76, 201, 240, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    font-size: 1rem;
}

/* Tablet+ */
@media (min-width: 768px) {
    .security-icon {
        width: 2.5rem; /* 40px tablet+ */
        height: 2.5rem;
        font-size: 1.125rem;
    }
}

.saved-addresses {
    margin-bottom: 1.25rem;
}

.address-option {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 3.5rem; /* 56px touch target */
}

.address-option:hover {
    border-color: #4361ee;
}

.address-option.selected {
    border-color: #4361ee;
    background-color: rgba(67, 97, 238, 0.05);
}

.address-option input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.address-details {
    flex: 1;
}

.address-type {
    font-weight: 600;
    margin-bottom: 0.375rem;
    font-size: 1rem; /* 14px mobile, 16px tablet+ */
}

.address-text {
    font-size: 0.8571rem; /* 12px mobile */
    color: #6c757d;
}

/* Tablet+ */
@media (min-width: 768px) {
    .address-text {
        font-size: 0.875rem; /* 14px tablet+ */
    }
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Tablet+ */
@media (min-width: 768px) {
    .form-actions {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 1.875rem;
    }
}

.coupon-applied {
    background-color: rgba(76, 201, 240, 0.1);
    border: 2px solid #4361ee;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon-code {
    font-weight: 600;
    color: #4361ee;
    font-size: 1rem;
}

.remove-coupon {
    color: #f72585;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    min-width: 2.75rem; /* 44px touch target */
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Touch improvements */
button, a, input[type="radio"], input[type="checkbox"], .pay-method, .address-option {
    touch-action: manipulation;
}
