:root {
    --primary-color: #000000; 
    --accent-color: #000000; 
    --accent-hover: #333333;
    --text-dark: #111111;
    --text-light: #555555;
    --bg-color: #FAFAFC; 
    --white: #FFFFFF;
    --shadow: 0 10px 40px rgba(0,0,0,0.06);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    --radius: 24px; 
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 0.5em;
    font-weight: 800;
    text-transform: uppercase; /* Match Litepanels headings */
    letter-spacing: 1px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 20px;
    z-index: 1000;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 50px;
    margin: 0 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-brand a {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.brand-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.nav-search {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
    display: flex;
    position: relative;
}

.nav-search input {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    outline: none;
    width: 250px;
    transition: var(--transition);
}

.nav-search input:focus {
    border-color: #999;
    width: 300px;
}

/* Suggestion Dropdown */
.search-suggestions {
    position: absolute;
    top: 120%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1100;
    padding: 1rem;
}

.search-suggestions.active {
    display: flex;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 12px;
    transition: var(--transition);
    color: var(--text-dark);
    text-decoration: none;
}

.suggestion-item:hover {
    background: #f1f3f5;
    transform: translateX(5px);
}

.suggestion-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f1f3f5;
}

.suggestion-info h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.suggestion-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.nav-search button {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Mega Menu Dropdown */
.has-dropdown {
    position: relative;
    padding: 1rem 0; 
}
.mega-column h4 {
    color: #000 !important;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    color: var(--text-dark);
    padding: 0;
    display: flex;
    min-width: 800px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
}

/* Tabbed Mega Menu */
.tabbed-mega-menu {
    display: flex !important;
}

.mega-sidebar {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-right: 1px solid #eaeaea;
    padding: 1rem;
    background: rgba(245, 245, 247, 0.5);
    border-radius: var(--radius) 0 0 var(--radius);
}

.mega-tab-btn {
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    outline: none;
}

.mega-tab-btn:hover, .mega-tab-btn.active {
    background: #fff;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.mega-content {
    flex: 1;
    padding: 1.5rem 2.5rem;
}

.mega-tab-content {
    display: none;
}

.mega-tab-content.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.mega-menu h4 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 900;
    border-bottom: 3px solid #333;
    padding-bottom: 1rem;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.mega-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    gap: 0.5rem;
}

.mega-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #F1F3F5;
    border-radius: 16px;
    padding: 1rem;
    transition: var(--transition);
}

.mega-item:hover img {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.cart-icon {
    position: relative;
    font-size: 1.25rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary-color);
    z-index: 1002;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px; 
    font-weight: 700;
    letter-spacing: 0px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background-color: #000000;
    color: #FFFFFF; 
}

.btn-primary:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #1a3d61;
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero.solid-hero {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 6rem;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
}

@media (max-width: 960px) {
    .hero.solid-hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 2rem;
    }
    .hero.solid-hero .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Filters */
.filters {
    background: var(--white);
    padding: 1rem 2rem;
    margin: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filters select, .filters input[type="range"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: transparent;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #FF3B30;
    color: #FFFFFF;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.product-img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background: #F1F3F5;
    padding: 3rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
}

.product-card:hover .product-img {
    transform: scale(0.98);
    box-shadow: var(--shadow);
}

.product-info {
    padding: 1.5rem 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.product-title a { color: var(--text-dark); }

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-rating {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-actions {
    margin-top: auto;
}

.product-actions button {
    width: 100%;
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.7;
    text-transform: none;
    font-weight: 400;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #aaa;
    font-size: 0.9rem;
    text-transform: none;
}

.footer-section a:hover {
    color: #fff;
}

.newsletter input {
    padding: 0.75rem;
    width: 100%;
    border: none;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}

/* Auth Pages (Login/Register) */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
}

.form-group input.valid {
    border-color: #28a745;
}

.form-group input.invalid {
    border-color: #dc3545;
}

.feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.feedback.invalid {
    display: block;
    color: #dc3545;
}

.password-strength {
    height: 5px;
    background: #ddd;
    margin-top: 5px;
    border-radius: 5px;
    overflow: hidden;
}

.password-strength div {
    height: 100%;
    width: 0;
    transition: var(--transition);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.toast {
    background: var(--white);
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateX(120%);
    animation: slideIn 0.3s forwards;
    border-left: 4px solid var(--accent-color);
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(10px); }
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    padding: 1rem;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    transform: translateY(-20px);
    opacity: 0;
    transition: var(--transition);
}

.modal.active {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* Cart Table */
.cart-table-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
    margin-bottom: 2rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th, .cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cart-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    cursor: pointer;
    border-radius: 4px;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 0.25rem;
    border-radius: 4px;
}

.remove-btn {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cart-summary-total {
    font-weight: bold;
    font-size: 1.25rem;
    border-top: 2px solid #ddd;
    padding-top: 1rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-form, .checkout-summary {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Order Success */
.success-container {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 4rem auto;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--white);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--accent-color);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    margin: 0 auto 2rem;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--accent-color);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 80px var(--accent-color); }
}

/* Admin Sidebar */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 1rem;
}

