/**
 * Amazon Style Product - Mobile CSS
 * Responsive styles for tablets and phones
 */

/* =============================================
   Tablet (max-width: 1024px)
============================================= */
@media (max-width: 1024px) {
    .asp-product-layout {
        grid-template-columns: 300px 1fr;
        gap: 16px;
    }

    .asp-col-buybox {
        grid-column: 1 / -1;
        position: static;
    }

    .asp-zoom-result {
        display: none !important;
    }

    .asp-reviews-header {
        grid-template-columns: 1fr;
    }

    .asp-related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =============================================
   Mobile (max-width: 768px)
============================================= */
@media (max-width: 768px) {
    .asp-product-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .asp-col-gallery {
        order: 1;
    }

    .asp-col-info {
        order: 2;
        padding: 16px;
    }

    .asp-col-buybox {
        order: 3;
        border: none;
        border-top: 1px solid var(--asp-border);
        border-radius: 0;
        margin: 0;
    }

    /* Gallery - Horizontal */
    .asp-gallery-wrapper {
        flex-direction: column;
    }

    .asp-thumbnails {
        flex-direction: row;
        width: 100%;
        order: 2;
        justify-content: center;
        padding: 10px;
    }

    .asp-main-image-container {
        order: 1;
    }

    .asp-main-image img {
        max-height: 350px;
    }

    .asp-lightbox-hint {
        display: none;
    }

    /* Title */
    .asp-product-title {
        font-size: 18px;
    }

    /* Price */
    .asp-current-price,
    .asp-current-price .woocommerce-Price-amount {
        font-size: 22px;
    }

    /* Offers */
    .asp-offers-scroll {
        margin: 0 -16px;
        padding: 0 16px 8px;
    }

    .asp-offer-card {
        min-width: 180px;
    }

    /* Reviews */
    .asp-reviews-header {
        gap: 20px;
    }

    .asp-reviews-overall {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }

    .asp-attribute-ratings {
        justify-content: center;
    }

    /* Related */
    .asp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Mobile Sticky Bar - DISABLED */
    .asp-mobile-sticky {
        display: none !important;
    }

    .asp-mobile-sticky-inner {
        display: flex;
        align-items: center;
        gap: 12px;
        max-width: 100%;
    }

    .asp-mobile-price {
        font-size: 18px;
        font-weight: 500;
        white-space: nowrap;
    }

    .asp-mobile-discount {
        font-size: 12px;
        color: var(--asp-discount);
        margin-left: 4px;
    }

    .asp-mobile-buttons {
        display: flex;
        gap: 8px;
        flex: 1;
    }

    .asp-btn-cart-mobile,
    .asp-btn-buy-mobile {
        flex: 1;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        border: none;
    }

    .asp-btn-cart-mobile {
        background: var(--asp-btn-cart-bg);
        color: var(--asp-text);
    }

    .asp-btn-buy-mobile {
        background: var(--asp-btn-buy-bg);
        color: var(--asp-text);
    }

    /* Add padding to bottom for sticky bar - REMOVED since bar is gone */
    .asp-product-container {
        padding-bottom: 20px;
    }

    /* Hide desktop buy box buttons on mobile (use sticky instead) - RESTORED */
    .asp-col-buybox .asp-btn-cart,
    .asp-col-buybox .asp-btn-buy {
        display: block !important;
    }
}

/* =============================================
   Small Mobile (max-width: 480px)
============================================= */
@media (max-width: 480px) {
    .asp-breadcrumbs {
        display: none;
    }

    .asp-product-title {
        font-size: 16px;
    }

    .asp-current-price,
    .asp-current-price .woocommerce-Price-amount {
        font-size: 20px;
    }

    .asp-deal-badge {
        flex-wrap: wrap;
        gap: 6px;
    }

    .asp-variant-options {
        gap: 6px;
    }

    .asp-size-chip {
        padding: 6px 12px;
        font-size: 13px;
    }

    .asp-related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .asp-reviews-overall {
        flex-direction: column;
        align-items: flex-start;
    }

    .asp-attr-chip {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* =============================================
   Dark Mode Support (optional)
============================================= */
@media (prefers-color-scheme: dark) {
    /* Keep light mode for product pages as Amazon does */
}