/* Responsive Design for Shopkeeper Header */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .site-header-wrapper {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .site-header-wrapper {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .menu-main-navigation {
        gap: 30px;
    }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .site-header-wrapper {
        max-width: 720px;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-section {
        height: 60vh;
        min-height: 450px;
    }
    
    .menu-wrapper {
        display: none;
    }
    
    .mobile-logo {
        display: block;
    }
    
    .site-logo {
        display: none;
    }
    
    .sticky-logo {
        display: none !important;
    }
    
    .site-tools-list {
        gap: 15px;
    }
    
    .tools_button {
        width: 35px;
        height: 35px;
    }
    
    .tools_button_icon {
        font-size: 16px;
    }
    
    .category-image {
        height: 200px;
    }
    
    .product-image {
        height: 200px;
    }
}

/* Mobile Large (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .site-header-wrapper {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .menu-wrapper {
        display: none;
    }
    
    .mobile-logo {
        display: block;
    }
    
    .site-logo {
        display: none;
    }
    
    .sticky-logo {
        display: none !important;
    }
    
    .site-tools-list {
        gap: 10px;
    }
    
    .tools_button {
        width: 32px;
        height: 32px;
    }
    
    .tools_button_icon {
        font-size: 14px;
    }
    
    .category-content {
        padding: 20px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .category-image {
        height: 180px;
    }
    
    .product-image {
        height: 180px;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .site-header-wrapper {
        padding: 0 10px;
    }
    
    .site-header {
        padding: 10px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-section {
        height: 45vh;
        min-height: 350px;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 8px 0;
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .menu-wrapper {
        display: none;
    }
    
    .mobile-logo {
        display: block;
    }
    
    .site-logo {
        display: none;
    }
    
    .sticky-logo {
        display: none !important;
    }
    
    .site-tools-list {
        gap: 8px;
    }
    
    .tools_button {
        width: 30px;
        height: 30px;
    }
    
    .tools_button_icon {
        font-size: 12px;
    }
    
    .category-content {
        padding: 15px;
    }
    
    .product-content {
        padding: 15px;
    }
    
    .category-image {
        height: 150px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .feature-card {
        padding: 30px 15px;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .feature-icon i {
        font-size: 2rem !important;
    }
}

/* Top Bar Responsive */
@media (max-width: 768px) {
    .site-top-bar-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .sk_social_icons_list.right {
        margin-left: 0;
    }
    
    .topbar-menu {
        margin-left: 0;
    }
    
    .menu-top-bar-menu {
        gap: 15px;
    }
    
    .menu-top-bar-menu .menu-item a {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .site-top-message {
        font-size: 11px;
    }
    
    .menu-top-bar-menu {
        gap: 10px;
    }
    
    .menu-top-bar-menu .menu-item a {
        font-size: 11px;
    }
    
    .sk_social_icons_list {
        gap: 10px;
    }
}

/* Sticky Header Responsive */
@media (max-width: 1024px) {
    .top-headers-wrapper.sticky .site-header {
        padding: 10px 0;
    }
    
    .top-headers-wrapper.sticky .sticky-logo-img {
        max-height: 35px;
    }
}

@media (max-width: 768px) {
    .top-headers-wrapper.sticky .site-header {
        padding: 8px 0;
    }
    
    .top-headers-wrapper.sticky .sticky-logo-img {
        max-height: 30px;
    }
}

/* Dropdown Menu Responsive */
@media (max-width: 991px) {
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin-top: 10px;
        border-radius: 8px;
    }
    
    .sub-menu .menu-item a {
        padding: 8px 15px;
        font-size: 12px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .sub-menu .menu-item:last-child a {
        border-bottom: none;
    }
}

/* Mini Cart Responsive */
@media (max-width: 768px) {
    .shopkeeper-mini-cart {
        min-width: 280px;
        right: -50px;
    }
}

@media (max-width: 576px) {
    .shopkeeper-mini-cart {
        min-width: 250px;
        right: -30px;
    }
    
    .widgettitle {
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .widget_shopping_cart_content {
        padding: 15px;
    }
    
    .minicart-message {
        font-size: 11px;
        padding: 8px 15px;
    }
}

/* Animation Performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-logo-img,
    .sticky-logo-img,
    .mobile-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .top-headers-wrapper,
    .site-header,
    .hero-section,
    .features-section {
        display: none !important;
    }
    
    .categories-section,
    .featured-products-section {
        page-break-inside: avoid;
    }
    
    .category-card,
    .product-card {
        break-inside: avoid;
    }
}
