/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - REQASMART EXACT */
    --primary-color: #009eff;
    --primary-dark: #007bbd;
    --secondary-color: #ff0000;
    --top-bar-bg: #363232;
    --top-bar-text: #ffffff;
    --text-dark: #363232;
    --text-light: #666666;
    --border-color: #e1e1e1;
    --white: #ffffff;
    --bg-body: #ffffff;
    --bg-light-gray: #f4f4f4;
    --container-width: 1440px;
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /* Global Modern Font */
    background-color: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.header-logo-text,
.main-menu a {
    font-family: 'Poppins', sans-serif;
    /* Global Modern Font */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
    /* 16px gutter */
}

/* Unified Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 40px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    font-family: 'Mulish', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-danger {
    background-color: var(--secondary-color);
    color: white;
    border: none;
}

.btn-light {
    background-color: #dbeeff;
    color: var(--primary-color);
    border: none;
}

/* ================= HEADER ================= */
.top-bar {
    background-color: var(--top-bar-bg);
    color: var(--top-bar-text);
    height: 45px;
    font-size: 14px;
    /* Increased font size */
    display: flex;
    align-items: center;
    font-weight: 700;
    overflow: hidden;
    /* Hide scroll */
    position: relative;
}

.top-bar-inner {
    width: 100%;
    position: relative;
    height: 100%;
}

.marquee-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: scrollLeft 15s linear infinite;
    position: absolute;
    /* Start from right (where customer service was) roughly or just off screen */
    padding-left: 100%;
}

