/* =========================================
   1. GENERAL SETTINGS
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #ffffff;
    color: #292936;
    font-size: 13px;
}

a { 
    text-decoration: none; 
    color: inherit; 
}

button, 
input, 
select { 
    font: inherit; 
}

/* =========================================
   2. TOP BAR
========================================= */
.top-bar {
    width: 100%;
    height: 38px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
}

.top-container {
    width: 83%;
    max-width: 1110px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left { 
    display: flex; 
    align-items: center; 
    gap: 25px; 
}

.top-left a { 
    font-size: 12px; 
    color: #898994; 
}

.top-account { 
    display: flex; 
    align-items: center; 
    gap: 7px; 
    font-size: 12px; 
}

.top-account i {
    width: 20px; 
    height: 20px;
    display: flex; 
    justify-content: center; 
    align-items: center;
    border: 1px solid #dddddf; 
    border-radius: 50%; 
    font-size: 10px;
}

/* =========================================
   3. HEADER & LOGO & SEARCH
========================================= */
.main-header { 
    width: 100%; 
    background: #fff; 
}

.header-container {
    width: 83%; 
    max-width: 1110px; 
    min-height: 125px;
    margin: 0 auto; 
    display: flex; 
    align-items: center;
    justify-content: space-between; 
    gap: 25px;
}

.brand-logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-shrink: 0; 
}

.brand-icon { 
    color: #0863ff; 
    font-size: 49px; 
}

.brand-text { 
    display: flex; 
    flex-direction: column; 
}

.brand-name { 
    font-size: 42px; 
    line-height: 1.1; 
    color: #080808; 
}

.brand-name span { 
    color: #0863ff; 
}

.brand-tagline { 
    padding-left: 3px; 
    color: #111; 
    font-size: 15px; 
    letter-spacing: 5px; 
}

.search-form {
    flex: 1; 
    height: 47px; 
    display: flex; 
    align-items: center;
    border: 1px solid #dedee2; 
    border-radius: 9px; 
    overflow: hidden; 
    background: #fff;
}

.search-form input { 
    width: 100%; 
    height: 100%; 
    padding: 0 19px; 
    border: none; 
    outline: none; 
}

.search-form button { 
    width: 45px; 
    height: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border: none; 
    background: transparent; 
    color: #bcbcc3; 
    cursor: pointer; 
}

.header-tools { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    flex-shrink: 0; 
}

.header-tool { 
    min-width: 57px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 4px; 
    color: #9999a2; 
    font-size: 11px; 
}

.header-tool i { 
    font-size: 19px; 
    color: #bcbcc3; 
}

.tool-divider { 
    width: 1px; 
    height: 23px; 
    background: #e8e8e8; 
}

/* =========================================
   4. NAVIGATION
========================================= */
.navigation { 
    width: 100%; 
    min-height: 44px; 
    background: #1600ff; 
    color: #fff; 
}

.navigation-container { 
    width: 83%; 
    max-width: 1110px; 
    min-height: 44px; 
    margin: 0 auto; 
    display: flex; 
    align-items: stretch; 
}

.categories-link {
    width: 280px; 
    min-height: 44px; 
    flex-shrink: 0;
    display: flex; 
    align-items: center; 
    gap: 9px;
    padding: 0 20px; 
    background: #1000d9;
    color: #fff; 
    font-size: 13px; 
    font-weight: 500;
}

.navigation-links { 
    flex: 1; 
    display: flex; 
}

.nav-link { 
    display: flex; 
    align-items: center; 
    padding: 0 11px; 
    color: #fff; 
    font-size: 13px; 
}

.nav-link:hover { 
    background: #3120ff; 
}

.nav-link.active { 
    background: #4031ff; 
}

.cart-summary { 
    min-width: 97px; 
    padding: 0 12px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: #1000d9; 
    color: #fff; 
}

/* =========================================
   MOBILE MENU (HAMBURGER)
========================================= */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
}

.hamburger .close-icon {
    display: none;
}

