/*
 *  PRODUCT-DETAILS.CSS
 *  Styles for the product details page
*/

/* 1. Image Gallery */
.product-gallery-main .slick-slide img,
.product-gallery-main .slick-slide video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid #eee;
    display: block;
    background: #f3f3f3;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumbnail-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.thumbnail-img:hover {
    transform: scale(1.05);
}

.thumbnail-img.active {
    border-color: var(--color-garden);
}

/* 2. Product Info Section */
.product-info {
    padding-left: 1rem;
}

.product-title {
    color: var(--color-forest);
    font-size: 2.5rem;
}

.product-tagline {
    font-size: 1.1rem;
    color: var(--color-charcoal-75);
    margin-bottom: 1rem;
}

.product-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-garden);
}

.product-availability {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.product-availability.in-stock {
    background-color: #d1e7dd;
    color: #0f5132;
}

.product-short-desc {
    line-height: 1.8;
}

.tasting-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.note-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* 3. Quantity Selector & Buttons */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 2rem;
    overflow: hidden;
}

.quantity-selector .quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
}

.quantity-selector input:focus {
    outline: none;
}

.btn-wishlist {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 1px solid var(--color-forest);
    color: var(--color-forest);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    background: var(--color-forest);
    color: white;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--color-charcoal-75);
}

/* 4. Tabs Section */
.product-tabs .nav-link {
    color: var(--color-charcoal-75);
    border: none;
    border-bottom: 2px solid transparent;
}

.product-tabs .nav-link.active {
    color: var(--color-forest);
    border-bottom-color: var(--color-forest);
    font-weight: 500;
}

.brewing-guide {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-forest);
}

.brewing-guide div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inside-box-list {
    margin: 0;
    padding-left: 1.25rem;
}

.inside-box-list li {
    margin-bottom: .5rem;
}

.inside-box-lang + .inside-box-lang {
    margin-top: 1.25rem;
}

/* 5. Related Products Section */
.related-products-slider .slide-item {
    padding: 0 15px;
}

.product-card-title a {
    text-decoration: none;
    color: var(--color-forest);
}

/* 6. Related card media sizing fix */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
    background: #f3f3f3;
}

.product-image-slider,
.product-image-single {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f3f3;
}

.product-image-slider .slick-list,
.product-image-slider .slick-track,
.product-image-slider .slick-slide,
.product-image-slider .slick-slide > div {
    height: 100%;
}

.product-card-img,
.related-card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f3f3f3;
}

.product-image-single.is-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f3f3f3;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
}

@media (max-width: 991px) {
    .product-info {
        padding-left: 0;
    }
}

/* order modal */

/* Order modal buttons */
.btn-call-order{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
}

.order-contact-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    width: 100%;
    padding: .95rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: all .25s ease;
}

.order-contact-btn i{
    font-size: 1.2rem;
    line-height: 1;
}

.order-contact-btn.call{
    background: var(--color-forest);
    color: var(--color-cream);
    border: 1px solid var(--color-gold);
}

.order-contact-btn.call:hover{
    background: var(--color-forest);
    color: var(--color-cream);
    opacity: .92;
}

.order-contact-btn.wa{
    background: var(--color-gold);
    color: var(--color-forest);
    border: 1px solid var(--color-gold);
}

.order-contact-btn.wa:hover{
    background: var(--color-gold);
    color: var(--color-forest);
    opacity: .92;
}

