* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== HEADER STYLES ====== */
.header {
    background-color: #232f3e;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.logo i {
    color: #ff9900;
    font-size: 28px;
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
    position: relative;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    background-color: #ff9900;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background-color: #e68900;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-container {
    position: relative;
}

.cart-icon {
    font-size: 22px;
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.cart-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff9900;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ====== NAVBAR STYLES ====== */
.navbar {
    background-color: #37475a;
    padding: 0 5%;
}

.navbar ul {
    display: flex;
    flex-wrap: wrap;
}

.navbar li {
    position: relative;
}

.navbar a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    font-weight: 500;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.navbar a:hover {
    background-color: #485769;
}

.navbar a.active {
    background-color: #ff9900;
    color: white;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #ff9900;
}

.dropdown-content a i {
    width: 20px;
    color: #666;
}

.dropdown:hover .dropdown-content {
    display: block;
}
/* ====== PRODUCTS PAGE STYLES ====== */

.products-page {
    padding: 20px 5% 60px;
    background-color: #f8f9fa;
    min-height: 70vh;
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    color: #555;
}

.filter-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #ff9900;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* Sort Options */
.sort-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-by label {
    font-weight: 500;
    color: #555;
}

.sort-by select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    min-width: 150px;
}

.sort-by select:focus {
    outline: none;
    border-color: #ff9900;
}

.product-count {
    color: #666;
    font-size: 14px;
}

/* Products Container */
.products-container {
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Loading Placeholder */
.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff9900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff9900;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: #ff9900;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #232f3e;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.product-price {
    font-size: 22px;
    color: #232f3e;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.product-save {
    font-size: 14px;
    color: #ff4444;
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.price-btn {
    flex: 2;
    background-color: #232f3e;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.price-btn:hover {
    background-color: #ff9900;
}

.preview-btn {
    flex: 1;
    background-color: #ff9900;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-btn:hover {
    background-color: #232f3e;
}

.add-to-cart-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.add-to-cart-btn:hover {
    background-color: #45a049;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-products i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.no-products p {
    color: #666;
    margin-bottom: 20px;
}

.reset-filters {
    background-color: #ff9900;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.reset-filters:hover {
    background-color: #e68900;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-btn:hover:not(:disabled) {
    background: #e0e0e0;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

.page-number:hover {
    background: #f0f0f0;
}

.page-number.active {
    background: #ff9900;
    color: white;
}

/* Add Products Info */
.add-products-info {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.add-products-info h3 {
    color: #232f3e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-products-info h3 i {
    color: #ff9900;
}

.add-products-info ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.add-products-info li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.add-products-info code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.note {
    background-color: #fff8e1;
    border-left: 4px solid #ff9900;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.json-example {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow-x: auto;
}

.json-example h4 {
    margin-bottom: 15px;
    color: #333;
}

.json-example pre {
    margin: 0;
    padding: 15px;
    background-color: #2d2d2d;
    color: #f8f8f2;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
}
/* ====== FOOTER STYLES ====== */
.footer {
    background-color: #232f3e;
    color: white;
    padding: 50px 5% 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-logo i {
    color: #ff9900;
    font-size: 24px;
}

.footer-logo h3 {
    font-weight: 600;
}

.footer-description {
    color: #aaa;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #37475a;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #ff9900;
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ff9900;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #ff9900;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ddd;
    font-size: 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a:hover {
    color: #ff9900;
    padding-left: 5px;
}

.footer-section ul li i {
    width: 20px;
    color: #ff9900;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #37475a;
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
}

/* ====== CART MODAL ====== */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: flex-end;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cart-modal-content {
    background-color: white;
    width: 100%;
    max-width: 450px;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #232f3e;
    color: white;
}

.cart-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.close-cart {
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    padding: 0 5px;
}

.close-cart:hover {
    color: #ff9900;
}

.cart-modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.empty-cart p {
    color: #888;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.4;
}

.cart-item-price {
    font-size: 16px;
    color: #ff9900;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.cart-item-quantity span {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #cc0000;
}

.cart-modal-footer {
    padding: 20px;
    border-top: 2px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.total-amount {
    color: #ff9900;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: #ff9900;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    background-color: #e68900;
}

/* Quick View Modal */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.quick-view-content {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.close-quick-view {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-quick-view:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .sort-options {
        flex-direction: column;
        gap: 15px;
align-items: flex-start;
}

.product-actions {
    flex-direction: column;
}

.price-btn,
.preview-btn,
.add-to-cart-btn {
    width: 100%;
}
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }
}