/* =========================================
   5. PRODUCTS PAGE
========================================= */
.products-page { 
    width: 84%; 
    max-width: 1320px; 
    margin: 0 auto; 
    padding-top: 58px; 
    padding-bottom: 35px; 
}

.breadcrumb { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    margin-bottom: 24px; 
    font-size: 13px; 
}

.breadcrumb a { 
    color: #92929d; 
}

.breadcrumb i { 
    color: #777783; 
    font-size: 10px; 
}

.breadcrumb span { 
    color: #171725; 
}

/* =========================================
   6. LAYOUT - LEFT + RIGHT
========================================= */
.products-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 300px;
    position: sticky;
    top: 20px;
}

/* =========================================
   7. SIDEBAR & FILTER BOXES
========================================= */
.sidebar, 
.filter-box {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    padding: 16px 18px;
}

.sidebar { 
    height: 410px; 
    overflow-y: auto; 
}

.sidebar h2, 
.filter-box h3 { 
    font-size: 15px; 
    font-weight: 600; 
    margin-bottom: 12px; 
    color: #292936; 
}

.category-list { 
    list-style: none; 
}

.category-list li { 
    margin-bottom: 3px; 
}

.category-list a { 
    min-height: 26px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: #777; 
    font-size: 13px; 
}

.price-check { 
    font-size: 13px; 
    color: #777; 
    display: flex; 
    gap: 6px; 
    margin-bottom: 10px; 
}

.price-inputs { 
    display: flex; 
    border: 1px solid #e2e2e2; 
    border-radius: 4px; 
    overflow: hidden; 
}

.price-inputs input { 
    width: 50%; 
    border: none; 
    padding: 8px 10px; 
    font-size: 13px; 
    background: #f9f9f9; 
    outline: none; 
}

.price-inputs input:first-child { 
    border-right: 1px solid #e2e2e2; 
}

.price-slider { 
    position: relative; 
    height: 24px; 
    margin-top: 18px; 
}

.slider-track { 
    position: absolute; 
    top: 50%; 
    width: 100%; 
    height: 3px; 
    background: #e5e5e5; 
    transform: translateY(-50%); 
    border-radius: 3px; 
}

.slider-range { 
    position: absolute; 
    top: 50%; 
    left: 8px; 
    right: 8px; 
    height: 3px; 
    background: #1600ff; 
    transform: translateY(-50%); 
}

.thumb { 
    position: absolute; 
    top: 50%; 
    width: 16px; 
    height: 16px; 
    background: #fff; 
    border: 2px solid #1600ff; 
    border-radius: 50%; 
    transform: translateY(-50%); 
}

.thumb-left { 
    left: 0; 
} 

.thumb-right { 
    right: 0; 
}

.storage-list, 
.ratings-list { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    margin-top: 6px; 
}

.storage-check { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 13px; 
    color: #555; 
    cursor: pointer; 
}

.storage-check input { 
    width: 15px; 
    height: 15px; 
    accent-color: #1600ff; 
}

.color-list { 
    display: flex; 
    gap: 10px; 
    margin-top: 8px; 
}

.color-dot { 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    border: 2px solid #fff; 
    outline: 1px solid #e0e0e0; 
    cursor: pointer; 
}

.rating-stars { 
    display: flex; 
    align-items: center; 
    gap: 2px; 
    color: #ff9e35; 
    font-size: 14px; 
}

.and-up { 
    color: #1600ff; 
    font-size: 12px; 
    margin-left: 6px; 
}

/* =========================================
   8. RIGHT SIDE - TOOLBAR & GRID
========================================= */
.products-content { 
    width: 100%; 
    min-width: 0; 
}

.products-toolbar { 
    min-height: 43px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 12px; 
    margin-bottom: 25px; 
}

.products-count { 
    color: #92929d; 
    font-size: 12px; 
}

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

.toolbar-controls select { 
    height: 37px; 
    padding: 0 10px; 
    border: 1px solid #e0e0e0; 
    border-radius: 3px; 
    background: #fff; 
    color: #777783; 
}

