/* ===============================================================
   ReUse Market — Product Details Redesign
   Warm & Crafted · Fraunces + DM Sans · Earthy palette
   Uses tokens from redesign-home.css
   =============================================================== */

/* ── Page wrapper ── */
.rd-product-page {
    font-family: var(--rd-font-body);
    color: var(--rd-text);
    background: var(--rd-bg);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px;
}

/* ── Breadcrumb ── */
.rd-pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0 16px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rd-text-muted);
    flex-wrap: wrap;
}

.rd-pd-breadcrumb a {
    color: var(--rd-text-muted);
    text-decoration: none;
    transition: color var(--rd-transition);
}

.rd-pd-breadcrumb a:hover {
    color: var(--rd-forest);
}

.rd-pd-breadcrumb__sep {
    color: var(--rd-text-muted);
    opacity: 0.5;
    font-size: 10px;
}

.rd-pd-breadcrumb__current {
    color: var(--rd-text);
    font-weight: 600;
}

/* ================================================================
   HERO SECTION — product gallery + info
   ================================================================ */
.rd-pd-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 56px);
    padding-bottom: clamp(32px, 4vw, 56px);
}

/* ── Gallery ── */
.rd-pd-gallery {
    position: relative;
}

.rd-pd-gallery__main {
    position: relative;
    background: var(--rd-cream);
    border-radius: var(--rd-radius-xl);
    overflow: hidden;
    aspect-ratio: 1;
}

.rd-pd-gallery__main .swiper-container {
    border-radius: var(--rd-radius-xl);
    overflow: hidden;
    height: 100%;
}

.rd-pd-gallery__main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-pd-gallery__main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-pd-gallery__main .easyzoom {
    width: 100%;
    height: 100%;
}

.rd-pd-gallery__main .easyzoom a {
    display: block;
    width: 100%;
    height: 100%;
}

.rd-pd-gallery__main .easyzoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-pd-gallery__wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rd-warm-white);
    border: 1.5px solid var(--rd-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rd-text-secondary);
    cursor: pointer;
    transition: all var(--rd-transition);
    box-shadow: var(--rd-shadow-sm);
}

.rd-pd-gallery__wishlist:hover,
.rd-pd-gallery__wishlist.wishlist_icon_active {
    background: var(--rd-forest);
    color: #fff;
    border-color: var(--rd-forest);
}

.rd-pd-gallery__discount {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    background: var(--rd-forest);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--rd-radius-pill);
    letter-spacing: 0.02em;
}

.rd-pd-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.rd-pd-gallery__thumbs .swiper-container {
    width: 100%;
}

.rd-pd-gallery__thumbs .swiper-wrapper {
    display: flex;
    gap: 10px;
}

.rd-pd-gallery__thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--rd-radius);
    overflow: hidden;
    background: var(--rd-cream);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--rd-transition);
    flex-shrink: 0;
}

.rd-pd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-pd-gallery__thumb.swiper-slide-thumb-active,
.rd-pd-gallery__thumb:hover {
    border-color: var(--rd-forest);
}

/* ── Info panel ── */
.rd-pd-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
}

/* Badges */
.rd-pd-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.rd-pd-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: var(--rd-radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rd-pd-badge--solid {
    background: var(--rd-forest);
    color: #fff;
}

.rd-pd-badge--outline {
    background: transparent;
    color: var(--rd-forest);
    border: 1.5px solid var(--rd-forest);
}

/* Title */
.rd-pd-title {
    font-family: var(--rd-font-display);
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 600;
    font-style: italic;
    color: var(--rd-forest-dark);
    line-height: 1.15;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.rd-pd-subtitle {
    font-size: 14px;
    color: var(--rd-text-secondary);
    margin-bottom: 16px;
    font-weight: 400;
}

.rd-pd-subtitle span {
    margin: 0 4px;
    opacity: 0.5;
}

/* Price */
.rd-pd-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rd-pd-price__current {
    font-family: var(--rd-font-display);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    color: var(--rd-text);
    line-height: 1;
}

.rd-pd-price__old {
    font-size: 16px;
    color: var(--rd-text-muted);
    text-decoration: line-through;
}

.rd-pd-price__save {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--rd-radius-pill);
    background: var(--rd-forest-light);
    color: var(--rd-forest);
    font-size: 12px;
    font-weight: 700;
}

/* ── Sustainability Dashboard ── */
.rd-pd-sustainability {
    background: var(--rd-forest-dark);
    border-radius: var(--rd-radius-lg);
    padding: clamp(18px, 2.5vw, 28px);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.rd-pd-sustainability::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -20px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(216, 243, 220, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rd-pd-sustainability__title {
    font-family: var(--rd-font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--rd-forest-light);
    margin-bottom: 16px;
    font-style: italic;
}

.rd-pd-sustainability__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.rd-pd-sustainability__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rd-pd-sustainability__label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(216, 243, 220, 0.6);
}

.rd-pd-sustainability__value {
    font-family: var(--rd-font-display);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.rd-pd-sustainability__value i {
    font-size: 14px;
    opacity: 0.7;
}

.rd-pd-sustainability__footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(216, 243, 220, 0.5);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ── Variant selectors ── */
.rd-pd-variants {
    margin-bottom: 20px;
}

.rd-pd-variant-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.rd-pd-variant-group__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rd-text-secondary);
    min-width: 50px;
}

.rd-pd-variant-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Quantity */
.rd-pd-qty {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.rd-pd-qty__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rd-text-secondary);
    min-width: 50px;
}

