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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    font-size: 16px;
    line-height: 1.6;
}

/* 
   TOP BAR STYLING
    */
.top-bar {
    background-color: white;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
}

.logo-icon {
    width: auto;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;  
    background: none; 
    padding: 0;
}

.logo-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.search-container {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 800px;
    margin: 0 25px;
}

.search-bar {
    display: flex;
    width: 100%;
    border: 2px solid #4a90e2;
    border-radius: 6px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    outline: none;
    font-size: 16px;
}

.category-dropdown {
    padding: 12px 18px;
    border: none;
    border-left: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    outline: none;
    font-size: 16px;
    min-width: 140px;
}

.search-btn {
    padding: 12px 25px;
    background-color: #4a90e2;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #3afc09;
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #4d4c4c;
    font-size: 14px;
    transition: color 0.3s;
}

.icon-item:hover {
    color: #0575f5;
}

.icon-item i {
    font-size: 24px;
    margin-bottom: 3px;
}

/* 
   NAVIGATION BAR
    */
.nav-bar {
    background-color: white;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

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

.nav-item {
    padding: 10px 18px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-item:hover {
    background-color: #f0f0f0;
}

.nav-item.active {
    background-color: #4a90e2;
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #666;
}

.language-select {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    outline: none;
}

.ship-to {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* 
   BREADCRUMB NAVIGATION
    */
.breadcrumb-section {
    background-color: #f7f7f7;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
}

.breadcrumb-link:hover {
    color: #2563eb;
}

.breadcrumb-separator {
    color: #9ca3af;
    font-size: 16px;
}

.breadcrumb-current {
    color: #1f2937;
    font-weight: 500;
    font-size: 16px;
}

/* 
   PRODUCT LISTING SECTION
    */
.product-listing-section {
    padding: 30px 0;
    background-color: #ffffff;
    min-height: 100vh;
}

.product-listing-container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.filters-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.filter-group {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9fafb;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s;
}

.filter-header:hover {
    background-color: #f3f4f6;
}

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

.filter-arrow {
    font-size: 14px;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.filter-group.active .filter-arrow {
    transform: rotate(180deg);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    max-height: 280px;
    overflow-y: auto;
}

.filter-group.active .filter-list {
    display: block;
}

.filter-list li {
    padding: 0;
    border-bottom: 1px solid #f3f4f6;
}

.filter-list li:last-child {
    border-bottom: none;
}

.filter-link {
    display: block;
    padding: 12px 15px;
    color: #4b5563;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.filter-link:hover {
    background-color: #f3f4f6;
    color: #0e58f8;
    padding-left: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 16px;
    color: #4b5563;
    transition: background-color 0.3s;
}

.checkbox-label:hover {
    background-color: #f3f4f6;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #0e58f8;
}

.products-main-content {
    flex: 1;
    min-width: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
}

.products-title h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
}

.products-title .highlight {
    color: #0e58f8;
    font-size: 22px;
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.controls-left label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #4b5563;
    cursor: pointer;
}

.controls-left input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0e58f8;
}

.sort-dropdown {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    color: #4b5563;
    background-color: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.sort-dropdown:hover,
.sort-dropdown:focus {
    border-color: #0e58f8;
}

.view-toggle {
    display: flex;
    gap: 6px;
    background-color: #f3f4f6;
    padding: 4px;
    border-radius: 6px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    background-color: transparent;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    color: #0e58f8;
}

.view-btn.active {
    background-color: white;
    color: #0e58f8;
    border-color: #d1d5db;
}

.active-filters-section {
    display: none;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.active-filters-section.show {
    display: flex;
}

.filter-tags-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: 14px;
    color: #1e40af;
    transition: all 0.3s;
    animation: slideInTag 0.3s ease;
}

@keyframes slideInTag {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.filter-tag:hover {
    background-color: #dbeafe;
    border-color: #93c5fd;
}

.filter-tag-text {
    font-weight: 500;
}

.filter-tag-remove {
    background: none;
    border: none;
    color: #1e40af;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    line-height: 1;
}

.filter-tag-remove:hover {
    background-color: #1e40af;
    color: white;
    transform: rotate(90deg);
}

.clear-all-filters-btn {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.clear-all-filters-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #1f2937;
}

.clear-all-filters-btn:active {
    transform: scale(0.98);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    flex-direction: row;
}

.products-grid.list-view .product-image {
    width: 220px;
    height: 220px;
    min-width: 220px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #0e58f8;
    transform: translateY(-3px);
}

.product-image {
    width: 100%;
    height: 250px;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
    padding: 8px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.product-original-price {
    font-size: 16px;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.stars {
    color: #f59e0b;
    font-size: 16px;
    letter-spacing: 1px;
}

.rating-count {
    color: #6b7280;
    font-size: 14px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.view-details-link {
    color: #0e58f8;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s;
}

.view-details-link:hover {
    color: #0c47cc;
    text-decoration: underline;
}

.favorite-btn {
    background-color: transparent;
    border: none;
    color: #d1d5db;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #ef4444;
}

.pagination-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
    background-color: #f9fafb;
    border-radius: 10px;
    margin-bottom: 25px;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.show-items {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    background-color: white;
    color: #4b5563;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(.active):not(:disabled) {
    border-color: #0e58f8;
    color: #0e58f8;
    background-color: #eff6ff;
}

.pagination-btn.active {
    background-color: #0e58f8;
    color: white;
    border-color: #0e58f8;
}

.pagination-btn.prev-btn,
.pagination-btn.next-btn {
    font-size: 18px;
    font-weight: 700;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notification {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 12px 20px;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInNotification 0.3s ease;
    min-width: 250px;
    font-size: 16px;
}

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

.notification-success { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification-error { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notification-warning { 
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.notification-info { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.notification-icon {
    font-size: 18px;
    font-weight: bold;
}

.notification-message {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.notification-close:hover {
    transform: rotate(90deg);
}

.newsletter-section {
    padding: 50px 15px;
    background-color: #d3d2d2;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 28px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.newsletter-desc {
    font-size: 16px;
    color: #000000;
    margin-bottom: 25px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.newsletter-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 380px;
}

.newsletter-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a9cd6;
    pointer-events: none;
    font-size: 16px;
}

.newsletter-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #c9dcf8;
    border-radius: 6px;
    font-size: 16px;
    background-color: #ffffff;
    transition: border-color 0.3s;
}

.newsletter-input:focus {
    outline: none;
    border-color: #0e58f8;
}

.newsletter-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.newsletter-btn {
    padding: 14px 25px;
    background-color: #0850eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 550;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background-color: #25ec0b;
    font-size: 17px;
    color: rgb(255, 3, 3);
}

.footer-main {
    padding: 40px 0;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.footer-main-container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo img {
    width: auto;
    height: auto;
    max-width: 100%;
}

.footer-brand-desc {
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ebe8e5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: #67e460fa;
}

.social-icon img {
    width: 18px;
    height: 18px;
}

.footer-column {
    min-width: 0;
}

.footer-column-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: #5c687e;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #004ff8;
}

.footer-app {
    min-width: 0;
}

.app-download {
    display: block;
    margin-bottom: 12px;
}

.app-download img {
    width: 140px;
    height: auto;
    border-radius: 6px;
    transition: transform 0.3s;
}

.app-download:hover img {
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 20px 0;
    background-color: #d3d7da;
    border-top: 1px solid #9096a3;
}

.footer-bottom-container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 16px;
    color: #1c2331;
    margin: 0;
}

.footer-language {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #195abb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #1f2937;
    transition: border-color 0.3s;
}

.language-btn:hover {
    border-color: #9ca3af;
}

.language-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.language-arrow {
    width: 14px;
    height: 14px;
    color: #6b7280;
}

.language-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    display: none;
    overflow: hidden;
}

.footer-language:hover .language-dropdown {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    font-size: 14px;
    color: #1f2937;
    text-decoration: none;
    transition: background-color 0.3s;
}

.language-option:hover {
    background-color: #f3f4f6;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-listing-container {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .footer-main-container {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .product-listing-container {
        gap: 20px;
    }

    .filters-sidebar {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .products-controls {
        width: 100%;
        justify-content: space-between;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .products-grid.list-view .product-image {
        width: 160px;
        height: 160px;
    }

    .pagination-info {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-controls {
        width: 100%;
        justify-content: center;
    }
    
    .newsletter-section {
        padding: 40px 15px;
    }
    
    .newsletter-title {
        font-size: 24px;
    }
    
    .newsletter-desc {
        font-size: 14px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .newsletter-input-wrapper {
        max-width: 100%;
        width: 100%;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    .footer-main {
        padding: 30px 0;
    }
    
    .footer-main-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-app {
        grid-column: 1 / -1;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-listing-container {
        padding: 0 12px;
    }

    .filters-sidebar {
        grid-template-columns: 1fr;
    }

    .products-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }

    .products-grid {
        gap: 15px;
    }

    .product-name {
        font-size: 14px;
        min-height: auto;
    }

    .product-price {
        font-size: 18px;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .footer-main-container {
        grid-template-columns: 1fr;
    }
}