/* ====================== RESET & BASE ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-blue: #007DB8;
    --secondary-blue: #033188;
    --dark-blue: #0a0644;
    --success-green: #2e7d32;
    --warning-orange: #ff9800;
    --error-red: #ff3d00;
    --dark-gray: #333;
    --medium-gray: #666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    
    /* Brand Colors */
    --konica-blue: #005AAA;
    --ricoh-red: #ED1C24;
    --kyocera-pink: #EC008C;
    --hp-blue: #0096D6;
    --epson-blue: #0071BC;
    --yinghe-orange: #FF6F00;
    
    /* Animation */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

body {
    background: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ====================== HEADER ====================== */
header {
    background: var(--white);
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-blue);
    font-size: 28px;
}

.search-bar form {
    display: flex;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-bar input {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    width: 100%;
    font-size: 16px;
    -webkit-appearance: none;
}

.search-bar button {
    background: var(--success-green);
    border: none;
    color: var(--white);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    transition: var(--transition-fast);
}

.search-bar button:hover {
    background: #1b5e20;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-link {
    position: relative;
    font-size: 24px;
    color: var(--dark-gray);
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--error-red);
    color: var(--white);
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* ====================== FLOATING WHATSAPP ====================== */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: var(--white);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition-fast);
}

.floating-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ====================== HERO SECTION ====================== */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 1;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: #ffeb3b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-search {
    display: flex;
    margin-bottom: 25px;
    max-width: 600px;
}

.hero-search input {
    padding: 15px;
    flex: 1;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    -webkit-appearance: none;
}

.hero-search button {
    background: var(--warning-orange);
    border: none;
    color: var(--white);
    padding: 15px 25px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    font-size: 16px;
    font-weight: bold;
    transition: var(--transition-fast);
}

.hero-search button:hover {
    background: #f57c00;
}

.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-badges span {
    background: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-right {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    min-height: 400px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity var(--transition-medium);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* ====================== CATEGORIES ====================== */
.categories {
    background: var(--white);
    padding: 50px 0;
    margin-bottom: 40px;
}

.categories h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--dark-gray);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: #f9f9f9;
    padding: 25px 15px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover,
.category-card:focus {
    background: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(1, 4, 44, 0.884);
    border-color: var(--secondary-blue);
    outline: none;
}

.category-card i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.category-card span {
    font-size: 18px;
    font-weight: 600;
}

/* ====================== FLASH SALE ====================== */
.flash-sale {
    background: #fff7e6;
    padding: 50px 0;
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--error-red);
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-timer {
    background: var(--error-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
}

.countdown {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.flash-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card.flash {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
    position: relative;
}

.product-card.flash:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.btn-wishlist {
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    background: var(--error-red);
    color: var(--white);
}

.btn-wishlist:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.product-card.flash img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.product-card.flash:hover img {
    transform: scale(1.05);
}

.product-card.flash h3 {
    padding: 15px 15px 5px;
    font-size: 16px;
    min-height: 50px;
    line-height: 1.4;
}

.product-meta {
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 10px;
}

.stock.in-stock {
    color: var(--secondary-blue);
    font-weight: bold;
}

.stock.out-of-stock {
    color: var(--error-red);
    font-weight: bold;
}

.price {
    padding: 0 15px 15px;
}

.price .current {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-blue);
}

.price .old {
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
    font-size: 16px;
}

.btn-buy {
    background: var(--error-red);
    color: var(--white);
    border: none;
    padding: 12px;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-buy:hover {
    background: #e53935;
}

.btn-buy.added {
    background: var(--success-green);
}

.btn-buy:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ====================== FEATURED PRODUCTS ====================== */
.featured {
    background: var(--white);
    padding: 50px 0;
    margin-bottom: 40px;
}

.view-all {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: var(--transition-fast);
}

.view-all:hover {
    text-decoration: underline;
    color: var(--primary-blue);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    padding: 15px 15px 5px;
    font-size: 16px;
    min-height: 50px;
    line-height: 1.4;
}

.product-card .price {
    padding: 0 15px 15px;
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-blue);
}

/* ====================== SHOP BY NEED ====================== */
.shop-needs {
    background: #f9f9f9;
    padding: 50px 0;
    margin-bottom: 40px;
}

.shop-needs h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--dark-gray);
}

.needs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.need-card {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all var(--transition-medium);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.need-card:hover,
.need-card:focus {
    background: var(--success-green);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.2);
    outline: none;
}

.need-card i {
    font-size: 50px;
    margin-bottom: 20px;
    display: block;
}

/* ====================== TRUST SECTION ====================== */
.trust {
    background: var(--white);
    padding: 50px 0;
    margin-bottom: 40px;
}

.trust h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--dark-gray);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.trust-grid div {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    transition: var(--transition-fast);
}

.trust-grid div:hover {
    background: var(--success-green);
    color: var(--white);
    transform: translateY(-5px);
}

