/* STYLE.CSS
    FINAL - Includes all fixes and classes for all pages.
*/

:root {
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --color-accent: #43cea2;
    --color-accent-dark: #185a9d;
    --color-text: #263238;
    --color-bg-light: #f5f6fa;
    --color-bg-offwhite: #ebedf8;
    --color-bg-white: #fff;
    --color-border: #dedede;
    --color-shadow-light: rgba(102, 126, 234, 0.07);
    --color-shadow-medium: rgba(102, 126, 234, 0.13);
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-secondary: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
}

/* General Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--color-bg-light);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* Ensures footer sticks to bottom */
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color .2s;
}
a:hover {
    color: var(--color-secondary);
}

/* General container for all pages */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    background: var(--color-bg-white);
    box-shadow: 0 2px 8px var(--color-shadow-light);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 1rem 2rem;
}
.logo-section {
    display: flex;
    align-items: center;
}
.logo-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 0.6rem;
    background: var(--color-bg-offwhite);
}
.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--color-primary);
}
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-menu li {
    position: relative;
}
.nav-menu a.active {
    font-weight: bold;
    color: var(--color-secondary);
}
.cart-link {
    background: var(--gradient-primary);
    color: var(--color-bg-white) !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background .2s;
}
.cart-link:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* === GENERAL PAGE HEADER (for shop, about, checkout, returns) === */
.page-header {
    background: var(--gradient-primary);
    color: var(--color-bg-white);
    padding: 60px 20px;
    text-align: center;
}
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Hero Section (index.html) */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    text-align: center;
    padding: 80px 20px 80px 20px;
    background-size: cover;
}
.hero-content h1 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.27rem;
    margin-bottom: 2rem;
}
.cta-button {
    padding: 0.9rem 2.5rem;
    background: var(--gradient-secondary);
    color: var(--color-bg-white);
    font-size: 1.12rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(67, 206, 162, 0.14);
    transition: all .18s;
    display: inline-block; /* Added for <a> tag to behave like button */
}
.cta-button:hover {
    background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
    letter-spacing: 1px;
}

/* About Page (about.html) */
.about-hero {
    background: var(--gradient-primary);
    color: var(--color-bg-white);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 2.5rem;
}
.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.about-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}
.about-content {
    background: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 18px var(--color-shadow-medium);
    margin: 2.5rem 0 3rem 0; /* Added margin for container */
}
.about-section {
    margin-bottom: 2.5rem;
}
.about-section:last-child {
    margin-bottom: 0;
}
.about-section h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-bg-offwhite);
    padding-bottom: 0.5rem;
}
.about-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.value-card {
    background: var(--color-bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--color-shadow-light);
}
.value-card h3 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

/* Static Pages (Returns, Privacy, etc.) */
.static-content-box {
    background: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 18px var(--color-shadow-medium);
    margin: 2.5rem 0;
}
.static-section {
    margin-bottom: 2.5rem;
}
.static-section:last-child {
    margin-bottom: 0;
}
.static-section h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-bg-offwhite);
    padding-bottom: 0.5rem;
}
.static-section p, 
.static-section li {
    margin-bottom: 1rem;
    line-height: 1.7;
}
.static-content-box ol,
.static-content-box ul {
    padding-left: 2rem;
}

/* Sell Page (sell.html) */
.sell-section {
    background: var(--color-bg-light); 
    padding: 60px 0;
}
.sell-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--color-bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 18px var(--color-shadow-medium);
    padding: 2.2rem 2.5rem;
}
.sell-container h1 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1.7rem;
}
.sell-form label {
    font-weight: 600;
    color: var(--color-text);
}
.sell-form input, .sell-form select, .sell-form textarea {
    width: 100%;
    margin-bottom: 1.4rem;
    margin-top: 0.3rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font-size: 1rem;
}
.sell-form button {
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    border: none;
    background: var(--gradient-primary);
    color: var(--color-bg-white);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.sell-form button:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}
