body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.login-page,
body.signup-page {
    display: block;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    background: #ff0000;
    padding: 8px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
}

header h1 {
    margin: 0;
    font-size: 18px;
}

@media (min-width: 480px) {
    header {
        padding: 1rem 2rem;
    }

    .logo-container {
        gap: 15px;
    }

    .logo {
        padding: 10px;
        font-size: 16px;
    }

    header h1 {
        font-size: 28px;
    }
}

.header-nav {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.header-nav a {
    background: #41586e;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
}

@media (min-width: 480px) {
    .header-nav {
        gap: 10px;
    }

    .header-nav a {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.header-nav .login-btn {
    background: #2c3e50;
}

.header-nav a:hover {
    background: #222e3a;
}

.header-nav .profile-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    background: #2980b9;
}

.header-nav .profile-btn:hover {
    background: #145179;
}

.container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sidebar {
    width: 100%;
    background-color: #ecf0f1;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid #bdc3c7;
    order: -1;
}

@media (min-width: 769px) {
    .container {
        flex-direction: row;
    }

    .sidebar {
        width: 200px;
        border-right: 1px solid #bdc3c7;
        border-bottom: none;
        order: 0;
    }
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    font-size: 13px;
}

.sidebar a:hover {
    background-color: #bdc3c7;
    padding: 5px 10px;
    border-radius: 4px;
}

@media (min-width: 480px) {
    .sidebar li {
        margin-bottom: 15px;
    }

    .sidebar a {
        font-size: 14px;
    }
}

main {
    flex: 1;
    padding: 12px;
}

@media (min-width: 480px) {
    main {
        padding: 20px;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 480px) {
    .product-card {
        padding: 12px;
    }
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
    padding: 10px 0 0;
}

.product-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    margin: 8px 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 480px) {
    .product-price {
        font-size: 24px;
    }
}

.product-card h3 {
    color: #2c3e50;
    font-size: 14px;
    margin: 8px 0;
}

@media (min-width: 480px) {
    .product-card h3 {
        font-size: 18px;
        margin: 12px 0 8px;
    }
}

.contact-form-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    width: 100%;
    flex-direction: column;
}

.contact-form-group label {
    width: 100%;
    text-align: left;
    margin-right: 0;
    margin-bottom: 5px;
    flex-shrink: 0;
    padding-top: 0;
    font-size: 13px;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 10px;
    margin: 0;
    font-size: 16px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin: 5px auto 0;
    font-size: 16px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
}

button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    min-height: 44px;
    min-width: 44px;
}

@media (min-width: 480px) {
    .contact-form-group {
        flex-direction: row;
    }

    .contact-form-group label {
        width: 80px;
        margin-right: 10px;
        margin-bottom: 0;
        padding-top: 8px;
        font-size: 14px;
    }

    .contact-form-group input,
    .contact-form-group textarea {
        width: 250px;
        padding: 8px;
        font-size: 14px;
    }

    input, textarea {
        width: 250px;
        padding: 8px;
        font-size: 14px;
    }

    button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
}

body.login-page,
body.signup-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.simple-login-container,
.simple-signup-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.simple-login-card,
.simple-signup-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.simple-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.simple-logo {
    background: #ff0000;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
}

.simple-brand {
    color: #2c3e50;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.simple-heading {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 30px 0;
    text-align: center;
}

.simple-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 15px;
    border: 1px solid #BDC3C7;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    border-color: #27ae60;
}

.simple-button {
    width: 100%;
    padding: 15px;
    background-color: #27ae60;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.simple-button:hover {
    background-color: #219150;
}

.forgot-password {
    text-align: center;
    color: #27ae60;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    display: block;
}

.forgot-password:hover {
    text-decoration: underline;
}

.simple-link {
    text-align: center;
    margin-top: 20px;
    color: #7F8C8D;
    font-size: 14px;
}

.simple-link a {
    color: #27ae60;
    text-decoration: none;
}

.simple-link a:hover {
    text-decoration: underline;
}

.profile-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #ecf0f1;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #27ae60;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.profile-name {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.profile-details {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ecf0f1;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 16px;
    color: #7F8C8D;
    font-weight: 600;
    min-width: 150px;
}

.detail-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

.back-home-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.back-home-btn:hover {
    background-color: #2980b9;
}

.back-home-btn:active {
    transform: scale(0.98);
}

.catalog-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 25px;
margin-top: 20px;
}

.catalog-card {
border: 1px solid #ddd;
padding: 12px;
text-align: center;
border-radius: 8px;
background: white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s, box-shadow 0.3s;
display: flex;
flex-direction: column;
height: 100%;
}

.catalog-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.catalog-image {
padding: 10px 0;
min-height: 150px;
display: flex;
align-items: center;
justify-content: center;
}

.catalog-image img {
max-width: 100%;
height: auto;
}

.catalog-card h3 {
color: #2c3e50;
font-size: 18px;
margin: 12px 0 8px;
}

.catalog-price {
font-size: 24px;
font-weight: bold;
color: #27ae60;
margin: 8px 0;
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
}

