/* ── Product Card Page ── */

html {
    scroll-behavior: smooth;
}

.pc-page {
    width: 100%;
    padding: 40px 16px;
}

.pc-container {
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Product Details (pd-) ── */

/* Page wrapper */
.pd-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.pd-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

/* Breadcrumb */
.pd-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pd-breadcrumb__item {
    color: #88867D;
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
}

.pd-breadcrumb__item--active {
    font-weight: 500;
}

.pd-breadcrumb__sep {
    position: relative;
    display: inline-flex;
}

/* Gallery */
.pd-gallery {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.pd-gallery__main-wrap {
    flex-shrink: 0;
}

.pd-gallery__main {
    width: 588px;
    height: 588px;
    border-radius: 24px;
    object-fit: cover;
    display: block;
    background: #E0E0E0;
}

.pd-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-gallery__thumb {
    width: 78px;
    height: 78px;
    border-radius: 16px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;    
}

.pd-gallery__thumb--active,
.pd-gallery__thumb:hover {
    opacity: 1;
    outline: 2px solid var(--color-border);
    outline-offset: 2px;
}

/* Content column */
.pd-content {
    width: 688px;
    display: flex;
    flex-direction: column;
    gap: 72px;
}

/* Top layout */
.pd-top {
    display: flex;
    gap: 24px;
    /* align-items MUST be flex-start (not stretch) so the row
       height equals the taller child (content column). This is
       the required condition for position:sticky to engage:
       the sticky item must be shorter than its scroll container. */
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

/* Sections */
.pd-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}



.pd-section__heading {
    color: #21241D;
    font-size: 32px;
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 40px;
    margin: 0;
}

.pd-section__heading-row {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
}

/* Labels / badges */
.pd-labels {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}



.pd-label--green  { background: #BCC79D; color: #21241D; }
.pd-label--yellow { background: #E3EA40; color: #21241D; }
.pd-label--grey   { background: #B2ABA6; color: #21241D; }

/* Body text */
.pd-text {
    color: #21241D;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 24px;
    margin: 0;
    white-space: pre-line;
}

.pd-text--sm {
    font-size: 14px;
    line-height: 22px;
}

/* Feature list (checkmark items) */
.pd-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-feature-list__item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #21241D;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 24px;
}

/* Spec table */
.pd-spec-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-spec-block__label {
    color: #21241D;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 24px;
    margin: 0;
}

.pd-spec-table {
    display: flex;
    flex-direction: column;
}

.pd-spec-table__row {
    display: inline-flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #C5C5B3;
}

.pd-spec-table__row:first-child {
    padding-top: 20px;
    border-top: none;
}

.pd-spec-table__row:last-child {
    padding-bottom: 20px;
}

.pd-spec-table__name {
    flex: 1 1 0;
    color: #21241D;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 24px;
}

.pd-spec-table__row--bold .pd-spec-table__name {
    font-weight: 600;
}

.pd-spec-table__value {
    flex: 1 1 0;
    color: #21241D;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 24px;
}

.pd-spec-table__row--sub .pd-spec-table__name {
    font-weight: 400;
    padding-left: 0;
}

/* Allergens */
.pd-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-allergen-tag {
    background: #E5E4D4;
    color: #21241D;
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 400;
    padding: 2px 12px;
    border-radius: 6px;
}

/* Cert cards */
.pd-cert-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pd-cert-card {
    padding: 24px;
    background: white;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.pd-cert-card__icon {
    width: 64px;
    height: 64px;
    padding: 10px;
    background: #E5E4D4;
    border-radius: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.pd-cert-card__body {
    flex: 1 1 0;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
}

.pd-cert-info
{
    margin-left: auto;
    position: relative;
    cursor: pointer;
}

.pd-cert-info__tooltip {
    display: none;
    position: absolute;
    right: 0;    
    width: 300px;
    top: calc(100% + 6px);
    z-index: 100;
    background: var(--color-border-dark);
    color: white;
    font-size: 11px;
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
    padding: 4px 8px;
    border-radius: 8px;
        
}

.pd-cert-info:hover .pd-cert-info__tooltip {
    display: block;
}

.pd-cert-card__header {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
}

.pd-cert-card__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-cert-card__title {
    color: #21241D;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 24px;
}

.pd-cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 20px;
    color: #21241D;
}

.pd-cert-badge__stars {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
}

.pd-cert-card__tags {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #88867D;
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 20px;
}

/* Icon buttons */
.pd-icon-btn {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    border-radius: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
}

/* Text button */
.pd-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 4px 20px;
    border-radius: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #21241D;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 22px;
}

/* Outline button */
.pd-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 4px 24px;
    border-radius: 16px;
    border: 1px solid #3E4A29;
    background: none;
    cursor: pointer;
    color: #21241D;
    font-size: 16px;
    font-family: var(--font-sans);
    font-weight: 500;
    line-height: 24px;
}

/* Producer */
.pd-producer {
    display: inline-flex;
    align-items: flex-start;
    gap: 24px;
}

.pd-producer__avatar {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    object-fit: cover;
    flex-shrink: 0;
    background: #E0E0E0;
}

.pd-producer__info {
    flex: 1 1 0;
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
}

.pd-producer__name {
    color: #21241D;
    font-size: 24px;
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 32px;
    margin: 0;
}

.pd-producer__location {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
}

.pd-producer__location-link {
    color: #3E4A29;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 400;
    text-decoration: underline;
    line-height: 22px;
}

.pd-producer__distance {
    color: #21241D;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 22px;
}

/* Stars */
.pd-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.pd-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pd-rating-summary__score {
    color: #21241D;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 22px;
}

.pd-rating-summary__count {
    color: #3E4A29;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 22px;
}

/* Reviews */
.pd-reviews {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pd-review {
    padding: 32px;
    background: #E5E4D4;
    border-radius: 32px;
    display: inline-flex;
    align-items: flex-start;
    gap: 24px;
}

.pd-review__body {
    flex: 1 1 0;
    display: inline-flex;
    flex-direction: column;
    gap: 16px;
}

.pd-review__author {
    color: #21241D;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 24px;
}

.pd-review__text {
    color: #21241D;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 22px;
    margin: 0;
}

.pd-review__footer {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
}

.pd-review__date {
    color: #88867D;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 22px;
}

/* Related products */
.pd-related-products {
    overflow: hidden;
    display: inline-flex;
    align-items: flex-start;
    gap: 24px;
}

.pd-product-card {
    width: 282px;
    padding: 16px;
    border-radius: 16px;
    outline: 1px solid #C5C5B3;
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.pd-product-card__img-wrap {
    height: 250px;
    position: relative;
    background: #E0E0E0;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pd-product-card__img {
    width: 250px;
    height: 250px;
    object-fit: cover;
}

.pd-product-card__badge {
    position: absolute;
    left: 8px;
    top: 8px;
}

.pd-product-card__wishlist {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 32px;
    height: 32px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.60);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.pd-product-card__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-product-card__meta {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
}

.pd-product-card__producer {
    color: #21241D;
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 20px;
}

.pd-product-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #88867D;
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 20px;
}

.pd-product-card__name {
    color: #21241D;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 24px;
}

.pd-product-card__price {
    color: #21241D;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 24px;
}

.pd-product-card__unit {
    color: #88867D;
    font-weight: 400;
}


@media (min-width: 1024px) {
    .pc-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 64px;
    }
}

/* Gallery */
.pc-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 auto;
}

@media (min-width: 1024px) {
    .pc-gallery {
        width: 480px;
    }
}

.pc-gallery__main {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius-card);
}

@media (min-width: 1024px) {
    .pc-gallery__main {
        height: 480px;
    }
}

.pc-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.pc-gallery__thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-card-sm);
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.pc-gallery__thumb:hover {
    opacity: 1;
}