.sell-success {
    color: var(--color-accent);
    font-weight: 600;
    text-align: center;
    margin-top: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Checkout Page (checkout.html) */
.checkout-section {
    padding: 60px 0;
    background-color: var(--color-bg-light);
    min-height: 500px;
}
.checkout-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2.5rem auto; /* Added margin for container */
}
.order-summary {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}
.order-summary h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}
.order-items .order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}
.order-items .order-item span {
    color: var(--color-text);
}
.order-items .order-item strong {
    color: var(--color-primary);
}
.order-total {
    border-top: 2px solid var(--color-border);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.3rem;
    text-align: right;
    font-weight: bold;
}
.checkout-form {
    text-align: left;
}
.checkout-form h3 {
    color: var(--color-text);
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}
.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    font-size: 1rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.checkout-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--color-bg-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.checkout-submit-btn:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}
.checkout-note {
    margin-top: 1rem;
    color: #999;
    font-size: 0.9rem;
    text-align: center;
}
.back-to-shop {
    text-align: center;
    margin-top: 2rem;
}
.back-to-shop a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Receipt Page (receipt.html) */
.receipt-container {
    max-width: 650px;
    margin: 3rem auto 2rem auto;
    background: var(--color-bg-white);
    border-radius: 18px;
    box-shadow: 0 5px 22px var(--color-shadow-light);
    padding: 2.5rem 2rem;
}
.receipt-container h2 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.receipt-container p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
.receipt-summary {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}
.receipt-summary h3 {
    text-align: right;
    font-size: 1.3rem;
    color: var(--color-text);
    margin-top: 1rem;
}
.receipt-summary p {
    margin-bottom: 1rem;
    line-height: 1.7;
}
.receipt-list {
    list-style: none;
    padding: 0;
}
.receipt-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--color-border);
}
.receipt-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.receipt-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}
.receipt-actions {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.receipt-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.receipt-btn:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}


/* Trust Section (index.html) */
.trust-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 30px 10px;
    background: var(--color-bg-white);
    box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.16);
}
.trust-card {
    background: linear-gradient(135deg, var(--color-bg-light), var(--color-bg-offwhite) 90%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(76, 110, 245, 0.08);
    padding: 1.7rem 2.2rem;
    min-width: 210px;
    flex: 1 1 220px;
    text-align: center;
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--color-shadow-light);
    color: var(--color-secondary);
}

/* Filter/Sort Section */
.filter-section {
    background: var(--color-bg-white);
    box-shadow: 0 2px 6px rgba(102,126,234,0.08);
    padding: 20px 0;
}
.filter-controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.filter-controls .sort-by label {
    margin-right: 0.5rem;
    font-weight: 600;
}
#sort {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-light);
}
.search-box input {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: #f8f8fc;
    width: 220px;
}

/* Product Grid & Card */
.products-grid {
    display: grid;
    gap: 2.2rem;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    margin: 2rem 0;
}

.product-card-link {
    text-decoration: none; /* Removes underline from link */
    color: inherit; /* Makes link inherit text color */
    display: block; /* Makes the whole link area tappable */
}

.product-card {
    background: var(--color-bg-white);
    border-radius: 14px;
    box-shadow: 0 4px 18px var(--color-shadow-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    height: 100%; /* Ensures all cards in a row are same height */
}
.product-card:hover {
    box-shadow: 0 8px 32px 4px rgba(67, 206, 162, 0.13);
    transform: translateY(-6px) scale(1.03);
}
.product-image {
    position: relative;
    text-align: center;
    padding: 1.3rem 0 0.7rem 0;
    background: var(--color-bg-light);
    min-height: 200px;
}
.product-image img {
    max-width: 85%;
    height: 180px;
    object-fit: contain;
    transition: transform .13s;
}
.product-card:hover .product-image img {
    transform: scale(1.08);
}
.badge {
    position: absolute;
    top: 12px;
    left: 18px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-bg-white);
    border-radius: 6px;
    font-size: 0.82rem;
    padding: 2px 10px;
    font-weight: 600;
    letter-spacing: 2px;
}
.product-info {
    flex: 1;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.product-info h3 {
    margin-bottom: 0.3rem;
    font-size: 1.09rem;
}
.condition {
    font-size: 0.95rem;
    color: #44a1d9;
}
.price {
    color: var(--color-primary);
    font-weight: 700;
    margin: 0.4rem 0 0.2rem 0;
}
.rating {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    opacity: 0.83;
}

/* Add-to-Cart Button */
.add-to-cart {
    padding: 0.7rem 1.25rem;
    background: var(--gradient-primary);
    color: var(--color-bg-white);
    font-size: 1.01rem;
    border: none;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 var(--color-shadow-medium);
    transition: background .16s, box-shadow .18s;
}
.add-to-cart:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    box-shadow: 0 5px 20px 0 rgba(118,75,162,.08);
}

