/* css/responsive.css */
/* Mobile First Responsive Styles */

/* Extra Small Devices (phones, less than 640px) */
@media (max-width: 639px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .hero-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .slider-btn {
        padding: 0.5rem;
        font-size: 1.25rem;
    }

    .slider-prev {
        left: 0.5rem;
    }

    .slider-next {
        right: 0.5rem;
    }

    /* Stack grid items */
    .grid {
        gap: 1.5rem !important;
    }

    /* Adjust padding for mobile */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Footer adjustments */
    footer {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Button full width on mobile */
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    /* Form adjustments */
    input,
    select,
    textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/* Small Devices (tablets, 640px and up) */
@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }

    /* Sticky nav on larger screens */
    nav {
        position: sticky;
        top: 0;
    }
}

/* Large Devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }

    /* Enhanced hover effects on desktop */
    .product-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
}

/* Extra Large Devices (large desktops, 1280px and up) */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .product-card:hover {
        transform: none;
    }

    /* Larger touch targets */
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    .slider-btn {
        padding: 1rem 1.25rem;
    }
}

/* Landscape Phone Orientation */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        height: auto !important;
        min-height: 100vh;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Sharper images for retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Currently not implemented, but structure for future dark mode */
}

/* Accessibility - Focus Visible */
@media (prefers-reduced-motion: no-preference) {
    :focus-visible {
        outline: 3px solid #C8A951;
        outline-offset: 3px;
    }
}