/* =================================================================
   De Ra Casa Construyo - Construction Materials Store
   Modern Blue Theme with Sidebar Layout
   ================================================================= */

/* CSS Variables */
:root {
    --primary-blue: #1e56a0;
    --primary-blue-dark: #164079;
    --primary-blue-light: #2968b8;
    --accent-blue: #1890ff;
    --text-dark: #2c3e50;
    --text-gray: #5a6c7d;
    --text-light: #7f8c8d;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #ecf0f1;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --sidebar-width: 260px;
    --header-height: 80px;
}

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

body {
    font-family: 'Sofia Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =================================================================
   Top Header - Sticky
   ================================================================= */
.top-header {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--header-height);
}

.header-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 30px;
}

/* Logo */
.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo h1 span {
    color: var(--accent-blue);
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 0 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    background: var(--bg-white);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.search-container input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    font-size: 15px;
    outline: none;
    color: var(--text-dark);
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--primary-blue);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 10px;
}

.header-icon i {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.icon-label {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 500;
}

.header-icon:hover i,
.header-icon:hover .icon-label {
    color: var(--primary-blue);
}

.header-icon .badge {
    position: absolute;
    top: 0;
    right: 5px;
    background: var(--primary-blue);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 4px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn img {
    width: 18px;
    height: auto;
}

.lang-btn:hover {
    background: rgba(30, 86, 160, 0.1);
    color: var(--primary-blue);
}

.lang-btn.active {
    background: var(--primary-blue);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 90px;
    left: 15px;
    z-index: 999;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.05);
}

/* Mobile Bottom Navigation - Hidden by default */
.mobile-bottom-nav {
    display: none;
}

.sidebar-overlay {
    display: none;
}

/* =================================================================
   Layout Container
   ================================================================= */
.layout-container {
    display: flex;
    max-width: 1920px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height));
}

/* =================================================================
   Sidebar Navigation
   ================================================================= */
