/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   Mobile-First Approach for Complete Responsiveness
   ============================================ */

/* ============================================
   MOBILE DEVICES (320px - 575px)
   ============================================ */
@media (max-width: 575px) {
    /* Global Adjustments */
    body {
        font-size: 14px;
    }

    /* Announcement Bar */
    .announcement-bar {
        padding: 10px 15px;
        font-size: 11px;
    }

    /* Navigation */
    .navbar {
        padding: 5px 0;
    }

    .navbar-brand img {
        height: 28px;
    }

    .navbar-nav {
        padding: 15px 0;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-icons {
        gap: 12px;
        padding: 10px 0;
    }

    .navbar-icons i {
        font-size: 18px;
    }

    /* Hero Section */
    .hero-image-container {
        height: 250px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-social {
        gap: 10px;
        margin-bottom: 20px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    .btn-hero {
        padding: 12px 30px;
        font-size: 13px;
    }

    /* Section Titles */
    .section-title {
        font-size: 20px;
        padding-bottom: 15px;
        margin-bottom: 30px;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    /* Product Cards */
    .product-card {
        margin-bottom: 20px;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 15px;
    }

    .product-info h5 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .rating {
        font-size: 12px;
    }

    .price {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .old-price {
        font-size: 16px;
    }

    .btn-add-cart {
        padding: 10px 20px;
        font-size: 12px;
    }

    /* Collection Cards */
    .collection-card {
        height: 250px;
        margin-bottom: 15px;
    }

    .collection-overlay h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .btn-collection {
        padding: 12px 30px;
        font-size: 13px;
    }

    /* Shark Tank Section */
    .shark-tank-section {
        padding: 40px 0;
    }

    .shark-tank-image-card {
        margin-bottom: 30px;
        padding: 15px;
    }

    .shark-tank-title {
        font-size: 22px;
        letter-spacing: 1px;
    }

    /* Newsletter Section */
    .newsletter-section {
        padding: 40px 0;
        margin: 40px 0;
    }

    .newsletter-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .btn-newsletter {
        padding: 12px 35px;
        font-size: 13px;
    }

    /* Ingredients Section */
    .ingredients-section {
        padding: 40px 0;
    }

    .ingredients-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .ingredients-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .ingredient-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .ingredient-icon i {
        font-size: 24px;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 40px 0 20px !important;
    }

    .testimonials-section .carousel {
        padding: 20px 15px;
    }

    .testimonial-card p {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .testimonial-card .review-text {
        font-size: 13px;
        margin-bottom: 25px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }

    .footer-logo-overlay {
        width: 100px;
        height: 100px;
        top: -50px;
        left: 15px;
        padding: 10px;
    }

    .footer-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .footer p,
    .footer-links a,
    .footer-contact li {
        font-size: 13px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    /* Scroll to Top */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }

    /* Search Drawer */
    .search-drawer {
        max-height: 100vh;
    }

    .search-header {
        padding: 15px;
    }

    .search-input {
        font-size: 15px;
    }

    .search-close {
        width: 32px;
        height: 32px;
    }

    .search-body {
        padding: 25px 15px;
    }

    .search-section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-image {
        height: 150px;
    }

    .category-title {
        font-size: 13px;
    }

    /* Cart Offcanvas */
    .cart-offcanvas {
        width: 100% !important;
    }

    .cart-offcanvas .offcanvas-header {
        padding: 15px 20px;
    }

    .cart-offcanvas .offcanvas-title {
        font-size: 18px;
    }

    .cart-offcanvas-items-container {
        padding: 15px;
    }

    .cart-offcanvas-item {
        padding: 12px;
        margin-bottom: 12px;
    }

    .cart-offcanvas-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-offcanvas-item-details h6 {
        font-size: 13px;
    }

    .cart-item-price {
        font-size: 12px;
    }

    .cart-item-total {
        font-size: 14px;
    }

    .cart-offcanvas-footer {
        padding: 15px;
    }

    .cart-summary-row {
        font-size: 13px;
    }

    .cart-total-row {
        font-size: 16px;
    }

    .cart-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-clear-cart-offcanvas,
    .btn-checkout-offcanvas {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    /* Product Detail Offcanvas */
    .product-detail-offcanvas {
        width: 100% !important;
    }

    .product-detail-offcanvas .offcanvas-header {
        padding: 15px 20px;
    }

    .product-detail-offcanvas .offcanvas-title {
        font-size: 18px;
    }

    .product-detail-offcanvas .offcanvas-body {
        padding: 20px;
    }

    .detail-product-image {
        max-height: 200px;
    }

    .detail-product-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .detail-price-section {
        font-size: 20px;
    }

    .detail-old-price {
        font-size: 14px;
    }

    .detail-size-options {
        flex-wrap: wrap;
    }

    .detail-size-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .detail-qty-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .detail-quantity-controls input {
        width: 50px;
        height: 35px;
        font-size: 14px;
    }

    .detail-add-to-cart-btn {
        padding: 12px;
        font-size: 14px;
    }

    .detail-benefits h6 {
        font-size: 15px;
    }

    .detail-benefits ul li {
        font-size: 13px;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }

    /* Products Page */
    .products-hero {
        padding: 40px 0;
    }

    .products-hero-title {
        font-size: 26px;
    }

    .products-hero-subtitle {
        font-size: 14px;
    }

    .product-filters .form-select {
        min-width: 100%;
        margin-top: 15px;
        padding: 8px 15px;
        font-size: 13px;
    }

    /* Pagination */
    .pagination {
        margin-top: 30px;
        gap: 5px;
    }

    .pagination .page-link {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* User Menu */
    .user-dropdown-menu {
        position: fixed;
        top: auto;
        right: 15px;
        left: 15px;
        width: auto;
        min-width: auto;
    }

    .user-menu-header {
        padding: 15px;
    }

    .user-menu-header i {
        font-size: 35px;
    }

    .user-menu-header strong {
        font-size: 14px;
    }

    .user-menu-item {
        padding: 10px 15px;
        font-size: 13px;
    }

    /* Coupons Modal */
    .coupons-modal {
        width: 95%;
        max-height: 90vh;
    }

    .coupons-modal-header {
        padding: 18px 20px;
    }

    .coupons-modal-header h3 {
        font-size: 18px;
    }

    .coupons-modal-body {
        padding: 20px 15px;
    }

    .coupon-card {
        padding: 18px;
    }

    .coupon-code {
        font-size: 16px;
        padding: 12px 15px;
        letter-spacing: 2px;
    }

    .coupon-code-box {
        flex-direction: column;
        gap: 10px;
    }

    .btn-copy-code {
        width: 100%;
        padding: 10px 15px;
        font-size: 13px;
    }

    .coupon-details p {
        font-size: 13px;
    }

    /* Profile Cards */
    .profile-info-card,
    .address-card {
        padding: 18px;
    }

    .profile-avatar i {
        font-size: 50px;
    }

    .profile-detail-row {
        padding: 12px;
        gap: 12px;
    }

    .profile-detail-row > i {
        font-size: 18px;
    }

    .profile-detail-row p {
        font-size: 14px;
    }

    .address-details {
        padding: 15px;
    }

    .address-details p {
        font-size: 13px;
    }
}

/* ============================================
   SMALL TABLETS (576px - 767px)
   ============================================ */
@media (min-width: 576px) and (max-width: 767px) {
    /* Hero Section */
    .hero-image-container {
        height: 300px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    /* Section Titles */
    .section-title {
        font-size: 24px;
    }

    /* Product Cards */
    .product-image {
        height: 280px;
    }

    /* Collection Cards */
    .collection-card {
        height: 350px;
    }

    .collection-overlay h3 {
        font-size: 28px;
    }

    /* Shark Tank */
    .shark-tank-title {
        font-size: 28px;
    }

    /* Categories Grid */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .category-image {
        height: 200px;
    }

    /* Cart Offcanvas */
    .cart-offcanvas {
        width: 380px !important;
    }

    /* Product Detail Offcanvas */
    .product-detail-offcanvas {
        width: 400px !important;
    }
}

/* ============================================
   TABLETS (768px - 991px)
   ============================================ */
@media (min-width: 768px) and (max-width: 991px) {
    /* Navigation */
    .navbar-nav .nav-link {
        font-size: 13px;
        margin: 0 8px;
    }

    /* Hero Section */
    .hero-image-container {
        height: 350px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 26px;
    }

    .hero-description {
        font-size: 16px;
    }

    /* Section Titles */
    .section-title {
        font-size: 28px;
    }

    /* Product Cards */
    .product-image {
        height: 300px;
    }

    .product-info h5 {
        font-size: 15px;
    }

    /* Collection Cards */
    .collection-card {
        height: 400px;
    }

    .collection-overlay h3 {
        font-size: 32px;
    }

    /* Shark Tank */
    .shark-tank-section {
        padding: 60px 0;
    }

    .shark-tank-title {
        font-size: 36px;
    }

    .shark-tank-content {
        padding-left: 0;
        text-align: center;
        margin-top: 30px;
    }

    /* Ingredients */
    .ingredients-title {
        font-size: 32px;
        margin-top: 30px;
    }

    /* Testimonials */
    .testimonial-card p {
        font-size: 18px;
    }

    .testimonial-card .review-text {
        font-size: 14px;
    }

    /* Categories Grid */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .category-image {
        height: 220px;
    }

    /* Cart Offcanvas */
    .cart-offcanvas {
        width: 420px !important;
    }

    /* Product Detail Offcanvas */
    .product-detail-offcanvas {
        width: 450px !important;
    }

    /* Footer */
    .footer-logo-overlay {
        width: 150px;
        height: 150px;
        top: -75px;
        left: 40px;
    }
}

/* ============================================
   SMALL LAPTOPS (992px - 1199px)
   ============================================ */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Hero Section */
    .hero-image-container {
        height: 400px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 30px;
    }

    /* Section Titles */
    .section-title {
        font-size: 32px;
    }

    /* Product Cards */
    .product-image {
        height: 320px;
    }

    /* Collection Cards */
    .collection-card {
        height: 450px;
    }

    .collection-overlay h3 {
        font-size: 36px;
    }

    /* Shark Tank */
    .shark-tank-title {
        font-size: 48px;
    }

    /* Ingredients */
    .ingredients-title {
        font-size: 38px;
    }

    /* Categories Grid */
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   LANDSCAPE ORIENTATION (Mobile & Tablet)
   ============================================ */
@media (max-width: 991px) and (orientation: landscape) {
    .hero-image-container {
        height: 280px;
    }

    .hero-section {
        padding: 50px 0;
    }

    .shark-tank-section {
        padding: 50px 0;
    }

    .ingredients-section {
        padding: 50px 0;
    }

    .collection-card {
        height: 300px;
    }
}

/* ============================================
   UTILITY CLASSES FOR RESPONSIVE SPACING
   ============================================ */
@media (max-width: 767px) {
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .my-5 {
        margin-top: 2.5rem !important;
        margin-bottom: 2.5rem !important;
    }

    .g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

/* ============================================
   CONTAINER ADJUSTMENTS
   ============================================ */
@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn,
    .nav-link,
    .social-icon,
    .cart-qty-btn,
    .detail-qty-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .product-card:hover .product-img-main {
        opacity: 1;
    }

    .product-card:hover .product-img-hover {
        opacity: 0;
    }

    /* Simplify animations on touch devices */
    * {
        transition-duration: 0.2s !important;
    }
}

/* ============================================
   HIGH RESOLUTION DISPLAYS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images for retina displays */
    .product-image,
    .collection-card,
    .hero-image-container {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .announcement-bar,
    .footer,
    .scroll-top,
    .whatsapp-float,
    .cart-offcanvas,
    .product-detail-offcanvas,
    .search-drawer {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .section-title {
        page-break-after: avoid;
    }

    .product-card {
        page-break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed in future */
}