#sort-products { 
    width: 165px; 
} 

#show-products { 
    width: 65px; 
}

.view-button { 
    width: 40px; 
    height: 37px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid #e0e0e0; 
    border-radius: 3px; 
    background: #fff; 
    color: #999; 
}

.view-button.active { 
    color: #1600ff; 
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    width: 100%; 
    height: 301px; 
    display: flex; 
    flex-direction: column;
    overflow: hidden; 
    border: 1px solid #e2e2e2; 
    border-radius: 5px; 
    background: #fff;
}

.product-image { 
    width: 100%; 
    height: 168px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 15px; 
    background: #fff; 
}

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

.placeholder-image i { 
    color: #a9a9a9; 
    font-size: 44px; 
}

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

.product-info h3 { 
    overflow: hidden; 
    white-space: nowrap; 
    text-overflow: ellipsis; 
    color: #22222e; 
    font-size: 13px; 
    font-weight: 500; 
}

.price { 
    color: #1600ff; 
    font-size: 13px; 
    font-weight: 600; 
}

.price .old-price { 
    color: #000 !important; 
    font-size: 10px; 
    text-decoration: line-through; 
}

.rating { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    margin-bottom: 8px; 
}

.stars { 
    color: #ff9e35; 
    font-size: 17px; 
    letter-spacing: -2px; 
}

.review-count { 
    color: #999; 
    font-size: 11px; 
}

.add-to-cart { 
    width: 100%; 
    min-height: 36px; 
    margin-top: auto; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    border: none; 
    border-radius: 3px; 
    background: #f0f0f0; 
    color: #4c4c4c; 
    font-size: 13px; 
}

/* =========================================
   PRODUCTS FOOTER
========================================= */
.products-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-text {
    color: #888;
    font-size: 13px;
}

.results-text strong {
    color: #333;
    font-weight: 600;
}

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

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}

.page-btn:hover {
    border-color: #1600ff;
    color: #1600ff;
}

.page-btn.active {
    background: #1600ff;
    border-color: #1600ff;
    color: #fff;
}

.page-btn.disabled {
    background: #f3f3f3;
    color: #aaa;
    cursor: not-allowed;
    border-color: #eee;
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
    background: #1e1e1e;
    color: #b8b8b8;
    margin-top: 60px;
    position: relative;
}

.footer-top-container, 
.footer-links-container {
    width: 84%;
    max-width: 1320px;
    margin: 0 auto;
}

.footer-top {
    padding: 50px 0 40px;
    border-bottom: 1px solid #2a2a2a;
}

.footer-top-container {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 35px;
    font-weight: 500;
    color: #2f80ff;
    margin-bottom: 18px;
}

.footer-logo i { 
    font-size: 40px; 
}

.footer-logo span span { 
    color: #4a90ff; 
    font-weight: 400; 
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    color: #a0a0a0;
    max-width: 360px;
}

.footer-newsletter { 
    text-align: center; 
}

.footer-newsletter h4, 
.footer-contact h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer-newsletter p {
    font-size: 15px;
    color: #a0a0a0;
    margin-bottom: 18px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.newsletter-form input {
    width: 300px;
    height: 42px;
    padding: 0 15px;
    border: none;
    border-radius: 5px;
    background: #fff;
    font-size: 15px;
    outline: none;
}

.newsletter-form button {
    height: 42px;
    padding: 0 22px;
    border: none;
    border-radius: 5px;
    background: #1600ff;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.newsletter-form button:hover { 
    background: #2410ff; 
}

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

.footer-contact li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    color: #a0a0a0;
    line-height: 1.4;
}

.footer-contact li i { 
    margin-top: 3px; 
    font-size: 17px; 
    color: #888; 
}

.footer-links { 
    padding: 35px 0 40px; 
}

.footer-links-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.footer-col h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

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

.footer-col li { 
    margin-bottom: 8px; 
}

.footer-col a {
    color: #a0a0a0;
    font-size: 14px;
    transition: color 0.2s;
}

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