.pc-gallery__placeholder {
    width: 100%;
    height: 360px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .pc-gallery__placeholder {
        height: 480px;
    }
}

/* Info */
.pc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pc-category {
    display: inline-block;
    background: var(--color-bg-subtle);
    color: var(--color-text-subtle);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--radius-btn-sm);
}

.pc-name {
    color: var(--color-text-dark);
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

@media (min-width: 745px) {
    .pc-name {
        font-size: 40px;
    }
}

.pc-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pc-price__value {
    color: var(--color-text-dark);
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
}

.pc-price__unit {
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 16px;
}

/* Sections */
.pc-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pc-section__title {
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.pc-section__text {
    color: var(--color-text-subtle);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Features */
.pc-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pc-features__item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    padding: 6px 14px;
    border-radius: var(--radius-btn-sm);
}

/* Nutritional elements */
.pc-elements {
    background: var(--color-white);
    border-radius: var(--radius-card-sm);
    overflow: hidden;
}

.pc-elements__row {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border-light);
}

.pc-elements__row:last-child {
    border-bottom: none;
}

.pc-elements__row--sub {
    padding-left: 32px;
    background: var(--color-bg-subtle);
}

.pc-elements__name {
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    font-size: 14px;
}

.pc-elements__value {
    color: var(--color-text-subtle);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
}

/* Allergens */
.pc-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pc-allergens__tag {
    background: var(--color-error-bg-light);
    color: var(--color-error-dark);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--radius-btn-sm);
}