/* Product Detail Page */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    background: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 18px var(--color-shadow-medium);
    margin: 2.5rem 0;
}
.product-detail-image {
    background: var(--color-bg-light);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}
.product-detail-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
}
.product-detail-info h1 {
    font-size: 2.2rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}
.product-detail-info .badge {
    position: static; /* Override the absolute positioning from the card */
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.product-detail-info .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 0.5rem 0;
}
.product-detail-info .condition,
.product-detail-info .rating {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}
.product-detail-info .specs-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-top: 1.5rem;
}
.product-detail-info .specs-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.product-detail-info .add-to-cart {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

/* === NEW CSS FOR LOGIN/REGISTER FORMS === */
.form-container {
    max-width: 500px;
    margin: 2.5rem auto;
    background: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 18px var(--color-shadow-medium);
}
.form-container h1 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}
.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.auth-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font-size: 1rem;
}
.auth-form input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 5px var(--color-shadow-light);
}

.auth-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--color-bg-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.auth-button:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

.auth-message {
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
}
.auth-message.success {
    color: var(--color-accent);
}
.auth-message.error {
    color: #ff6b6b;
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
}
/* === END NEW CSS === */


/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-bg-white);
    text-align: center;
    padding: 60px 0 60px 0;
}
.newsletter-form {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
    padding: 0.7rem 1.2rem;
    border-radius: 9px;
    border: none;
    font-size: 1rem;
    width: 230px;
}
.newsletter-form button {
    padding: 0.7rem 1.8rem;
    border-radius: 9px;
    border: none;
    background: var(--color-accent);
    color: white;
    font-size: 1.07rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s;
}
.newsletter-form button:hover {
    background: var(--color-accent-dark);
}
.newsletter-message {
    margin-top: 18px;
}

/* Testimonials */
.testimonials {
    background: var(--color-bg-white);
    padding: 64px 0 44px 0;
    box-shadow: 0 2px 12px 0 rgba(102,126,234,0.08);
}
.testimonials-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    margin-top: 2rem;
}
.testimonial-card {
    background: linear-gradient(135deg, var(--color-bg-light), var(--color-bg-offwhite) 90%);
    border-radius: 10px;
    padding: 1.7rem 2rem;
    box-shadow: 0 2px 12px rgba(67, 206, 162, 0.05);
    text-align: center;
    font-style: italic;
}
.testimonial-card .stars {
    color: gold;
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}
.customer-name {
    font-style: normal;
    font-weight: bold;
    opacity: 0.7;
    margin-top: 0.7rem;
}

/* Contact/FAQ */
.contact-section {
    background: #f9f9fc;
    padding: 60px 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: flex-start;
    margin-top: 36px;
}
.faq-section h3, .contact-info h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.faq-item {
    margin-bottom: 18px;
}
.faq-question {
    width: 100%;
    padding: 0.6rem 1.2rem;
    background: var(--color-bg-white);
    font-size: 1.05rem;
    text-align: left;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    color: var(--color-primary);
    margin-bottom: 6px;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .11s;
}
.faq-question:hover {
    background: #edf2fb;
}
.faq-answer {
    padding: 0.7rem 1.2rem 0.5rem 1.4rem;
    background: #f8f8fc;
    border-radius: 6px;
    font-size: 0.95rem;
    display: none;
    color: #444;
}
.contact-info {
    background: var(--color-bg-white);
    border-radius: 10px;
    padding: 2rem 2.1rem;
    box-shadow: 0 2px 13px #667eea17;
}
.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 1.06rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font-size: 1rem;
}
.contact-form .submit-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 9px;
    border: none;
    background: var(--color-primary);
    color: white;
    font-size: 1.07rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s;
}
.contact-form .submit-btn:hover {
    background: var(--color-secondary);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-bg-white);
    padding-top: 40px;
    padding-bottom: 16px;
    margin-top: 48px;
}
.footer-content {
    display: flex;
    gap: 50px;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}
