* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Products Section */
.products-section {
    padding: 3rem 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #e5e7eb;
    background-color: white;
    color: #4b5563;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.color-indicator {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.125rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: 2rem;
    padding: 2rem;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #1a1a1a;
}

.modal-body {
    display: flex;
    gap: 2rem;
}

.modal-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-details {
    flex: 1;
}

.modal-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.modal-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.color-selector {
    margin-bottom: 1.5rem;
}

.color-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.color-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #2563eb;
}

.color-option-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    color: #6b7280;
}

.quantity-selector {
    margin-bottom: 1.5rem;
}

.quantity-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background-color: white;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
}

.qty-btn:hover {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.qty-input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #1e40af;
}

/* Cart Page */
.cart-section,
.checkout-section,
.admin-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-color {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.remove-btn {
    padding: 0.5rem 1rem;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.remove-btn:hover {
    background-color: #dc2626;
}

.cart-summary {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
    margin-top: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.checkout-btn:hover {
    background-color: #1e40af;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.continue-shopping-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.continue-shopping-btn:hover {
    background-color: #1e40af;
}

/* Checkout Page */
.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.checkout-form-container,
.order-summary-container {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
}

.payment-info {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.payment-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.payment-instructions {
    line-height: 1.8;
    color: #374151;
}

.screenshot-preview {
    margin-top: 1rem;
}

.screenshot-preview img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-order-btn {
    padding: 1rem;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-order-btn:hover {
    background-color: #059669;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.order-item-details {
    font-size: 0.875rem;
    color: #6b7280;
}

.order-item-price {
    font-weight: 700;
    color: #2563eb;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

.success-modal-content {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.success-modal-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.success-modal-content p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Admin Page */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.orders-header,
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.orders-header h3,
.products-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.filter-status select {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.add-product-btn {
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-product-btn:hover {
    background-color: #1e40af;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.order-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-id {
    font-weight: 700;
    color: #2563eb;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.order-status.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.order-status.confirmed {
    background-color: #dbeafe;
    color: #1e40af;
}

.order-status.shipped {
    background-color: #e0e7ff;
    color: #3730a3;
}

.order-status.delivered {
    background-color: #d1fae5;
    color: #065f46;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.order-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: right;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-details-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.order-details-section:last-child {
    border-bottom: none;
}

.order-details-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.order-details-section p {
    color: #6b7280;
    line-height: 1.6;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-screenshot {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-update {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.status-update select {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.update-status-btn {
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.update-status-btn:hover {
    background-color: #1e40af;
}

.admin-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.admin-product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.admin-product-info {
    padding: 1.5rem;
}

.admin-product-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.admin-product-stock {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.admin-product-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-btn,
.delete-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.edit-btn {
    background-color: #2563eb;
    color: white;
}

.edit-btn:hover {
    background-color: #1e40af;
}

.delete-btn {
    background-color: #ef4444;
    color: white;
}

.delete-btn:hover {
    background-color: #dc2626;
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.color-options-section {
    padding: 1rem;
    background-color: #f3f4f6;
    border-radius: 8px;
}

.color-options-section h4 {
    margin-bottom: 1rem;
}

.colors-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.color-input-group {
    display: grid;
    grid-template-columns: 1fr 100px 100px 40px;
    gap: 0.5rem;
    align-items: center;
}

.color-input-group input {
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
}

.remove-color-btn {
    width: 40px;
    height: 40px;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background-color 0.3s;
}

.remove-color-btn:hover {
    background-color: #dc2626;
}

.add-color-btn {
    padding: 0.5rem 1rem;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-color-btn:hover {
    background-color: #059669;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.submit-btn,
.cancel-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn {
    background-color: #2563eb;
    color: white;
}

.submit-btn:hover {
    background-color: #1e40af;
}

.cancel-btn {
    background-color: #e5e7eb;
    color: #374151;
}

.cancel-btn:hover {
    background-color: #d1d5db;
}

/* Image Preview Styles for Admin Product Form */
.image-preview {
    margin-top: 0.75rem;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f9fafb;
}

.form-group input[type="file"]:hover {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Header */
    .header-content {
        flex-wrap: wrap;
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav {
        gap: 0.75rem;
        font-size: 0.875rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    /* Hero */
    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Products Section */
    .products-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }

    .products-grid,
    .admin-products-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.125rem;
    }

    /* Modal - Full screen on mobile */
    .modal {
        padding: 0;
        align-items: flex-start;
    }

    .modal-content {
        margin: 0;
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        padding: 1rem;
    }

    .close {
        right: 1rem;
        top: 1rem;
        font-size: 1.75rem;
        background-color: white;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        z-index: 10;
    }

    .modal-body {
        flex-direction: column;
        gap: 1.5rem;
    }

    .modal-image {
        width: 100%;
        height: 250px;
    }

    .modal-name {
        font-size: 1.5rem;
    }

    .modal-price {
        font-size: 1.25rem;
    }

    .modal-description {
        font-size: 0.875rem;
    }

    .color-option {
        width: 45px;
        height: 45px;
    }

    .color-option-label {
        font-size: 0.7rem;
    }

    .qty-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .qty-input {
        width: 60px;
        height: 35px;
    }

    .add-to-cart-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }

    /* Cart Page */
    .cart-section,
    .checkout-section,
    .admin-section {
        padding: 2rem 0;
    }

    .page-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .cart-content,
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-summary,
    .order-summary-container {
        position: static;
    }

    .cart-item {
        flex-direction: column;
        padding: 1rem;
    }

    .cart-item-image {
        width: 100%;
        height: 180px;
    }

    .cart-item-name {
        font-size: 1rem;
    }

    .cart-item-price {
        font-size: 1rem;
    }

    .cart-item-actions {
        flex-direction: column;
        width: 100%;
    }

    .quantity-controls {
        width: 100%;
        justify-content: center;
    }

    .remove-btn {
        width: 100%;
    }

    .cart-summary {
        padding: 1.5rem;
    }

    .summary-title {
        font-size: 1.25rem;
    }

    .summary-row {
        font-size: 0.875rem;
    }

    .summary-row.total {
        font-size: 1.125rem;
    }

    .checkout-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }

    /* Checkout Page */
    .checkout-form-container,
    .order-summary-container {
        padding: 1.5rem;
    }

    .form-title {
        font-size: 1.25rem;
    }

    .checkout-form {
        gap: 1rem;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    .payment-info {
        padding: 1rem;
    }

    .payment-title {
        font-size: 0.875rem;
    }

    .payment-instructions {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .submit-order-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }

    .order-items {
        gap: 0.75rem;
    }

    .order-item {
        flex-direction: column;
        gap: 0.5rem;
        padding-bottom: 0.75rem;
    }

    .order-item-name {
        font-size: 0.875rem;
    }

    .order-item-details {
        font-size: 0.8rem;
    }

    .order-item-price {
        font-size: 0.875rem;
    }

    .summary-total {
        font-size: 1.125rem;
    }

    /* Success Modal */
    .success-modal-content {
        padding: 2rem 1rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .success-modal-content h2 {
        font-size: 1.5rem;
    }

    .success-modal-content p {
        font-size: 0.875rem;
    }

    .continue-shopping-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    /* Admin Page */
    .admin-tabs {
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .orders-header,
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .orders-header h3,
    .products-header h3 {
        font-size: 1.25rem;
    }

    .filter-status select {
        width: 100%;
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    .add-product-btn {
        width: 100%;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .order-card {
        padding: 1rem;
    }

    .order-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .order-id {
        font-size: 0.875rem;
    }

    .order-status {
        font-size: 0.75rem;
    }

    .order-info {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        font-size: 0.8rem;
    }

    .order-total {
        font-size: 1rem;
    }

    /* Order Details Modal */
    .order-details {
        gap: 1rem;
    }

    .order-details-section {
        padding-bottom: 1rem;
    }

    .order-details-section h3 {
        font-size: 1rem;
    }

    .order-details-section p {
        font-size: 0.875rem;
    }

    .payment-screenshot {
        max-width: 100%;
    }

    .status-update {
        flex-direction: column;
    }

    .status-update select {
        width: 100%;
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    .update-status-btn {
        width: 100%;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    /* Admin Products */
    .admin-product-image {
        height: 150px;
    }

    .admin-product-info {
        padding: 1rem;
    }

    .admin-product-name {
        font-size: 0.875rem;
    }

    .admin-product-price {
        font-size: 1rem;
    }

    .admin-product-stock {
        font-size: 0.8rem;
    }

    .admin-product-actions {
        flex-direction: column;
    }

    .edit-btn,
    .delete-btn {
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    /* Product Form Modal */
    .product-form {
        gap: 1rem;
    }

    .form-row,
    .color-input-group {
        grid-template-columns: 1fr;
    }

    .color-input-group {
        grid-template-columns: 1fr 80px 80px 35px;
        gap: 0.25rem;
    }

    .color-input-group input {
        padding: 0.4rem;
        font-size: 0.875rem;
    }

    .remove-color-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .add-color-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .submit-btn,
    .cancel-btn {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .image-preview img {
        max-width: 100%;
        max-height: 150px;
    }

    .checkbox-label {
        font-size: 0.875rem;
    }

    .color-options-section {
        padding: 0.75rem;
    }

    .color-options-section h4 {
        font-size: 0.875rem;
    }

    .empty-cart {
        padding: 3rem 1rem;
    }

    .empty-cart p {
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .logo {
        font-size: 1.125rem;
    }

    .nav {
        width: 100%;
        justify-content: space-around;
        margin-top: 0.5rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .products-grid,
    .admin-products-list {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 0.75rem;
    }

    .color-input-group {
        grid-template-columns: 1fr;
    }

    .color-input-group input {
        width: 100%;
    }

    .remove-color-btn {
        width: 100%;
        height: 35px;
    }
}