/* ========== Detail Wrapper Override ========== */
.detail-wrapper {
    padding: 12px;
}
@media (max-width: 575.98px) {
    .detail-wrapper {
        padding: 6px;
    }
}

/* ========== Product Title & Badge ========== */
.product-title {
    font-weight: 800;
    font-size: 24px;
    color: #d63384;
    margin-bottom: 8px;
    text-transform: capitalize;
    line-height: 1.3;
}

.sb-badge {
    background: linear-gradient(135deg, #e83e8c, #d63384);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .3px;
}

/* ========== Product Info Panel ========== */
.product-info-panel {
    padding: 0;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}
.product-meta a {
    color: #e83e8c;
    text-decoration: none;
    font-weight: 600;
}
.product-meta a:hover {
    color: #d63384;
}
.product-meta .meta-separator {
    color: #ddd;
}

.product-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}
.product-location i {
    color: #e83e8c;
    font-size: 12px;
}

/* ========== Price Section ========== */
.product-price-section {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce4ec 100%);
    border: 1px solid #f0e0ea;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.product-price {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}
.product-price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-left: 10px;
}
.product-discount {
    background: linear-gradient(135deg, #e83e8c, #d63384);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
}
.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #28a745;
    margin-top: 8px;
}
.product-price-note {
    font-size: 11px;
    color: #999;
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ========== Affiliates ========== */
.affiliate-section {
    margin-bottom: 16px;
}
.affiliate-section h6 {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}
.affiliate-link {
    display: block;
    padding: 10px 14px;
    border: 1px solid #f0e0ea;
    border-radius: 10px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s;
    margin-bottom: 6px;
}
.affiliate-link:hover {
    background: #fdf2f8;
    border-color: #e83e8c;
    color: #d63384;
}
.affiliate-link .affiliate-price {
    float: right;
    font-weight: 700;
    color: #d63384;
}

/* ========== Action Buttons ========== */
.product-action-bar {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 20px;
}
.product-action-bar .product-action-btn {
    flex: 1;
}
.product-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all .25s ease;
}
.product-action-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}
.product-action-btn.btn-wa {
    background: linear-gradient(135deg, #25D366, #128c7e);
    box-shadow: 0 3px 12px rgba(37,211,102,.25);
}
.product-action-btn.btn-wa:hover {
    box-shadow: 0 6px 20px rgba(37,211,102,.35);
}
.product-action-btn.btn-directions {
    background: #fff;
    color: #d63384;
    border: 2px solid #f0e0ea;
}
.product-action-btn.btn-directions:hover {
    background: #fdf2f8;
    border-color: #e83e8c;
    color: #d63384;
    box-shadow: 0 4px 14px rgba(232,62,140,.12);
}
.product-action-btn.btn-share {
    background: linear-gradient(135deg, #e83e8c, #d63384);
    box-shadow: 0 3px 12px rgba(232,62,140,.25);
}
.product-action-btn.btn-share:hover {
    box-shadow: 0 6px 20px rgba(232,62,140,.35);
}
.product-action-btn.btn-buy {
    background: linear-gradient(135deg, #ff9900, #e88a00);
    box-shadow: 0 3px 12px rgba(255,153,0,.25);
}
.product-action-btn.btn-buy:hover {
    box-shadow: 0 6px 20px rgba(255,153,0,.35);
}

/* ========== Short Description ========== */
.product-short-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    padding-top: 16px;
    border-top: 1px dashed #f0e0ea;
}

/* ========== Specs ========== */
.specs-list dt {
    width: 150px;
    float: left;
    clear: left;
    font-weight: 600;
}

.specs-list dd {
    margin-left: 160px;
    margin-bottom: .5rem;
}

/* ========== Text Styles ========== */
.small-note {
    font-size: .9rem;
    color: #555;
}

.pinkText {
    color: #d63384;
}

.cityText {
    font-size: 12px;
    font-style: italic;
    color: #666;
}

/* ========== Product Gallery ========== */
.product-gallery-card {
    border: 1px solid #f0e0ea;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(232,62,140,.06);
}

.carousel-inner {
    border-radius: 16px 16px 0 0;
    background: #fdf2f8;
    height: 460px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    opacity: 0;
    transition: all .25s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.product-gallery-card:hover .carousel-control-prev,
.product-gallery-card:hover .carousel-control-next {
    opacity: 1;
}
.carousel-control-prev { left: 12px; }
.carousel-control-next { right: 12px; }
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 16px;
    height: 16px;
    filter: invert(1) grayscale(100) brightness(0);
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.product-img {
    max-height: 460px;
    object-fit: contain;
    cursor: pointer;
    padding: 16px;
    transition: transform 0.3s ease;
}

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

.img-fluid {
    max-width: 90%;
    height: 90%;
}

/* ========== Thumbnails ========== */
#thumbRow {
    background: #fff;
    border-top: 1px solid #f0e0ea;
    padding: 10px 12px;
    gap: 8px;
}

.thumb-item {
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.65;
    padding: 0px;
    cursor: pointer;
    border-radius: 10px;
    flex: 0 0 auto;
}

.thumb-item:hover {
    border-color: #f5c6d8;
    opacity: 1;
}

.active-thumb {
    border: 2px solid #e83e8c !important;
    box-shadow: 0 0 8px rgba(232,62,140,.2);
    opacity: 1 !important;
    padding: 0px;
}

.img-thumbnail {
    height: 90px !important;
    width: 90px !important;
    object-fit: cover;
    border-radius: 10px !important;
}

.thumb-skeleton {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    background: linear-gradient(90deg, #ffd6e0 25%, #ffe6ee 50%, #ffd6e0 75%);
    background-size: 200% 100%;
    animation: shimmerPink 1.5s infinite;
    box-shadow: 0 0 5px 2px #fcd0df;
    position: absolute;
    top: 0;
    left: 0;
}

/* ========== Zoom ========== */
.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.zoom-img {
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.zoom-container:hover .zoom-img {
    transform: scale(1.8);
    cursor: zoom-out;
}

/* ========== Section Cards ========== */
.product-section-card {
    background: #fff;
    border: 1px solid #f0e0ea;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(232,62,140,.04);
}

.product-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #d63384;
    position: relative;
    padding-left: 14px;
    margin-bottom: 16px;
}
.product-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: linear-gradient(135deg, #e83e8c, #d63384);
    border-radius: 2px;
}

/* Legacy card > h5.pinkText heading (for related products etc) */
.card > h5.pinkText {
    font-size: 17px;
    font-weight: 700;
    position: relative;
    padding-left: 14px;
}
.card > h5.pinkText::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: linear-gradient(135deg, #e83e8c, #d63384);
    border-radius: 2px;
}

/* ========== Description ========== */
.smallDesc {
    overflow: auto;
}

.smallDesc table {
    width: auto !important;
}

.smallDesc div {
    background: transparent !important;
}

.smallDesc iframe {
    display: block;
    width: 100%;
    max-height: 250px;
    margin: 15px auto;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(232,62,140,.1);
}

.smallDesc hr {
    border-style: dashed;
}

.product-details iframe {
    box-shadow: 0 2px 8px rgba(232,62,140,.1);
    border-radius: 10px;
    width: 315px;
    height: 557px;
}

.instagram-media {
    width: 346px !important;
    height: 638px !important;
    margin: auto !important;
    margin-bottom: 10px !important;
}

/* ========== Content Disclaimer ========== */
.content-disclaimer {
    padding: 14px 16px;
    border-left: 4px solid #f39c12;
    background: #fffbea;
    border-radius: 0 8px 8px 0;
    font-size: 11px;
    line-height: 1.6;
    color: #555;
    margin-top: 16px;
}
.content-disclaimer strong {
    color: #c27c0e;
}

/* ========== Customer Images ========== */
.customer-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #f0e0ea transparent;
}

.customer-images-grid::-webkit-scrollbar {
    width: 6px;
}

.customer-images-grid::-webkit-scrollbar-thumb {
    background: #f0e0ea;
    border-radius: 4px;
}

.customer-images-grid::-webkit-scrollbar-track {
    background: transparent;
}

.customer-img-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0e0ea;
    background: #fdf2f8;
    transition: all .25s ease;
}

.customer-img-wrapper:hover {
    border-color: #f5c6d8;
    box-shadow: 0 4px 14px rgba(232,62,140,.15);
}

.customer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.customer-modal-img {
    width: 90%;
    height: 90% !important;
    object-fit: contain;
}

/* ========== Reviews ========== */
.review-card {
    padding: 16px;
    border: 1px solid #f0e0ea;
    border-radius: 12px;
    background: #fdf2f8;
    margin-bottom: 12px;
    transition: all .2s;
}
.review-card:hover {
    border-color: #f5c6d8;
    box-shadow: 0 2px 10px rgba(232,62,140,.08);
}
.review-card .reviewer-name {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}
.review-card .review-date {
    font-size: 12px;
    color: #999;
}
.review-card .review-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-top: 8px;
}

