/* AllroundDropship Stylesheet */

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Animations & Eye Candy */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Search */
.search-container {
    position: relative;
    max-width: 600px;
}

.search-form {
    display: flex;
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

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

.search-btn {
    padding: 0 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #1d4ed8;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

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

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    position: relative;
    background: var(--light-bg);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.icon-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Navigation */
.nav {
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Main Content */
.main {
    padding: 3rem 0;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
}

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

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

/* Products Section */
.products-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
}

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

.product-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color);
}

.product-card:active {
    transform: translateY(-4px) scale(1.01);
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: var(--light-bg);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 1rem;
}

.product-category {
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.stars {
    color: var(--accent-color);
}

.reviews-count {
    color: var(--text-light);
    font-size: 0.85rem;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-cart-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.add-to-cart-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.cart-header h3 {
    font-size: 1.3rem;
}

.close-btn,
.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.2s;
}

.close-btn:hover,
.close-cart-btn:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-item-quantity button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item-quantity button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.cart-item-quantity span {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-item .remove-item {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s;
}

.cart-item .remove-item:hover {
    color: #dc2626;
    transform: scale(1.1);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    background: var(--white);
}

#cartTotal {
    /* Wrapper for cart totals content */
}

.checkout-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: var(--success-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.powered-by strong {
    color: var(--accent-color);
}

/* Responsive & Mobile Enhancements */
@media (max-width: 768px) {
    /* Larger touch targets for mobile */
    .header-top {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.75rem 0;
    }

    .search-container {
        max-width: 100%;
    }

    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.85rem 1rem;
    }

    .nav-list {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .stat-box {
        min-width: 120px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-name {
        font-size: 0.9rem;
    }

    /* Larger touch targets for buttons */
    .add-to-cart-btn {
        padding: 0.6rem 1.1rem;
        min-height: 44px; /* iOS minimum touch target */
    }

    .icon-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Full screen cart on mobile */
    .cart-sidebar {
        width: 100%;
        right: -100%;
        animation: slideInRight 0.3s ease forwards;
    }

    .cart-sidebar.active {
        right: 0;
    }

    /* Better spacing for cart items on mobile */
    .cart-item {
        padding: 0.85rem;
    }

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

    /* Modal backdrop click close */
    .added-to-cart-modal {
        padding: 1rem;
    }

    /* Smooth scrolling */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Better footer on mobile */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }
}

/* ==================== Checkout Modal (Modern & Futuristic) ==================== */

.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25),
                0 0 100px rgba(37, 99, 235, 0.1);
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.checkout-modal.active .checkout-modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    color: var(--danger-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: var(--danger-color);
    color: var(--white);
    transform: rotate(90deg);
}

.checkout-modal h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Checkout Form */

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.form-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.form-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section h3 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: var(--light-bg);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--primary-color);
}

/* Order Summary */

.order-summary {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.order-summary h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-summary h3 i {
    color: var(--accent-color);
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-light);
}

.summary-totals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.summary-line.total {
    font-size: 1.3rem;
    font-weight: 700;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border-color);
    color: var(--primary-color);
}

.free-shipping-notice {
    font-size: 0.85rem;
    color: var(--success-color);
    text-align: center;
    padding: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    margin: 0.5rem 0;
}

/* Payment Info */

.payment-info {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-info i {
    color: var(--success-color);
    font-size: 1.2rem;
}

/* Submit Button */

.submit-order-btn {
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-order-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-order-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.submit-order-btn:active {
    transform: translateY(0);
}

.submit-order-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Cart Totals Enhancement */

.cart-totals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cart-totals .subtotal,
.cart-totals .shipping {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-light);
}

.cart-totals .total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border-color);
    color: var(--primary-color);
}

.checkout-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Responsive Design for Checkout */

@media (max-width: 768px) {
    .checkout-modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 1.5rem;
    }

    .checkout-modal h2 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .submit-order-btn {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* ==================== Added to Cart Modal ==================== */

.added-to-cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.added-to-cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.added-to-cart-content {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    animation: fadeInScale 0.3s ease forwards;
}

.added-to-cart-modal.active .added-to-cart-content {
    transform: scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 0.6s ease;
}

.success-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.added-to-cart-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.added-to-cart-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.added-to-cart-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.added-to-cart-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.added-to-cart-product-info {
    flex: 1;
}

.added-to-cart-product-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.added-to-cart-product-info .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-btn {
    flex: 1;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.modal-btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.modal-btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
    .added-to-cart-content {
        padding: 1.5rem;
        max-width: 95%;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}

/* ==================== Cookie Consent Banner ==================== */

.cookie-consent {
    position: fixed;
    bottom: -300px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: bottom 0.3s ease;
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.cookie-icon {
    font-size: 3rem;
    color: var(--accent-color);
}

.cookie-icon i {
    animation: bounce 2s infinite;
}

.cookie-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-text h4 i {
    color: var(--primary-color);
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.cookie-btn-decline {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.cookie-btn-decline:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
    transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cookie-consent-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .cookie-icon {
        font-size: 2.5rem;
        margin: 0 auto;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   AUTH MODAL & USER MENU
   ========================================== */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal.active {
    opacity: 1;
}

.auth-modal-content {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.3s ease;
}

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

.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.close-modal-btn:hover {
    background: var(--light-gray);
    color: var(--text-dark);
    transform: rotate(90deg);
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 1.25rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.auth-form {
    padding: 2rem;
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.auth-form h2 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.form-error {
    display: none;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--danger-color);
    border-radius: 8px;
    color: var(--danger-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.auth-submit-btn i {
    margin-right: 0.5rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* User Menu */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-info strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.user-info small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-dropdown a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.user-dropdown a i {
    width: 20px;
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Notification */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 10001;
}

.notification.active {
    opacity: 1;
    transform: translateX(0);
}

.notification i {
    font-size: 1.25rem;
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-success i {
    color: var(--success-color);
}

.notification-info {
    border-left: 4px solid var(--primary-color);
}

.notification-info i {
    color: var(--primary-color);
}

.notification-error {
    border-left: 4px solid var(--danger-color);
}

.notification-error i {
    color: var(--danger-color);
}

/* Header Actions Layout */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-modal-content {
        width: 95%;
        max-width: none;
    }

    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
}


/* ==========================================
   ORDERS GRID
   ========================================== */

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.order-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.order-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.status-processing {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.status-shipped {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.status-delivered {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.order-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.order-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.order-info i {
    color: var(--primary-color);
}

.order-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.order-item-tag {
    background: var(--light-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.track-btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: var(--white);
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.track-btn i {
    margin-right: 0.5rem;
}

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


/* ==================== Filter Controls ==================== */
.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label i {
    color: var(--primary-color);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.clear-filters-btn {
    padding: 0.75rem 1.5rem;
    background: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.clear-filters-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.clear-filters-btn i {
    font-size: 0.875rem;
}

/* Active Filters */
.active-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    animation: fadeInScale 0.3s ease;
}

.filter-tag i {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.filter-tag i:hover {
    opacity: 1;
}

/* Results Count */
.results-count {
    margin: 1rem 0;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    animation: fadeIn 0.3s ease;
}

/* Responsive Filters */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: 100%;
    }

    .clear-filters-btn {
        align-self: stretch;
        justify-content: center;
    }
}

/* ==================== Logo Link ==================== */
.logo-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-link:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.logo-link:hover h1 {
    color: var(--primary-color);
}

.logo-link:hover .tagline {
    color: var(--accent-color);
}

.logo-link h1,
.logo-link .tagline {
    text-decoration: none !important;
}