.rd-pd-qty__control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--rd-border);
    border-radius: var(--rd-radius);
    overflow: hidden;
    height: 42px;
}

.rd-pd-qty__btn {
    width: 38px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rd-cream);
    border: none;
    cursor: pointer;
    color: var(--rd-text);
    font-size: 16px;
    transition: background var(--rd-transition);
}

.rd-pd-qty__btn:hover {
    background: var(--rd-cream-dark);
}

.rd-pd-qty__input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--rd-text);
    background: transparent;
    outline: none;
}

/* Total price */
.rd-pd-total {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--rd-cream);
    border-radius: var(--rd-radius);
    margin-bottom: 20px;
}

.rd-pd-total__label {
    font-size: 13px;
    color: var(--rd-text-secondary);
}

.rd-pd-total__price {
    font-family: var(--rd-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--rd-forest);
}

/* ── Action buttons ── */
.rd-pd-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.rd-pd-actions__row {
    display: flex;
    gap: 10px;
}

.rd-pd-btn-cart {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    background: var(--rd-forest);
    color: #fff;
    border: 2px solid var(--rd-forest);
    border-radius: var(--rd-radius);
    font-family: var(--rd-font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--rd-transition);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.rd-pd-btn-cart:hover {
    background: var(--rd-forest-dark);
    border-color: var(--rd-forest-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.25);
}

.rd-pd-btn-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rd-pd-btn-share {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--rd-border);
    border-radius: var(--rd-radius);
    background: var(--rd-warm-white);
    color: var(--rd-text-secondary);
    cursor: pointer;
    transition: all var(--rd-transition);
    flex-shrink: 0;
}

.rd-pd-btn-share:hover {
    border-color: var(--rd-forest);
    color: var(--rd-forest);
}

/* Buy Now — outlined forest, with fill on hover */
.rd-pd-btn-buy {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    background: transparent;
    color: var(--rd-forest-dark);
    border: 2px solid var(--rd-forest);
    border-radius: var(--rd-radius);
    font-family: var(--rd-font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--rd-transition);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.rd-pd-btn-buy:hover {
    background: var(--rd-forest);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.18);
}

.rd-pd-btn-buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* rd-pd-btn-tradein kept for backward compat */
.rd-pd-btn-tradein {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: transparent;
    color: var(--rd-text);
    border: 1.5px solid var(--rd-border);
    border-radius: var(--rd-radius);
    font-family: var(--rd-font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--rd-transition);
    text-decoration: none;
}

.rd-pd-btn-tradein:hover {
    border-color: var(--rd-forest);
    color: var(--rd-forest);
    text-decoration: none;
}

/* ── Trust Badges ── */
.rd-pd-trust {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px;
    background: var(--rd-cream);
    border-radius: var(--rd-radius-lg);
    border: 1px solid var(--rd-border);
}

.rd-pd-trust__item {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 12px 6px;
    border-radius: var(--rd-radius);
    text-align: center;
    background: var(--rd-warm-white);
    border: 1px solid var(--rd-border);
    transition: border-color var(--rd-transition), box-shadow var(--rd-transition);
}

.rd-pd-trust__item:hover {
    border-color: var(--rd-sage);
    box-shadow: var(--rd-shadow-sm);
}