@keyframes scrollLeft {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

.top-header-info {
    background: #fdfdfd;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
    font-size: 13px;
    color: #666;
}

.top-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-socials {
    display: flex;
    gap: 15px;
}

.header-socials a {
    color: #999;
    transition: 0.2s;
    font-size: 14px;
}

.header-socials a:hover {
    color: var(--primary-color);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.header-contact i {
    color: var(--primary-color);
}

.header-main {
    height: 99px;
    /* Reqasmart metric */
    background: var(--white);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-logo-text {
    font-size: 30px;
    font-weight: 800;
    color: #333;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Mulish', sans-serif;
}

.header-logo-text i {
    color: var(--primary-color);
}

.header-search {
    flex: 1;
    margin: 0 50px;
    display: flex;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    height: 50px;
    /* Reqasmart metric */
    overflow: hidden;
}

.search-select-wrapper {
    background: #f5f5f5;
    border-right: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 15px;
    min-width: 150px;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
}

.search-select-icon {
    margin-left: auto;
    font-size: 10px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0 20px;
    background: #f5f5f5;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 132px;
    /* Reqasmart metric */
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Mulish', sans-serif;
}

.header-actions {
    display: flex;
    gap: 30px;
}

.user-action {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 13px;
    font-family: 'Mulish', sans-serif;
}

.user-action i {
    font-size: 24px;
    color: #333;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.action-small {
    font-size: 11px;
    color: #888;
}

.action-bold {
    font-weight: 700;
    color: #333;
}

.header-nav-row {
    height: 62px;
    /* Reqasmart metric */
    border-top: 1px solid #eee;
    background: white;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.all-categories-btn {
    font-weight: 700;
    color: #363232;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-right: 1px solid #eee;
    padding-right: 15px;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    z-index: 101;
    background: transparent;
}

.relative-wrapper {
    position: relative;
    height: 100%;
}

/* Category Dropdown */
.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    border-top: 2px solid var(--primary-color);
    display: none;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
}

.categories-wrapper.active .categories-dropdown {
    display: block;
    animation: fadeIn 0.2s ease;
}

.categories-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-dropdown li {
    border-bottom: 1px solid #f9f9f9;
}

.categories-dropdown li:last-child {
    border-bottom: none;
}

.categories-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    color: #555;
    transition: var(--transition);
}

.categories-dropdown a i {
    color: #999;
    width: 20px;
    text-align: center;
    font-size: 16px;
    transition: var(--transition);
}

.categories-dropdown a:hover {
    background: #fdfdfd;
    color: var(--primary-color);
    padding-left: 25px;
}

.categories-dropdown a:hover i {
    color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-arrow {
    font-size: 10px;
    margin-left: 5px;
}

.main-menu {
    flex: 1;
    display: flex;
    gap: 20px;
    /* Standard professional spacing */
    padding-left: 20px;
    height: 100%;
    align-items: center;
}

.main-menu a {
    font-weight: 700;
    font-size: 13px;
    color: #363232;
    text-transform: uppercase;
    font-family: 'Mulish', sans-serif;
}

.main-menu a:hover {
    color: var(--primary-color);
}

.nav-right-btns {
    display: flex;
    gap: 10px;
}

.nav-action-btn {
    font-weight: 700;
    border-radius: 4px;
    height: 36px;
    display: flex;
    align-items: center;
}

/* ================= SLIDER & QUICK ACCESS ================= */
.slider-section {
    padding-top: 0;
    background: var(--bg-light-gray);
    padding-bottom: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.slider-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 535px;
    /* Reqasmart Metric */
}

/* Fade Transition Styles */
.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    /* Fast fade */
    z-index: 1;
    background-size: cover;
    background-position: center;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
}

.quick-access-section {
    padding: 30px 0 20px 0;
    /* User specific gap */
    background: var(--bg-light-gray);
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.quick-access-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: -25px;
    /* Pull icons up to touch/overlay slider bottom slightly or just close gap */
}

.qa-item {
    background: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    /* Tighter padding inside cards */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Stronger shadow to pop */
}

.qa-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.qa-icon {
    font-size: 24px;
    color: var(--primary-color);
    width: 40px;
    display: flex;
    justify-content: center;
}

.qa-text {
    font-weight: 700;
    font-size: 13px;
    color: #363232;
    line-height: 1.2;
    font-family: 'Mulish', sans-serif;
}

/* ================= SECTIONS & PRODUCTS ================= */
section {
    padding: 20px 0;
    /* Tighter standard spacing */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    /* White circle */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    color: #333;
    /* Dark grey icon */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.slider-nav-btn:hover {
    background: white;
    color: var(--primary-color);
}

.slider-nav-prev {
    left: 20px;
}

.slider-nav-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ================= NEWSLETTER & SOCIAL (Referenced Image) ================= */
.newsletter-card {
    background: white;
    border-radius: 8px;
    padding: 40px;
    flex: 1;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    min-width: 300px;
}

.newsletter-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.newsletter-card p {
    font-size: 13px;
    color: #777;
    margin-bottom: 25px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: #f5f5f5;
    border: none;
    padding: 0 15px;
    border-radius: 4px;
    height: 40px;
    font-size: 13px;
    outline: none;
}





/* ================= FOOTER ================= */
footer {
    background: #f9f9f9;
    /* margin-top: 60px; REMOVE spacing to allow section padding to handle it or standard gap */
    margin-top: 0;
    border-top: none;
}

/* ... rest of footer ... */



.section-title {
    font-size: 24px;
    /* ~1.5rem, adjusted for Mulish */
    font-weight: 700;
    color: #363232;
    margin: 0;
}

.section-link {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    font-family: 'Mulish', sans-serif;
}

/* ================= PRODUCT CAROUSEL ================= */
.product-carousel-wrapper {
    position: relative;
    padding-bottom: 30px;
    /* Space for dots */
}

.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    /* Hide scrollbar visual */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.product-carousel::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 270px;
    width: 270px;
    height: 450px;
    /* User requested 450px */
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 10px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: inset 0 0 0 1px var(--primary-color);
}

.product-img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    /* Fill area proportionately */
    margin-bottom: 5px;
    max-height: 250px;
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.badge {
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    width: fit-content;
}

.badge-discount {
    background: #ff0000;
}

.badge-new {
    background: #00c853;
}

.product-icons-top {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
    z-index: 5;
}

/* Hover Actions */
.product-hover-actions {
    position: absolute;
    top: 50px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 6;
}

.product-card:hover .product-hover-actions {
    opacity: 1;
    transform: translateX(0);
}

.hover-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.hover-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.icon-badge {
    color: #666;
    font-size: 14px;
}

.product-content-bottom {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: flex-end;
    min-height: 120px;
}

.product-brand {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0px;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;

    /* Multi-line ellipsis */
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 38px;
    /* Approx 2 lines */
}

.product-price {
    margin-bottom: 5px;
    padding-top: 5px;
}

.price {
    font-size: 18px;
    color: #ff0000;
    font-weight: 700;
}

.old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-right: 5px;
}

.add-to-cart-btn {
    width: 100%;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.c-dot {
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
}

.c-dot.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 10px;
}

/* ================= QUICK ACCESS REFINED ================= */
.quick-access-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    overflow-x: auto;
}