.scroll-top {
    position: absolute;
    right: 30px;
    bottom: 90px;
    width: 32px;
    height: 32px;
    background: #24245a;
    border: none;
    border-radius: 4px;
    color: #8a8aff;
    cursor: pointer;
}

/* =========================================
   FOOTER BOTTOM
========================================= */
.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 18px 0;
}

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

.copyright {
    font-size: 13px;
    color: #a0a0a0;
}

.copyright span {
    color: #2f53ff;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.x-icon { 
    background: #2a2a2a; 
}

.insta-icon { 
    background: #c1356b; 
}

.linkedin-icon { 
    background: #0a66c2; 
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-icons img {
    height: 22px;
    background: #fff;
    padding: 2px 4px;
    border-radius: 3px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1200px) {
    .products-page { 
        width: 92%; 
    }

    .products-layout { 
        grid-template-columns: 250px 1fr; 
        gap: 20px; 
    }

    .product-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 1100px) {
    .footer-top-container { 
        grid-template-columns: 1fr 1fr; 
    }

    .footer-contact { 
        grid-column: 1 / -1; 
    }

    .footer-links-container { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 30px; 
    }
}

@media (max-width: 900px) {
    /* Header */
    .top-container,
    .header-container {
        width: 92%;
    }

    .header-container {
        min-height: auto;
        padding: 18px 0;
        flex-wrap: wrap;
        gap: 15px;
    }

    .brand-icon {
        font-size: 36px;
    }

    .brand-name {
        font-size: 30px;
    }

    .brand-tagline {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .header-tools {
        margin-left: auto;
    }

    .search-form {
        order: 3;
        flex-basis: 100%;
        height: 42px;
    }

    /* Navigation + hamburger */
    .navigation {
        position: relative;
    }

    .navigation-container {
        width: 100%;
    }

    .categories-link {
        width: auto;
    }

    .cart-summary {
        order: 2;
        margin-left: auto;
    }

    .hamburger {
        display: flex;
        order: 3;
    }

    .navigation-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #1600ff;
        z-index: 50;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .nav-link {
        padding: 14px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 14px;
    }

    .menu-toggle:checked ~ .navigation-links {
        display: flex;
    }

    .menu-toggle:checked + .hamburger .open-icon {
        display: none;
    }

    .menu-toggle:checked + .hamburger .close-icon {
        display: inline;
    }

    /* Products first, filters after */
    .products-content {
        order: -1;
    }

    .products-page {
        padding-top: 30px;
    }

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

    .left-column { 
        width: 100%; 
        position: static; 
    }

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

@media (max-width: 800px) {
    .footer-bottom-container {
        width: 92%;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .top-left {
        gap: 14px;
    }

    .brand-icon {
        font-size: 30px;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-tagline {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .header-tools {
        gap: 10px;
    }

    .header-tool {
        min-width: auto;
    }

    .categories-link {
        padding: 0 14px;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-controls {
        flex-wrap: wrap;
    }

    #sort-products {
        width: 150px;
    }

    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    }

    .products-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-top-container, 
    .footer-links-container { 
        width: 92%; 
    }

    .footer-top-container { 
        grid-template-columns: 1fr; 
    }

    .footer-newsletter { 
        text-align: left; 
    }

    .newsletter-form { 
        flex-direction: column; 
    }

    .newsletter-form input { 
        width: 100%; 
    }

    .footer-links-container { 
        grid-template-columns: repeat(2, 1fr); 
    }
}
/* ========================================== */
/* SCROLL TO TOP BUTTON STYLES                */
/* ========================================== */
.scroll-to-top-btn {
  position: fixed;            
  bottom: 30px;               
  right: 30px;                
  width: 40px;
  height: 40px;
  background-color: #d8d8ff;  
  color: #0000ff;             
  border: none;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 999;               
}

/* Hover Effect */
.scroll-to-top-btn:hover {
  background-color: #0000ff;
  color: #ffffff;
}

/* Responsiveness for mobile screens */
@media screen and (max-width: 600px) {
  .scroll-to-top-btn {
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}