/* Import the same font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    line-height: 1.6;
    color: #374151;
    background-color: #f3f4f6;
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563eb;
}

/* Footer Styles */
.site-footer {
    background-color: #1f2937;
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    color: #f3f4f6;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 80rem;
    margin: 2rem auto 0;
    padding: 1.5rem 1.25rem 0;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
}

/* Keep existing cart styles below this line */
.cart-page {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.cart-page h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
    text-align: center;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    position: relative;
}

.cart-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.cart-item-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
}

.cart-item-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.cart-item-details p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.cart-item-details .price {
    color: #2563eb;
    font-size: 1.25rem;
    font-weight: 600;
}

.cart-summary {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.cart-summary h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    color: #4b5563;
    font-size: 1rem;
}

.summary-item.total {
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: 600;
    color: #111827;
    font-size: 1.25rem;
}

.checkout-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.checkout-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    padding: 0.5rem 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #ffffff;
    width: fit-content;
    height: 2.75rem;
}

.quantity-btn {
    background: #f3f4f6;
    border: none;
    width: 3rem;
    height: 2.75rem;
    cursor: pointer;
    color: #4b5563;
    font-size: 1.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.quantity-btn:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.quantity-input {
    width: 3.5rem;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-size: 1rem;
    color: #111827;
    padding: 0;
    height: 2.75rem;
    line-height: 2.75rem;
    outline: none;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
    box-shadow: none;
}

.remove-item {
    padding: 0 1.5rem;
    background-color: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 9.5rem;
}

.remove-item:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

.empty-cart-message {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Layout */
    .cart-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-page {
        padding: 1rem;
    }

    /* Header */
    .cart-page h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    /* Cart Items */
    .cart-items {
        border-radius: 0.5rem;
    }

    .cart-item {
        display: grid;
        grid-template-areas:
            "image details"
            "actions actions";
        gap: 1rem;
        padding: 1rem;
    }

    .cart-item-image {
        grid-area: image;
    }

    .cart-item-details {
        grid-area: details;
    }

    .cart-item-actions {
        grid-area: actions;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .quantity-controls {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .remove-item {
        width: 100%;
        max-width: 200px;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .cart-item-details h3 {
        font-size: 1.125rem;
    }

    .cart-item-details p {
        font-size: 0.875rem;
    }

    .cart-item-details .price {
        font-size: 1.125rem;
    }

    /* Cart Actions */
    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 1rem;
    }

    .quantity-controls {
        height: 2.5rem;
    }

    .quantity-btn {
        width: 2.5rem;
        height: 2.5rem;
    }

    .quantity-input {
        width: 3rem;
        height: 2.5rem;
    }

    .remove-item {
        height: 2.5rem;
        padding: 0 1rem;
    }

    /* Cart Summary */
    .cart-summary {
        position: static;
        padding: 1.25rem;
    }

    .cart-summary h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .summary-item {
        font-size: 0.875rem;
        margin: 0.75rem 0;
    }

    .summary-item.total {
        font-size: 1.125rem;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }

    .checkout-button {
        padding: 0.75rem;
        font-size: 1rem;
    }

    /* Empty Cart */
    .empty-cart-message {
        font-size: 1rem;
        padding: 2rem 1rem;
    }
}

/* Small Devices */
@media (max-width: 480px) {
    /* Cart Items */
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 0.75rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    /* Cart Actions */
    .cart-item-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .quantity-controls,
    .remove-item {
        width: 100%;
    }

    /* Cart Summary */
    .cart-summary {
        padding: 1rem;
    }
}

/* Footer Mobile Styles */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.25rem;
        text-align: left;
    }

    .footer-section {
        padding: 0;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-section p,
    .footer-section ul li a,
    .social-links a {
        font-size: 0.875rem;
    }

    .footer-section ul li {
        margin-bottom: 0.75rem;
    }

    .social-links {
        justify-content: flex-start;
        gap: 1rem;
    }

    .footer-bottom {
        text-align: left;
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
    }
}

