/*
Theme Name: Blacks Child Theme
Template: blacks
Theme URI: https://blacks.themerex.net/
Description: Blacks Child Theme
Author: ThemeREX
Author URI: https://themerex.net/
Version: 1.0
Tested up to: 6.7
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: blacks
*/
/*
Theme Name: Blacks Child
Template: blacks
Version: 1.0
Description: تخصيص مظهر صور المنتجات (عرض كامل بدون قصّ) مع دعم جميع الأجهزة
*/

/* ==== صور المنتجات في صفحة المتجر ==== */
.woocommerce ul.products li.product img {
    width: auto !important;
    max-width: 100% !important;
    height: 320px !important;
    max-height: 320px !important;
    object-fit: contain !important; /* ✅ عرض الكتاب بالكامل */
    background-color: #fff !important;
    padding: 8px;
    margin: 0 auto !important;
    display: block !important;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ==== تأثير عند التمرير ==== */
.woocommerce ul.products li.product img:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product {
    min-height: 440px !important;
}

/* ==== صور المنتج في صفحة المنتج المفرد ==== */
.woocommerce div.product div.images img {
    width: auto !important;
    max-width: 100% !important;
    height: 500px !important;
    max-height: 500px !important;
    object-fit: contain !important; /* ✅ بدون قصّ */
    background-color: #fff !important;
    padding: 8px;
    margin: 0 auto !important;
    display: block !important;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
}

/* ==== أجهزة التابلت ==== */
@media (max-width: 1024px) {
    .woocommerce ul.products li.product img {
        height: 280px !important;
        max-height: 280px !important;
    }
    .woocommerce div.product div.images img {
        height: 450px !important;
        max-height: 450px !important;
    }
}

/* ==== أجهزة الموبايل ==== */
@media (max-width: 767px) {
    .woocommerce ul.products li.product img {
        height: 220px !important;
        max-height: 220px !important;
    }
    .woocommerce div.product div.images img {
        height: 360px !important;
        max-height: 360px !important;
    }
}

/* =Child-Theme customization starts here
------------------------------------------------------------ */
.book-author-display {
    font-size: 0.85em;
    color: #888888;
    font-style: italic;
    margin-top: 4px;
}