/*
 * Mobile Product Page - Ultra-Premium App-Like Design
 * DinaKala Theme - Designed to Wow
 */

@media screen and (max-width: 767px) {

    /* ==========================================
       1. Base Page Styles & Animations
       ========================================== */
    
    .single-product {
        background-color: #f6f8fb !important;
    }

    .single-product .product-con {
        padding: 0 !important;
        margin-bottom: 20px !important;
        background: transparent !important;
        box-shadow: none !important;
		justify-content: center;
    }

    /* Keyframes for premium animations */
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes pulseGlow {
        0% {
            box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
        }
    }

    @keyframes shimmer {
        0% {
            background-position: -200% 0;
        }
        100% {
            background-position: 200% 0;
        }
    }

    /* ==========================================
       2. Image Gallery - Floating Premium Deck
       ========================================== */

    .single-product .woocommerce-product-gallery {
        margin: 0 12px 20px 12px !important;
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.03);
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        position: relative;
        animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Ensure image displays fully, crisp and centered */
    .single-product .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: auto !important;
        max-height: 380px !important;
        object-fit: cover !important;
        padding: 10px;
        background: #ffffff;
    }

    /* Modern slide dots indicator */
    .woocommerce-product-gallery .flex-control-nav {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 12px 0 16px !important;
        margin: 0 !important;
        list-style: none !important;
        position: absolute;
        bottom: 5px;
        left: 0;
        right: 0;
        z-index: 10;
    }

    .woocommerce-product-gallery .flex-control-nav li a {
        display: block !important;
        width: 6px !important;
        height: 6px !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.15) !important;
        text-indent: -9999px !important;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        cursor: pointer !important;
    }

    .woocommerce-product-gallery .flex-control-nav li a.flex-active {
        background: var(--dina-custom-color) !important;
        width: 16px !important;
        border-radius: 3px !important;
    }

    /* Thumbnails container hidden or styled minimalistically */
    .single-product .woocommerce-product-gallery .flex-control-thumbs {
        display: flex !important;
        gap: 8px !important;
        padding: 12px !important;
        margin: 0 !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        background: #ffffff !important;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        scrollbar-width: none;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
        display: none;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs li {
        width: 54px !important;
        flex: 0 0 54px !important;
        margin: 0 !important;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs img {
        width: 54px !important;
        height: 54px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
        border: 2px solid transparent !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        transition: all 0.25s ease;
        opacity: 0.6;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
        border-color: var(--dina-custom-color) !important;
        opacity: 1;
        transform: scale(1.05);
    }

    /* Premium Floating Action Buttons on Gallery */
    ul.prod-opts {
        right: 16px !important;
        top: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    ul.prod-opts li {
        margin: 0 !important;
        width: 38px !important;
        height: 38px !important;
    }

    ul.prod-opts li a span,
    ul.prod-opts li span {
        background: rgba(255, 255, 255, 0.85) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 50% !important;
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
    }

    ul.prod-opts li a span:active,
    ul.prod-opts li span:active {
        transform: scale(0.9);
        background: rgba(255, 255, 255, 0.95) !important;
    }

    /* ==========================================
       3. Main Info & Title Section (Premium card)
       ========================================== */

    .woocommerce div.product div.summary {
        padding: 20px 16px !important;
        margin: 0 12px 20px 12px !important;
        background: #ffffff !important;
        border-radius: 24px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03) !important;
        border: 1px solid rgba(0, 0, 0, 0.02) !important;
        animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
    }

    /* Product Title Styling */
    .woocommerce div.product .product_title {
        font-size: 19px !important;
        font-weight: 800 !important;
        line-height: 1.6 !important;
        color: #1e293b !important;
        margin-bottom: 8px !important;
        display: block !important;
        border: 0 !important;
        padding: 0 !important;
    }

    /* Rating Star Badge */
    .woocommerce-product-rating {
        display: inline-flex !important;
        align-items: center !important;
        background: rgba(254, 191, 52, 0.08) !important;
        border: 1px solid rgba(254, 191, 52, 0.2) !important;
        padding: 4px 10px !important;
        border-radius: 20px !important;
        gap: 6px !important;
        margin-bottom: 15px !important;
    }

    .woocommerce-product-rating .star-rating {
        font-size: 11px !important;
        color: #febf34 !important;
        margin: 0 !important;
    }

    .woocommerce-product-rating .woocommerce-review-link {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #febf34 !important;
        text-decoration: none !important;
        font-family: dana-fd, Tahoma, sans-serif !important;
    }

    /* Excerpt/Short description styling */
    .woocommerce div.product .woocommerce-product-details__short-description {
        font-size: 13px !important;
        line-height: 1.8 !important;
        color: #64748b !important;
        background: #f8fafc !important;
        padding: 12px 16px !important;
        border-radius: 16px !important;
        border-right: 4px solid var(--dina-custom-color) !important;
        margin-bottom: 20px !important;
    }

    /* ==========================================
       4. Price & Discount Container - Ultra-Premium Card
       ========================================== */

    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        display: flex !important;
        align-items: center !important;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 20px !important;
        padding: 16px 20px !important;
        margin: 15px 0 0 0 !important;
        justify-content: center !important;
        flex-direction: row-reverse !important; /* Premium clean RTL look */
    }

    /* Active Price */
    .woocommerce div.product p.price ins,
    .woocommerce div.product span.price ins {
        font-size: 24px !important;
        font-weight: 900 !important;
        color: #0f172a !important;
        text-decoration: none !important;
        font-family: dana-fd, Tahoma, sans-serif !important;
    }

    /* Crossed price wrapper */
    .woocommerce div.product p.price del,
    .woocommerce div.product span.price del {
        font-size: 14px !important;
        color: #94a3b8 !important;
        font-family: dana-fd, Tahoma, sans-serif !important;
        margin-right: 8px !important;
        display: block !important;
    }

    /* Modern floating discount tag */
    .product-dis {
        font-size: 12px !important;
        font-weight: 800 !important;
        background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
        color: #ffffff !important;
        padding: 4px 10px !important;
        border-radius: 10px !important;
        position: static !important;
        display: inline-block !important;
        margin-right: 8px !important;
        box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25) !important;
    }

    /* ==========================================
       5. Swatches & Variations - Modern Buttons
       ========================================== */

    .woocommerce div.product form.cart .variations {
        margin-bottom: 20px !important;
        width: 100% !important;
        display: block !important;
    }

    .woocommerce div.product form.cart .variations tr {
        display: block !important;
        margin-bottom: 12px !important;
    }

    .woocommerce div.product form.cart .variations td {
        display: block !important;
        padding: 0 !important;
    }

    .woocommerce div.product form.cart .variations td.label {
        font-size: 13px !important;
        font-weight: 800 !important;
        color: #334155 !important;
        margin-bottom: 8px !important;
        text-align: right !important;
    }

    /* WooCommerce Swatches Beautiful overrides */
    .woo-variation-swatches .variable-items-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .woo-variation-swatches .variable-items-wrapper .variable-item {
        border-radius: 12px !important;
        border: 2px solid #e2e8f0 !important;
        padding: 6px 14px !important;
        background: #ffffff !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    }

    /* Selected state */
    .woo-variation-swatches .variable-items-wrapper .variable-item.selected {
        border-color: var(--dina-custom-color) !important;
        background: rgba(var(--dina-custom-color-rgb, 40, 167, 69), 0.04) !important;
        color: var(--dina-custom-color) !important;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.1) !important;
    }

    /* Color Swatch Circle shape */
    .woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item {
        border-radius: 50% !important;
        width: 38px !important;
        height: 38px !important;
        padding: 2px !important;
    }

    .woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item .variable-item-span {
        border-radius: 50% !important;
    }

    .woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item.selected {
        box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--dina-custom-color) !important;
    }

    /* ==========================================
       6. Add to Cart & Quantity Widget - Stunning Layout
       ========================================== */

    .woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }

    /* Elegant Quantity Selector */
    .woocommerce div.product form.cart .dina-quantity-con {
        display: flex !important;
        align-items: center !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        height: 52px !important;
        background: #f8fafc !important;
    }

    .woocommerce div.product form.cart .dina-item-quantity-btn {
        width: 40px !important;
        height: 52px !important;
        background: transparent !important;
        border: 0 !important;
        font-size: 20px !important;
        font-weight: 500 !important;
        color: #475569 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: background-color 0.2s;
    }

    .woocommerce div.product form.cart .dina-item-quantity-btn:active {
        background-color: #cbd5e1 !important;
    }

    .woocommerce div.product form.cart .qty {
        width: 46px !important;
        height: 52px !important;
        border: 0 !important;
        text-align: center !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        font-family: dana-fd, Tahoma, sans-serif !important;
        background: #ffffff !important;
        border-left: 1px solid #e2e8f0 !important;
        border-right: 1px solid #e2e8f0 !important;
        color: #0f172a !important;
    }

    /* The Main Add to Cart Button (Tactile Glow Animation) */
    .single-product .product .single_add_to_cart_button.button {
        flex: 1 !important;
        height: 52px !important;
        line-height: 52px !important;
        border-radius: 16px !important;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        font-size: 16px !important;
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
        border: 0 !important;
        padding: 0 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        animation: pulseGlow 2s infinite;
    }

    .single-product .product .single_add_to_cart_button.button::before {
        display: none !important;
    }

    .single-product .product .single_add_to_cart_button.button:active {
        transform: scale(0.97) !important;
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2) !important;
    }

    /* Out of stock styled nicely */
    .single-product .product .not-stock-text {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #ef4444 !important;
        text-align: center !important;
        background: rgba(239, 68, 68, 0.08) !important;
        padding: 12px !important;
        border-radius: 16px !important;
        border: 1px solid rgba(239, 68, 68, 0.15) !important;
    }

    /* ==========================================
       7. Metadata & Attributes - Sleek Clean Cards
       ========================================== */

    .woocommerce div.product .product_meta {
        border-top: 1px solid #f1f5f9 !important;
        margin-top: 25px !important;
        padding-top: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        background: transparent !important;
        border-radius: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .woocommerce div.product .product_meta > span {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        padding: 8px 14px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        color: #64748b !important;
        margin: 0 !important;
        line-height: 1.6 !important;
    }

    .woocommerce div.product .product_meta > span strong,
    .woocommerce div.product .product_meta > span b {
        color: #334155 !important;
        font-weight: 700 !important;
    }

    .woocommerce div.product .product_meta a {
        background: transparent !important;
        color: var(--dina-custom-color) !important;
        font-weight: 700 !important;
        padding: 0 4px !important;
        font-size: 13px !important;
        display: inline-block !important;
    }

    /* Delivery / shipping badge helper */
    .woocommerce div.product p.stock {
        font-size: 11px !important;
        font-weight: 800 !important;
        padding: 4px 10px !important;
        border-radius: 8px !important;
        margin: 10px 0 0 0 !important;
        display: inline-block !important;
    }

    /* ==========================================
       8. Tabs Section - iOS Segment Control style
       ========================================== */

    .woocommerce div.product .woocommerce-tabs {
        margin: 25px 12px 20px 12px !important;
        background: #ffffff !important;
        border-radius: 24px !important;
        padding: 16px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03) !important;
        border: 1px solid rgba(0, 0, 0, 0.02) !important;
        animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    }

    /* iOS Segmented Selector design */
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        display: flex !important;
        background: #f1f5f9 !important;
        padding: 4px !important;
        border-radius: 14px !important;
        border: 0 !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        gap: 4px !important;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
        display: none !important;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        flex: 1 !important;
        border: 0 !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        border-radius: 10px !important;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        display: block !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        color: #64748b !important;
        border: 0 !important;
        border-radius: 10px !important;
        transition: all 0.25s ease !important;
    }

    /* Active Segment control tab styling */
    .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
        background: #ffffff !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
        color: #0f172a !important;
    }

    /* Tab Panels */
    .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 16px 4px 8px 4px !important;
        font-size: 13px !important;
        line-height: 1.9 !important;
        color: #334155 !important;
    }

    /* Features Grid inside summary list */
    .product-features {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 20px !important;
        padding: 16px !important;
        margin: 15px 0 !important;
    }

    .product-features .dina-features-title {
        font-size: 14px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding-bottom: 8px !important;
        margin-bottom: 12px !important;
    }

    .product-features ul.dina-features-ul li {
        font-size: 13px !important;
        color: #475569 !important;
        padding: 6px 0 !important;
        border-bottom: 1px dashed #e2e8f0 !important;
    }

    .product-features ul.dina-features-ul li:last-child {
        border-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* ==========================================
       9. Disable Clashing Footer Nav elements
       ========================================== */

    .dina-mobile-sticky-add {
        display: none !important;
    }
}

.product_meta {
    order: 5;
}

.ptitle-con {
    margin-bottom: 0;
}

.price-con {
    margin-top: 0 !important;
    gap: 10px !important;
}

a.reset_variations {
    display: none !important;
}

.woocommerce div.product form.cart .variations tr,.woocommerce div.product form.cart .variations {
    margin-bottom: 0 !important;
}


