
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 0 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .carousel {
        height: 600px;
    }
    
    .carousel-content h2 {
        font-size: 52px;
    }
    
    .product-image {
        height: 320px;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 60px;
    }
}

/* Large Laptops/Desktops (1200px - 1399px) */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================
   LAPTOPS & SMALL DESKTOPS (992px - 1199px)
   ========================================== */
@media screen and (max-width: 1199px) {
    /* Header */
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .logo i {
        font-size: 30px;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        margin: 15px 0 0;
        flex: 0 0 100%;
    }
    
    .search-bar input {
        padding: 12px 55px 12px 20px;
        font-size: 15px;
    }
    
    .search-bar button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .header-actions a span:not(.cart-count),
    .header-actions button span:not(.cart-count) {
        display: none;
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
    }
    
    /* Mobile Navigation Menu */
    .mobile-nav-toggle {
        display: flex !important;
    }
    
    .nav-menu.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 20px;
        z-index: 100;
    }
    
    .nav-menu.active ul {
        flex-direction: column;
    }
    
    .nav-menu.active a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Carousel */
    .carousel {
        margin-top: 130px;
        height: 450px;
    }
    
    .carousel-content {
        max-width: 500px;
        padding: 30px;
    }
    
    .carousel-content h2 {
        font-size: 38px;
    }
    
    .carousel-content p {
        font-size: 18px;
    }
    
    .carousel-content .price {
        font-size: 30px;
    }
    
    .carousel-btn {
        padding: 14px 35px;
        font-size: 16px;
    }
    
    .carousel-arrow {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .carousel-arrow.prev {
        left: 20px;
    }
    
    .carousel-arrow.next {
        right: 20px;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .category-card {
        padding: 25px 15px;
    }
    
    .category-card .icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .category-card h3 {
        font-size: 16px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    .product-image {
        height: 240px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-name {
        font-size: 16px;
    }
    
    .product-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Promo Banners */
    .promo-banners {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-top: 50px;
    }
    
    .promo-banner {
        height: 250px;
    }
    
    .promo-banner-content h3 {
        font-size: 26px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-card .icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    /* Newsletter */
    .newsletter .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .newsletter-content h2 {
        font-size: 30px;
    }
    
    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-about {
        grid-column: span 2;
    }
    
    /* Cart Modal */
    .cart-modal {
        width: 400px;
    }
    
    /* Admin Panel */
    .admin-sidebar {
        width: 250px;
    }
    
    .admin-main {
        margin-left: 250px;
        padding: 30px;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tables */
    .admin-table th,
    .admin-table td {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .admin-table .product-cell img {
        width: 50px;
        height: 50px;
    }
}

/* ==========================================
   TABLETS (768px - 991px)
   ========================================== */
@media screen and (max-width: 991px) {
    /* Header */
    .header {
        position: relative;
    }
    
    .header-top {
        display: none;
    }
    
    .header-main {
        padding: 15px;
    }
    
    .header-main .container {
        justify-content: space-between;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .logo i {
        font-size: 28px;
    }
    
    .search-bar {
        position: flex;
        top: 100px;
        left: 0;
        right: 0;
        max-width: 1500%;
        margin: 0;
        padding: 15px;
        background: var(--white);
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 999;
        order: initial;
        flex: initial;
    }
    
    .search-bar.active {
        transform: translateY(0);
    }
    
    .search-btn-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 10px;
        font-size: 20px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .header-actions button,
    .header-actions a {
        padding: 10px;
        font-size: 20px;
    }
    
    .header-actions button span,
    .header-actions a span {
        display: none;
    }
    
    .header-actions .cart-count {
        top: -5px;
        right: -5px;
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: var(--primary-color);
        color: var(--white);
        border-radius: 8px;
        font-size: 20px;
        cursor: pointer;
    }
    
    /* Carousel */
    .carousel {
        margin-top: 0;
        height: 400px;
    }
    
    .carousel-inner {
        height: 100%;
    }
    
    .carousel-slide {
        align-items: center;
    }
    
    .carousel-content {
        max-width: 450px;
        padding: 25px;
    }
    
    .carousel-content h2 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .carousel-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .carousel-content .price {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .carousel-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    .carousel-arrow {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .carousel-dot {
        width: 12px;
        height: 12px;
    }
    
    /* Sections */
    .section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 35px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 15px;
        margin-top: 10px;
    }
    
    .section-header .view-all {
        margin-top: 15px;
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 20px 12px;
    }
    
    .category-card .icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .category-card h3 {
        font-size: 14px;
    }
    
    .category-card span {
        font-size: 12px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .product-actions {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .product-actions button {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .product-info {
        padding: 18px;
    }
    
    .product-category {
        font-size: 11px;
    }
    
    .product-name {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .product-rating {
        margin-bottom: 10px;
    }
    
    .product-rating .stars {
        font-size: 12px;
    }
    
    .product-rating span {
        font-size: 12px;
    }
    
    .current-price {
        font-size: 20px;
    }
    
    .original-price {
        font-size: 14px;
    }
    
    .product-btn {
        padding: 12px 10px;
        font-size: 13px;
        margin-top: 15px;
    }
    
    /* Promo Banners */
    .promo-banners {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .promo-banner {
        height: 200px;
    }
    
    .promo-banner-content {
        padding: 25px;
    }
    
    .promo-banner-content h3 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .promo-banner-content p {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-card .icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .feature-card p {
        font-size: 13px;
    }
    
    /* Newsletter */
    .newsletter {
        padding: 60px 0;
    }
    
    .newsletter-content h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }
    
    .newsletter-content p {
        font-size: 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .newsletter-form input {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .newsletter-form button {
        padding: 15px 30px;
        font-size: 15px;
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 60px 0 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-about {
        grid-column: span 2;
    }
    
    .footer-about .logo {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .footer-about p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-links ul {
        margin-top: 10px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .footer-contact ul {
        margin-top: 10px;
    }
    
    .footer-contact li {
        font-size: 14px;
    }
    
    .footer-bottom {
        padding-top: 25px;
        font-size: 14px;
    }
    
    /* Cart Modal */
    .cart-modal {
        width: 100%;
        max-width: 450px;
        right: -100%;
    }
    
    .cart-header {
        padding: 20px;
    }
    
    .cart-header h3 {
        font-size: 20px;
    }
    
    .cart-items {
        padding: 15px;
    }
    
    .cart-item {
        padding: 12px 0;
    }
    
    .cart-item img {
        width: 70px;
        height: 70px;
    }
    
    .cart-item-name {
        font-size: 14px;
    }
    
    .cart-item-price {
        font-size: 13px;
    }
    
    .cart-footer {
        padding: 20px;
    }
    
    .cart-total {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .cart-btn {
        padding: 15px;
        font-size: 15px;
    }
    
    /* Modal */
    .modal-content {
        max-width: 90%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions .btn {
        width: 100%;
        text-align: center;
        padding: 14px;
    }
    
    /* Notification */
    .notification {
        top: 20px;
        right: 20px;
        left: 20px;
        padding: 15px 20px;
        transform: translateY(-150%);
    }
    
    .notification.active {
        transform: translateY(0);
    }
    
    /* Admin Panel */
    .admin-wrapper {
        margin-top: 0;
        flex-direction: column;
        min-height: auto;
    }
    
    .admin-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        padding: 15px 0;
    }
    
    .admin-sidebar .logo {
        display: none;
    }
    
    .admin-menu {
        display: flex;
        overflow-x: auto;
        padding: 0 10px;
        gap: 5px;
    }
    
    .admin-menu-item {
        flex-shrink: 0;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .admin-menu-item span {
        display: none;
    }
    
    .admin-menu-item i {
        font-size: 18px;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 20px;
    }
    
    .admin-header {
        margin-bottom: 25px;
    }
    
    .admin-header h1 {
        font-size: 26px;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card .icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-card h3 {
        font-size: 24px;
    }
    
    .stat-card p {
        font-size: 13px;
    }
    
    /* Quick View Modal */
    .quickview-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .quickview-content {
        flex-direction: column;
    }
    
    .quickview-image {
        width: 100%;
        padding: 20px;
    }
    
    .quickview-image img {
        max-height: 250px;
    }
    
    .quickview-info {
        width: 100%;
        padding: 20px;
    }
    
    .quickview-info h2 {
        font-size: 22px;
    }
    
    .quickview-price span:first-child {
        font-size: 24px;
    }
    
    .quickview-actions {
        flex-wrap: wrap;
    }
    
    .quantity-selector {
        order: 1;
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .quickview-actions .btn-primary {
        order: 2;
        flex: 1;
        min-width: auto;
    }
    
    .quickview-actions .wishlist-btn {
        order: 3;
    }
    
    /* Wishlist Modal */
    .wishlist-modal {
        width: 95%;
        max-width: 400px;
    }
    
    .wishlist-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .wishlist-item-image {
        width: 100%;
        height: 150px;
    }
    
    .wishlist-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .wishlist-item-info {
        width: 100%;
    }
    
    .wishlist-item-info .btn {
        width: 100%;
        margin-top: 10px;
    }
}

/* ==========================================
   LARGE PHONES (576px - 767px)
   ========================================== */
@media screen and (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header-main {
        padding: 10px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 26px;
    }
    
    .header-actions button,
    .header-actions a {
        font-size: 18px;
        padding: 8px;
    }
    
    /* Carousel */
    .carousel {
        height: 350px;
    }
    
    .carousel-content {
        padding: 20px;
    }
    
    .carousel-content h2 {
        font-size: 26px;
    }
    
    .carousel-content p {
        font-size: 14px;
    }
    
    .carousel-content .price {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .carousel-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-controls {
        bottom: 15px;
        gap: 10px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    /* Sections */
    .section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    .section-header .view-all {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 15px 10px;
    }
    
    .category-card .icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .category-card h3 {
        font-size: 13px;
    }
    
    .category-card span {
        font-size: 11px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-actions button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .current-price {
        font-size: 18px;
    }
    
    .product-btn {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    /* Promo Banners */
    .promo-banners {
        margin-top: 30px;
    }
    
    .promo-banner {
        height: 180px;
    }
    
    .promo-banner-content {
        padding: 20px;
    }
    
    .promo-banner-content h3 {
        font-size: 20px;
    }
    
    .promo-banner-content p {
        font-size: 14px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 25px 20px;
        flex-direction: row;
        text-align: left;
        gap: 20px;
    }
    
    .feature-card .icon {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        margin: 0;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-about {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-about .logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul,
    .footer-contact ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-links li,
    .footer-contact li {
        margin: 0;
    }
    
    /* Cart Modal */
    .cart-modal {
        max-width: 100%;
    }
    
    .cart-items {
        max-height: 60vh;
    }
    
    /* Order Summary */
    .order-summary {
        padding: 15px !important;
    }
    
    .order-summary h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    /* Admin Panel */
    .admin-main {
        padding: 15px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .admin-header h1 {
        font-size: 24px;
    }
    
    .admin-header .btn {
        width: 100%;
        text-align: center;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
    }
    
    .stat-card .icon {
        width: 50px;
        height: 50px;
        margin: 0;
    }
    
    .stat-card h3 {
        font-size: 22px;
    }
    
    .stat-card p {
        font-size: 13px;
    }
    
    /* Admin Table */
    .admin-table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .admin-table-header .search-input {
        width: 100%;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    .admin-table .product-cell img {
        width: 40px;
        height: 40px;
    }
    
    .admin-actions button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    /* Settings */
    .settings-card {
        padding: 25px;
    }
    
    .settings-card h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    /* Revenue Cards */
    .revenue-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .revenue-card {
        padding: 20px 15px;
    }
    
    .revenue-card .icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .revenue-card h4 {
        font-size: 24px;
    }
    
    .revenue-card p {
        font-size: 12px;
    }
    
    /* Charts */
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sales-chart-container {
        padding: 20px;
    }
    
    .chart-bars {
        height: 150px;
    }
    
    /* Quick View */
    .quickview-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .quickview-info h2 {
        font-size: 20px;
    }
    
    .quickview-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .quantity-selector input {
        width: 40px;
    }
    
    /* Login Page */
    .login-container {
        padding: 30px 25px;
        max-width: 90%;
    }
    
    .login-logo {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .login-logo i {
        font-size: 32px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    .login-features {
        display: none;
    }
}

/* ==========================================
   SMALL PHONES (375px - 575px)
   ========================================== */
@media screen and (max-width: 575px) {
    /* Header */
    .header-main {
        padding: 8px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo i {
        font-size: 22px;
    }
    
    .header-actions {
        gap: 5px;
    }
    
    .header-actions button,
    .header-actions a {
        font-size: 16px;
        padding: 6px;
    }
    
    /* Carousel */
    .carousel {
        height: 300px;
    }
    
    .carousel-content {
        padding: 15px;
        max-width: 100%;
    }
    
    .carousel-content h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .carousel-content .price {
        font-size: 18px;
    }
    
    .carousel-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .carousel-arrow.prev {
        left: 10px;
    }
    
    .carousel-arrow.next {
        right: 10px;
    }
    
    /* Sections */
    .section {
        padding: 35px 0;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-card {
        padding: 12px 8px;
    }
    
    .category-card .icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .category-card h3 {
        font-size: 12px;
    }
    
    /* Products */
    .products-grid {
        gap: 12px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-badge {
        padding: 5px 10px;
        font-size: 10px;
        top: 10px;
        left: 10px;
    }
    
    .product-actions {
        gap: 5px;
        opacity: 1;
        transform: none;
    }
    
    .product-card:hover .product-actions {
        transform: none;
    }
    
    .product-actions button {
        width: 32px;
        height: 32px;
        font-size: 13px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-category {
        font-size: 10px;
    }
    
    .product-name {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .product-rating {
        margin-bottom: 8px;
    }
    
    .product-rating .stars {
        font-size: 11px;
    }
    
    .product-rating span {
        font-size: 11px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .product-btn {
        padding: 10px 8px;
        font-size: 11px;
        margin-top: 10px;
        border-radius: 0 0 8px 8px;
    }
    
    /* Promo Banners */
    .promo-banner {
        height: 150px;
    }
    
    .promo-banner-content {
        padding: 15px;
    }
    
    .promo-banner-content h3 {
        font-size: 18px;
    }
    
    .promo-banner-content p {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .promo-banner-content .btn {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    /* Features */
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-card .icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .feature-card h3 {
        font-size: 16px;
    }
    
    /* Newsletter */
    .newsletter {
        padding: 50px 0;
    }
    
    .newsletter-content h2 {
        font-size: 22px;
    }
    
    .newsletter-content p {
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        gap: 20px;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 16px;
    }
    
    .footer-contact li {
        font-size: 13px;
        gap: 10px;
    }
    
    /* Cart */
    .cart-header h3 {
        font-size: 18px;
    }
    
    .cart-close {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .cart-item img {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-name {
        font-size: 13px;
    }
    
    .cart-item-quantity button {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .cart-total {
        font-size: 16px;
    }
    
    .cart-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Modal */
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    /* Admin Panel */
    .admin-menu {
        padding: 0 5px;
    }
    
    .admin-menu-item {
        padding: 10px 12px;
    }
    
    .admin-menu-item i {
        font-size: 16px;
    }
    
    .admin-header h1 {
        font-size: 22px;
    }
    
    /* Revenue Cards */
    .revenue-card {
        padding: 15px 12px;
    }
    
    .revenue-card .icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .revenue-card h4 {
        font-size: 20px;
    }
    
    /* Charts */
    .sales-chart-container {
        padding: 15px;
    }
    
    .sales-chart-container h4 {
        font-size: 14px;
    }
    
    .chart-bars {
        height: 120px;
    }
    
    .chart-value {
        font-size: 10px;
    }
    
    .chart-label {
        font-size: 9px;
    }
    
    /* Top Products */
    .top-product-item {
        flex-wrap: wrap;
        padding: 12px;
    }
    
    .product-rank {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .product-stats {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e0e0e0;
    }
    
    /* Login Page */
    .login-container {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .login-logo {
        font-size: 22px;
    }
    
    .login-header h2 {
        font-size: 22px;
    }
    
    .login-header p {
        font-size: 13px;
    }
    
    .login-container .form-group {
        margin-bottom: 20px;
    }
    
    .login-container .form-group label {
        font-size: 13px;
    }
    
    .login-container input {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 15px;
        font-size: 15px;
    }
    
    .login-info {
        padding: 15px;
    }
    
    .login-info p {
        font-size: 12px;
    }
    
    .login-footer {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .login-footer a {
        font-size: 13px;
    }
}

/* ==========================================
   EXTRA SMALL PHONES (320px - 374px)
   ========================================== */
@media screen and (max-width: 374px) {
    .container {
        padding: 0 10px;
    }
    
    /* Header */
    .logo {
        font-size: 16px;
    }
    
    .logo i {
        font-size: 20px;
    }
    
    .header-actions button,
    .header-actions a {
        font-size: 14px;
        padding: 5px;
    }
    
    /* Carousel */
    .carousel {
        height: 280px;
    }
    
    .carousel-content h2 {
        font-size: 20px;
    }
    
    .carousel-content .price {
        font-size: 16px;
    }
    
    .carousel-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .category-card {
        padding: 10px 6px;
    }
    
    .category-card .icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .category-card h3 {
        font-size: 11px;
    }
    
    /* Products */
    .products-grid {
        gap: 10px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    /* Promo Banners */
    .promo-banner {
        height: 130px;
    }
    
    .promo-banner-content h3 {
        font-size: 16px;
    }
    
    /* Features */
    .feature-card {
        padding: 15px;
        gap: 12px;
    }
    
    .feature-card .icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    /* Footer */
    .footer-links ul,
    .footer-contact ul {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Cart Modal */
    .cart-modal {
        width: 100%;
    }
    
    /* Admin Panel */
    .admin-menu-item {
        padding: 8px 10px;
    }
    
    .admin-menu-item i {
        font-size: 14px;
    }
    
    /* Revenue Cards */
    .revenue-cards {
        grid-template-columns: 1fr;
    }
    
    .revenue-card {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
    }
    
    .revenue-card .icon {
        margin: 0;
    }
    
    /* Login */
    .login-container {
        padding: 20px 15px;
    }
    
    .login-logo {
        font-size: 20px;
    }
    
    .login-logo i {
        font-size: 28px;
    }
    
    .login-header h2 {
        font-size: 20px;
    }
}

/* ==========================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .product-card:hover .product-image img {
        transform: none;
    }
    
    .category-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .product-actions {
        opacity: 1;
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    /* Make touch targets larger */
    .header-actions button,
    .header-actions a,
    .carousel-arrow,
    .carousel-dot,
    .admin-actions button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove tap highlight */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Better touch scrolling */
    .cart-items,
    .modal-body,
    .wishlist-items {
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================
   LANDSCAPE ORIENTATION
   ========================================== */
@media screen and (max-width: 991px) and (orientation: landscape) {
    .carousel {
        height: 300px;
    }
    
    .carousel-content {
        max-width: 60%;
    }
    
    .carousel-content h2 {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cart-modal {
        width: 450px;
    }
    
    .quickview-modal {
        max-width: 700px;
    }
    
    .quickview-content {
        flex-direction: row;
    }
    
    .quickview-image {
        width: 45%;
        padding: 15px;
    }
    
    .quickview-info {
        width: 55%;
        padding: 20px;
    }
    
    .quickview-image img {
        max-height: 200px;
    }
}

/* ==========================================
   HIGH DPI / RETINA DISPLAYS
   ========================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image img,
    .category-card .icon,
    .promo-banner {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .header,
    .nav-menu,
    .carousel,
    .cart-modal,
    .notification,
    .footer,
    .admin-sidebar {
        display: none !important;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 20px;
    }
    
    .admin-table {
        box-shadow: none;
    }
    
    .admin-table th,
    .admin-table td {
        border: 1px solid #ddd;
    }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 0 0 2px #000;
        --shadow-hover: 0 0 0 3px #000;
    }
    
    .product-card,
    .category-card,
    .feature-card {
        border: 2px solid #000;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment below if you want dark mode support */
    /* 
    :root {
        --primary-color: #ecf0f1;
        --text-color: #ecf0f1;
        --text-light: #bdc3c7;
        --white: #2c3e50;
        --light-bg: #34495e;
    }
    */
}