.catalog-description {
color: #7F8C8D;
font-size: 14px;
margin: 10px 0;
line-height: 1.4;
}

.add-to-cart-btn {
background: #27ae60;
color: white;
border: none;
padding: 12px 24px;
cursor: pointer;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
width: 100%;
margin-top: auto;
transition: background 0.3s;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
}

.add-to-cart-btn:hover {
background: #219150;
}

.filter-section {
background: white;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-section h3 {
margin: 0 0 15px 0;
color: #2c3e50;
}

.filter-buttons {
display: flex;
gap: 10px;
flex-wrap: wrap;
}

.filter-btn {
background: #ecf0f1;
color: #2c3e50;
border: none;
padding: 8px 16px;
cursor: pointer;
border-radius: 6px;
font-size: 14px;
transition: background 0.3s, color 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
background: #27ae60;
color: white;
}
.receipt-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
}

.receipt-header {
    text-align: center;
    margin-bottom: 30px;
}

.receipt-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.receipt-status {
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 6px;
    display: inline-block;
}

.receipt-status.success {
    background: #d4edda;
    color: #155724;
}

.receipt-content {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.e-receipt {
    padding: 40px;
    background: white;
}

.receipt-top {
    text-align: center;
    margin-bottom: 20px;
}

.receipt-logo {
    background: #ff0000;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    margin: 0 auto 10px;
}

.receipt-top h3 {
    margin: 10px 0;
    font-size: 28px;
    color: #2c3e50;
}

.receipt-tagline {
    color: #7F8C8D;
    font-size: 14px;
    margin: 5px 0;
}

.receipt-divider {
    border: none;
    border-top: 2px dashed #bdc3c7;
    margin: 20px 0;
}

.receipt-section {
    margin-bottom: 20px;
}

.receipt-section h4 {
    color: #2c3e50;
    font-size: 16px;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 10px;
}

.receipt-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 5px 0;
}

.detail-row span:first-child {
    color: #7F8C8D;
    font-weight: 500;
}

.detail-value {
    color: #2c3e50;
    font-weight: bold;
}

.status-completed {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.receipt-items {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.receipt-items thead {
    background: #ecf0f1;
}

.receipt-items th {
    padding: 12px;
    text-align: left;
    color: #2c3e50;
    font-weight: bold;
    border-bottom: 2px solid #bdc3c7;
}

.receipt-items td {
    padding: 10px 12px;
    border-bottom: 1px solid #ecf0f1;
    color: #2c3e50;
}

.receipt-items tbody tr:last-child td {
    border-bottom: none;
}

.receipt-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
}

.summary-row span:first-child {
    color: #7F8C8D;
    font-weight: 500;
}

.summary-row span:last-child {
    color: #2c3e50;
    font-weight: bold;
}

.summary-row.total {
    border-top: 2px solid #bdc3c7;
    padding-top: 12px;
    margin-top: 12px;
    font-size: 16px;
}

.summary-row.total span:last-child {
    color: #27ae60;
    font-size: 18px;
}

.receipt-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #bdc3c7;
}

.receipt-footer p {
    margin: 8px 0;
    color: #2c3e50;
    font-size: 14px;
}

.receipt-footer p:first-child {
    font-weight: bold;
    font-size: 16px;
}

.receipt-footer-note {
    color: #7F8C8D;
    font-size: 12px;
}

.receipt-footer-contact {
    color: #7F8C8D;
    font-size: 12px;
    margin-top: 10px;
}

.receipt-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 30px 40px;
    background: #f9f9f9;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #27ae60;
    color: white;
}