.admin-sidebar h2 {
    color: var(--white);
    margin-bottom: 2rem;
    text-align: center;
}

.admin-nav {
    list-style: none;
}

.admin-nav li {
    margin-bottom: 0.5rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.7);
    border-radius: var(--radius);
}

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.admin-content {
    flex: 1;
    background: #f4f6f9;
}

.admin-header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Admin Dashboard Cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-info p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    opacity: 0.2;
}

/* Status Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge.pending { background: #ffeeba; color: #856404; }
.badge.shipped { background: #b8daff; color: #004085; }
.badge.delivered { background: #c3e6cb; color: #155724; }

/* Responsive Modern Layout Overrides */
@media (max-width: 960px) {
    .nav-search { display: none; }
    .hamburger { display: block; }
    
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 6rem 2rem 2rem 2rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-links a {
        color: #fff !important;
        font-size: 1.5rem;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .hamburger.active {
        color: #fff;
        position: relative;
    }

    .mega-menu {
        position: static;
        width: 100%;
        transform: none !important;
        opacity: 1;
        pointer-events: all;
        display: none;
        flex-direction: column;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        margin-top: 1rem;
        min-width: unset;
        gap: 0;
    }

    .tabbed-mega-menu {
        flex-direction: column !important;
    }

    .mega-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #333;
        flex-direction: row;
        overflow-x: auto;
        padding: 0 0 1rem 0;
        margin-bottom: 1rem;
        background: transparent;
        border-radius: 0;
    }

    .mega-tab-btn {
        white-space: nowrap;
        color: #fff;
    }

    .mega-tab-btn:hover, .mega-tab-btn.active {
        background: rgba(255,255,255,0.2);
        color: #fff;
        box-shadow: none;
    }

    .mega-content {
        padding: 0;
    }

    .mega-tab-content.active {
        display: flex;
        flex-direction: column;
    }

    .mega-column h4 { color: #fff; text-align: left; font-size: 1rem; display: none; }
    
    .mega-item {
        color: #fff !important;
        font-size: 0.65rem;
        gap: 0.25rem;
    }
    
    .mega-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .mega-item img {
        width: 100%;
        height: 60px;
        padding: 0.4rem;
        border-radius: 8px;
    }

    .mega-item span {
        font-size: 0.6rem;
        line-height: 1.2;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mega-column { margin-bottom: 0.5rem; width: 100%; }
    
    .hero.solid-hero {
        flex-direction: column-reverse;
        padding: 4rem 2rem;
        text-align: center;
    }

    .hero.solid-hero .hero-content h1 {
        font-size: 3.5rem !important;
        margin-top: 2rem;
    }

    .hero.solid-hero .hero-content p {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .product-img {
        height: auto;
        min-height: 250px;
    }
}

.product-detail-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: start;
}

/* ========================================
   GLOBAL RESPONSIVE — ALL PAGES
   ======================================== */

/* Navbar pill on mobile */
@media (max-width: 960px) {
    .navbar {
        top: 0;
        border-radius: 0;
        margin: 0;
        padding: 1rem 1.5rem;
    }

    .container {
        padding: 1rem;
    }
}

/* Cart page */
@media (max-width: 768px) {
    /* Cart table horizontal scroll */
    .cart-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cart-table th,
    .cart-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .cart-item-img {
        width: 40px;
        height: 40px;
    }

    /* Cart + Checkout full width stacked */
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-form,
    .checkout-summary {
        padding: 1.5rem 1rem;
    }

    /* Profile page grid stack */
    div[style*="grid-template-columns: 1fr 2fr"] {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Orders table */
    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) {
        display: none; /* hide date on very small screens */
    }

    /* Product detail */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .product-detail-grid img {
        max-height: 300px;
        object-fit: contain;
    }

    /* Auth cards */
    .auth-card {
        padding: 1.5rem 1rem;
    }

    /* General container h1 headings */
    .container h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .container h2 {
        font-size: clamp(1.2rem, 4vw, 2rem);
    }

    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    footer {
        padding: 2rem 1.5rem 1rem;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .brand-logo {
        height: 28px;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Cart item info on tiny screens */
    .cart-item-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .cart-item-info span {
        font-size: 0.8rem;
    }

    /* Contact form */
    .container[style*="max-width: 800px"] {
        padding: 0 1rem;
        margin-top: 2rem !important;
    }

    /* Success page */
    .success-container {
        margin: 2rem 1rem;
        padding: 2rem 1rem;
    }
}

/* Contact Form */
.contact-form {
    background: #000;
    padding: 3rem;
    color: #fff;
    border: 3px solid #000;
    border-radius: var(--radius);
}

@media (max-width: 600px) {
    .contact-form {
        padding: 1.5rem 1rem;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* prevents iOS zoom */
    }
}

/* Checkout two-col row */
.checkout-two-col {
    display: flex;
    gap: 1rem;
}

@media (max-width: 600px) {
    .checkout-two-col {
        flex-direction: column;
        gap: 0;
    }
    /* Prevent iOS auto-zoom on inputs */
    .form-group input,
    .auth-card input,
    textarea {
        font-size: 16px !important;
    }
}