.rd-pd-trust__icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rd-forest-50);
    color: var(--rd-forest);
    font-size: 17px;
    border: 1.5px solid var(--rd-forest-light);
}

.rd-pd-trust__label {
    font-family: var(--rd-font-body);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rd-text-secondary);
    line-height: 1.3;
}

/* ================================================================
   CIRCULAR STORY SECTION
   ================================================================ */
.rd-pd-story-section {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: clamp(24px, 4vw, 56px);
    padding: clamp(32px, 4vw, 56px) 0;
    border-top: 1px solid var(--rd-border);
}

.rd-pd-story__title {
    font-family: var(--rd-font-display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    font-style: italic;
    color: var(--rd-text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.rd-pd-story__text {
    font-size: 15px;
    color: var(--rd-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Technical Specifications */
.rd-pd-specs {
    margin-top: 32px;
}

.rd-pd-specs__title {
    font-family: var(--rd-font-display);
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 600;
    font-style: italic;
    color: var(--rd-text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.rd-pd-specs__table {
    display: block;
}

.rd-pd-specs__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--rd-border);
}

.rd-pd-specs__label {
    font-size: 13px;
    color: var(--rd-text-muted);
    font-weight: 500;
}

.rd-pd-specs__value {
    font-size: 13px;
    font-weight: 700;
    color: var(--rd-text);
    text-align: right;
}

.rd-pd-specs__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--rd-radius-pill);
    background: var(--rd-forest-light);
    color: var(--rd-forest);
    font-size: 12px;
    font-weight: 700;
}

/* ── Sidebar: Eco-System + Delivery ── */
.rd-pd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rd-pd-ecosystem {
    border: 1.5px solid var(--rd-border);
    border-radius: var(--rd-radius-xl);
    overflow: hidden;
    background: var(--rd-warm-white);
}

.rd-pd-ecosystem__title {
    font-family: var(--rd-font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--rd-text);
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--rd-border);
    letter-spacing: -0.01em;
}

.rd-pd-ecosystem__item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--rd-border);
    text-decoration: none;
    transition: background var(--rd-transition), transform var(--rd-transition);
}

.rd-pd-ecosystem__item:last-child {
    border-bottom: none;
}

.rd-pd-ecosystem__item:hover {
    background: var(--rd-forest-50);
    text-decoration: none;
    transform: translateX(3px);
}

.rd-pd-ecosystem__img {
    width: 52px;
    height: 52px;
    border-radius: var(--rd-radius);
    overflow: hidden;
    background: var(--rd-cream);
    flex-shrink: 0;
    border: 1px solid var(--rd-border);
}

.rd-pd-ecosystem__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.rd-pd-ecosystem__name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rd-text);
    margin-bottom: 3px;
    line-height: 1.3;
}

.rd-pd-ecosystem__price {
    font-family: var(--rd-font-display);
    font-size: 14px;
    color: var(--rd-forest);
    font-weight: 700;
}

/* Delivery card — green accent */
.rd-pd-delivery {
    border: 1.5px solid var(--rd-border);
    border-radius: var(--rd-radius-xl);
    overflow: hidden;
    background: var(--rd-warm-white);
}

.rd-pd-delivery__icon {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--rd-forest-dark), var(--rd-forest), var(--rd-sage));
    margin-bottom: 0;
}

.rd-pd-delivery__body {
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.rd-pd-delivery__icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rd-forest-50);
    color: var(--rd-forest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1.5px solid var(--rd-forest-light);
}

.rd-pd-delivery__title {
    font-family: var(--rd-font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--rd-text);
    margin-bottom: 5px;
}