.submit-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #e83e8c, #d63384);
    border: none;
    box-shadow: 0 3px 10px rgba(232,62,140,.2);
    transition: all .25s;
    cursor: pointer;
}
.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(232,62,140,.3);
}

/* ========== Brand Info ========== */
.brand-info {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.brand-info-container {
    padding: 16px 0 0;
}

/* ========== Discount Badge ========== */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #e83e8c, #d63384);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

/* ========== Misc ========== */
.ms-auto {
    margin-bottom: 5px;
    position: relative;
    height: 36px;
}

#imagePopupModal .btn-close {
    position: absolute;
    top: 5px;
    right: 5px;
}

/* ========== YouTube Section ========== */
.yt-section-card {
    border: 1px solid #f0e0ea;
    border-radius: 16px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(232,62,140,.04);
}

/* ========== Mobile Styles ========== */
@media screen and (max-width: 600px) {
    .carousel-inner {
        height: 320px;
    }

    .product-img {
        max-height: 320px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-price {
        font-size: 26px;
    }

    .brand-info {
        max-height: 600px;
    }

    .brand-info-container {
        position: relative;
        padding: 0px;
    }

    .brand-info-container::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100px;
        background: linear-gradient(to bottom, transparent, #ffffff);
        pointer-events: none;
        transition: opacity 0.3s ease;
        opacity: 1;
    }

    .brand-info-container.expanded::after {
        opacity: 0;
    }

    .read-more-btn {
        display: inline-block;
        margin-top: 10px;
    }

    .product-action-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .img-thumbnail {
        height: 70px !important;
        width: 70px !important;
    }

    .customer-img-wrapper {
        height: 150px;
    }

    .product-section-card {
        padding: 16px;
        border-radius: 12px;
    }

    .product-price-section {
        padding: 12px 16px;
    }

    .product-gallery-card {
        border-radius: 12px;
    }

    .carousel-inner {
        border-radius: 12px 12px 0 0;
    }

    .product-action-bar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .product-action-btn.btn-wa {
        flex: 1 1 100%;
    }
    .product-action-btn.btn-directions,
    .product-action-btn.btn-share {
        flex: 1 1 45%;
    }
}

@media (max-width: 767px) {
    #popupImage {
        height: auto !important;
    }
}