.btn-primary:hover {
    background: #219150;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.btn-secondary:hover {
    background: #bdc3c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media print {
    body {
        background: white;
    }
    
    header,
    .sidebar,
    footer,
    .receipt-actions,
    .receipt-header {
        display: none;
    }
    
    .container {
        display: block;
    }
    
    main {
        padding: 0;
    }
    
    .receipt-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .e-receipt {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}

.payment-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.payment-container h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.checkout-form,
.checkout-items {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.checkout-section {
    padding: 25px;
    border-bottom: 1px solid #ecf0f1;
}

.checkout-section:last-child {
    border-bottom: none;
}

.checkout-section h3 {
    color: #2c3e50;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #27ae60;
}

.checkout-items h3 {
    color: #2c3e50;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding: 25px 25px 10px;
    border-bottom: 1px solid #ecf0f1;
}

.order-summary {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #2c3e50;
    font-size: 14px;
}

.summary-item.total {
    border-top: 2px solid #bdc3c7;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #27ae60;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.delivery-option:hover {
    border-color: #27ae60;
    background: #f9f9f9;
}

.delivery-option input[type="radio"] {
    margin-top: 5px;
    margin-right: 15px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.delivery-option input[type="radio"]:checked + .delivery-info {
    font-weight: bold;
}

.delivery-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.delivery-name {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 5px;
}

.delivery-time {
    color: #7F8C8D;
    font-size: 13px;
    margin-bottom: 8px;
}

.delivery-price {
    color: #27ae60;
    font-weight: bold;
    font-size: 14px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: #27ae60;
    background: #f9f9f9;
}

.payment-method input[type="radio"] {
    margin-top: 3px;
    margin-right: 15px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.payment-info {
    display: flex;
    flex-direction: column;
}

.payment-name {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 5px;
}

.payment-desc {
    color: #7F8C8D;
    font-size: 13px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

.terms-checkbox span {
    color: #2c3e50;
    font-size: 14px;
}

.terms-checkbox a {
    color: #27ae60;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.cart-items-list {
    padding: 25px;
    background: #f9f9f9;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #ecf0f1;
}

.cart-item:last-child {
    margin-bottom: 0;
}

.item-details h4 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.item-quantity {
    color: #7F8C8D;
    font-size: 12px;
    margin: 0;
}

.item-price {
    color: #27ae60;
    font-weight: bold;
    font-size: 16px;
}

.checkout-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.checkout-grid {
    grid-template-columns: 1fr;
}

.form-row {
    grid-template-columns: 1fr;
}

.checkout-actions {
    justify-content: center;
}

.checkout-actions button {
    flex: 1;
    max-width: 200px;
}

@media (min-width: 769px) {
    .checkout-grid {
        grid-template-columns: 2fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .checkout-actions {
        justify-content: flex-end;
    }

    .checkout-actions button {
        flex: 0 1 auto;
        max-width: 100%;
    }
}

.cart-page {
    max-width: 1200px;
    margin: 12px auto;
    padding: 12px;
}

.cart-page h2 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
}

@media (min-width: 480px) {
    .cart-page {
        margin: 20px auto;
        padding: 20px;
    }

    .cart-page h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 769px) {
    .cart-content {
        grid-template-columns: 1fr 350px;
    }
}

.cart-items-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: grid;
    grid-template-columns: 50px 1fr 40px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
}

@media (min-width: 480px) {
    .cart-item {
        grid-template-columns: 60px 1fr 50px;
        gap: 15px;
        padding: 15px;
    }
}

@media (min-width: 769px) {
    .cart-item {
        grid-template-columns: 80px 1fr 100px 100px 40px;
        gap: 20px;
        padding: 20px;
    }
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 50px;
}

.item-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

@media (min-width: 480px) {
    .item-image {
        height: 60px;
    }

    .item-image img {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 769px) {
    .item-image {
        height: 80px;
    }

    .item-image img {
        width: 80px;
        height: 80px;
    }
}

.item-info h4 {
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-size: 13px;
}

@media (min-width: 769px) {
    .item-info h4 {
        margin: 0 0 8px 0;
        font-size: 16px;
    }
}

.item-price {
    color: #27ae60;
    font-weight: bold;
    font-size: 13px;
    margin: 3px 0;
}

@media (min-width: 769px) {
    .item-price {
        font-size: 16px;
        margin: 5px 0;
    }
}

.item-description {
    color: #7F8C8D;
    font-size: 11px;
    margin: 3px 0;
}

@media (min-width: 769px) {
    .item-description {
        font-size: 12px;
        margin: 5px 0;
    }
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #bdc3c7;
    background: white;
    color: #2c3e50;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    padding: 3px;
}

.qty-btn:hover {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.qty-input {
    width: 28px;
    height: 28px;
    text-align: center;
    border: 1px solid #bdc3c7;
    padding: 3px;
    border-radius: 4px;
    font-weight: bold;
}

@media (min-width: 769px) {
    .qty-btn {
        width: 30px;
        height: 30px;
        padding: 5px;
    }

    .qty-input {
        width: 40px;
        height: auto;
        padding: 5px;
    }
}

.item-total {
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
}

.item-total p {
    margin: 0;
}

.remove-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.empty-cart-message {
    padding: 60px 20px;
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-cart-message p {
    color: #7F8C8D;
    font-size: 18px;
    margin-bottom: 20px;
}

.cart-summary {
    background: white;
    border-radius: 8px;
    padding: 15px;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: static;
}

@media (min-width: 480px) {
    .cart-summary {
        padding: 20px;
    }
}

@media (min-width: 769px) {
    .cart-summary {
        padding: 25px;
        position: sticky;
        top: 20px;
    }
}

.cart-summary h3 {
    color: #2c3e50;
    font-size: 16px;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 10px;
}

@media (min-width: 769px) {
    .cart-summary h3 {
        font-size: 18px;
        margin: 0 0 20px 0;
    }
}

.summary-box {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #2c3e50;
    font-size: 14px;
}

.summary-row span:first-child {
    color: #7F8C8D;
}

.summary-row.total {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #ecf0f1;
}

.summary-box hr {
    border: none;
    border-top: 1px solid #ecf0f1;
    margin: 15px 0;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-full {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #41586e;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: all 0.3s;
}

.cart-btn:hover {
    background: #222e3a;
}

.cart-icon {
    font-size: 18px;
}

.cart-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.logout-btn:hover {
    background: #c0392b;
}