.rd-pd-delivery__text {
    font-size: 12.5px;
    color: var(--rd-text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ================================================================
   PRODUCT DETAILS & REVIEWS TABS
   ================================================================ */
.rd-pd-tabs-section {
    padding: clamp(24px, 3vw, 40px) 0;
    border-top: 1px solid var(--rd-border);
}

.rd-pd-tabs__nav {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.rd-pd-tabs__tab {
    padding: 10px 24px;
    border-radius: var(--rd-radius-pill);
    font-family: var(--rd-font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--rd-border);
    background: transparent;
    color: var(--rd-text-secondary);
    transition: all var(--rd-transition);
}

.rd-pd-tabs__tab:hover {
    border-color: var(--rd-forest);
    color: var(--rd-forest);
}

.rd-pd-tabs__tab.active {
    background: var(--rd-forest);
    border-color: var(--rd-forest);
    color: #fff;
}

/* Details content */
.rd-pd-details-content {
    font-size: 15px;
    color: var(--rd-text-secondary);
    line-height: 1.7;
}

.rd-pd-details-content img {
    max-width: 100%;
    border-radius: var(--rd-radius);
}

/* Reviews */
.rd-pd-reviews-summary {
    text-align: center;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--rd-cream);
    border-radius: var(--rd-radius-lg);
}

.rd-pd-reviews-summary__score {
    font-family: var(--rd-font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--rd-text);
    line-height: 1;
}

.rd-pd-reviews-summary__max {
    font-size: 18px;
    font-weight: 400;
    color: var(--rd-text-muted);
}

.rd-pd-review-card {
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    transition: border-color var(--rd-transition);
}

.rd-pd-review-card:hover {
    border-color: var(--rd-forest);
}

.rd-pd-review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rd-pd-review-card__user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rd-pd-review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.rd-pd-review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-pd-review-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--rd-text);
}

.rd-pd-review-card__date {
    font-size: 12px;
    color: var(--rd-text-muted);
}

.rd-pd-review-card__text {
    font-size: 14px;
    color: var(--rd-text-secondary);
    line-height: 1.6;
}

.rd-pd-review-card__images {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.rd-pd-review-card__images img {
    width: 60px;
    height: 60px;
    border-radius: var(--rd-radius);
    object-fit: cover;
}

/* ================================================================
   SIMILAR PRODUCTS SECTION
   ================================================================ */
.rd-pd-similar {
    padding: clamp(32px, 4vw, 56px) 0;
    border-top: 1px solid var(--rd-border);
}

.rd-pd-similar__title {
    font-family: var(--rd-font-display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    font-style: italic;
    color: var(--rd-text);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.rd-pd-similar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.rd-pd-similar-card {
    background: var(--rd-warm-white);
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-lg);
    overflow: hidden;
    transition: transform var(--rd-transition), box-shadow var(--rd-transition);
    text-decoration: none;
    display: block;
    position: relative;
}

.rd-pd-similar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rd-shadow-lg);
    text-decoration: none;
}

.rd-pd-similar-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: var(--rd-radius-pill);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rd-pd-similar-card__badge--save {
    background: var(--rd-forest);
    color: #fff;
}

.rd-pd-similar-card__badge--certified {
    background: var(--rd-forest-light);
    color: var(--rd-forest);
}

.rd-pd-similar-card__img {
    aspect-ratio: 1;
    background: var(--rd-cream);
    overflow: hidden;
}

.rd-pd-similar-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rd-transition);
}

.rd-pd-similar-card:hover .rd-pd-similar-card__img img {
    transform: scale(1.04);
}

.rd-pd-similar-card__body {
    padding: 14px;
}

.rd-pd-similar-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--rd-text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.rd-pd-similar-card__price {
    font-family: var(--rd-font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--rd-forest-dark);
}

/* ── Shop Seller Card ── */
.rd-pd-seller {
    border: 1.5px solid var(--rd-border);
    border-radius: var(--rd-radius-xl);
    overflow: hidden;
    background: var(--rd-warm-white);
    margin-bottom: 0;
}

/* Cover image banner */
.rd-pd-seller__cover {
    position: relative;
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, var(--rd-forest-dark) 0%, var(--rd-forest) 100%);
    overflow: hidden;
}

.rd-pd-seller__cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* Floating logo over cover */
.rd-pd-seller__logo-wrap {
    position: absolute;
    bottom: -24px;
    left: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--rd-warm-white);
    background: var(--rd-warm-white);
    overflow: hidden;
    box-shadow: var(--rd-shadow);
}

.rd-pd-seller__logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Body below cover */
.rd-pd-seller__body {
    padding: 34px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rd-pd-seller__name {
    font-family: var(--rd-font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--rd-text);
    line-height: 1.2;
}

.rd-pd-seller__stats {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--rd-text-secondary);
    margin-bottom: 8px;
}

.rd-pd-seller__btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--rd-radius);
    background: var(--rd-forest);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: all var(--rd-transition);
}

.rd-pd-seller__btn:hover {
    background: var(--rd-forest-dark);
    color: #fff;
    text-decoration: none;
}

/* ── Alerts ── */
.rd-pd-alert {
    padding: 12px 16px;
    border-radius: var(--rd-radius);
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 13px;
    margin-top: 12px;
}

