/* ========================================
   PRODUCT DETAILS PAGE
======================================== */

.jrrs-product-detail-page {
    background-color: var(--jrrs-color-product-detail-background);
}

.jrrs-product-detail {
    width: 100%;
    padding: clamp(35px, 5vw, 70px)
             var(--jrrs-container-padding)
             clamp(65px, 8vw, 105px);
}

.jrrs-product-detail__container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
}


/* ========================================
   BREADCRUMB
======================================== */

.jrrs-product-breadcrumb {
    margin-bottom: 30px;
}

.jrrs-product-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.jrrs-product-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--jrrs-color-muted);
    font-size: 0.82rem;
}

.jrrs-product-breadcrumb li:not(:last-child)::after {
    content: "›";
    color: var(--jrrs-color-muted);
}

.jrrs-product-breadcrumb a {
    color: var(--jrrs-color-muted);
    text-decoration: none;

    transition: color 180ms ease;
}

.jrrs-product-breadcrumb a:hover {
    color: var(--jrrs-color-primary);
}

.jrrs-product-breadcrumb li[aria-current="page"] {
    color: var(--jrrs-color-heading);
    font-weight: 600;
}


/* ========================================
   PAGE LAYOUT
======================================== */

.jrrs-product-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
    align-items: start;
    gap: clamp(40px, 5vw, 75px);
}


/* ========================================
   PRODUCT GALLERY
======================================== */

.jrrs-product-gallery {
    min-width: 0;
}

.jrrs-product-gallery__main {
    position: relative;
    overflow: hidden;

    width: 100%;
    aspect-ratio: 4 / 3;

    background-color: var(--jrrs-color-product-media-background);
    border: 1px solid var(--jrrs-color-product-detail-border);
    border-radius: var(--jrrs-radius-product-gallery);
    box-shadow: var(--jrrs-shadow-product-image);
}

.jrrs-product-gallery__main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        opacity 180ms ease,
        transform 400ms ease;
}

.jrrs-product-gallery__main:hover
.jrrs-product-gallery__main-image {
    transform: scale(1.025);
}


/* Product badges */

.jrrs-product-gallery__badges {
    position: absolute;
    top: 18px;
    left: 18px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.jrrs-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 30px;
    padding: 6px 11px;

    font-size: 0.73rem;
    font-weight: 600;

    border-radius: var(--jrrs-radius-pill);
    backdrop-filter: blur(8px);
}