/* ── Purchase sidebar (pd-purchase) ── */

.pd-purchase {
    width: 380px;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    position: sticky;
    top: 72px;
    align-self: flex-start;
}

.pd-purchase__main {
    background: #E5E4D4;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative; 
}

    /* Circles */
    .pd-purchase__main::before,
    .pd-purchase__main::after {
        content: "";
        position: absolute;
        width: 32px;
        height: 32px;
        background: var(--color-bg);
        border-radius: 50%;
        bottom: -16px;
        z-index: 10;
    }

    /* Left circle */
    .pd-purchase__main::before {
        left: 0;
        transform: translateX(-50%); 
    }

    /* Right circle */
    .pd-purchase__main::after {
        right: 0;
        transform: translateX(50%);
    }

.pd-purchase__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pd-purchase__title-group {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-purchase__producer-link {
    color: #21241D;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: underline;
}

.pd-purchase__name {
    color: #21241D;
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 400;
    line-height: 48px;
    margin: 0;
}

.pd-purchase__price {
    margin: 0;
}

.pd-purchase__price-value {
    color: #21241D;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
}

.pd-purchase__price-unit {
    color: #88867D;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
}

.pd-purchase__wishlist {
    width: 32px;
    height: 32px;
    background: rgba(250, 250, 249, 0.40);
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.pd-purchase__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 800px)
{
    .pd-purchase__add-to-cart:disabled > .pd-purchase__add-to-cart-text{
        display: none;
    }
}

.pd-purchase__rating-text {
    color: #21241D;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.pd-purchase__add-to-cart {
    width: 100%;
    height: 48px;
    padding: 4px 24px;
    background: #3E4A29;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 380px)
{
    .pd-purchase__add-to-cart {
        font-size: 12px;
    }
}

.pd-purchase__add-to-cart:hover {
    background: #4f5e34;
}

.pd-purchase__add-to-cart:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.pd-purchase__add-to-cart--quantity {
    padding: 0;
    border: 0;
    border-radius: var(--radius-btn-sm);
    background: var(--color-white);
    color: var(--color-text-dark);
    overflow: hidden;
}

.pd-purchase__add-to-cart--quantity:hover {
    background: var(--color-white);
}

.pd-purchase__quantity-action,
.pd-purchase__quantity-value {
    display: flex;
    height: 100%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    align-items: center;
    justify-content: center;
}

.pd-purchase__quantity-action {
    width: 49px;
    padding: 0 16px;
    flex: 0 0 49px;
    cursor: pointer;
}

.pd-purchase__quantity-action:first-child {
    border-right: 0;
    border-radius: var(--radius-btn-sm) 0 0 var(--radius-btn-sm);
}

.pd-purchase__quantity-action:last-child {
    border-left: 0;
    border-radius: 0 var(--radius-btn-sm) var(--radius-btn-sm) 0;
}

.pd-purchase__quantity-action img {
    display: block;
    width: 16px;
    height: 16px;
}

.pd-purchase__quantity-value {
    min-width: 48px;
    border-radius: 0;
    flex: 1 1 auto;
    color: var(--color-text-dark);
    font: 500 14px/22px var(--font-sans);
}

.pd-purchase__add-to-cart--loading {
    opacity: 0.8;
}

    .pd-purchase__add-to-cart--loading .pd-purchase__quantity-action {
        cursor: wait;
        background: transparent !important;
        opacity: 0.5;
    }

.pd-purchase__add-to-cart-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pd-spinner-rotate 0.8s linear infinite;
    display:none;
}

button.pd-purchase__add-to-cart:disabled > .pd-purchase__add-to-cart-spinner
{
    display: inline !important;
}

@keyframes pd-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.pd-purchase__delivery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-purchase__delivery-label {
    color: #21241D;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
}

/* Delivery list */

.pd-delivery-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-delivery-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    color: #21241D;
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 20px;
}

