/* ================================================================
   PRODUCT DETAIL PAGE — shared/common styles
   Used by ALL product-detail-*.html pages (10-12+ pages, same
   structure, different product content). Only product name/images/
   price/description differ per page — this CSS + the matching HTML
   template stays identical everywhere.
   ================================================================ */

#product_detail_page {
    background: transparent;
}

/* ---------- Image gallery ---------- */
#product_detail_page .pd-gallery {
    position: relative;
}

#product-carousel {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(14, 25, 50, 0.12);
    border: 1px solid rgba(217, 181, 102, 0.35);
}

#product-carousel .carousel-inner {
    border: none !important;
    aspect-ratio: 1 / 1;
    background: #fff;
}

#product-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

#product-carousel .carousel-control-prev,
#product-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 6px 16px rgba(14, 25, 50, 0.18);
    transition: background 0.25s ease, transform 0.25s ease;
}

#product-carousel .carousel-control-prev { left: 14px; }
#product-carousel .carousel-control-next { right: 14px; }

#product-carousel .carousel-control-prev:hover,
#product-carousel .carousel-control-next:hover {
    background: linear-gradient(120deg, var(--mg-gold-2), var(--mg-gold-3));
    transform: translateY(-50%) scale(1.08);
}

#product-carousel .carousel-control-prev i,
#product-carousel .carousel-control-next i {
    color: var(--mg-ink) !important;
}

/* Thumbnail strip (auto-generated by JS from the carousel images) */
#pd_thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

#pd_thumbnails .pd-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(217, 181, 102, 0.35);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

#pd_thumbnails .pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#pd_thumbnails .pd-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

#pd_thumbnails .pd-thumb.active {
    opacity: 1;
    border-color: var(--mg-gold-2);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

/* ---------- Product info panel ---------- */
#product_detail_page .pd-info h3.font-weight-semi-bold {
    color: var(--mg-ink);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700 !important;
    font-size: 1.7rem;
    line-height: 1.35;
}

#product_detail_page .pd-info h3.font-weight-semi-bold i {
    color: var(--mg-gold-1);
    font-style: normal;
    font-size: 1rem;
    font-weight: 600;
}

#product_detail_page .pd-info hr {
    border-top: 1px dashed rgba(217, 181, 102, 0.4);
}

/* Price box */
#product_detail_page .pd-price-box {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: linear-gradient(120deg, var(--mg-gold-3), var(--mg-gold-2));
    color: var(--mg-ink);
    padding: 10px 22px;
    border-radius: 14px;
    margin-bottom: 4px;
}

#product_detail_page .pd-price-box h3 {
    margin: 0 !important;
    font-weight: 800 !important;
    font-size: 1.6rem;
}

#product_detail_page .pd-price-note {
    color: #6c757d;
    font-size: 0.82rem;
    margin-top: 6px;
}

#product_detail_page p.my-4 {
    color: #495057;
    line-height: 1.85;
    text-align: justify;
}

/* Specifications */
#product_detail_page .product_specification {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--mg-ink) !important;
}

#product_detail_page .product_specification u {
    text-decoration: none;
    position: relative;
    padding-bottom: 6px;
}

#product_detail_page .product_specification u::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--mg-gold-2), var(--mg-gold-3));
}

#product_detail_page .product_detail_feature ul {
    list-style: none;
    padding: 0;
    margin-top: 14px;
}

#product_detail_page .product_detail_feature ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 4px;
    border-bottom: 1px dashed rgba(217, 181, 102, 0.3);
    color: #6c757d;
    font-weight: 500;
}

#product_detail_page .product_detail_feature ul li::before {
    content: "\f3a5";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--mg-gold-2);
    margin-right: 8px;
}

#product_detail_page .product_detail_feature ul li .feature_value {
    color: var(--mg-ink);
    font-weight: 700;
}

/* Quantity stepper */
#product_detail_page .pd-quantity {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(217, 181, 102, 0.4);
    border-radius: 30px;
    overflow: hidden;
    margin: 0 8px 8px 0;
}

#product_detail_page .pd-quantity .quant_btn {
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    color: var(--mg-gold-1);
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.25s ease;
}

#product_detail_page .pd-quantity .quant_btn:hover {
    background: rgba(217, 181, 102, 0.15);
}

#product_detail_page .pd-quantity input {
    width: 44px;
    text-align: center;
    border: none;
    border-left: 1.5px solid rgba(217, 181, 102, 0.3);
    border-right: 1.5px solid rgba(217, 181, 102, 0.3);
    font-weight: 700;
    color: var(--mg-ink);
    background: #fff;
}

/* Action buttons */
#product_detail_page .product_detail_feature .btn-primary,
#product_detail_page #addtowishlist,
#product_detail_page #addtokart {
    border-radius: 30px !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#product_detail_page .product_detail_feature .btn-primary:hover,
#product_detail_page #addtowishlist:hover,
#product_detail_page #addtokart:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(212, 175, 55, 0.35);
}

#product_detail_page #addtowishlist {
    background: transparent !important;
    color: var(--mg-gold-2) !important;
    border: 2px solid var(--mg-gold-2) !important;
}

#product_detail_page #addtowishlist:hover {
    background: linear-gradient(120deg, var(--mg-gold-2), var(--mg-gold-3)) !important;
    color: var(--mg-ink) !important;
}

#product_detail_page #addtowishlist.active {
    background: linear-gradient(120deg, var(--mg-gold-2), var(--mg-gold-3)) !important;
    color: var(--mg-ink) !important;
    border-color: transparent !important;
}

/* Share icons */
#product_detail_page .product_share_social {
    align-items: center;
}

#product_detail_page .product_page_share {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--mg-gold-3), var(--mg-gold-2) 45%, var(--mg-gold-1) 100%);
    color: #fff !important;
    margin-right: 8px !important;
    transition: transform 0.3s ease;
}

#product_detail_page .product_page_share:hover {
    transform: translateY(-3px) rotate(8deg);
}

@media (max-width: 767.98px) {
    #product-carousel .carousel-inner {
        aspect-ratio: 4 / 3;
    }
    #product_detail_page .pd-info h3.font-weight-semi-bold {
        font-size: 1.3rem;
    }
    #product_detail_page .pd-price-box h3 {
        font-size: 1.3rem;
    }
}


#product_detail_page .pd-labour-note {
    display: inline-block;
    border: 1px dashed rgba(217, 181, 102, 0.5);
    background: rgba(242, 221, 154, 0.15);
    color: var(--mg-gold-1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}