html,
body:has(#page-content.product-detail-page) {
    background: #f6f7f8;
}

#page-content.product-detail-page {
    background: #f6f7f8;
    color: #151b2d;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}

.product-detail-page * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.product-detail-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 22px;
    position: relative;
    width: 100%;
    z-index: 2;
}

.product-detail-hero {
    background: #164729;
    isolation: isolate;
    min-height: 440px;
    overflow: hidden;
    padding: 18px 0 24px;
    position: relative;
}

.product-detail-hero-image,
.product-detail-hero-shade {
    inset: 0;
    position: absolute;
}

.product-detail-hero-image {
    background: #164729;
    display: block;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
    width: 100%;
    z-index: 0;
}

.product-detail-hero-shade {
    background: linear-gradient(180deg, rgba(7, 12, 14, 0.08), rgba(7, 12, 14, 0.3) 44%, rgba(7, 12, 14, 0.82));
    pointer-events: none;
    z-index: 1;
}

.product-detail-back,
.product-detail-buy-link,
.product-detail-seller-link {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    text-decoration: none;
}

.product-detail-back {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(8, 18, 26, 0.16);
    color: #202b3c;
    font-size: 14px;
    font-weight: 800;
    min-height: 40px;
    padding: 0 16px;
}

.product-detail-back:hover {
    color: #1d633a;
}

.product-detail-hero-content {
    align-items: flex-end;
    bottom: 24px;
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    left: max(22px, calc((100vw - 1180px) / 2 + 22px));
    position: absolute;
    right: max(22px, calc((100vw - 1180px) / 2 + 22px));
    z-index: 2;
}

