
.productPage {
    padding: 28px 0 58px;
    border-bottom: 1px solid #e4e9e1;
    background: linear-gradient(180deg, #fbfdfb 0%, #fff 100%);
}

.backToShop {
    min-height: 38px;
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

.backToShop:hover {
    color: var(--orange-dark);
}

.productPageLayout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
}

.productGallery {
    min-width: 0;
}

.productImageButton {
    position: relative;
    width: 100%;
    min-height: 540px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--cream-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(0 0 0 / 5%);
    cursor: zoom-in;
}

.productMainImage {
    width: 100%;
    height: 500px;
    object-fit: contain;
    transition: transform .18s ease;
}

.productImageButton:hover .productMainImage {
    transform: scale(1.025);
}

.imageZoomHint {
    position: absolute;
    right: 16px;
    bottom: 16px;
    min-height: 38px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #d9e1d7;
    border-radius: 999px;
    background: rgb(255 255 255 / 94%);
    color: var(--green-darker);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
}

.imageZoomHint svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.productImageNote {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.productSummary {
    position: sticky;
    top: 20px;
    padding-top: 6px;
}

.productCategoryLabel,
.productBrand {
    margin: 0;
}

.productCategoryLabel {
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.productBrand {
    margin-top: 8px;
    color: var(--green);
    font-size: 15px;
    font-weight: 700;
}

.productSummary h1 {
    margin-top: 7px;
    color: #111;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.08;
    letter-spacing: -1.2px;
}

.productStockStatus {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 14px;
}

.productStockStatus > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgb(15 92 28 / 10%);
}

.productStockStatus.isOutOfStock {
    color: #777;
}

.productStockStatus.isOutOfStock > span {
    background: #a4a4a4;
    box-shadow: 0 0 0 4px rgb(0 0 0 / 7%);
}

.productPagePrice {
    margin-top: 17px;
    color: var(--orange-dark);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.productShortDescription {
    max-width: 590px;
    margin-top: 16px;
    color: #4b514a;
    font-size: 17px;
    line-height: 1.62;
}

.productVariationGroup,
.simpleProductSize {
    margin-top: 25px;
}

.productVariationGroup label,
.productQuantity > label {
    margin-bottom: 8px;
    display: block;
    color: #202420;
    font-size: 14px;
    font-weight: 700;
}

.productVariationSelect {
    width: 100%;
    min-height: 50px;
    padding: 0 44px 0 14px;
    border: 1px solid #bcc9ba;
    border-radius: 9px;
    background: #fff;
    color: #1d221d;
    font: inherit;
    font-weight: 700;
}

.productVariationSelect:focus {
    border-color: var(--green);
    outline: 3px solid rgb(15 92 28 / 14%);
}

.fieldHelp {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.simpleProductSize {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #dce4d9;
    border-radius: 9px;
    background: #f8fbf7;
}

.simpleProductSize span {
    color: var(--muted);
    font-size: 14px;
}

.simpleProductSize strong {
    color: var(--green-darker);
}

.productPurchaseRow {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.productPageQty {
    height: 50px;
    display: grid;
    grid-template-columns: 42px minmax(42px, 1fr) 42px;
    overflow: hidden;
    border: 1px solid #bdc9ba;
    border-radius: 9px;
    background: #fff;
}

.productPageQty button {
    border: 0;
    background: #f3f7f2;
    color: var(--green-darker);
    font-size: 21px;
    font-weight: 700;
    cursor: pointer;
}

.productPageQty button:hover {
    background: var(--light-green);
}

.productPageQty input {
    width: 100%;
    min-width: 0;
    border: 0;
    border-right: 1px solid #e0e5de;
    border-left: 1px solid #e0e5de;
    background: #fff;
    text-align: center;
    font: inherit;
    font-weight: 700;
    -moz-appearance: textfield;
}

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

.productAddButton {
    min-height: 50px;
    width: 100%;
}

.productAddButton:disabled {
    background: #e3e3e3;
    color: #858585;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.productAddStatus {
    min-height: 22px;
    margin-top: 11px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

.productBenefits {
    margin-top: 20px;
    border-top: 1px solid #e0e5de;
}

.productBenefits > div {
    min-height: 66px;
    padding: 12px 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #e8ece6;
    color: #505650;
    font-size: 13px;
    line-height: 1.45;
}

.productBenefits strong {
    display: block;
    color: #1e241e;
    font-size: 14px;
}

.benefitIcon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-green);
    color: var(--green);
}

.benefitIcon svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.productInformationSection {
    padding: 64px 0;
    background: #fff;
}

.productInformationLayout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 46px;
    align-items: start;
}

.productInformation h2,
.productDeliveryCard h2,
.relatedProductsSection h2 {
    color: #171a17;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.12;
}

.productAccordions {
    margin-top: 24px;
    border-top: 1px solid #dde4da;
}

.productAccordions details {
    border-bottom: 1px solid #dde4da;
}

.productAccordions summary {
    min-height: 64px;
    padding: 16px 44px 16px 2px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--green-darker);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.productAccordions summary::-webkit-details-marker {
    display: none;
}

.productAccordions summary::after {
    content: "+";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange-dark);
    font-size: 26px;
    font-weight: 400;
}

.productAccordions details[open] summary::after {
    content: "−";
}

.detailContent {
    padding: 0 44px 22px 2px;
    color: #505650;
    font-size: 15px;
    line-height: 1.65;
}

.detailContent p + p {
    margin-top: 12px;
}

.detailContent strong {
    color: #272c27;
}

.productInformationNotice {
    margin-top: 20px;
    padding: 13px 15px;
    border-left: 4px solid var(--orange);
    background: #fff8ef;
    color: #5c554b;
    font-size: 13px;
    line-height: 1.55;
}

.productDeliveryCard {
    position: sticky;
    top: 20px;
    padding: 26px;
    border: 1px solid #d8e2d5;
    border-radius: 15px;
    background: #f8fbf7;
    box-shadow: 0 10px 26px rgb(0 0 0 / 5%);
}

.productDeliveryCard p {
    margin-top: 14px;
    color: #505650;
    line-height: 1.6;
}

.productDeliveryCard .secondaryBtn {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
}

.deliveryCardFacts {
    margin-top: 23px;
    display: grid;
    gap: 10px;
}

.deliveryCardFacts span {
    padding-top: 10px;
    border-top: 1px solid #dce4da;
    color: #515851;
    font-size: 13px;
}

.relatedProductsSection {
    padding: 60px 0 74px;
    border-top: 1px solid #e6ebe4;
    background: #fafcf9;
}

.relatedProductsSection .sectionHeading {
    margin-bottom: 24px;
}

.relatedProducts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.relatedProducts .productImage {
    height: 190px;
}

.relatedProducts .productInfo h3 {
    min-height: 2.7em;
}

.relatedViewOptions {
    width: 100%;
    min-height: 38px;
    grid-column: 1 / -1;
}

/* Enlarged product image */
body.productImageOpen {
    overflow: hidden;
}

.productImageModal[hidden] {
    display: none;
}

.productImageModal {
    position: fixed;
    inset: 0;
    z-index: 1250;
}

.productImageModalBackdrop {
    position: absolute;
    inset: 0;
    background: rgb(5 25 10 / 72%);
    backdrop-filter: blur(3px);
}

.productImageModalDialog {
    position: absolute;
    inset: 4vh 4vw;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff;
    outline: none;
}

.productImageModalImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.productImageModalClose {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid #d7ded5;
    border-radius: 50%;
    background: #fff;
    color: var(--green-darker);
    font-size: 28px;
    cursor: pointer;
}

/* Product page basket focus state */
.basketDrawerPanel:focus-visible,
.productImageModalDialog:focus-visible {
    outline: 3px solid rgb(255 101 0 / 35%);
    outline-offset: -3px;
}

@media (max-width: 1040px) {
    .productPageLayout {
        grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
        gap: 34px;
    }

    .productImageButton {
        min-height: 450px;
    }

    .productMainImage {
        height: 410px;
    }

    .productInformationLayout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 30px;
    }

    .relatedProducts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .productPage {
        padding-top: 22px;
    }

    .productPageLayout {
        grid-template-columns: 1fr;
    }

    .productSummary,
    .productDeliveryCard {
        position: static;
    }

    .productGallery {
        max-width: 660px;
        width: 100%;
        margin: 0 auto;
    }

    .productInformationLayout {
        grid-template-columns: 1fr;
    }

    .productDeliveryCard {
        max-width: 560px;
    }

    .relatedProducts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .mainNav {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 900;
        box-shadow: 0 5px 14px rgb(0 0 0 / 16%);
    }

    .productPage {
        padding: 18px 0 44px;
    }

    .backToShop {
        margin-bottom: 14px;
    }

    .productImageButton {
        min-height: 330px;
        padding: 18px;
        border-radius: 13px;
    }

    .productMainImage {
        height: 300px;
    }

    .imageZoomHint {
        right: 10px;
        bottom: 10px;
        min-height: 34px;
        padding: 6px 9px;
        font-size: 11px;
    }

    .productSummary {
        padding-top: 0;
    }

    .productSummary h1 {
        font-size: 34px;
        letter-spacing: -.7px;
    }

    .productPagePrice {
        font-size: 30px;
    }

    .productShortDescription {
        font-size: 16px;
    }

    .productPurchaseRow {
        grid-template-columns: 126px minmax(0, 1fr);
        gap: 10px;
    }

    .productInformationSection,
    .relatedProductsSection {
        padding-top: 46px;
        padding-bottom: 52px;
    }

    .productInformation h2,
    .productDeliveryCard h2,
    .relatedProductsSection h2 {
        font-size: 29px;
    }

    .productDeliveryCard {
        padding: 21px;
    }

    .productImageModalDialog {
        inset: 2vh 10px;
        padding: 16px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .productPurchaseRow {
        grid-template-columns: 1fr;
    }

    .productPageQty {
        max-width: none;
    }

    .relatedProducts {
        gap: 12px;
    }

    .relatedProducts .productImage {
        height: 135px;
    }

    .productAccordions summary {
        min-height: 58px;
        font-size: 16px;
    }

    .detailContent {
        padding-right: 8px;
    }
}

@media (max-width: 360px) {
    .relatedProducts {
        grid-template-columns: 1fr;
    }
}


.productVariationGroup[hidden],
.simpleProductSize[hidden] {
    display: none !important;
}


/* Reliable mobile category navigation pinning.
   A small placeholder preserves the page position while the bar is fixed. */
.mobileNavSentinel,
.mobileNavPlaceholder {
    display: none;
}

@media (max-width: 760px) {
    .mainNav {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: auto;
    }

    .mobileNavSentinel {
        display: block;
        width: 100%;
        height: 0;
        pointer-events: none;
    }

    .mobileNavPlaceholder.isActive {
        display: block;
        width: 100%;
    }

    .mainNav.isMobileFixed {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1100;
        width: 100%;
        transform: translateZ(0);
        backface-visibility: hidden;
        box-shadow: 0 5px 14px rgb(0 0 0 / 16%);
    }

    .mainNav.isMobileFixed .innerContainer {
        width: 100%;
        max-width: none;
    }
}


.productPageLoading,
.productPageError {
    min-height: 360px;
    margin-top: 24px;
    padding: 48px 24px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe6dc;
    border-radius: 16px;
    background: #f8faf7;
    text-align: center;
}

.productPageLoading {
    color: #596159;
    font-size: 15px;
    font-weight: 800;
}

.productPageLoading::before {
    content: "";
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    display: block;
    border: 4px solid #dce7d9;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: productCatalogueSpin .8s linear infinite;
}

.productPageError {
    align-content: center;
    gap: 12px;
}

.productPageError h1 {
    color: #172017;
    font-size: clamp(31px, 5vw, 46px);
}

.productPageError p {
    max-width: 570px;
    color: #5e665e;
    line-height: 1.6;
}

.productPageLoading[hidden],
.productPageError[hidden],
.productPageLayout[hidden],
.productInformationSection[hidden],
.relatedProductsSection[hidden] {
    display: none !important;
}

@keyframes productCatalogueSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .productPageLoading::before {
        animation: none;
    }
}
