/* =============================================
   Product Detail Page — Modern Styling
   ============================================= */

/* ---- Page BG ---- */
.pd-section {
    background-color: #f8fafc;
    position: relative;
}

/* ---- Gallery Swiper ---- */
.pd-main-swiper {
    border-radius: 1rem;
    border: 1.5px solid #e2e8f0;
    transition: box-shadow 0.35s ease;
}

.pd-main-swiper:hover {
    box-shadow: 0 12px 35px rgba(22, 163, 74, 0.10) !important;
}

/* Nav arrows – smaller, styled as white pills */
.pd-main-swiper .swiper-button-prev,
.pd-main-swiper .swiper-button-next {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    color: #16a34a;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.pd-main-swiper .swiper-button-prev:hover,
.pd-main-swiper .swiper-button-next:hover {
    background: #16a34a;
    color: white;
}

.pd-main-swiper .swiper-button-prev::after,
.pd-main-swiper .swiper-button-next::after {
    font-size: 0.85rem;
    font-weight: 900;
}

/* Thumbnail swiper */
.pd-thumb-swiper {
    margin-top: 0.75rem;
}

.pd-thumb-slide {
    border-radius: 0.5rem !important;
    border: 1.5px solid #e2e8f0 !important;
    transition: all 0.25s ease;
    opacity: 0.55;
}

.pd-thumb-slide:hover {
    opacity: 0.85;
    border-color: #86efac !important;
}

.pd-thumb-swiper .swiper-slide-thumb-active .pd-thumb-slide {
    opacity: 1;
    border-color: #16a34a !important;
    border-width: 2px !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.18);
}

/* ---- Breadcrumb ---- */
.pd-breadcrumb-link {
    color: #16a34a;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pd-breadcrumb-link:hover {
    color: #0f8040;
}

/* ---- Gallery ---- */
.pd-main-img {
    border: 1.5px solid #e2e8f0;
    transition: box-shadow 0.35s ease;
}

.pd-main-img:hover {
    box-shadow: 0 12px 35px rgba(22, 163, 74, 0.12) !important;
}

.pd-thumb {
    transition: all 0.25s ease;
}

.pd-thumb:hover {
    opacity: 1 !important;
    border-color: #16a34a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

/* ---- Product Title & Price ---- */
.pd-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.pd-price-main {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #16a34a;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -1px;
}

/* ---- Description section ---- */
.pd-description {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
}

.pd-desc-text p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.pd-price-table {
    background: #f8fafc;
}

.bg-success.bg-opacity-05 {
    background-color: rgba(22, 163, 74, 0.05) !important;
}

/* ---- Meta chips ---- */
.pd-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pd-meta-chip:hover {
    border-color: #16a34a;
    background: #f0fdf4;
}

/* ---- CTA Button ---- */
.pd-btn-cta {
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #16a34a 0%, #0f8040 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.35);
}

.pd-btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.45) !important;
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
}

.pd-btn-cta:active {
    transform: translateY(0);
}

/* ---- Seller Card ---- */
.pd-seller-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border-color: #d1fae5 !important;
    transition: all 0.35s ease;
}

.pd-seller-card:hover {
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.08);
    border-color: #86efac !important;
}

.pd-seller-avatar {
    background: linear-gradient(135deg, #16a34a 0%, #0f8040 100%) !important;
}

/* Reuse product card styles from umkm-products.css */
.umkm-product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.umkm-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07) !important;
}

.fs-7 {
    font-size: 0.85rem;
}

.price-badge {
    background: rgba(22, 163, 74, 0.92) !important;
    backdrop-filter: blur(4px);
    font-size: 0.78rem;
}

.description-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.umkm-product-card:hover .product-title {
    color: #16a34a;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .pd-section {
        padding-top: 1.5rem !important;
    }

    .pd-gallery-wrap {
        position: static !important;
    }

    .pd-seller-card {
        flex-direction: column;
        text-align: center;
    }

    .pd-seller-card .btn {
        width: 100%;
    }

    .pd-seller-avatar {
        margin: 0 auto;
    }
}