/* ── Share Dropdown ── */
.rd-pd-share-dropdown {
    position: relative;
    display: inline-block;
}

.rd-pd-share-dropdown__menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--rd-warm-white);
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius);
    padding: 8px;
    box-shadow: var(--rd-shadow);
    z-index: 10;
    min-width: 44px;
}

.rd-pd-share-dropdown:hover .rd-pd-share-dropdown__menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rd-pd-share-dropdown__menu a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--rd-text-secondary);
    transition: all var(--rd-transition);
    font-size: 14px;
}

.rd-pd-share-dropdown__menu a:hover {
    background: var(--rd-forest-50);
    color: var(--rd-forest);
}

/* ── Restock button ── */
.rd-pd-btn-restock {
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--rd-radius);
    background: transparent;
    color: var(--rd-forest);
    border: 1.5px solid var(--rd-forest);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--rd-transition);
}

.rd-pd-btn-restock:hover {
    background: var(--rd-forest-50);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    .rd-pd-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rd-pd-story-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rd-pd-similar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 575px) {
    .rd-pd-similar__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .rd-pd-sustainability__grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .rd-pd-trust {
        gap: 8px;
    }

    .rd-pd-trust__item {
        min-width: calc(50% - 8px);
    }

    .rd-pd-gallery__thumb {
        width: 60px;
        height: 60px;
    }

    .rd-pd-actions__row {
        flex-direction: column;
    }

    .rd-pd-btn-share {
        width: 100%;
        height: auto;
        padding: 12px;
    }
}

/* ── Rating Stars Shared ── */
.rd-stars {
    display: inline-flex;
    gap: 1px;
    color: #E6A817;
    font-size: 12px;
}

/* ── Product detail description ── */
.rd-pd-description {
    max-height: 400px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s var(--rd-ease);
}

.rd-pd-description.expanded {
    max-height: none;
}

.rd-pd-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--rd-bg));
    pointer-events: none;
    transition: opacity 0.3s;
}

.rd-pd-description.expanded::after {
    opacity: 0;
}

/* ── See More Button ── */
.rd-pd-see-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--rd-radius-pill);
    border: 1.5px solid var(--rd-border);
    background: transparent;
    color: var(--rd-forest);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--rd-transition);
    margin-top: 12px;
}

.rd-pd-see-more:hover {
    border-color: var(--rd-forest);
    background: var(--rd-forest-50);
}

/* ── Rating Progress Bars ── */
.rd-pd-rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.rd-pd-rating-bar__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--rd-text-secondary);
    min-width: 44px;
}

.rd-pd-rating-bar__track {
    flex: 1;
    height: 6px;
    background: var(--rd-cream-dark);
    border-radius: 3px;
    overflow: hidden;
}

.rd-pd-rating-bar__fill {
    height: 100%;
    background: #E6A817;
    border-radius: 3px;
    transition: width 0.6s var(--rd-ease);
}

/* ── Preview modal link ── */
.rd-pd-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rd-forest);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.rd-pd-preview-link:hover {
    color: var(--rd-forest-dark);
}

/* ── Digital product authors ── */
.rd-pd-digital-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.rd-pd-digital-meta span {
    font-size: 13px;
    color: var(--rd-text-secondary);
}

.rd-pd-digital-meta a {
    color: var(--rd-forest);
    font-weight: 600;
    text-decoration: none;
}

.rd-pd-digital-meta a:hover {
    text-decoration: underline;
}

/* ── Review Reply ── */
.rd-pd-review-reply {
    background: var(--rd-cream);
    border-radius: var(--rd-radius);
    padding: 14px;
    margin-top: 12px;
    margin-left: 50px;
}

.rd-pd-review-reply__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.rd-pd-review-reply__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--rd-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rd-pd-review-reply__date {
    font-size: 11px;
    color: var(--rd-text-muted);
}

.rd-pd-review-reply__text {
    font-size: 13px;
    color: var(--rd-text-secondary);
    line-height: 1.5;
}

/* ================================================================
   STICKY BOTTOM BAR — Redesigned
   ================================================================ */
.rd-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: var(--rd-warm-white);
    border-top: 1px solid var(--rd-border);
    box-shadow: 0 -4px 24px rgba(44, 36, 22, 0.08);
    padding: 12px 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--rd-font-body);
}

.rd-sticky-bar.active {
    transform: translateY(0);
}