.sidebar-nav {
    width: var(--sidebar-width);
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-header {
    padding: 0 20px 15px;
    border-bottom: 2px solid var(--primary-blue);
    margin-bottom: 10px;
}

.sidebar-header h3 {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 700;
}

/* Category Menu */
.category-menu {
    display: flex;
    flex-direction: column;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-item i {
    font-size: 20px;
    color: var(--primary-blue);
    width: 24px;
    text-align: center;
}

.category-item:hover {
    background: var(--bg-light);
    border-left-color: var(--primary-blue);
    padding-left: 25px;
}

.category-item.highlight {
    background: linear-gradient(135deg, #1e56a0 0%, #1890ff 100%);
    color: white;
    font-weight: 700;
}

.category-item.highlight i {
    color: white;
}

.category-item.highlight:hover {
    background: linear-gradient(135deg, #164079 0%, #1e56a0 100%);
}

.category-count {
    margin-left: auto;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
}

.category-item.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.category-item.highlight .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Sidebar Promo */
.sidebar-promo {
    margin: 25px 15px 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.sidebar-promo img {
    width: 100%;
    height: auto;
    display: block;
}

/* =================================================================
   Main Content Area
   ================================================================= */
.main-content-area {
    flex: 1;
    padding: 10px;
    background: var(--bg-white);
}

/* =================================================================
   Hero Banner
   ================================================================= */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    border-radius: 16px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    color: white;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.banner-text {
    flex: 1;
}

.banner-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-subtitle {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.95;
}

.discount-badge {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    font-size: 72px;
    font-weight: 900;
    padding: 20px 40px;
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: var(--shadow-lg);
}

.banner-description {
    font-size: 20px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-primary {
    background: white;
    color: var(--primary-blue);
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.banner-images {
    flex: 0 0 300px;
}

.featured-product {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* =================================================================
   Brands Section
   ================================================================= */
.brands-section {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.brand-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.brand-card img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* =================================================================
   Featured Products
   ================================================================= */
.featured-products {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.view-all {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

/* Products Grid Home */
.products-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card-home {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card-home:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    color: white;
}

.product-badge.sale {
    background: #e74c3c;
}

.product-badge.new {
    background: #27ae60;
}

.product-image-home {
    position: relative;
    background: #ffffff !important;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    overflow: hidden;
}

.product-image-home img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.btn-quick-view {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.product-card-home:hover .btn-quick-view {
    opacity: 1;
    transform: translateY(0);
}

.btn-quick-view:hover {
    background: var(--primary-blue-dark);
}

/* Product Info Home */
.product-info-home {
    padding: 20px;
}

.product-info-home h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    min-height: 40px;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 12px;
}

.product-rating i {
    color: #f39c12;
    font-size: 14px;
}

.product-rating span {
    color: var(--text-light);
    font-size: 13px;
    margin-left: 5px;
}

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

.price-old {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.btn-add-cart {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-cart:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =================================================================
   Special Offers Banner
   ================================================================= */
.offers-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.offer-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.offer-card i {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.offer-card h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.offer-card p {
    font-size: 14px;
    color: var(--text-gray);
}

/* =================================================================
   Shopping Cart Sidebar
   ================================================================= */
.cart-sidebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 420px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}

.cart-header h3 {
    font-size: 20px;
    color: var(--text-dark);
}

.close-cart {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: var(--primary-blue);
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-size: 16px;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.total-amount {
    color: var(--primary-blue);
    font-size: 26px;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =================================================================
   Modern Footer
   ================================================================= */
.footer {
    position: relative;
    background: linear-gradient(180deg, #1a1f2e 0%, #0f1419 100%);
    color: #e0e6ed;
    margin-top: 100px;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.footer-wave .shape-fill {
    fill: var(--primary-blue);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 60px;
    margin-bottom: 50px;
}

/* Footer Brand */
.footer-brand {
    padding-right: 40px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo i {
    color: var(--primary-blue);
    font-size: 28px;
}

.footer-logo span {
    color: var(--accent-blue);
}

.footer-tagline {
    font-size: 15px;
    line-height: 1.8;
    color: #a0a8b3;
    margin-bottom: 30px;
}

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

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(30, 86, 160, 0.4);
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 3px;
}

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

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

.footer-menu a {
    color: #a0a8b3;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.footer-menu a i {
    font-size: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.footer-menu a:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

.footer-menu a:hover i {
    opacity: 1;
    transform: translateX(0);
}

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

.footer-contact li {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: start;
}

.footer-contact i {
    font-size: 20px;
    color: var(--primary-blue);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact div {
    flex: 1;
}

.footer-contact span {
    display: block;
    font-size: 12px;
    color: #6c7686;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.footer-contact a,
.footer-contact p {
    color: #a0a8b3;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    margin: 0;
}

.footer-contact a:hover {
    color: var(--accent-blue);
}

/* Newsletter */
.newsletter-text {
    font-size: 14px;
    color: #a0a8b3;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.newsletter-input-wrapper {
    position: relative;
}

.newsletter-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c7686;
    font-size: 16px;
}

.newsletter-form input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    transition: all 0.3s;
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-blue);
}

.newsletter-form input::placeholder {
    color: #6c7686;
}

.newsletter-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 86, 160, 0.4);
}

.newsletter-btn i {
    transition: transform 0.3s;
}

.newsletter-btn:hover i {
    transform: translateX(4px);
}

.payment-methods {
    margin-top: 20px;
}

.payment-methods h5 {
    font-size: 13px;
    color: #6c7686;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.payment-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-icons i {
    font-size: 32px;
    color: #a0a8b3;
    opacity: 0.6;
    transition: all 0.3s;
}

.payment-icons i:hover {
    opacity: 1;
    color: white;
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #6c7686;
    font-size: 14px;
    margin: 0;
}

.copyright strong {
    color: white;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.footer-bottom-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom-links .separator {
    color: #6c7686;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        padding-right: 0;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .footer {
        margin-top: 60px;
        padding-bottom: 80px;
    }

    .footer-container {
        padding: 60px 20px 0;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-wave svg {
        height: 60px;
    }
}

@media (max-width: 576px) {
    .footer-logo {
        font-size: 26px;
        justify-content: center;
    }

    .social-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .payment-icons i {
        font-size: 28px;
    }
}

/* =================================================================
   Responsive Design
   ================================================================= */
@media (max-width: 1200px) {
    .sidebar-nav {
        width: 220px;
    }

    .banner-title {
        font-size: 36px;
    }

    .discount-badge {
        font-size: 56px;
        padding: 15px 30px;
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: 0 20px;
        gap: 15px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .search-container {
        max-width: 400px;
    }

    .header-icon .icon-label {
        display: none;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-images {
        flex: 0 0 auto;
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 0px;
    }

    /* Hide entire top header on mobile */
    .top-header {
        display: none !important;
    }

    .header-container {
        display: none !important;
    }

    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 12px;
        color: var(--text-gray);
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        flex: 1;
        max-width: 80px;
        position: relative;
    }

    .mobile-nav-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 24px;
        width: 0.5px;
        background: rgba(0, 0, 0, 0.1);
    }

    .mobile-nav-item i {
        font-size: 20px;
        transition: all 0.2s ease;
    }

    .mobile-nav-item.active,
    .mobile-nav-item:active {
        color: var(--primary-blue);
    }

    .mobile-nav-item .badge {
        position: absolute;
        top: 4px;
        right: 8px;
        background: var(--primary-blue);
        color: white;
        font-size: 9px;
        font-weight: 700;
        padding: 2px 5px;
        border-radius: 10px;
        min-width: 16px;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: none;
    }

    /* Modern Sidebar - Bottom Sheet Style */
    .sidebar-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-height: 70vh;
        height: auto;
        z-index: 1001;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        transform: translateY(100%);
        transition: none;
        overflow: hidden;
    }

    .sidebar-nav.active {
        transform: translateY(0);
    }

    .sidebar-header {
        position: relative;
        padding: 20px 20px 15px;
    }

    .sidebar-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--border-color);
        border-radius: 2px;
    }

    .category-menu {
        max-height: calc(70vh - 80px);
        overflow-y: auto;
    }

    /* Sidebar Overlay */
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Show Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
    }

    .layout-container {
        flex-direction: column;
    }

    .main-content-area {
        padding: 15px;
    }

    .hero-banner {
        padding: 40px 20px !important;
        min-height: 300px !important;
    }

    .banner-title {
        font-size: 32px !important;
    }

    .products-grid-home {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 576px) {
    .search-container {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-width: none;
        margin: 0 15px;
        margin-top: 10px;
    }

    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }

    .top-header {
        height: auto;
    }

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

    .offers-banner {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =================================================================
   Autocomplete Dropdown
   ================================================================= */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 2px solid var(--primary-blue);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--bg-light);
}

.autocomplete-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 5px;
    flex-shrink: 0;
}

.autocomplete-item-details {
    flex: 1;
    min-width: 0;
}

.autocomplete-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.autocomplete-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
}

.autocomplete-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

.search-container {
    position: relative;
}

@media (max-width: 576px) {
    .autocomplete-dropdown {
        position: fixed;
        top: calc(var(--header-height) + 60px);
        left: 15px;
        right: 15px;
        border-radius: 8px;
    }
}
