/* ===== TRUST BAZAR DESIGN SYSTEM ===== */
:root {
    /* Colors */
    --primary-color: #20B2AA; /* Teal */
    --primary-dark: #1A9B94;
    --secondary-color: #FFD700; /* Gold/Yellow */
    --text-color: #333333;
    --text-light: #666666;
    --light-gray: #F5F5F5;
    --gray: #CCCCCC;
    --dark-gray: #2C2C2C;
    --white: #FFFFFF;
    --black: #000000;
    --border-color: #E0E0E0;
    
    /* Typography */
    --font-family-primary: 'Roboto', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

/* ===== HEADER STYLES ===== */
.trust-bazar-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-color);
    padding: 8px;
    cursor: pointer;
}

.menu-toggle:hover {
    color: var(--primary-color);
}

.btn-login {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    margin-right: 15px;
}

.btn-login:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.cart-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.header-right-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

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

.menu-list li {
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

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

.menu-list li a {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-normal);
    margin-left: 5px;
    border-radius: 4px;
}

.menu-list li a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

/* Offcanvas Body Padding */
.offcanvas-body {
    padding: 15px !important;
}

/* Reduce offcanvas width */
.offcanvas {
    width: 280px !important;
}

.offcanvas-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* Category Circles - Instagram Story Style */
.category-circles-container {
    padding: 12px 0 0 0; /* lowered spacing around grid */
}

/* Convert horizontal scroller to grid of rectangles */
.category-scroll-wrapper {
    overflow: visible;
    padding: 10px 0;
}

.category-scroll-wrapper::-webkit-scrollbar { height: 0; }
.category-scroll-wrapper::-webkit-scrollbar-track { background: transparent; }
.category-scroll-wrapper::-webkit-scrollbar-thumb { background: transparent; }

.category-scroll-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px; /* tighter gap to fit evenly */
    align-items: stretch;
}

@media (max-width: 991px) {
    .category-scroll-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .category-scroll-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

.category-circle {
    text-align: center;
    display: flex;
}

.category-circle .category-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: var(--transition-normal);
}

.category-circle .category-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.category-image {
    width: 100%;
    height: 140px;
    margin: 0 auto 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.2);
    position: relative;
}

.category-image:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.category-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    line-height: 1.3;
    margin-top: 6px;
    transition: var(--transition-normal);
}

.category-circle:hover .category-name {
    color: var(--primary-color);
}

/* Main Header Bar */
.header-main-bar {
    background: var(--white);
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

/* Product Quantity Buttons */
.pro-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quantity-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: var(--transition-normal);
    user-select: none;
}

.quantity-button:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.quantity-button:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    background: var(--white);
    outline: none;
}

.quantity-input:focus {
    background: var(--light-gray);
}

/* Responsive adjustments for quantity buttons */
@media (max-width: 768px) {
    .quantity-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .quantity-input {
        width: 50px;
        height: 35px;
        font-size: 14px;
    }
}