/* Expand/collapse button (mobile) */
.rd-sticky-bar__expand {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--rd-warm-white);
    border: 1px solid var(--rd-border);
    box-shadow: 0 -2px 8px rgba(44, 36, 22, 0.06);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--rd-text-secondary);
    font-size: 14px;
    transition: all var(--rd-transition);
}

.rd-sticky-bar__expand:hover {
    color: var(--rd-forest);
    border-color: var(--rd-forest);
}

.rd-sticky-bar__expand.rotate-180 i {
    transform: rotate(180deg);
}

/* Variants panel (expandable on hover/click) */
.rd-sticky-bar__variants {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--rd-border);
}

.rd-sticky-bar__variant-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rd-sticky-bar__variant-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rd-text-secondary);
    text-transform: capitalize;
}

/* Main content row */
.rd-sticky-bar__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Product info */
.rd-sticky-bar__product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 1;
}

.rd-sticky-bar__thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--rd-radius);
    object-fit: cover;
    border: 1px solid var(--rd-border);
    flex-shrink: 0;
}

.rd-sticky-bar__info {
    min-width: 0;
}

.rd-sticky-bar__name {
    font-family: var(--rd-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--rd-text);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.rd-sticky-bar__price {
    font-family: var(--rd-font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--rd-forest);
}

.rd-sticky-bar__price del {
    color: var(--rd-text-muted);
    font-size: 12px;
    font-weight: 400;
}

/* Actions area */
.rd-sticky-bar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Quantity control */
.rd-sticky-bar__qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--rd-border);
    border-radius: var(--rd-radius);
    overflow: hidden;
    height: 40px;
    background: var(--rd-warm-white);
}

.rd-sticky-bar__qty-btn {
    width: 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rd-cream);
    color: var(--rd-text-secondary);
    cursor: pointer;
    border: none;
    transition: all var(--rd-transition);
    font-size: 16px;
    flex-shrink: 0;
}

.rd-sticky-bar__qty-btn:hover {
    background: var(--rd-cream-dark);
    color: var(--rd-forest);
}

.rd-sticky-bar__qty-input {
    width: 48px;
    height: 100%;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--rd-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--rd-text);
    outline: none;
    -moz-appearance: textfield;
}

.rd-sticky-bar__qty-input::-webkit-inner-spin-button,
.rd-sticky-bar__qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Buttons */
.rd-sticky-bar__btns {
    display: flex;
    gap: 8px;
}

.rd-sticky-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--rd-radius);
    font-family: var(--rd-font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--rd-transition);
    white-space: nowrap;
    border: 1.5px solid transparent;
}

.rd-sticky-bar__btn--cart {
    background: var(--rd-forest);
    color: #fff;
    border-color: var(--rd-forest);
}

.rd-sticky-bar__btn--cart:hover {
    background: var(--rd-forest-dark);
    border-color: var(--rd-forest-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.25);
}

.rd-sticky-bar__btn--buy {
    background: transparent;
    color: var(--rd-forest-dark);
    border-color: var(--rd-forest);
}

.rd-sticky-bar__btn--buy:hover {
    background: var(--rd-forest);
    color: #fff;
    border-color: var(--rd-forest);
    transform: translateY(-1px);
}

.rd-sticky-bar__btn--restock {
    background: transparent;
    color: var(--rd-forest);
    border-color: var(--rd-forest);
}

.rd-sticky-bar__btn--restock:hover {
    background: var(--rd-forest-50);
}

/* Closed shop message */
.rd-sticky-bar__closed {
    font-size: 12px;
    font-weight: 600;
    color: #c0392b;
    background: #fdf0ed;
    border: 1px solid #f5c6cb;
    border-radius: var(--rd-radius);
    padding: 8px 14px;
    white-space: nowrap;
}

/* ── Sticky bar responsive ── */
@media (max-width: 767px) {
    .rd-sticky-bar__content {
        flex-direction: column;
        gap: 10px;
    }

    .rd-sticky-bar__product {
        width: 100%;
    }

    .rd-sticky-bar__name {
        max-width: 180px;
    }

    .rd-sticky-bar__actions {
        width: 100%;
        justify-content: space-between;
    }

    .rd-sticky-bar__btns {
        flex: 1;
    }

    .rd-sticky-bar__btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .rd-sticky-bar__thumb {
        display: none;
    }

    .rd-sticky-bar__btn {
        padding: 8px 10px;
        font-size: 12px;
        gap: 4px;
    }
}
