/* =========================================
   RESPONSIVE DESIGN - Mobile First
   ========================================= */

/* Tablet */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-company-grid {
        gap: 40px;
    }

    .story-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recipe-grid {
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-grid>div:first-child {
        grid-column: span 2;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    /* Navigation */
    .nav-contact-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--rice-white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        text-align: center;
        border-bottom: 1px solid #f3f4f6;
    }

    /* Hero Slider */
    .hero-slider {
        min-height: auto;
    }

    .slide {
        padding: 100px 0 80px;
    }

    .slide-content {
        padding: 80px 20px 60px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content h1 br {
        display: none;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .slider-controls {
        bottom: 24px;
        gap: 12px;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: auto;
        padding: 12px 24px;
        font-size: 0.9rem;
        flex: 0 0 auto;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-title-left h2 {
        font-size: 1.75rem;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* About Company */
    .about-company-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-company-content h2 {
        font-size: 1.6rem;
    }

    .about-company-image {
        order: -1;
    }

    .about-company-image img {
        height: 240px;
    }

    /* Grids */
    .story-grid,
    .product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .recipe-images {
        order: -1;
    }

    .recipe-images img:first-child {
        transform: none;
    }

    .recipe-content h2 {
        font-size: 1.75rem;
    }

    /* Product cards */
    .product-img-wrap {
        height: 260px;
    }

    /* Contact list */
    .contact-list {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        padding-bottom: 80px;
        /* Space for floating buttons */
    }

    .footer-grid>div:first-child {
        grid-column: span 1;
    }

    .social-links {
        justify-content: center;
    }

    /* Floating buttons */
    .floating-buttons {
        bottom: 16px;
        left: 16px;
        gap: 10px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
    }

    .floating-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Mobile Product Slider */
    .product-slider-container {
        position: relative;
        overflow: hidden;
    }

    .product-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px;
        padding: 8px 4px;
    }

    .product-grid::-webkit-scrollbar {
        display: none;
    }

    .product-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 280px;
    }

    .product-slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--brand-amber);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
    }

    .product-slider-btn:hover {
        background: var(--brand-amber-dark);
        transform: translateY(-50%) scale(1.1);
    }

    .product-slider-btn svg {
        width: 16px;
        height: 16px;
    }

    .product-slider-prev {
        left: 4px;
    }

    .product-slider-next {
        right: 4px;
    }

    .product-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    .product-dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #d1d5db;
        cursor: pointer;
        transition: var(--transition);
        border: none;
        padding: 0;
    }

    .product-dot.active {
        background: var(--brand-amber);
        transform: scale(1.2);
    }

    .product-dot:hover {
        background: var(--brand-amber-dark);
    }

    /* Mobile Story Slider */
    .story-slider-container {
        position: relative;
        overflow: hidden;
    }

    .story-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px;
        padding: 8px 4px;
    }

    .story-grid::-webkit-scrollbar {
        display: none;
    }

    .story-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 280px;
    }

    .story-slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--brand-amber);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
    }

    .story-slider-btn:hover {
        background: var(--brand-amber-dark);
        transform: translateY(-50%) scale(1.1);
    }

    .story-slider-btn svg {
        width: 16px;
        height: 16px;
    }

    .story-slider-prev {
        left: 4px;
    }

    .story-slider-next {
        right: 4px;
    }

    .story-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    .story-dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #d1d5db;
        cursor: pointer;
        transition: var(--transition);
        border: none;
        padding: 0;
    }

    .story-dot.active {
        background: var(--brand-amber);
        transform: scale(1.2);
    }

    .story-dot:hover {
        background: var(--brand-amber-dark);
    }

    /* Mobile Recipe Slider */
    .recipe-slider-container {
        position: relative;
        overflow: hidden;
    }

    .recipe-cards-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px;
        padding: 8px 4px;
    }

    .recipe-cards-grid::-webkit-scrollbar {
        display: none;
    }

    .recipe-mini-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 280px;
    }

    .recipe-slider-btn {
        position: absolute;
        top: 45%;
        transform: translateY(-50%);
        z-index: 10;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--brand-amber);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
    }

    .recipe-slider-btn:hover {
        background: var(--brand-amber-dark);
        transform: translateY(-50%) scale(1.1);
    }

    .recipe-slider-btn svg {
        width: 16px;
        height: 16px;
    }

    .recipe-slider-prev {
        left: 4px;
    }

    .recipe-slider-next {
        right: 4px;
    }

    .recipe-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    .recipe-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #d1d5db;
        cursor: pointer;
        transition: var(--transition);
        border: none;
        padding: 0;
    }

    .recipe-dot.active {
        background: var(--brand-amber);
        transform: scale(1.2);
    }

    .recipe-dot:hover {
        background: var(--brand-amber-dark);
    }

    /* Mobile Testimonials Slider */
    .testimonials-slider-container {
        position: relative;
        overflow: hidden;
    }

    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px;
        padding: 8px 4px;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 90%;
        scroll-snap-align: center;
        min-width: 280px;
        padding: 24px;
    }

    .testimonials-slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--brand-amber);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-md);
    }

    .testimonials-slider-btn svg {
        width: 16px;
        height: 16px;
    }

    .testimonials-slider-prev {
        left: 4px;
    }

    .testimonials-slider-next {
        right: 4px;
    }

    .testimonials-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    .testimonial-dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #d1d5db;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .testimonial-dot.active {
        background: var(--brand-amber);
        transform: scale(1.2);
    }

    /* Mobile Shipping Slider */
    .shipping-slider-container {
        position: relative;
        overflow: hidden;
    }

    .shipping-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding: 12px 0;
        justify-content: flex-start;
    }

    .shipping-grid::-webkit-scrollbar {
        display: none;
    }

    .shipping-banner .shipping-item {
        flex: 0 0 100%;
        flex-shrink: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        scroll-snap-align: start;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: left;
        gap: 12px;
        padding: 8px 16px;
    }


    .shipping-text {
        align-items: flex-start;
    }

    .shipping-icon {
        font-size: 1.5rem;
    }

    .shipping-slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.9);
        color: var(--brand-dark);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-sm);
    }

    .shipping-slider-btn svg {
        width: 14px;
        height: 14px;
    }

    .shipping-slider-prev {
        left: 4px;
    }

    .shipping-slider-next {
        right: 4px;
    }

    .shipping-slider-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 12px;
    }

    .shipping-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .shipping-dot.active {
        background: white;
        transform: scale(1.2);
    }

    /* Mobile Floating Buttons - Icon only */
    .floating-buttons {
        right: 16px;
        bottom: 16px;
    }

    .floating-btn {
        padding: 14px;
        border-radius: 50%;
    }

    .floating-label {
        display: none;
    }

    .floating-btn svg {
        width: 26px;
        height: 26px;
    }

    /* Improved font sizes for older users */
    body {
        font-size: 16px;
    }

    .product-desc,
    .story-card p,
    .recipe-mini-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .product-name,
    .story-card h3 {
        font-size: 1.15rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    /* Hide specific slider arrows on mobile as requested (Option 1) */
    .story-slider-btn,
    .shipping-slider-btn,
    .testimonials-slider-btn {
        display: none !important;
    }
}

/* Desktop: Hide slider controls */
@media (min-width: 769px) {

    .testimonials-slider-btn,
    .testimonials-slider-dots,
    .shipping-slider-btn,
    .shipping-slider-dots {
        display: none;
    }
}