.jrrs-product-badge svg {
    width: 14px;
    height: 14px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jrrs-product-badge--organic {
    color: var(--jrrs-color-product-organic);
    background-color: var(--jrrs-color-product-organic-bg);
}

.jrrs-product-badge--grade {
    color: var(--jrrs-color-primary);
    background-color: var(--jrrs-color-product-grade-bg);
}


/* Thumbnails */

.jrrs-product-gallery__thumbnails {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;

    margin-top: 16px;
}

.jrrs-product-thumbnail {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    cursor: pointer;

    background-color: var(--jrrs-color-product-media-background);
    border: 2px solid transparent;
    border-radius: var(--jrrs-radius-product-thumbnail);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.jrrs-product-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 250ms ease;
}

.jrrs-product-thumbnail:hover {
    transform: translateY(-2px);
}

.jrrs-product-thumbnail:hover img {
    transform: scale(1.05);
}

.jrrs-product-thumbnail.is-active {
    border-color: var(--jrrs-color-primary);
    box-shadow: 0 0 0 3px var(--jrrs-color-product-grade-bg);
}

.jrrs-product-thumbnail:focus-visible {
    outline: 3px solid var(--jrrs-color-primary);
    outline-offset: 3px;
}


/* ========================================
   PRODUCT INFORMATION
======================================== */

.jrrs-product-information__category {
    display: block;
    margin-bottom: 8px;

    color: var(--jrrs-color-primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.jrrs-product-information__title {
    margin: 0;

    color: var(--jrrs-color-heading);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 700;
    line-height: 1.18;
}

.jrrs-product-information__description {
    margin: 18px 0 0;

    color: var(--jrrs-color-muted);
    font-size: 0.97rem;
    line-height: 1.75;
}


/* Product feature cards */

.jrrs-product-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;

    margin-top: 30px;
}

.jrrs-product-feature {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    min-height: 100px;
    padding: 18px;

    background-color: var(--jrrs-color-card-background);
    border: 1px solid var(--jrrs-color-product-detail-border);
    border-radius: var(--jrrs-radius-product-feature);

    transition:
        border-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.jrrs-product-feature:hover {
    border-color: var(--jrrs-color-primary);
    box-shadow: var(--jrrs-shadow-product-image);
    transform: translateY(-2px);
}

.jrrs-product-feature__icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    color: var(--jrrs-color-primary);
    background-color: var(--jrrs-color-product-grade-bg);
    border-radius: 11px;
}

.jrrs-product-feature__icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jrrs-product-feature__label {
    display: block;
    margin-bottom: 6px;

    color: var(--jrrs-color-muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.jrrs-product-feature__value {
    display: block;

    color: var(--jrrs-color-heading);
    font-size: 0.91rem;
    font-weight: 600;
    line-height: 1.45;
}


/* ========================================
   PRICE AND QUOTE
======================================== */

.jrrs-product-quote-panel {
    margin-top: 25px;
    padding: 22px;

    background-color: var(--jrrs-color-product-panel-background);
    border: 1px solid var(--jrrs-color-product-detail-border);
    border-radius: var(--jrrs-radius-product-quote);
}

.jrrs-product-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.85fr);
    align-items: center;
    gap: 20px;

    padding-bottom: 20px;
}

.jrrs-product-price__label {
    display: block;
    margin-bottom: 7px;

    color: var(--jrrs-color-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.jrrs-product-price__value {
    display: block;

    color: var(--jrrs-color-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.jrrs-product-price__value small {
    color: var(--jrrs-color-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.jrrs-product-price__notice {
    margin: 0;

    color: var(--jrrs-color-muted);
    font-size: 0.77rem;
    line-height: 1.55;
}

.jrrs-product-actions {
    display: grid;
    gap: 11px;
}

.jrrs-product-actions--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jrrs-product-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    min-height: 48px;
    padding: 12px 20px;

    font-size: 0.91rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;

    border: 1.5px solid transparent;
    border-radius: var(--jrrs-radius-pill);

    transition:
        color 200ms ease,
        background-color 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.jrrs-product-action svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jrrs-product-action--primary {
    color: var(--jrrs-color-hero-text);
    background-color: var(--jrrs-color-primary);
}

.jrrs-product-action--primary:hover {
    background-color: var(--jrrs-color-primary-dark);
    box-shadow: 0 10px 24px rgba(30, 97, 70, 0.2);
    transform: translateY(-2px);
}

.jrrs-product-action--secondary {
    color: var(--jrrs-color-heading);
    background-color: var(--jrrs-color-card-background);
    border-color: var(--jrrs-color-heading);
}

.jrrs-product-action--secondary:hover {
    color: var(--jrrs-color-primary);
    border-color: var(--jrrs-color-primary);
    transform: translateY(-2px);
}


/* Availability note */

.jrrs-product-availability-note {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 20px 0 0;

    color: var(--jrrs-color-product-note);
    font-size: 0.76rem;
    line-height: 1.5;
}

.jrrs-product-availability-note svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ========================================
   TABLET
======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    .jrrs-product-detail__layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .jrrs-product-gallery {
        max-width: 720px;
        margin-inline: auto;
    }

    .jrrs-product-information {
        max-width: 720px;
        margin-inline: auto;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {
    .jrrs-product-detail {
        padding-top: 25px;
        padding-bottom: 60px;
    }

    .jrrs-product-breadcrumb {
        margin-bottom: 22px;
    }

    .jrrs-product-breadcrumb li {
        font-size: 0.75rem;
    }

    .jrrs-product-detail__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .jrrs-product-gallery__main {
        border-radius: 18px;
    }

    .jrrs-product-gallery__badges {
        top: 12px;
        left: 12px;
    }

    .jrrs-product-badge {
        min-height: 27px;
        padding: 5px 9px;
        font-size: 0.66rem;
    }

    .jrrs-product-gallery__thumbnails {
        gap: 9px;
        margin-top: 10px;
    }

    .jrrs-product-thumbnail {
        border-radius: 10px;
    }

    .jrrs-product-information__title {
        font-size: 2rem;
    }

    .jrrs-product-information__description {
        margin-top: 14px;
        font-size: 0.93rem;
    }

    .jrrs-product-features {
        grid-template-columns: 1fr;
        gap: 11px;
        margin-top: 25px;
    }

    .jrrs-product-feature {
        min-height: auto;
        padding: 16px;
    }

    .jrrs-product-quote-panel {
        padding: 18px;
    }

    .jrrs-product-price {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .jrrs-product-price__value {
        font-size: 1.15rem;
    }
}


/* ========================================
   TECHNICAL SPECIFICATIONS
======================================== */

.jrrs-technical-specifications {
    width: calc(100% - (var(--jrrs-container-padding) * 2));
    margin: 0 auto clamp(65px, 8vw, 105px);
    padding: clamp(55px, 7vw, 85px)
             clamp(24px, 5vw, 65px);

    background-color: var(--jrrs-color-specification-background);
    border-radius: var(--jrrs-radius-specification-section);
}

.jrrs-technical-specifications__container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
}


/* Section heading */

.jrrs-technical-specifications__header {
    margin-bottom: 42px;
}

.jrrs-technical-specifications__eyebrow {
    display: block;
    margin-bottom: 8px;

    color: var(--jrrs-color-primary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jrrs-technical-specifications__title {
    margin: 0;

    color: var(--jrrs-color-heading);
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
}

.jrrs-technical-specifications__description {
    margin: 11px 0 0;

    color: var(--jrrs-color-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* Cards grid */

.jrrs-specifications-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(18px, 2.5vw, 28px);
}

.jrrs-specification-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;

    background-color: var(--jrrs-color-specification-card);
    border: 1px solid var(--jrrs-color-product-detail-border);
    border-radius: var(--jrrs-radius-specification-card);

    transition:
        border-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.jrrs-specification-card:hover {
    border-color: rgba(35, 134, 83, 0.3);
    box-shadow: var(--jrrs-shadow-product-image);
    transform: translateY(-4px);
}


/* Card heading */

.jrrs-specification-card__heading {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 22px;
}

.jrrs-specification-card__icon {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    color: var(--jrrs-color-primary);
    background-color: var(--jrrs-color-specification-icon);
    border-radius: var(--jrrs-radius-specification-icon);
}

.jrrs-specification-card__icon svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jrrs-specification-card__number {
    display: block;
    margin-bottom: 3px;

    color: var(--jrrs-color-primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.jrrs-specification-card__heading h3 {
    margin: 0;

    color: var(--jrrs-color-heading);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35;
}


/* Specification rows */

.jrrs-specification-list {
    margin: 0;
}

.jrrs-specification-list__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;

    min-height: 44px;
    padding: 10px 0;

    border-bottom: 1px solid
        var(--jrrs-color-specification-divider);
}

.jrrs-specification-list__row:first-child {
    border-top: 1px solid
        var(--jrrs-color-specification-divider);
}

.jrrs-specification-list__row dt,
.jrrs-specification-list__row dd {
    margin: 0;
    line-height: 1.45;
}

.jrrs-specification-list__row dt {
    color: var(--jrrs-color-muted);
    font-size: 0.78rem;
}

.jrrs-specification-list__row dd {
    color: var(--jrrs-color-heading);
    font-size: 0.79rem;
    font-weight: 600;
    text-align: right;
}


/* ========================================
   TABLET
======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    .jrrs-technical-specifications {
        padding: 55px 35px;
    }

    .jrrs-specifications-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jrrs-specification-card:last-child {
        grid-column: 1 / -1;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {
    .jrrs-technical-specifications {
        padding: 45px 18px;
    }

    .jrrs-technical-specifications__header {
        margin-bottom: 30px;
    }

    .jrrs-technical-specifications__title {
        font-size: 1.75rem;
    }

    .jrrs-technical-specifications__description {
        font-size: 0.9rem;
    }

    .jrrs-specifications-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .jrrs-specification-card {
        padding: 20px 18px;
    }

    .jrrs-specification-card__heading {
        margin-bottom: 18px;
    }

    .jrrs-specification-list__row {
        gap: 12px;
    }

    .jrrs-specification-list__row dt,
    .jrrs-specification-list__row dd {
        font-size: 0.76rem;
    }
}

/* ========================================
   HARVEST STORY
======================================== */

.jrrs-harvest-story {
    position: relative;

    width: calc(100% - (var(--jrrs-container-padding) * 2));
    margin: 0 auto clamp(65px, 8vw, 105px);
    padding: clamp(50px, 6vw, 75px)
             clamp(24px, 5vw, 60px);

    overflow: hidden;
    background-color: var(--jrrs-color-harvest-background);
    border: 1px solid var(--jrrs-color-harvest-border);
    border-radius: var(--jrrs-radius-harvest-section);
}

.jrrs-harvest-story__container {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
}


/* Decorative leaf */

.jrrs-harvest-story__decoration {
    position: absolute;
    top: 25px;
    right: 35px;

    width: clamp(90px, 12vw, 145px);
    height: auto;

    fill: none;
    stroke: var(--jrrs-color-harvest-decoration);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;

    pointer-events: none;
}


/* Story heading */

.jrrs-harvest-story__header {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.jrrs-harvest-story__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--jrrs-color-primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.jrrs-harvest-story__eyebrow svg {
    width: 19px;
    height: 19px;

    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jrrs-harvest-story__title {
    margin: 18px 0 0;

    color: var(--jrrs-color-heading);
    font-size: clamp(1.75rem, 2.7vw, 2.3rem);
    font-weight: 700;
    line-height: 1.3;
}

.jrrs-harvest-story__description {
    margin: 20px 0 0;

    color: var(--jrrs-color-muted);
    font-size: 0.96rem;
    line-height: 1.75;
}


/* Feature cards */

.jrrs-harvest-story__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(18px, 2.5vw, 28px);

    max-width: 950px;
    margin-top: 38px;
}

.jrrs-harvest-feature {
    padding: 24px;

    background-color: var(--jrrs-color-harvest-card-background);
    border: 1px solid var(--jrrs-color-harvest-border);
    border-radius: var(--jrrs-radius-harvest-card);

    transition:
        border-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.jrrs-harvest-feature:hover {
    border-color: rgba(35, 134, 83, 0.3);
    box-shadow: var(--jrrs-shadow-product-image);
    transform: translateY(-4px);
}

.jrrs-harvest-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    margin-bottom: 18px;

    color: var(--jrrs-color-primary);
    background-color: var(--jrrs-color-product-grade-bg);
    border-radius: 12px;
}

.jrrs-harvest-feature__icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jrrs-harvest-feature h3 {
    margin: 0;

    color: var(--jrrs-color-heading);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.4;
}

.jrrs-harvest-feature p {
    margin: 11px 0 0;

    color: var(--jrrs-color-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}


/* ========================================
   TABLET
======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    .jrrs-harvest-story {
        padding: 55px 38px;
    }

    .jrrs-harvest-story__header {
        max-width: 75%;
    }

    .jrrs-harvest-story__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .jrrs-harvest-feature:last-child {
        grid-column: 1 / -1;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {
    .jrrs-harvest-story {
        padding: 44px 18px;
    }

    .jrrs-harvest-story__decoration {
        top: 18px;
        right: 10px;
        width: 85px;
    }

    .jrrs-harvest-story__header {
        max-width: none;
    }

    .jrrs-harvest-story__title {
        max-width: 85%;
        margin-top: 15px;
        font-size: 1.7rem;
    }

    .jrrs-harvest-story__description {
        margin-top: 17px;
        font-size: 0.91rem;
        line-height: 1.7;
    }

    .jrrs-harvest-story__features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }

    .jrrs-harvest-feature,
    .jrrs-harvest-feature:last-child {
        grid-column: auto;
        padding: 20px;
    }

    .jrrs-harvest-feature__icon {
        width: 42px;
        height: 42px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .jrrs-product-actions--two {
        grid-template-columns: 1fr;
    }
}