.pd-delivery-list__item span:first-of-type {
    flex: 1;
}

.pd-delivery-list__icon-wrap {
    width: 20px;
    height: 20px;
    background: #BCC79D;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.pd-delivery-list__price {
    color: #88867D;
    white-space: nowrap;
}

/* Table of contents */

.pd-purchase__toc {
    background: #E5E4D4;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-purchase__toc-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-purchase__toc-scrollbar {
    position: relative;
    height: 4px;
    width: 100%;
    background: #C5C5B3;
    border-radius: 2px;
    margin-top: 8px;
    display: none;
}

.pd-purchase__toc-scrollbar__thumb {
    position: absolute;
    height: 4px;
    top: 0;
    left: 0;
    background: #21241D;
    border-radius: 2px;
    cursor: grab;
    user-select: none;
}

.pd-purchase__toc-scrollbar__thumb:active {
    cursor: grabbing;
}

.pd-purchase__toc-label {
    color: #88867D;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
    margin: 0;
}

.pd-purchase__toc-link {
    color: #21241D;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    text-decoration: none;
}

/* ── Fixed clone bar (pd-purchase + pd-purchase-bar) ── */

.pd-purchase-bar {
    /* Position fixed at the same right-edge where the sidebar normally sits.
       We don't know the exact left offset so we mirror the sidebar width and
       anchor to the right side of the viewport. */
    position: fixed;
    top: 0;
    right: calc((100vw - 1230px) / 2);   /* aligns with .app-content__inner right edge */
    width: 380px;
    z-index: 100;
    /* Hidden: slide up out of view */
    transform: translateY(-100%);    
    pointer-events: none;
}

.pd-purchase-bar--visible {
    transform: translateY(0);
    pointer-events: auto;
    top: 72px;
}

.prd-text-btn.prd-text-btn--after-content {
    display: none;
}

