/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
a{
    text-decoration: none !important;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
.header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #0070BB;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a::before {
    content: "▲";
    font-size: 28px;
    color: #2196F3;
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}

.search-container form {
    display: flex;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px 0 0 8px;
    background: #fff;
    font-size: 14px;
    outline: none;
}

.search-btn {
    padding: 0 20px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #e03d00;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.currency {
    color: #ccc;
    font-size: 14px;
}

.cart-info .cart-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.cart-info .cart-link:hover {
    background: rgba(255,255,255,0.2);
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.sign-in, .sign-up {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sign-in {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.sign-in:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sign-up {
    background: #4a90e2;
    border: none;
    color: white;
    font-weight: 500;
}

.sign-up:hover {
    background: #357abd;
}

/* Navigation */
.nav {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    background: #0070BB;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #2196F3;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 80%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    padding: 8px 0;
    margin-top: 8px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background 0.2s ease;
}

.dropdown-content a:hover {
    background: #f8f9fa;
    color: #0070BB;
}

.nav-right {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

/* Main Content */
.main-content {
   padding: 0px 10px;
    
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 48px;
    color: #1f2937;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.category-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #0070BB;
}

.category-content {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0070BB, #1d4ed8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #0070BB;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image::before {
    content: "📦";
    font-size: 48px;
    opacity: 0.3;
    position: absolute;
}

.product-image:has(img)::before {
    display: none;
}

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.stock-badge.in_stock {
    background: #10b981;
}

.stock-badge.out_of_stock {
    background: #ef4444;
}

.stock-badge.discontinued {
    background: #6b7280;
}

.product-info {
    padding: 20px;
}

.product-name {
    margin-bottom: 8px;
}

.product-name a {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #0070BB;
}

.product-code {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.product-brand {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 12px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: #0070BB;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
}

.add-to-cart-btn:hover {
    background: #1d4ed8;
}

.add-to-cart-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}



.btn-view:hover {
    background: #4b5563;
    color: white;
}

/* Search and Category Sections */
.search-section, .category-section {
    margin-bottom: 40px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-results p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0070BB;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #1d4ed8;
}
.btn-view {
    flex: 1;
    padding: 10px 12px;
    background: #6b7280;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: background 0.3s ease;
    display: inline-block;
}
/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1f2937;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0070BB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-submit {
    width: 100%;
    padding: 12px;
    background: #0070BB;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit:hover {
    background: #1d4ed8;
}

.form-link {
    text-align: center;
    margin-top: 20px;
}

.form-link a {
    color: #0070BB;
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}

/* Messages */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Cart Styles */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

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

.cart-item-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.cart-item-code {
    font-size: 12px;
    color: #6b7280;
}

.cart-item-price {
    font-weight: 600;
    color: #059669;
    margin: 8px 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #f9fafb;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px;
}

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.remove-btn:hover {
    background: #dc2626;
}

.cart-summary {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.cart-total {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    text-align: right;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #047857;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

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

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .nav {
        display: none;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .main-content {
        padding: 20px 16px;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-image {
        margin: 0 0 16px 0;
    }

    .quantity-controls {
        margin: 16px 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }

    .category-card {
        padding: 16px;
    }

    .category-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .form-container {
        margin: 20px;
        padding: 24px;
    }
}

.logo > a:before{
    content:unset;
}