﻿/* ===========================
   Base Styles - Desktop
=========================== */

.product-section {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    margin-bottom: 15px;
}

.product-name h1 {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin-top: 10px;
}

.product-price-currency {
    font-size: 14px;
    color: #555;
}

.discount-number {
    color: red;
    font-weight: bold;
}

.product-status {
    font-size: 14px;
    margin-top: 8px;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
}

.product-images img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.product-images-gallery {
    margin-top: 10px;
}

.product-thumbnail {
    display: block;
    text-align: center;
}

.carousel-inner .item img {
    width: 100%;
    height: auto;
}

.carousel-control {
    width: 40px;
    font-size: 32px;
    color: #333;
    opacity: 0.7;
    text-shadow: none;
    top: 35%;
}

    .carousel-control:hover {
        color: #000;
        opacity: 1;
    }

/* Rating stars */
.rating {
    font-size: 16px;
    margin-top: 10px;
}

.product-tabs {
    margin-top: 20px;
}

    .product-tabs .nav-tabs > li > a {
        font-size: 15px;
        padding: 10px 15px;
    }

/* Add to Cart & Share Buttons */
#btnAddToShoppingCart,
#btnshare {
    font-size: 15px;
    padding: 8px 12px;
    margin-top: 10px;
    white-space: nowrap;
}

/* Tags list */
.tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline;
}

    .tags .tag {
        display: inline-block;
        background: #f1f1f1;
        border-radius: 4px;
        /*padding: 3px 8px;*/
        margin-left: 5px;
        font-size: 13px;
    }

/* ===========================
   Responsive - Mobile
=========================== */

@media (max-width: 768px) {

    .product-name h1 {
        font-size: 20px;
        text-align: center;
    }

    .product-price,
    .product-price-currency {
        font-size: 16px;
        display: block;
        text-align: center;
    }

    .product-status {
        font-size: 13px;
        text-align: center;
        display: block;
    }

    .product-images img {
        max-width: 100%;
        height: auto;
    }

    .carousel-inner .item .col-xs-6,
    .carousel-inner .item .col-xs-4 {
        padding: 2px;
    }

    .carousel-control {
        top: 40%;
        width: 30px;
        font-size: 24px;
    }

    .product-tabs .nav-tabs > li > a {
        font-size: 14px;
        padding: 8px 10px;
    }

    .product-section {
        padding: 10px 5px;
    }

    #btnAddToShoppingCart,
    #btnshare {
        width: 100%;
        margin-top: 10px;
    }

    .tags .tag {
/*        font-size: 12px;
        padding: 2px 6px;*/
    }

    .rating {
        text-align: center;
        font-size: 14px;
    }

    .product-images-gallery {
        margin-top: 15px;
        text-align: center;
    }
}

.min-h250 {
    min-height: 250px;
}

.product-slider-carousel .carousel-inner {
    overflow: hidden;
}

/* تنظیم فاصله کارت‌ها */
.product-slider-row > div {
    padding-left: 5px;
    padding-right: 5px;
}

/* کنترل‌ها فقط در دسکتاپ */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .product-slider-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

        .product-slider-row > div {
            flex: 0 0 80%;
            max-width: 80%;
        }

    .carousel-inner .item {
        display: block;
    }
}