.trust-grid i {
    color: var(--success-green);
    font-size: 30px;
    margin-bottom: 15px;
    display: block;
}

.trust-grid div:hover i {
    color: var(--white);
}

/* ====================== STATS ====================== */
.stats {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 60px 0;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stats-grid > div {
    padding: 20px;
}

.stats-grid span:first-child {
    font-size: 48px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.stats-label {
    font-size: 18px;
    opacity: 0.9;
}

/* ====================== BULK SUPPLY ====================== */
.bulk-supply {
    background: #fcfcfc;
    padding: 50px 0;
    margin-bottom: 40px;
    text-align: center;
}

.bulk-supply h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.bulk-supply p {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--medium-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-quote {
    display: inline-block;
    background: var(--dark-gray);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    transition: var(--transition-fast);
}

.btn-quote:hover {
    background: var(--success-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-quote:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ====================== FOOTER ====================== */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

footer a {
    color: var(--white);
    text-decoration: underline;
}

/* ====================== CART PAGE STYLES ====================== */
.cart-page {
    padding: 40px 0;
    min-height: 60vh;
}

.cart-page h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.cart-table thead {
    background: var(--success-green);
    color: var(--white);
}

.cart-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
}

.cart-table tbody tr:hover {
    background: #f9f9f9;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-product-info h4 {
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.4;
}

.cart-product-info .category {
    color: var(--medium-gray);
    font-size: 14px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--success-green);
    color: var(--white);
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-btn {
    background: var(--error-red);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.remove-btn:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.cart-total {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
}

.total-row.subtotal {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.total-row.final-total {
    font-size: 24px;
    font-weight: bold;
    color: var(--success-green);
    border-top: 2px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-continue {
    background: #f0f0f0;
    color: var(--dark-gray);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-continue:hover {
    background: #ddd;
}

.btn-checkout {
    background: var(--success-green);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-checkout:hover {
    background: #1b5e20;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--medium-gray);
}

.empty-cart p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #888;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-cart a {
    display: inline-block;
    background: var(--success-green);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition-fast);
}

.empty-cart a:hover {
    background: #1b5e20;
}

/* ====================== CART MESSAGES ====================== */
.cart-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cart-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ====================== PRINTERS PAGE SPECIFIC ====================== */
.printer-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.spec-item {
    background: var(--light-gray);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-item i {
    color: var(--success-green);
    font-size: 18px;
}

.brand-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
    margin-bottom: 8px;
}

.brand-konica { 
    background: var(--konica-blue); 
    color: rgb(0, 0, 0); 
}
.brand-ricoh { 
    background: var(--ricoh-red); 
    color: white; 
}
.brand-kyocera { 
    background: var(--kyocera-pink); 
    color: white; 
}
.brand-hp { 
    background: var(--hp-blue); 
    color: white; 
}
.brand-epson { 
    background: var(--epson-blue); 
    color: white; 
}
.brand-yinghe { 
    background: var(--yinghe-orange); 
    color: white; 
}

.price-range {
    font-size: 14px;
    color: var(--medium-gray);
    margin-top: 5px;
}

.lead-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e3f2fd;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #1565c0;
}

/* ====================== BRANDS SECTION ====================== */
.brands-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-top: 60px;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all var(--transition-medium);
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.brand-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
    transition: height var(--transition-medium);
}

.brand-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-blue);
}

.brand-item:hover::before {
    height: 100%;
    opacity: 0.05;
}

.brand-logo {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: all var(--transition-medium);
    filter: grayscale(100%);
    opacity: 0.8;
    z-index: 2;
}

.brand-item:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.brand-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-align: center;
    margin-top: 10px;
    z-index: 2;
    transition: color var(--transition-fast);
}

.brand-item:hover .brand-name {
    color: var(--primary-blue);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-left, .hero-right {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .brand-item {
        height: 160px;
        padding: 25px 15px;
    }
    
    .brand-logo {
        height: 50px;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .top-header-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-bar form {
        width: 100%;
        max-width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .category-grid,
    .needs-grid,
    .trust-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .brand-item {
        height: 150px;
        padding: 20px 15px;
    }
    
    .brand-logo {
        height: 45px;
        margin-bottom: 12px;
    }
    
    .brand-name {
        font-size: 0.9rem;
    }
    
    .cart-table {
        display: block;
        overflow-x: auto;
    }
    
    .cart-table th,
    .cart-table td {
        min-width: 150px;
    }
    
    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-continue,
    .btn-checkout {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .category-grid,
    .needs-grid,
    .trust-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .brand-item {
        height: 140px;
        padding: 20px 10px;
    }
    
    .brand-logo {
        height: 40px;
        margin-bottom: 10px;
    }
    
    .brand-name {
        font-size: 0.85rem;
    }
    
    .cart-product {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .cart-product img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 400px) {
    .brands-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ====================== ANIMATIONS ====================== */
@-webkit-keyframes slideIn {
    from {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}