.footer-section {
    min-width: 210px;
    flex: 1 1 250px;
}
.footer-section h4 {
    color: var(--color-bg-white);
    font-size: 1.15rem;
    margin-bottom: 13px;
}
.footer-section ul {
    list-style: none;
    padding-left: 0;
}
.footer-section ul li {
    margin-bottom: 8px;
}
.footer-section ul li a {
    color: var(--color-bg-white);
    font-size: 1rem;
    opacity: 0.87;
}
.footer-section ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}
.social-links a {
    margin-right: 18px;
    color: var(--color-bg-white);
    display: inline-block;
    font-size: 1.35rem;
    opacity: 0.81;
    transition: opacity .2s;
}
.social-links a:last-child { margin-right: 0; }
.social-links a:hover { opacity: 1}

.footer-bottom {
    border-top: 1.5px solid #9791b64a;
    margin-top: 32px;
    text-align: center;
    padding-top: 12px;
    opacity: 0.87;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(42, 47, 67, 0.25);
}
.cart-content {
    background: var(--color-bg-white);
    margin: 6rem auto 2rem auto;
    padding: 2.9rem 2.2rem;
    border-radius: 18px;
    max-width: 440px;
    box-shadow: 0 8px 38px 7px #667eea32;
    position: relative;
}
.cart-content h2 { color: var(--color-primary); margin-bottom: 0.6rem; }
.cart-content .close {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 2rem;
    color: var(--color-primary);
    cursor: pointer;
    opacity: 0.76;
    background: none;
    border: none;
}
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-total {
    margin-top: 1.3rem;
    font-size: 1.15rem;
    color: var(--color-text);
    font-weight: bold;
}
.checkout-btn {
    margin-top: 1.2rem;
    background: var(--gradient-primary);
    color: var(--color-bg-white);
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
    width: 100%;
}
.checkout-btn:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

/* Responsive */
@media (max-width: 900px) {
    .footer-content { flex-direction: column; gap: 28px; }
    .nav-menu { gap: 1.1rem; }
    .contact-grid { grid-template-columns: 1fr;}
    .product-detail-container { grid-template-columns: 1fr; } /* Stack on mobile */
}
@media (max-width: 700px) {
    .nav-container { padding: 1rem 5vw; }
    .footer-content { padding-inline: 2vw; }
    .products-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
    .newsletter-form { flex-direction: column; }
    .filter-controls { flex-direction: column; gap: 9px;}
    .contact-section { padding: 32px 1vw 50px 1vw;}
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .navbar { font-size: 0.98rem; }
    .nav-menu {
        display: block;
        position: absolute;
        background: var(--color-bg-white);
        top: 70px;
        right: 0;
        width: 70vw;
        max-height: 0px; /* Hidden by default */
        overflow: hidden;
        box-shadow: 0 9px 30px #667eea21;
        border-radius: 0 0 12px 12px;
        transition: max-height .36s cubic-bezier(.35,1.13,.48,1.02);
        z-index: 1200;
        padding: 0 1.5rem; /* Padding applied when open */
    }
    .nav-menu.nav-open {
        max-height: 300px; /* Adjust as needed */
        padding: 1.6rem 1.5rem;
    }
    .hamburger { display: flex; }
    .footer-section { min-width: unset; }
    .hero { padding: 44px 5vw 58px 5vw; }
    .about-content { padding: 1.5rem; }
    .about-section h2 { font-size: 1.5rem; }
    .static-content-box { padding: 1.5rem; }
    .static-section h2 { font-size: 1.5rem; }
    .sell-container { padding: 1.5rem; }
    .checkout-container { padding: 1.5rem; }
    .order-summary { padding: 1.5rem; }
    .order-summary h2 { font-size: 1.5rem; }
    .receipt-container { padding: 1.5rem; margin-top: 1.5rem; }
    .receipt-actions { flex-direction: column; }
    .product-detail-container { padding: 1.5rem; } /* Mobile padding */
    .product-detail-info h1 { font-size: 1.8rem; } /* Mobile heading */
    .form-container { padding: 1.5rem; } /* Mobile padding for auth */
}