.product-detail-badges,
.product-detail-rating {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-detail-badges span {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    gap: 5px;
    min-height: 28px;
    padding: 0 11px;
}

.product-detail-badges span:first-child {
    background: #1b6b3f;
}

.product-detail-badges span.gold {
    background: #f0a51e;
}

.product-detail-hero h1 {
    color: #fff;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.06;
    margin: 12px 0 10px;
    max-width: 780px;
}

.product-detail-rating {
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.product-detail-stars {
    color: #f0a51e;
    display: inline-flex;
    gap: 1px;
}

.product-detail-hero-price {
    text-align: right;
}

.product-detail-hero-price > span {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 4px;
    text-decoration: line-through;
}

.product-detail-hero-price strong {
    color: #fff;
    display: block;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 16px;
}

.product-detail-buy-link {
    background: #f0a51e;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    min-height: 44px;
    padding: 0 22px;
}

.product-detail-body {
    padding: 24px 0 60px;
}

.product-detail-grid {
    align-items: flex-start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.product-detail-main,
.product-detail-side {
    min-width: 0;
}

.product-detail-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 98px;
}

.product-detail-gallery-card,
.product-detail-panel,
.product-detail-purchase-card,
.product-detail-side-card,
.product-detail-related,
.product-detail-alert {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    box-shadow: 0 2px 7px rgba(20, 28, 42, 0.08);
}

.product-detail-gallery-card,
.product-detail-purchase-card,
.product-detail-side-card,
.product-detail-related,
.product-detail-alert {
    padding: 20px;
}

.product-detail-gallery-layout {
    align-items: stretch;
    display: grid !important;
    gap: 16px;
    grid-template-columns: 86px minmax(0, 1fr);
}

.product-detail-thumbs {
    width: auto !important;
}

.product-detail-thumbs #gallery {
    display: grid;
    gap: 10px;
    max-height: 620px;
    overflow: auto;
}

.product-detail-thumbs a {
    border: 2px solid transparent;
    border-radius: 10px;
    display: block;
    overflow: hidden;
}

.product-detail-thumbs a.active,
.product-detail-thumbs a:hover {
    border-color: #f0a51e;
}

.product-detail-thumbs img {
    aspect-ratio: 1 / 1;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.product-detail-image-wrap {
    align-items: center;
    background: #f7f8f9;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    min-height: 540px;
    overflow: hidden;
}

.product-detail-image-wrap img {
    display: block;
    max-height: 620px;
    object-fit: contain;
    width: 100%;
}

.product-detail-share {
    border-top: 1px solid #edf0f4;
    color: #758093;
    gap: 10px;
    margin-top: 18px !important;
    padding-top: 18px;
}

.product-detail-tabs {
    background: #fff;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    overflow: hidden;
}

.product-detail-tabs li {
    margin: 0;
    text-align: center;
}

.product-detail-tabs a,
.product-detail-tabs .tablink {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    color: #6d7789;
    cursor: pointer;
    display: block;
    font-weight: 900;
    min-height: 54px;
    padding: 17px 12px;
}

.product-detail-tabs li.active a,
.product-detail-tabs a:hover {
    background: #f7fbf8;
    color: #1d633a;
}

.product-detail-tab-container {
    padding: 24px;
}

.product-detail-copy {
    color: #556173;
    font-size: 14px;
    line-height: 1.8;
}

.product-detail-table th {
    color: #151b2d;
    font-weight: 900;
    width: 240px;
}

.product-detail-meta-head h2 {
    color: #151b2d;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.18;
    margin: 10px 0;
}

.product-detail-meta-head p {
    color: #556173;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

.product-detail-category {
    align-items: center;
    background: #f1f8f3;
    border-radius: 999px;
    color: #1d633a;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    text-decoration: none;
}

.product-detail-price-row {
    align-items: baseline;
    border-bottom: 1px solid #edf0f4;
    border-top: 1px solid #edf0f4;
    gap: 10px;
    margin: 18px 0;
    padding: 18px 0;
}

.product-detail-price-row .old-price {
    color: #98a2b3;
    font-size: 15px;
    text-decoration: line-through;
}

.product-detail-price-row .product_price {
    color: #1d633a;
    font-size: 28px;
    font-weight: 900;
}

.product-detail-specs {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.product-detail-specs div,
.product-detail-assurance-row {
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 12px;
}

.product-detail-specs span,
.product-detail-assurance-row span {
    color: #758093;
    font-size: 12px;
    font-weight: 800;
}

.product-detail-specs strong,
.product-detail-assurance-row strong {
    color: #151b2d;
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

.product-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.product-detail-tags a {
    background: #f1f3f5;
    border-radius: 999px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 10px;
    text-decoration: none;
}

.product-detail-swatches {
    display: grid;
    gap: 14px;
}

.product-detail-swatches .product-item {
    margin: 0 !important;
}

.product-detail-swatches .label {
    color: #151b2d;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.product-detail-swatches ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.product-detail-swatches li {
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 999px;
    color: #39455a;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    list-style: none;
    min-height: 34px;
    padding: 8px 12px !important;
}

.product-detail-actions {
    display: grid !important;
    gap: 10px;
    grid-template-columns: 118px minmax(0, 1fr) minmax(0, 1fr);
}

.product-detail-actions .product-form-submit,
.product-detail-actions .product-form-submit button,
.product-detail-actions .product-form-quantity,
.product-detail-actions .qtyField {
    margin: 0 !important;
    width: 100%;
}

.product-detail-actions .qtyField {
    align-items: center;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    min-height: 46px;
    overflow: hidden;
}

.product-detail-actions .qtyBtn {
    align-items: center;
    background: #f7f8f9;
    border: 0;
    color: #1d633a;
    display: flex;
    height: 100%;
    justify-content: center;
}

.product-detail-actions .qty {
    border: 0;
    color: #151b2d;
    font-weight: 900;
    height: 100%;
    text-align: center;
    width: 100%;
}

.product-detail-actions .btn {
    border: 0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    min-height: 46px;
    width: 100%;
}

.product-detail-actions .btn-secondary {
    background: #1d633a;
    color: #fff;
}

.product-detail-actions .btn-primary {
    background: #f0a51e;
    color: #fff;
}

.product-detail-link-actions {
    border-top: 1px solid #edf0f4;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
}

.product-detail-link-actions a {
    color: #536072;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.product-detail-assurance-card {
    background: linear-gradient(155deg, #14552f, #1b683b);
    color: #fff;
}

.product-detail-assurance-head,
.product-detail-seller-head {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.product-detail-assurance-head > span,
.product-detail-seller-head > span {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.product-detail-assurance-head h3,
.product-detail-seller-head h3,
.product-detail-delivery-card h3 {
    color: inherit;
    font-size: 16px;
    font-weight: 900;
    margin: 0;
}

.product-detail-assurance-head p,
.product-detail-seller-head p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    margin: 0;
}

.product-detail-assurance-card .product-detail-assurance-row {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    padding: 0;
}

.product-detail-assurance-card .product-detail-assurance-row:last-child {
    border-bottom: 0;
}

.product-detail-assurance-card .product-detail-assurance-row span {
    color: rgba(255, 255, 255, 0.78);
}

.product-detail-assurance-card .product-detail-assurance-row strong {
    color: #fff;
}

.product-detail-seller-card h3,
.product-detail-delivery-card h3 {
    color: #151b2d;
}

.product-detail-seller-card p {
    color: #758093;
}

.product-detail-seller-head > span {
    background: #e4f3e7;
    color: #1d633a;
}

.product-detail-seller-rating {
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 42px;
    padding: 0 12px;
}

.product-detail-seller-link {
    background: #1d633a;
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    min-height: 40px;
    width: 100%;
}

.product-detail-delivery-card h3 {
    margin-bottom: 14px;
}

.product-detail-delivery-form {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.product-detail-delivery-form input,
.product-detail-delivery-form select {
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    color: #151b2d;
    min-height: 42px;
    padding: 0 12px;
    width: 100%;
}

.product-detail-delivery-form button {
    background: #1d633a;
    border: 0;
    border-radius: 12px !important;
    color: #fff;
    font-weight: 900;
    min-height: 42px;
    padding: 0 16px;
}

.product-detail-delivery-note,
.product-detail-delivery-card .deliverability-res {
    color: #758093;
    font-size: 12px;
    line-height: 1.5;
    margin: 10px 0 0;
}

.product-detail-related {
    margin-top: 24px;
}

.product-detail-section-head {
    margin-bottom: 18px;
}

.product-detail-section-head span {
    color: #1d633a;
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.product-detail-section-head h2 {
    color: #151b2d;
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 4px;
}

.product-detail-section-head p {
    color: #758093;
    margin: 0;
}

@media (max-width: 1100px) {
    .product-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-detail-side {
        position: static;
    }
}

@media (max-width: 780px) {
    .product-detail-hero {
        min-height: 540px;
    }

    .product-detail-hero-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-detail-hero-price {
        text-align: left;
    }

    .product-detail-gallery-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-detail-thumbs #gallery {
        display: flex;
        max-height: none;
        overflow-x: auto;
    }

    .product-detail-thumbs a {
        flex: 0 0 72px;
    }

    .product-detail-image-wrap {
        min-height: 360px;
    }

    .product-detail-tabs {
        display: none !important;
    }

    .product-detail-actions,
    .product-detail-delivery-form {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .product-detail-shell {
        padding: 0 16px;
    }

    .product-detail-gallery-card,
    .product-detail-purchase-card,
    .product-detail-side-card,
    .product-detail-related,
    .product-detail-tab-container {
        padding: 16px;
    }

    .product-detail-meta-head h2 {
        font-size: 21px;
    }
}