/* Mobile Header Styles */
.mobile-menu-btn {
    background: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-menu-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.mobile-logo-container {
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block !important;
    text-align: center !important;
    width: auto !important;
    z-index: 10;
}

.mobile-logo .logo-full {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.2;
    white-space: nowrap;
    text-align: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-search-btn {
    background: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-search-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(32, 178, 170, 0.2);
    z-index: 1000;
    padding: 8px 0;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition-normal);
    position: relative;
    min-width: 60px;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.mobile-nav-item.active {
    color: var(--primary-color);
    background: rgba(32, 178, 170, 0.1);
}

.mobile-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--secondary-color);
    color: var(--dark-gray);
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Add bottom padding to body for mobile nav */
@media (max-width: 991px) {
    body {
        padding-bottom: 70px;
    }
}

/* Mobile Layout Improvements */
@media (max-width: 768px) {
    /* Mobile header alignment - New 3-6-3 structure */
    .mobile-header-row {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
    }

    .mobile-header-row .col-3:first-child {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 0 !important;
    }

    .mobile-header-row .col-6 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
    }

    .mobile-header-row .col-3:last-child {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0 !important;
    }

    /* Ensure mobile logo container is centered */
    .mobile-logo-container {
        position: relative !important;
        width: 100% !important;
        height: 50px !important;
        display: block !important;
    }

    /* Force absolute centering for mobile logo */
    .mobile-logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10 !important;
    }

    /* Center mobile content with equal margins */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Center section titles and content */
    .section-header {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
        padding: 6px 12px;
        background: var(--primary-color);
        color: var(--white);
        border-radius: 6px;
        display: inline-block;
        width: auto;
        min-width: 150px;
    }
    
    /* Compact section boxes */
    .section {
        padding: 0px 0;
        margin: 10px 0;
    }
    
    /* Reduce hero section height on mobile */
    .hero-section {
        min-height: 180px;
        padding: 0px 0;
        margin-bottom: 0;
    }
    
    /* Compact product cards */
    .axil-product {
        margin-bottom: 15px;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Bigger category circles */
    .category-circles-container {
        padding: 15px 0;
    }
    
    .category-image {
        height: 110px;
        margin: 0 auto 8px;
        border-width: 3px;
    }
    
    .category-name {
        font-size: 12px;
        margin-top: 8px;
        font-weight: 600;
    }
    
    /* Compact features section */
    .features-section {
        padding: 15px 0;
    }
    
    .feature-box {
        padding: 15px 10px;
        margin-bottom: 15px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .feature-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .feature-box h4 {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .feature-box p {
        font-size: 12px;
        margin-bottom: 0;
    }
    
    /* Compact contact section */
    .contact-section {
        padding: 15px 0;
    }
    
    .contact-box {
        padding: 15px;
        border-radius: 8px;
    }
    
    .contact-box h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .contact-list li {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    /* Compact footer */
    .site-footer {
        padding: 20px 0 10px;
    }
    
    .footer-widget {
        margin-bottom: 20px;
    }
    
    .footer-widget h5 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-widget ul li {
        margin-bottom: 5px;
    }
    
    .footer-widget ul li a {
        font-size: 13px;
    }
    
    /* Additional mobile centering improvements */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Apply consistent centering to all product rows */
    .row--15,
    .row--20,
    .row--25,
    .row--30,
    .product-grid,
    .products-row {
        margin-left: -7px;
        margin-right: -29px;
    }
    
    /* Ensure all product sections are consistent */
    .axil-product,
    .product-item,
    .product-card {
        margin-bottom: 15px;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Center text content */
    .text-center-mobile {
        text-align: center;
    }
    
    /* Mobile header alignment fixes */
    .header-main-bar .row.d-lg-none {
        align-items: center;
        justify-content: space-between;
    }
    
    .header-main-bar .row.d-lg-none .col-2,
    .header-main-bar .row.d-lg-none .col-8,
    .header-main-bar .row.d-lg-none .col-2 {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-main-bar .row.d-lg-none .col-2:first-child {
        justify-content: flex-start;
    }
    
    .header-main-bar .row.d-lg-none .col-2:last-child {
        justify-content: flex-end;
    }
    
    /* Compact spacing for all sections */
    .section.bg-light {
        background: rgba(248, 249, 250, 0.8) !important;
        margin: 5px 0;
        padding: 10px 0;
    }
    
    /* Compact hero slider */
    .carousel-item img {
        height: 200px;
        object-fit: cover;
    }
    
    /* Compact product grid - already handled above */
    .row--15 > * {
        margin-bottom: 10px;
    }
    
    /* Center category circles */
    .category-scroll-content {
        justify-content: center;
        gap: 15px;
    }
    
    /* Compact brand section */
    .brand-grid {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .brand-item {
        flex: 0 0 auto;
        text-align: center;
    }
}

.header-brand img {
    max-height: 40px;
    width: auto;
}

/* Text Logo Styling */
.logo-text {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.logo-trust {
    font-size: 16px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-bazar {
    font-size: 16px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-text:hover .logo-trust,
.logo-text:hover .logo-bazar {
    opacity: 0.8;
}

.search-section {
    display: flex;
    justify-content: center;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    height: 38px;
}

.search-category {
    background: var(--white);
    border: none;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #333333;
    border-right: 1px solid #e9ecef;
    cursor: pointer;
    min-width: 50px;
    max-width: 60px;
    outline: none;
    height: 100%;
}

.search-category:focus {
    background: #f8f9fa;
}

.search-input {
    flex: 1;
    border: none;
    padding: 6px 16px;
    font-size: 14px;
    outline: none;
    background: transparent;
    height: 100%;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    background: #f8f9fa;
}

.search-btn {
    background: var(--primary-color);
    border: none;
    padding: 6px 10px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-normal);
    font-weight: 600;
    height: 100%;
    min-width: 38px;
    max-width: 38px;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-btn i {
    font-size: 14px;
}

/* Category Navigation Bar */
.category-navigation-bar {
    background: var(--primary-color);
    padding: 6px 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.category-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-menu::-webkit-scrollbar {
    display: none;
}

.category-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 4px;
    transition: var(--transition-normal);
    display: block;
    white-space: nowrap;
    position: relative;
}

.category-link:hover,
.category-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.category-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* ===== HERO SLIDER SECTION ===== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .carousel-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    background: rgba(0, 0, 0, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.hero-section .carousel-control-prev {
    left: 15px;
}

.hero-section .carousel-control-next {
    right: 15px;
}

@media (max-width: 768px) {
    .hero-section .carousel-item img {
        height: 200px;
    }
    
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .hero-section .carousel-item img {
        height: 150px;
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: 0;
    margin: 0;
}

.section-header {
    background: var(--primary-color);
    padding: 1px 0; /* 1px up and down */
    margin: 0; /* connect sections */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-top: 5px;
}

/* ===== PRODUCT GRID LAYOUT ===== */
.row--15 {
    margin-left: -15px;
    margin-right: -15px;
}

.row--15 > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--primary-color);
    padding: 40px 0;
}

.contact-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-box h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

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

.contact-list li {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 10px;
}

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

.social-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--white);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-normal);
    font-size: 22px;
}

.social-icon:hover { transform: translateY(-2px); }

/* Contact social brand colors by order: Facebook, WhatsApp, YouTube */
.social-icons-contact .social-icon:nth-child(1) { background: #1877F2; }
.social-icons-contact .social-icon:nth-child(2) { background: #25D366; }
.social-icons-contact .social-icon:nth-child(3) { background: #FF0000; }

/* ===== FEATURES SECTION ===== */
.features-section {
    background: var(--white);
    padding: 50px 0;
}

.feature-box {
    padding: 30px 20px;
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.feature-box p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== BRAND SECTION ===== */
.brand-section {
    background: var(--light-gray);
    padding: var(--spacing-2xl) 0;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.brand-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.brand-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.brand-link {
    text-decoration: none;
    color: var(--text-color);
}

.brand-link img {
    max-height: 120px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.brand-name {
    display: block;
    margin-top: 6px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .showcase-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-menu {
        gap: var(--spacing-md);
    }
    
    .category-link {
        font-size: var(--font-size-sm);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .showcase-products {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== BUTTON STYLES ===== */
.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    display: inline-block;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* ===== UTILITY CLASSES ===== */
.bg-light {
    background-color: var(--light-gray) !important;
}

.me-2 {
    margin-right: var(--spacing-sm) !important;
}

.ms-2 {
    margin-left: var(--spacing-sm) !important;
}

.mt-4 {
    margin-top: var(--spacing-lg) !important;
}

.text-center {
    text-align: center !important;
}

/* ===== CRITICAL FIXES ===== */
.product-card * {
    word-wrap: break-word !important;
    white-space: normal !important;
    line-height: normal !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.product-card .product-title,
.product-card .product-title a {
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.4 !important;
    display: block !important;
    text-align: left !important;
}

.product-card .product-info {
    white-space: normal !important;
}

.product-card .product-info * {
    white-space: normal !important;
    line-height: normal !important;
}

.product-card .add-to-cart {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin-top: auto !important;
}
/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 0 0; /* restore desktop spacing */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Make the social widget span full width on larger screens */
.footer-social-wide { grid-column: 1 / -1; text-align: center; }
.footer-social-wide .footer-social { justify-content: center; }

.footer-widget h5 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--secondary-color);
}

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

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: var(--transition-normal);
}

.footer-widget ul li a:hover {
    color: var(--secondary-color);
}

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

.social-link {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-normal);
    font-size: 22px;
}

.social-link:hover { transform: translateY(-2px); }

/* Footer social brand colors by order: Facebook, WhatsApp, YouTube, Instagram */
.footer-social .social-link:nth-child(1) { background: #1877F2; }
.footer-social .social-link:nth-child(2) { background: #25D366; }
.footer-social .social-link:nth-child(3) { background: #FF0000; }
.footer-social .social-link:nth-child(4) { background: #E4405F; }

/* Pseudo icons before links - apply on desktop and mobile */
.footer-widget ul { padding-left: 0; }
.footer-widget ul li { position: relative; padding-left: 28px; }
.footer-info ul li::before,
.footer-help ul li::before {
    content: '>>';
    position: absolute; left: 0; top: 0; color: #ffffff; font-weight: 900;
}
.footer-links ul li::before {
    content: '\f0c1'; /* Font Awesome chain/link */
    font-family: 'Font Awesome 5 Free'; font-weight: 900; color: #ffffff;
    position: absolute; left: 0; top: 0;
}

@media (max-width: 768px) {
    .site-footer { padding: 20px 0 0 0; }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .footer-social { justify-content: flex-start; }
    .footer-social-wide { grid-column: 1 / -1; }
    /* slightly smaller icons on mobile */
    .social-link,
    .social-icon { width: 48px; height: 48px; font-size: 20px; }

    /* Reorder sections on mobile: Help & Support, Useful Links, then Information */
    .footer-help { order: 1; }
    .footer-links { order: 2; }
    .footer-info { order: 3; }
}

.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

.copyright-text {
    font-size: 14px;
    color: var(--white);
    margin-bottom: 5px;
}

.developer-text {
    font-size: 14px;
    color: var(--white);
    margin: 0;
}

/* ===== SLIDING CART ===== */
.cart-offcanvas {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    z-index: 9999;
    overflow-y: auto;
}

.cart-offcanvas.show {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 9998;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

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

.cart-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-normal);
}

.cart-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-body {
    padding: 20px;
    min-height: calc(100vh - 200px);
}

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

.cart-footer {
    position: sticky;
    bottom: 0;
    background: var(--white);
    border-top: 2px solid var(--primary-color);
    padding: 20px;
}

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

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

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

@media (max-width: 480px) {
    .cart-offcanvas {
        width: 100%;
        right: -100%;
    }
}

/* ===== UNIFORM PRODUCT BOXES ===== */
.axil-product {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.axil-product:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.axil-product .thumbnail {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.axil-product .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.axil-product:hover .thumbnail img {
    transform: scale(1.05);
}

.axil-product .product-badget {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color) !important;
    color: var(--dark-gray) !important;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.axil-product .product-content {
    padding: 15px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: -10px;
    margin-top: 0px;
}

.axil-product .title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    min-height: 50px;
    line-height: 1.4;
}

.axil-product .title a {
    color: var(--text-color);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.axil-product .title a:hover {
    color: var(--primary-color);
}

.axil-product .current-price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
}

.axil-product .old-price {
    font-size: 14px !important;
    color: #999 !important;
    text-decoration: line-through;
    margin-left: 8px;
}

.axil-product .desktop-cart {
    margin-top: auto;
    padding: 0 !important;
}

.axil-product .cart-action button,
.axil-product .cart-action a {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 6px;
    padding: 10px !important;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.3s ease;
    width: 100%;
    display: block;
    text-align: center;
    box-shadow: none !important;
}

.axil-product .cart-action button:hover,
.axil-product .cart-action a:hover {
    background: var(--primary-dark) !important;
    box-shadow: none !important;
}

.axil-product .cart-action button p,
.axil-product .cart-action a p,
.axil-product .cart-action button b,
.axil-product .cart-action a b {
    color: var(--white) !important;
    margin: 0 !important;
}

.axil-product .select-option {
    margin: 0 !important;
    padding: 0 !important;
}

/* Make sure all product boxes are same height */
.row--15 > [class*="col-"] {
    display: flex;
}

.row--15 > [class*="col-"] > .axil-product {
    width: 100%;
}

.cart-summary {
    padding: 20px;
}

.cart-summary .alert {
    background: #e8f5f4;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cart-summary .alert i {
    color: var(--primary-color);
}

/* Custom Mobile Header Styles - No Bootstrap Grid */
.mobile-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 60px;
    padding: 0 15px;
}

.mobile-menu-section {
    flex: 0 0 auto;
    width: 60px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.mobile-logo-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mobile-search-section {
    flex: 0 0 auto;
    width: 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mobile-logo-link {
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
}

.mobile-logo-text {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.2;
    white-space: nowrap;
    display: block;
    margin: 0;
    padding: 0;
}