.qa-card {
    min-width: 193px;
    width: 193px;
    height: 107px;
    /* Increased height */
    background: white;
    border-radius: 8px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.qa-card:hover {
    border-color: var(--primary-color);
}

.qa-icon-box {
    color: var(--primary-color);
    font-size: 28px;
}

.qa-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* ================= CATEGORY SHOWCASE ================= */
.category-showcase {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
}

.category-banner {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ================= FOOTER ================= */
footer {
    background: #ffffff;
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.footer-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eef5f9;
    /* Light blue-gray from reference structure */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--primary-color);
    color: white;
}

.feature-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.feature-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

.footer-links-row {
    padding: 50px 0;
    /* Grid defined in HTML style attribute for specific ratio, or can be here: grid-template-columns: 2fr 1fr 1fr 1fr 1fr; */
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #555;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Social Icons specific if not global */
.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
}

.copyright-bar {
    background: #f9f9f9;
    padding: 20px 0;
    color: #888;
    font-size: 12px;
    text-align: center;
}

/* ================= BREADCRUMB ================= */
.breadcrumb {
    padding: 20px 0;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.breadcrumb ul {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.breadcrumb li a {
    color: #333;
    font-weight: 600;
}

.breadcrumb li a:hover {
    color: var(--primary-color);
}

.breadcrumb li i {
    font-size: 10px;
    margin-left: 10px;
    color: #ccc;
}

/* ================= PAGE LAYOUTS ================= */
.page-container {
    padding-bottom: 60px;
}

.layout-sidebar {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.sidebar {
    width: 270px;
    flex-shrink: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.sidebar-widget {
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 20px;
}

.sidebar-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.widget-categories li a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    transition: var(--transition);
}

.widget-categories li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.widget-checkbox-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.widget-checkbox-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
    accent-color: var(--primary-color);
}

/* Category Sidebar Styles */
.category-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.category-sidebar {
    width: 270px;
    flex-shrink: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 20px;
}

.filter-group:last-child {
    border: none;
    margin: 0;
    padding: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    color: #555;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    transition: 0.2s;
}

.filter-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.filter-checkbox {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-range-inputs input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}

.filter-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
    text-transform: uppercase;
}

.filter-btn:hover {
    filter: brightness(0.9);
}

.category-content,
.product-grid-content {
    flex: 1;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-grid {
    display: grid;
    /* Adjusted minmax to ensure 4 columns fit on standard screens */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.products-grid .product-card {
    width: 100%;
}

/* ================= PRODUCT DETAIL ================= */
.product-detail-top {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.product-gallery {
    /* Fixed width to optimize whitespace for vertical layout */
    width: auto;
    flex: 0 0 450px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.main-image {
    flex: 1;
    height: 600px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90px;
    height: 600px;
    overflow-y: auto;
    padding-right: 5px;
    order: -1;
}

/* Scrollbar styling for thumbnails */
.thumb-images::-webkit-scrollbar {
    width: 4px;
}

.thumb-images::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.thumb-images::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.thumb-images::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.thumb {
    width: 100%;
    height: 110px;
    /* Taller */
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    padding: 3px;
}

.thumb.active {
    border-color: var(--primary-color);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info-col {
    width: auto;
    flex: 1;
    /* Take remaining space */
}

.pd-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
}

.pd-brand {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    display: block;
}

.pd-price-row {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.pd-price {
    font-size: 32px;
    color: #ff0000;
    font-weight: 700;
}

.pd-old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 8px;
}

.pd-meta {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.qty-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.qty-input-group {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: #f9f9f9;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.qty-input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
}

.pd-add-btn {
    height: 50px;
    padding: 0 40px;
    font-size: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.pd-add-btn:hover {
    background: var(--primary-dark);
}

.product-tabs-wrapper {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 50px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.tab-link {
    padding: 15px 30px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-link.active {
    background: white;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
}

.tab-content {
    padding: 30px;
    display: none;
}

.tab-content.active {
    display: block;
}

/* ================= CART PAGE ================= */
.cart-page-layout {
    display: flex;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.cart-left {
    flex: 1;
}

.cart-right {
    width: 350px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    background: #f9f9f9;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #eee;
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.cart-summary-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-weight: 700;
    font-size: 20px;
    color: #333;
}

.checkout-btn {
    width: 100%;
    height: 50px;
    margin-top: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }



    .category-products {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-showcase {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .top-bar {
        display: none;
    }

    .header-main {
        height: auto;
        padding: 15px 0;
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        width: 100%;
        margin: 15px 0 0 0;
        min-width: 100%;
    }

    .header-nav-row {
        display: none;
    }

    /* Mobile Menu needed */
    .slider-container {
        height: 350px;
    }

    .category-showcase {
        grid-template-columns: 1fr;
    }

    .category-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-access-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .checkout-layout,
    .account-layout {
        flex-direction: column;
    }

    .checkout-summary,
    .account-sidebar {
        width: 100% !important;
        margin-bottom: 30px;
    }

    /* --- HIDE DESKTOP ELEMENTS --- */
    .top-bar,
    .header-main,
    .header-nav,
    .top-header-info,
    footer .newsletter-wrapper,
    footer .footer-features,
    footer .footer-links-row {
        display: none !important;
    }

    footer .container {
        padding-bottom: 80px;
    }

    /* --- MOBILE APP BAR (Top) --- */
    .mobile-app-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        background: white;
        padding: 0 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .mobile-logo {
        font-weight: 800;
        font-size: 18px;
        color: #333;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-logo i {
        color: var(--primary-color);
    }

    .mobile-actions {
        display: flex;
        gap: 15px;
    }

    .mobile-actions a {
        color: #333;
        font-size: 20px;
    }

    /* --- MOBILE BOTTOM NAV (Bottom) --- */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 70px;
        /* Taller for touch */
        background: white;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #f5f5f5;
        padding-bottom: 10px;
        /* Safe area */
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 10px;
        gap: 5px;
        position: relative;
        flex: 1;
        height: 100%;
        text-decoration: none;
    }

    .nav-item i {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .nav-item.active {
        color: var(--primary-color);
    }

    .nav-badge {
        position: absolute;
        top: 8px;
        right: 25%;
        background: #ff4757;
        color: white;
        font-size: 10px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* --- LAYOUT ADJUSTMENTS --- */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    body {
        padding-top: 60px;
        /* Fixed Header */
        padding-bottom: 70px;
        /* Fixed Bottom Nav */
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }

    #header-placeholder {
        display: none !important;
    }

    /* --- MOBILE TYPOGRAPHY & FOOTER --- */
    h1,
    .page-title {
        font-size: 20px !important;
    }

    h2,
    .section-title {
        font-size: 18px !important;
    }

    h3,
    .product-title {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    /* Completely hide footer on mobile as requested */
    footer,
    .copyright-bar {
        display: none !important;
    }

    /* Ensure body doesn't have huge padding if footer is gone, but we still need padding for bottom nav */
    body {
        padding-bottom: 80px !important;
        /* Space for fixed bottom nav */
    }

    /* --- SLIDER COMPACT (Mobile) --- */
    .slider-container {
        height: 200px !important;
        /* Smaller height */
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }

    .slide-item {
        height: 200px !important;
        border-radius: 0;
    }

    .slide-item img {
        height: 100% !important;
        object-fit: cover;
    }

    /* Hide slider controls on mobile for cleaner look? */
    .slider-nav-btn {
        display: none !important;
    }

    /* --- CARD DESIGN (Rounded & Modern) --- */
    .product-card {
        border-radius: 12px;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        /* Softer shadow */
        overflow: hidden;
        margin-bottom: 15px;
    }

    .product-img-wrapper {
        border-radius: 12px 12px 0 0;
        height: auto;
    }

    .product-add-btn {
        border-radius: 0 0 12px 12px;
        padding: 12px;
    }

    /* --- GESTURE & TOUCH OPTIMIZATION --- */
    button,
    a {
        touch-action: manipulation;
    }

    .category-sidebar {
        display: none;
    }

    /* Ensure bottom nav is always on top of everything */
    .mobile-bottom-nav {
        z-index: 9999;
        box-sizing: border-box;
        /* Fix width calculation */
    }

    .mobile-app-bar {
        z-index: 9999;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .newsletter-wrapper .container {
        flex-direction: column;
    }

    .newsletter-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* ================= AUTH PAGES ================= */
.auth-page {
    background: #fdfdfd;
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    width: 100%;
    max-width: 450px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.auth-subtitle {
    font-size: 14px;
    color: #777;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 158, 255, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.auth-btn:hover {
    background: var(--primary-dark);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.form-check input {
    margin-top: 3px;
    accent-color: var(--primary-color);
}

/* Header Login Dropdown */
.header-login-wrapper {
    position: relative;
    cursor: pointer;
}

.header-login-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    display: none;
    cursor: default;
    margin-top: 10px;
}

.header-login-dropdown.show {
    display: block;
}

.header-login-dropdown:before {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid #ebebeb;
    border-left: 1px solid #ebebeb;
}

.dropdown-form .form-group {
    margin-bottom: 15px;
}

.dropdown-form .form-input {
    padding: 10px;
    font-size: 13px;
}

.dropdown-form .auth-btn {
    padding: 10px;
    font-size: 14px;
    margin-top: 5px;
}

.dropdown-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 12px;
}

.dropdown-footer a {
    color: #666;
}

.dropdown-footer a:hover {
    color: var(--primary-color);
}

/* ================= CHECKOUT & ACCOUNT ================= */
.checkout-layout,
.account-layout {
    margin-bottom: 50px;
}

.box-white {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.account-nav a:hover {
    background: #f9f9f9;
    color: var(--primary-color) !important;
}

.order-card {
    transition: 0.2s;
}

.order-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-item button:hover {
    color: var(--primary-color);
}

/* Responsive for Checkout/Account */


/* ================= MOBILE APP INTERFACE ================= */

/* Default: Hide Mobile Elements on Desktop */
.mobile-app-bar,
.mobile-bottom-nav {
    display: none;
}