/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

ul,
ol {
    list-style: none;
}

/* Image Placeholder Fallback */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-400);
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-main {
    padding: 1rem 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-sub {
    font-weight: 400;
    color: var(--gray-500);
}

.nav-main {
    display: none;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .nav-main {
        display: flex;
    }
}

.nav-link {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem;
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}



.header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--gray-600);
    border-radius: var(--radius);
}

.header-icon svg {
    display: block;
}

.header-icon:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Auth buttons in navbar */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.header-actions>.btn-outline-light.btn-sm {
    min-height: 40px;
    line-height: 1;
}

.btn-outline-light {
    color: var(--gray-600);
    background: transparent;
    border: 1px solid var(--gray-300);
}

.btn-outline-light:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--gray-50);
}

.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    color: var(--gray-600);
    order: 1;
    margin-left: -0.5rem;
}

/* Mobile search button */
.mobile-search-btn {
    display: flex;
    padding: 0.5rem;
    color: var(--gray-600);
    order: 2;
}

/* Hide auth buttons on mobile, show on desktop */
.auth-buttons,
.header-actions>.btn-outline-light {
    display: none;
}

/* Hide cart icon on mobile */
.cart-icon {
    display: none;
}

/* Logo order on mobile */
.logo {
    order: 3;
    margin-left: auto;
}

@media (min-width: 1024px) {

    .mobile-menu-btn,
    .mobile-search-btn {
        display: none;
    }

    .auth-buttons,
    .header-actions>.btn-outline-light {
        display: flex;
    }

    .cart-icon {
        display: flex;
    }

    .logo {
        order: unset;
        margin-left: 0;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--white);
    padding: 2rem 1rem;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.mobile-cart-link {
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    border-bottom: none;
}

.mobile-cart-link:hover {
    background: var(--primary-dark);
    color: white;
}

.mobile-menu-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 0.5rem 0;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    margin: 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-close {
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 400px);
}

/* Hero Section */
.hero {
    padding: 2rem 0;
}

.hero-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 300px;
    }
}

.hero-banner {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 360px;
    position: relative;
    overflow: hidden;
}

.hero-banner-full {
    width: 100%;
}

.hero-content {
    max-width: 500px;
    z-index: 1;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 1rem 0;
}

.hero-desc {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.hero-image {
    max-width: 300px;
    position: absolute;
    right: 2rem;
    bottom: 0;
}

.bg-light {
    background: var(--gray-50);
    padding: 3rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 13px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Categories Section */
.section {
    padding: 3rem 0;
}

/* Home: Modern minimalist landing info cards */
.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.home-info {
    padding-top: 1.5rem;
}

.home-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-info-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.home-info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--gray-100);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.home-info-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.375rem;
}

.home-info-desc {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.section-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}

.nav-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.category-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.category-card:hover {
    background: var(--gray-50);
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: var(--white);
}

.category-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card */
.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.product-image {
    position: relative;
    padding: 1rem;
    background: var(--gray-50);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    z-index: 2;
}

.badge-sale {
    background: var(--danger);
    color: var(--white);
}

.product-actions {
    position: static;
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
    margin-top: auto;
    opacity: 1;
    transform: none;
    transition: var(--transition);
    order: 3;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: none;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.action-btn.btn-cart {
    flex: 1;
    width: auto;
    font-size: 12px;
    font-weight: 500;
    background: var(--primary);
    color: var(--white);
    height: 40px;
}

.action-btn.btn-cart:hover {
    background: var(--primary-dark);
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 80px;
    order: 2;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.price-old {
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: line-through;
}


.stars {
    color: #fbbf24;
}

/* Best Sellers Sidebar */
.best-sellers-section {
    padding: 3rem 0;
    background: var(--gray-50);
}

.best-sellers-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .best-sellers-grid {
        grid-template-columns: 1fr 320px;
    }
}

.best-sellers-list {
    display: grid;
    gap: 1rem;
}

.best-seller-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.best-seller-card:hover {
    box-shadow: var(--shadow);
}

.best-seller-image {
    width: 80px;
    height: 80px;
    background: var(--gray-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.best-seller-image img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.best-seller-info {
    flex: 1;
}

.best-seller-name {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.best-seller-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-desc {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-800);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.payment-methods {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.payment-methods img {
    height: 24px;
    opacity: 0.7;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-primary {
    background: rgba(26, 86, 219, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
}

.badge-secondary {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.table th {
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-50);
    white-space: nowrap;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state svg {
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-600);
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 14px;
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--gray-300);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-muted {
    color: var(--gray-500);
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.w-100 {
    width: 100%;
}

/* View All Link */
.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-weight: 500;
}

.view-all:hover {
    color: var(--primary);
}

/* ==========================================
   COMPREHENSIVE RESPONSIVE MEDIA QUERIES
   ========================================== */

/* Mobile First Approach - Base styles are for mobile */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* Hero */
    .hero {
        padding: 1rem 0;
    }

    .hero-banner {
        padding: 1.5rem;
        min-height: auto;
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.375rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .hero-image {
        position: relative;
        right: auto;
        max-width: 180px;
        margin: 0 auto;
    }

    /* Section */
    .section {
        padding: 1.5rem 0;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .section-title {
        font-size: 1.125rem;
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .category-card {
        padding: 0.75rem 0.5rem;
    }

    .category-icon {
        width: 48px;
        height: 48px;
    }

    .category-name {
        font-size: 11px;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-name {
        font-size: 12px;
    }

    .price-current {
        font-size: 0.875rem;
    }

    .price-old {
        font-size: 11px;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 13px;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 14px;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 0.75rem;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
        font-size: 13px;
    }

    /* Tables */
    .table-responsive {
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
    }

    .table th,
    .table td {
        padding: 0.625rem 0.5rem;
        font-size: 12px;
    }

    /* Cards */
    .card-header,
    .card-body,
    .card-footer {
        padding: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    /* Pagination */
    .pagination {
        gap: 0.25rem;
    }

    .page-link {
        padding: 0.375rem 0.625rem;
        font-size: 12px;
    }

    /* Alerts */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 13px;
        margin: 0.75rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        padding: 0 1rem;
    }

    .hero-banner {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-banner {
        padding: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section {
        padding: 2rem 0;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1280px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .action-btn {
        width: 40px;
        height: 40px;
    }

    .nav-arrow {
        width: 44px;
        height: 44px;
    }
}

/* Print styles */
@media print {

    .header,
    .footer,
    .sidebar,
    .mobile-menu,
    .btn {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}