/* product.css */
@import "root.css";

.pdp-page {
    padding: 40px 0;
}

.breadcrumb {
    align-items: center;
    margin: 0;
}

.breadcrumb-item{
    font-family: var(--font-btn);
    color: var(--primary-maroon) !important;
}

.breadcrumb-item a{
    font-family: var(--font-btn);
    font-size: 1rem;
    color: #71717B !important;
    text-decoration: none;
}
.breadcrumb-item:hover a,
.product-sku {
    color: var(--primary-maroon) !important;
}

.pdp-page {
    background: #FAFAFA;
    font-family: var(--font-btn);
}

/* Main Image & Gallery */
.product-gallery {
    display: flex;
    flex-direction: row-reverse;
    gap: 1rem;
    align-items: stretch;
    height: 550px;
}
.main-img-wrapper {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 5px 15px;
    font-size: 13px;
    color: #666;
}

/* Vertical Thumbnail Slider */
.thumb-slider-vertical {
    width: 100px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.thumb-track-container-v {
    flex-grow: 1;
    overflow: hidden;
    margin: 10px 0;
}

.thumb-track-v {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.4s ease;
}

.thumb-img {
    width: 85px;
    height: 85px;
    min-height: 85px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    opacity: 0.6;
    transition: 0.3s;
}

.thumb-img.active {
    border: 2px solid var(--primary-maroon);
    opacity: 1;
}

.thumb-nav-v {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.product-price-box{
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-btn);
}

.info-box {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.description-box {
    max-height: 180px;
    overflow-y: auto;
    line-height: 1.7;
}

/* Info Side */
.product-title {
    font-size: 2.2rem;
    color: #333;
    font-family: var(--font-btn);
}

.price-main {
    color: var(--primary-maroon);
    font-size: 2.5rem;
}

.price-original {
    text-decoration: line-through;
}

/* Variant Buttons */
.variant-select-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.variant-select-btn.active {
    border-color: var(--primary-maroon);
    color: var(--primary-maroon);
    box-shadow: 0 0 0 1px var(--primary-maroon);
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid #ccc;
}

/* Promo Box */
.promo-box {
    background: #f9f6f2;
    border-radius: 12px;
    border: 1px dashed #c0a060;
}

.promo-title {
    font-weight: bold;
    color: #d32f2f;
}

/* Action Buttons */
.btn-buy-now {
    background: linear-gradient(to right, #6a0b16, #921c2a);
    color: #fff;
    padding: 15px;
    font-weight: bold;
    border-radius: 50px;
    letter-spacing: 1px;
}

.btn-buy-now:hover {
    color: #fff;
    filter: brightness(1.2);
}

.btn-outline-dark, .btn-outline-success {
    border-radius: 50px;
    padding: 12px;
    font-weight: 500;
    border-color: var(--primary-maroon);
    color: var(--primary-maroon);
}

.btn-outline-dark:hover {
    background: var(--primary-maroon);
}

@media (max-width: 768px) {
    .plp-filter-controller {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px !important;
        margin-bottom: 25px !important;
    }
    .filter-group-left {
        justify-content: space-between;
    }
    .filter-group-right {
        flex-direction: column;
    }

    .product-card .badge-status img {
        width: 30px;
        margin-bottom: 2px;
    }
}

.recommendations {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.relatedSwiper.swiper {
    position: unset;
}
.product-card {
    border-radius: 15px;
    padding: 0px;
    position: relative;
    height: 100%;
    transition: 0.3s;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E4E4E7;
    box-shadow: 0px 4px 8px -2px rgba(10, 13, 18, 0.1), 0px 2px 4px -2px rgba(10, 13, 18, 0.06);
}

.product-card:hover {
    border: 2px solid var(--accent-gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Badge Mới/Hot với Kim cương */
.badge-status {
    position: absolute;
    float: right;
    top: 15px;
    right: 10px;
    z-index: 5;
}

.badge-status img {
    width: 44px;
    margin-bottom: 2px;
}

.product-img {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    transition: 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.2);
}

.product-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.p-name,
.p-price {
    font-family: var(--font-btn);
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: #3F3F46;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-price {
    font-size: 18px;
}

.product-card:hover .p-name {
    color: var(--primary-maroon);
}

@media (max-width: 768px) {
    .product-card .badge-status img {
        width: 30px;
        margin-bottom: 2px;
    }
}

/* Font và màu sắc cho tiêu đề h5 */
.item-card-title {
    font-size: 20px;
    line-height: 1.2;
    font-family: var(--font-btn) !important;
}

.item-card {
    color: var(--primary-maroon);
    border: 1px solid var(--primary-maroon);
    border-radius: 15px;
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(119, 19, 31, 0.15);
}

/* Responsive cho mobile: nếu muốn căn giữa hết khi màn hình nhỏ */
@media (max-width: 768px) {
    .item-card p {
        padding-left: 0;
        text-align: center;
        margin-top: 10px;
    }
    .item-card .d-flex {
        flex-direction: column;
        text-align: center;
    }
}