/* ============================================
   COMPLETE SITE RESPONSIVE CSS
   Mobile fixes & WCag Accessibility Compliance
   This file ONLY adds responsive overrides -
   does not modify base styles from home.css
   ============================================ */

/* ============================================
   WCAG ACCESSIBILITY COMPLIANCE
   ============================================ */

/* Focus states for WCAG 2.1 compliance */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--sammi-blue);
    outline-offset: 2px;
}

/* Skip to content link styling */
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 10000;
    padding: 1rem 1.5rem;
    border-radius: 4px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-content,
    .hero-image {
        animation: none;
    }

    .feature-card:hover,
    .review-card:hover,
    .card:hover,
    .mini-product-card:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .feature-card,
    .review-card,
    .category-showcase-item,
    .checkout-section,
    .basket-item,
    .order-card {
        border-width: 3px;
    }

    .btn {
        border-width: 3px;
    }
}

/* ============================================
   TABLET BREAKPOINT - 1024px
   ============================================ */
@media (max-width: 1024px) {
    /* Hero section tablet */
    .hero {
        padding: 3rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    /* Footer tablet adjustments */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Checkout grid tablet - stack vertically */
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .checkout-details {
        order: 1;
    }

    .checkout-summary {
        position: static;
        order: 2;
    }

    .summary-card {
        position: static;
    }

    /* Basket layout tablet - stack vertically */
    .basket-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .basket-summary {
        position: static;
        order: 2;
    }

    /* Bundle builder tablet */
    .bundle-builder-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bundle-summary-sidebar {
        position: static;
        order: -1;
    }

    /* Product detail tablet */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-images {
        position: static;
    }
}

/* ============================================
   MOBILE BREAKPOINT - 768px
   ============================================ */
@media (max-width: 768px) {
    /* Touch target size for WCAG - minimum 44px */
    .btn,
    button,
    [role="button"],
    .mini-product-card,
    .dropdown-item,
    .form-input,
    .checkbox-label {
        min-height: 44px;
    }

    /* Card links need larger tap targets */
    a.card .card-content {
        min-height: 44px;
    }

    /* Page container mobile padding */
    .page-container {
        padding: 2rem 1rem;
    }

    /* ============================================
       HOMEPAGE MOBILE
       ============================================ */

    /* Hero section mobile */
    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .hero-image {
        margin: 0 1rem;
    }

    /* Remove decorative corners on mobile */
    .hero-image::before,
    .hero-image::after {
        display: none;
    }

    /* Section headers mobile */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding-bottom: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .section-header .view-all {
        font-size: 0.75rem;
    }

    /* Product grid mobile - 2 columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Card styles mobile */
    .card {
        margin: 0;
    }

    .card-content {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .card-sku {
        font-size: 0.65rem;
    }

    .card-price .price-value {
        font-size: 1rem;
    }

    .card-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }

    /* Categories showcase mobile */
    .categories-showcase {
        gap: 1.5rem;
    }

    .category-showcase-item {
        padding: 1rem;
    }

    .category-showcase-title h3 {
        font-size: 1.1rem;
    }

    .category-products-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Show all 4 products on mobile too */
    .category-products-row .mini-product-card:nth-child(3),
    .category-products-row .mini-product-card:nth-child(4) {
        display: block;
    }

    /* Features grid mobile - 2 columns */
    .why-choose-section {
        padding: 3rem 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-title {
        font-size: 0.85rem;
    }

    .feature-description {
        font-size: 0.8rem;
    }

    /* Reviews section mobile */
    .reviews-section {
        padding: 3rem 0;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Fix the third review card on mobile */
    .reviews-grid .review-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .review-card {
        padding: 1.25rem;
    }

    .review-text {
        font-size: 0.9rem;
        -webkit-line-clamp: 4;
        margin-bottom: 1rem;
    }

    .review-stars .star {
        font-size: 1rem;
    }

    .review-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* CTA section mobile */
    .cta-section {
        padding: 3rem 0;
    }

    .cta-content h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-content .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Empty state mobile */
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon svg {
        width: 48px;
        height: 48px;
    }

    .empty-state h3 {
        font-size: 1.25rem;
    }

    .empty-state p {
        font-size: 0.9rem;
    }

    /* ============================================
       PAGE HEADER MOBILE
       ============================================ */
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 0.5rem;
    }

    .page-subtitle {
        font-size: 0.85rem;
    }

    .breadcrumbs {
        font-size: 0.75rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    /* ============================================
       CHECKOUT PAGE MOBILE
       ============================================ */
    .checkout-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .checkout-header h1 {
        font-size: 1.75rem;
    }

    .checkout-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .checkout-steps .step {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .checkout-steps .step-divider {
        display: none;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .checkout-details {
        order: 1;
    }

    .checkout-summary {
        position: static;
        top: auto;
        order: 2;
    }

    .summary-card {
        position: static;
    }

    .checkout-section {
        padding: 1.25rem;
        border: 2px solid var(--border-heavy);
        border-radius: 0;
    }

    .summary-card {
        border: 2px solid var(--border-heavy);
        border-radius: 0;
    }

    .checkout-section h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-input {
        padding: 0.75rem;
        font-size: 16px; /* Prevent iOS zoom */
    }

    .form-label {
        font-size: 0.85rem;
    }

    /* Payment card section mobile */
    .payment-section {
        padding: 1rem;
    }

    #payment-element {
        padding: 0;
    }

    /* Order summary sidebar mobile */
    .order-summary-card {
        padding: 1rem;
    }

    .order-summary-items {
        max-height: 200px;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }

    .summary-item-image {
        width: 60px;
        height: 60px;
    }

    /* Discount code section mobile */
    .discount-section {
        padding: 1rem;
    }

    .discount-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .discount-input-group .btn {
        width: 100%;
    }

    /* Account recommendation mobile */
    .account-recommendation {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .account-recommendation .btn {
        width: 100%;
    }

    /* ============================================
       BASKET PAGE MOBILE
       ============================================ */
    .basket-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .basket-item .item-image {
        width: 80px;
        height: 80px;
    }

    .basket-item .item-details {
        min-width: 0;
        overflow: hidden;
    }

    .basket-item .item-details h3 {
        font-size: 1rem;
        word-wrap: break-word;
    }

    .basket-item .item-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-medium);
    }

    /* Basket page layout mobile - STACK vertically */
    .basket-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .basket-summary {
        position: static;
        order: 2;
    }

    /* Quantity controls mobile */
    .quantity-controls {
        display: flex;
        align-items: center;
    }

    .quantity-controls button {
        min-width: 44px;
        min-height: 44px;
    }

    /* ============================================
       BUNDLES PAGE MOBILE
       ============================================ */
    .bundles-page {
        padding: 1.5rem 0;
    }

    .bundles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bundle-card {
        max-width: 100%;
    }

    .bundle-content {
        padding: 1.25rem;
    }

    .bundle-title {
        font-size: 1.25rem;
    }

    .bundle-description {
        font-size: 0.9rem;
    }

    .bundle-includes {
        padding: 1rem;
    }

    .bundle-includes h4 {
        font-size: 0.85rem;
    }

    .bundle-includes li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .bundle-pricing {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .bundle-price {
        font-size: 1.75rem;
    }

    .bundle-cta {
        width: 100%;
        justify-content: center;
    }

    /* Bundle deals section mobile */
    .bundles-home-grid {
        grid-template-columns: 1fr;
    }

    .bundle-home-card {
        max-width: 400px;
        margin: 0 auto;
    }

    /* ============================================
       BUNDLE DETAIL / BUILDER MOBILE
       ============================================ */
    .bundle-builder-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bundle-summary-sidebar {
        position: static;
        order: -1;
    }

    .bundle-progress {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .progress-step {
        flex-direction: column;
        gap: 0.25rem;
    }

    .progress-step .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .progress-step .step-label {
        font-size: 0.7rem;
    }

    .progress-line {
        width: 30px;
        display: none;
    }

    .bundle-slot {
        padding: 1rem;
    }

    .slot-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .slot-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .slot-title {
        font-size: 1rem;
    }

    .slot-status {
        font-size: 0.8rem;
    }

    .choice-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .choice-tab {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .choice-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .variant-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .variant-option {
        padding: 0.75rem;
    }

    /* Bundle summary mobile */
    .bundle-summary-card {
        padding: 1rem;
    }

    .summary-price {
        font-size: 1.5rem;
    }

    /* ============================================
       PRODUCT DETAIL PAGE MOBILE
       ============================================ */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-images {
        position: static;
    }

    .product-main-image {
        margin-bottom: 1rem;
    }

    .product-thumbnails {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }

    .thumbnail-img {
        height: 60px;
    }

    .product-title {
        font-size: 1.5rem !important;
    }

    .product-short-desc {
        font-size: 0.9rem;
    }

    .price-display .price-value {
        font-size: 1.75rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .product-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }

    /* Variant selectors mobile */
    .variant-selector {
        gap: 0.5rem;
    }

    .color-option,
    .size-option {
        min-width: 44px;
        min-height: 44px;
    }

    /* Product tabs mobile */
    .product-tabs {
        flex-direction: column;
        gap: 0;
    }

    .product-tab {
        width: 100%;
        text-align: center;
        padding: 0.875rem;
    }

    .tab-content {
        padding: 1rem;
    }

    /* Zoom functionality disabled on mobile */
    .zoom-result,
    .zoom-lens,
    .zoom-hint {
        display: none !important;
    }

    /* ============================================
       PRODUCTS LISTING PAGE MOBILE
       ============================================ */
    .products-page {
        padding: 1rem 0;
    }

    .products-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mobile-filter-toggle {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.875rem 1rem;
        margin-bottom: 1rem;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 90%;
        max-width: 350px;
        height: 100vh;
        height: 100dvh;
        z-index: 1001;
        overflow-y: auto;
        padding-top: 4.5rem;
        transition: left 0.3s ease;
    }

    .filters-sidebar.filters-open {
        left: 0;
    }

    .filters-header {
        display: flex;
    }

    .product-grid-container {
        width: 100%;
    }

    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .sort-select {
        width: 100%;
    }

    /* ============================================
       AUTH PAGES MOBILE (LOGIN/REGISTER)
       ============================================ */
    .auth-section {
        padding: 2rem 1rem;
    }

    .auth-container {
        padding: 0;
    }

    .auth-card {
        padding: 1.5rem;
        max-width: 100%;
        margin: 0;
    }

    .auth-header {
        text-align: center;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .auth-header p {
        font-size: 0.9rem;
    }

    .auth-form .form-group {
        margin-bottom: 1rem;
    }

    .auth-form .form-input {
        padding: 0.875rem;
        font-size: 16px; /* Prevent iOS zoom */
    }

    .auth-form .btn {
        padding: 0.875rem;
    }

    .auth-footer {
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* ============================================
       ORDERS PAGE MOBILE
       ============================================ */
    .orders-section .page-header {
        padding: 2rem 0;
    }

    .orders-section .page-header h1 {
        font-size: 1.75rem;
    }

    .orders-content {
        padding: 1rem 0;
    }

    .orders-list {
        gap: 1rem;
    }

    .order-card {
        padding: 1rem;
    }

    .order-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .order-number {
        font-size: 1rem;
    }

    .order-date {
        font-size: 0.8rem;
    }

    .order-status {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .status-badge,
    .payment-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .order-card-body {
        flex-direction: column;
        gap: 1rem;
    }

    .order-items-preview {
        width: 100%;
    }

    .item-preview {
        font-size: 0.85rem;
    }

    .order-summary {
        text-align: left;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-medium);
    }

    .order-total .total-amount {
        font-size: 1.25rem;
    }

    .order-card-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .order-card-footer .btn {
        width: 100%;
        justify-content: center;
    }

    /* Empty orders state mobile */
    .empty-orders {
        padding: 2rem 1rem;
    }

    .empty-orders h2 {
        font-size: 1.5rem;
    }

    .empty-orders p {
        font-size: 0.9rem;
    }

    /* ============================================
       ORDER DETAIL PAGE MOBILE
       ============================================ */
    .order-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .order-detail-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .order-items-table {
        display: block;
        overflow-x: auto;
    }

    .order-items-table th,
    .order-items-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    /* ============================================
       CATEGORIES PAGE MOBILE
       ============================================ */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card {
        padding: 1rem;
    }

    .category-card h3 {
        font-size: 1rem;
    }

    .category-card .product-count {
        font-size: 0.75rem;
    }

    /* ============================================
       PARTNERS PAGE MOBILE
       ============================================ */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .partner-card {
        padding: 1.25rem;
    }

    .partner-logo {
        width: 80px;
        height: 80px;
    }

    .partner-info h3 {
        font-size: 1.1rem;
    }

    /* ============================================
       CONFIRMATION PAGE MOBILE
       ============================================ */
    .confirmation-section {
        padding: 2rem 1rem;
    }

    .confirmation-card {
        padding: 1.5rem;
    }

    .confirmation-icon svg {
        width: 60px;
        height: 60px;
    }

    .confirmation-title {
        font-size: 1.5rem;
    }

    .order-confirmation-number {
        font-size: 1.25rem;
    }

    .confirmation-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .confirmation-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .confirmation-actions .btn {
        width: 100%;
    }

    /* ============================================
       FOOTER MOBILE
       ============================================ */
    .footer-container {
        padding: 0 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-col h4 {
        display: block;
        margin-bottom: 0.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   SMALL MOBILE BREAKPOINT - 480px
   ============================================ */
@media (max-width: 480px) {
    /* Page container smaller padding */
    .page-container {
        padding: 1.5rem 0.75rem;
    }

    /* Ensure text doesn't overflow */
    body {
        overflow-x: hidden;
    }

    /* Product grid - single column on very small screens */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Card adjustments for single column */
    .card-image img {
        aspect-ratio: 4/3;
        object-fit: cover;
    }

    /* Categories showcase smaller */
    .category-showcase-item {
        padding: 0.75rem;
    }

    /* Show only 2 products on very small screens */
    .category-products-row .mini-product-card:nth-child(3),
    .category-products-row .mini-product-card:nth-child(4) {
        display: none;
    }

    .mini-product-info {
        padding: 0.5rem;
    }

    .mini-product-name {
        font-size: 0.75rem;
    }

    .mini-product-price {
        font-size: 0.8rem;
    }

    /* Features grid - single column with horizontal cards */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .feature-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1rem;
        padding: 1rem;
    }

    .feature-card .feature-icon {
        flex-shrink: 0;
        margin: 0;
    }

    .feature-card::before {
        display: none;
    }

    /* Story links smaller */
    .story-links-section {
        padding: 1rem 0;
    }

    .story-links-container {
        gap: 0.75rem;
        padding: 0 0.75rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .story-link-item {
        min-width: 60px;
        flex-shrink: 0;
    }

    .story-link-circle {
        width: 56px;
        height: 56px;
    }

    .story-link-title {
        font-size: 0.6rem;
        max-width: 60px;
    }

    /* Hero adjustments */
    .hero {
        padding: 1.5rem 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    /* Smaller buttons on tiny screens */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    /* Section padding reduction */
    .section {
        padding: 2rem 0;
    }

    /* Reviews on small screens */
    .review-card {
        padding: 1rem;
    }

    .review-text {
        font-size: 0.85rem;
    }

    /* CTA smaller */
    .cta-section {
        padding: 2rem 0;
    }

    .cta-content h2 {
        font-size: 1.25rem;
    }

    .cta-content p {
        font-size: 0.85rem;
    }

    /* Checkout adjustments for very small screens */
    .checkout-steps .step {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
    }

    .checkout-section {
        padding: 1rem;
    }

    /* Bundle product grid - single column */
    .choice-products {
        grid-template-columns: 1fr;
    }

    /* Categories grid - single column */
    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Auth card full width */
    .auth-card {
        padding: 1rem;
        border-left: none;
        border-right: none;
    }

    /* Order card smaller */
    .order-card {
        padding: 0.75rem;
    }

    .order-number {
        font-size: 0.9rem;
    }

    /* Basket item even smaller */
    .basket-item {
        grid-template-columns: 60px 1fr;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .basket-item .item-image {
        width: 60px;
        height: 60px;
    }

    /* Product thumbnails smaller */
    .product-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .thumbnail-img {
        height: 50px;
    }
}

/* ============================================
   EXTRA SMALL DEVICES - 360px
   ============================================ */
@media (max-width: 360px) {
    .page-container {
        padding: 1rem 0.5rem;
    }

    .hero-content h1 {
        font-size: 1.25rem;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    /* Stack category header vertically */
    .category-showcase-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .view-category-link {
        align-self: flex-start;
    }

    /* Even smaller text */
    .card-title {
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }

    /* Checkout section tighter */
    .checkout-section {
        padding: 0.75rem;
    }

    .checkout-section h2 {
        font-size: 1rem;
    }

    /* Bundle slot tighter */
    .bundle-slot {
        padding: 0.75rem;
    }
}

/* ============================================
   LANDSCAPE MOBILE ORIENTATION
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        text-align: left;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        max-width: none;
        margin: 0;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .hero-actions .btn {
        width: auto;
    }

    /* 2-column grids in landscape */
    .checkout-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   SAFE AREA INSETS (Notch Phones)
   ============================================ */
@supports (padding: max(0px)) {
    .page-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .nav-mobile-menu {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .filters-sidebar {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .hero-actions,
    .view-all,
    .skip-link,
    .story-links-section,
    header,
    footer,
    .mobile-menu-toggle,
    .nav-mobile-menu,
    .filters-sidebar,
    .checkout-summary,
    .bundle-summary-sidebar,
    .discount-section,
    .payment-section {
        display: none !important;
    }

    .page-container {
        max-width: 100%;
        padding: 1rem;
    }

    .product-grid,
    .features-grid,
    .reviews-grid,
    .category-products-row {
        grid-template-columns: repeat(2, 1fr);
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .checkout-grid,
    .product-detail-grid,
    .bundle-builder-layout,
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}