@media (max-width: 1249px) {
    .pd-page,
    .pd-inner,
    .pd-content {
        width: 100%;
    }

    .pd-page {
        margin-top: -32px;
    }

    .pd-inner {
        gap: 32px;
    }

    .pd-breadcrumb {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .pd-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .pd-top {
        flex-direction: column;
        gap: 32px;
    }

    .pd-gallery {
        width: 100%;
    }

    .pd-gallery__main-wrap {
        width: 100%;
    }

    .pd-gallery__main {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        border-radius: 16px;
    }

    .pd-gallery__thumbs {
        display: none;
    }

    .pd-purchase {
        position: static;
        width: calc(100% - 32px);
        border-radius: 16px;
        align-self: center;
        gap: 24px;
    }

    .pd-purchase__main {
        padding: 0;
        background: transparent;
        border-radius: 16px;
        gap: 24px;
    }

    .pd-purchase__main::before,
    .pd-purchase__main::after,
    .pd-purchase-bar {
        display: none;
    }

    .pd-purchase__name {
        font-size: 32px;
        line-height: 40px;
    }

    .pd-purchase__title-group {
        gap: 8px;
    }

    .pd-purchase__price-value,
    .pd-purchase__price-unit {
        font-size: 24px;
        line-height: 32px;
    }

    .pd-purchase__delivery {
        gap: 0;
    }

    .pd-purchase__delivery-label {
        display: none;
    }

    .pd-delivery-list {
        gap: 12px;
    }

    .pd-delivery-list__item {
        padding: 12px;
        gap: 8px;
        background: #E5E4D4;
        border-radius: 12px;
    }

    .pd-delivery-list__icon-wrap {
        border-radius: 10px;
    }

    .pd-purchase__toc {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
        background: transparent;
        gap: 8px;
    }

    .pd-purchase__toc-row {
        display: flex;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;                
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
    }

    .pd-purchase__toc-row--dragging {
        cursor: grabbing;
        scroll-snap-type: none;
        user-select: none;
    }

    .pd-purchase__toc-row--dragging .pd-purchase__toc-link {
        pointer-events: none;
    }

    .pd-purchase__toc-row::-webkit-scrollbar {
        display: none;
    }

    .pd-purchase__toc-label {
        display: none;
    }

    .pd-purchase__toc-link {
        flex: 0 0 auto;
        height: 40px;
        padding: 9px 16px;
        border: 1px solid #C5C5B3;
        border-radius: 12px;
        color: #21241D;
        font-size: 14px;
        line-height: 20px;
        scroll-snap-align: start;
    }       

        .pd-purchase__add-to-cart {
            
        }

    .pd-purchase__add-to-cart-container {
        position: fixed;
        padding: 16px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        width: auto;
        background: var(--color-bg);
        box-shadow: 0 -1px 0 rgba(0,0,0,0);
    }

    .pd-page {
        padding-bottom: 80px;
    }

    .prd-section__heading-row .prd-text-btn {
        display: none;
    }

    .prd-text-btn.prd-text-btn--after-content {
        display: inline-flex;
        width: 100%;
        border: 1px solid #3E4A29;
    }

    .prd-additional-products .prd-text-btn--after-content {
        margin-top: 24px;
    }

    .pd-content {
        gap: 48px;
    }

    .pd-section,
    .prd-section {
        gap: 24px;
        padding-top: 0;
    }

    .pd-cert-card {
        padding: 16px;
        border-radius: 16px;
    }

    .prd-heading-products {
        margin-bottom: 24px;
    }
}

@media (max-width: 600px) {
    

    .pd-inner {
        gap: 24px;
    }

    .pd-gallery__main {
        border-radius: 12px;
    }

    .pd-purchase {
        width: 100%;
    }

    .pd-purchase__toc {
        box-sizing: border-box;
        width: 100%;
        padding: 1px;
    }

    .pd-content {
        gap: 40px;
    }

    .pd-section__heading,
    .prd-section__heading {
        font-size: 24px;
        line-height: 32px;
    }

    .pd-cert-card {
        align-items: flex-start;
        gap: 12px;
    }

    .pd-cert-card__icon {
        width: 48px;
        height: 48px;
        padding: 8px;
        border-radius: 12px;
    }

    .pd-cert-card__title-row {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .prd-about {
        gap: 16px;
    }

    .prd-about__photo {
        width: 120px;
        height: 120px;
        border-radius: 16px;
    }

    .prd-about__body {
        gap: 8px;
    }

    .prd-about__name {
        font-size: 20px;
        line-height: 28px;
    }

    .prd-products-row {
        gap: 12px;
    }

    .prd-products-row--scroll .prd-product-card {
        width: calc((100% - 12px) / 2);
        min-width: calc((100% - 12px) / 2);
        padding: 8px;
        gap: 8px;
    }

    .prd-products-row--scroll .prd-product-card__image-wrap,
    .prd-products-row--scroll .prd-product-card__image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .prd-products-row--scroll .prd-product-card__producer-image-wrap {
        left: 8px;
        bottom: -8px;
    }

    .prd-products-row--scroll .prd-product-card__producer-image {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
}
