/* ========================================================================== 
 * Roshd Sabz — Single product page 0.6.26
 * ========================================================================== */
body.single-product {
    background:
        radial-gradient(circle at 12% 8%, rgba(184,216,117,.17), transparent 24rem),
        linear-gradient(180deg,#fbfcf7 0%,#f6f8f2 100%);
}

body.single-product .rs-page-shell {
    width:min(calc(100% - 36px),1320px);
    max-width:1320px;
    margin:28px auto 86px;
    padding:0;
}

.rs-single-product-content,
.rs-pdp,
.rs-pdp * { box-sizing:border-box; }

.rs-pdp { width:100%; min-width:0; }

.rs-pdp-breadcrumb { margin:0 0 16px; padding:0 4px; }
.rs-pdp-breadcrumb .woocommerce-breadcrumb {
    margin:0!important;
    color:#78867b;
    font-size:12px;
    line-height:1.9;
}
.rs-pdp-breadcrumb .woocommerce-breadcrumb a { color:#355d40; text-decoration:none; }
.rs-pdp-breadcrumb .woocommerce-breadcrumb a:hover { color:#7b9f1f; }

.rs-pdp-hero {
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);
    gap:18px;
    direction:ltr;
    align-items:stretch;
}
.rs-pdp-gallery-card,
.rs-pdp-summary-card { direction:rtl; min-width:0; }

.rs-pdp-gallery-card {
    position:relative;
    min-height:620px;
    padding:18px;
    border:1px solid rgba(47,111,67,.12);
    border-radius:30px;
    background:#eef2ea;
    box-shadow:0 18px 46px rgba(33,67,42,.08);
    overflow:hidden;
}
.rs-pdp-gallery-card::before {
    content:"";
    position:absolute;
    inset:auto auto -120px -80px;
    width:310px;
    height:310px;
    border-radius:50%;
    background:rgba(184,216,117,.18);
    filter:blur(8px);
    pointer-events:none;
}

.rs-pdp-gallery-badges {
    position:absolute;
    top:20px;
    right:20px;
    z-index:8;
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    max-width:70%;
}
.rs-pdp-badge {
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:4px 10px;
    border-radius:999px;
    font-size:10px;
    font-weight:800;
    line-height:1;
    box-shadow:0 6px 16px rgba(29,56,37,.08);
}
.rs-pdp-badge--new { background:#fff; color:#385631; }
.rs-pdp-badge--new::before { content:""; width:6px; height:6px; margin-left:5px; border-radius:50%; background:#f49a54; }
.rs-pdp-badge--sale { background:#eaf5ce; color:#41620f; }

.rs-pdp-gallery-wishlist {
    position:absolute!important;
    top:18px;
    left:18px;
    z-index:9;
    display:grid!important;
    place-items:center;
    width:42px!important;
    height:42px!important;
    padding:0!important;
    border:1px solid rgba(47,111,67,.13)!important;
    border-radius:50%!important;
    background:#fff!important;
    color:#37553c!important;
    box-shadow:0 8px 22px rgba(26,56,34,.11)!important;
}
.rs-pdp-gallery-wishlist i { font-size:19px; }
.rs-pdp-gallery-wishlist.is-active { background:#edf6d8!important; color:#6f9416!important; }

.rs-pdp-gallery { height:100%; }
.rs-pdp-gallery .onsale { display:none!important; }
.rs-pdp-gallery .woocommerce-product-gallery {
    float:none!important;
    width:100%!important;
    margin:0!important;
    height:100%;
}
.rs-pdp-gallery .woocommerce-product-gallery__wrapper {
    display:flex;
    align-items:center;
    min-height:510px;
    margin:0!important;
}
.rs-pdp-gallery .woocommerce-product-gallery__image { width:100%; }
.rs-pdp-gallery .woocommerce-product-gallery__image a { display:block; }
.rs-pdp-gallery .woocommerce-product-gallery__image img {
    display:block;
    width:100%!important;
    height:510px!important;
    max-height:510px;
    object-fit:contain!important;
    object-position:center;
    padding:28px;
    border-radius:24px!important;
    background:transparent!important;
    box-shadow:none!important;
}
.rs-pdp-gallery .woocommerce-product-gallery__trigger {
    top:18px!important;
    right:auto!important;
    left:70px!important;
    width:42px!important;
    height:42px!important;
    border:1px solid rgba(47,111,67,.13)!important;
    border-radius:50%!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(26,56,34,.11)!important;
}
.rs-pdp-gallery .flex-control-thumbs {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin:8px 0 0!important;
    padding:0!important;
}
.rs-pdp-gallery .flex-control-thumbs li {
    float:none!important;
    width:auto!important;
    margin:0!important;
    list-style:none!important;
}
.rs-pdp-gallery .flex-control-thumbs img {
    display:block;
    width:100%!important;
    aspect-ratio:1/1;
    object-fit:contain;
    padding:7px;
    border:1px solid rgba(47,111,67,.11);
    border-radius:16px!important;
    background:rgba(255,255,255,.78)!important;
    opacity:.7;
    transition:.22s ease;
}
.rs-pdp-gallery .flex-control-thumbs img:hover,
.rs-pdp-gallery .flex-control-thumbs img.flex-active {
    opacity:1;
    border-color:#7fa31f;
    box-shadow:0 8px 18px rgba(64,101,32,.10);
}

.rs-pdp-summary-card {
    position:relative;
    display:flex;
    flex-direction:column;
    min-height:620px;
    padding:32px 30px 25px;
    border-radius:30px;
    color:#f8fbf4;
    background:
        radial-gradient(circle at 90% 5%,rgba(184,216,117,.16),transparent 17rem),
        linear-gradient(145deg,#173e27 0%,#12321f 58%,#0f291a 100%);
    box-shadow:0 20px 50px rgba(19,54,32,.16);
    overflow:hidden;
}
.rs-pdp-summary-card::after {
    content:"";
    position:absolute;
    left:-85px;
    bottom:-100px;
    width:260px;
    height:260px;
    border-radius:50%;
    border:1px solid rgba(184,216,117,.13);
    box-shadow:0 0 0 32px rgba(184,216,117,.035),0 0 0 65px rgba(184,216,117,.025);
    pointer-events:none;
}
.rs-pdp-summary-card > * { position:relative; z-index:1; }

.rs-pdp-summary-topline,
.rs-pdp-rating-row,
.rs-pdp-price-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.rs-pdp-eyebrow {
    display:inline-flex;
    align-items:center;
    min-height:29px;
    padding:5px 10px;
    border:1px solid rgba(255,255,255,.13);
    border-radius:999px;
    color:#d8e9ae;
    background:rgba(255,255,255,.055);
    font-size:10px;
    font-weight:700;
}
.rs-pdp-stock-pill {
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#d9e5dc;
    font-size:10px;
    font-weight:700;
}
.rs-pdp-stock-pill i { width:8px; height:8px; border-radius:50%; background:#e46a55; box-shadow:0 0 0 4px rgba(228,106,85,.12); }
.rs-pdp-stock-pill.is-in-stock i { background:#acd55a; box-shadow:0 0 0 4px rgba(172,213,90,.12); }

.rs-pdp-title-wrap { margin-top:24px; }
.rs-pdp-title-wrap .product_title {
    margin:0!important;
    color:#fff!important;
    font-size:clamp(25px,2.1vw,37px)!important;
    font-weight:900!important;
    line-height:1.55!important;
    letter-spacing:-.02em;
}
.rs-pdp-title-wrap::after {
    content:"";
    display:block;
    width:100%;
    height:1px;
    margin:17px 0 14px;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.16),transparent);
}

.rs-pdp-rating-row { min-height:27px; }
.rs-pdp-stars { display:flex; align-items:center; flex-wrap:wrap; gap:7px; min-width:0; }
.rs-pdp-stars .star-rating { float:none!important; margin:0!important; color:#f2cf64!important; font-size:13px!important; }
.rs-pdp-stars .star-rating::before { color:rgba(255,255,255,.24)!important; }
.rs-pdp-rating-number { color:#fff; font-size:11px; font-weight:800; }
.rs-pdp-review-link { color:#bcd091!important; font-size:10px; text-decoration:none; }
.rs-pdp-no-rating { color:#aebbb1; font-size:10px; }
.rs-pdp-sku { flex:0 0 auto; color:#9faf9f; font-size:10px; }
.rs-pdp-sku b { color:#d8e4da; font-weight:600; }

.rs-pdp-excerpt { margin:16px 0 0; color:#ced8d1; font-size:12px; line-height:2; }
.rs-pdp-excerpt .woocommerce-product-details__short-description { margin:0; }
.rs-pdp-excerpt p { margin:0; }

.rs-pdp-key-specs {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:18px;
}
.rs-pdp-key-spec {
    min-width:0;
    padding:9px 11px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:13px;
    background:rgba(255,255,255,.045);
}
.rs-pdp-key-spec span,
.rs-pdp-key-spec strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rs-pdp-key-spec span { margin-bottom:2px; color:#8fa294; font-size:9px; }
.rs-pdp-key-spec strong { color:#eef5eb; font-size:10px; font-weight:700; }

.rs-pdp-price-row { margin:22px 0 13px; align-items:flex-end; }
.rs-pdp-price .price { margin:0!important; color:#fff!important; font-size:24px!important; font-weight:900!important; line-height:1.3; }
.rs-pdp-price .price del { display:inline-block; margin-left:8px; color:#93a096!important; font-size:13px; opacity:.7!important; font-weight:500; }
.rs-pdp-price .price ins { color:#fff!important; text-decoration:none!important; }
.rs-pdp-price .woocommerce-Price-currencySymbol { color:#d8e8af; font-size:.62em; font-weight:600; }
.rs-pdp-discount-pill {
    flex:0 0 auto;
    padding:6px 9px;
    border-radius:999px;
    color:#ddebba;
    background:rgba(184,216,117,.12);
    font-size:10px;
    font-weight:800;
}

.rs-pdp-buy-area { margin-top:auto; }
.rs-pdp-buy-area form.cart { margin:0!important; }
.rs-pdp-buy-area .stock { margin:0 0 8px!important; color:#cde4a0!important; font-size:10px!important; }
.rs-pdp-buy-area .quantity { float:none!important; display:inline-flex; align-items:center; vertical-align:middle; margin:0 0 0 8px!important; }
.rs-pdp-buy-area .quantity input.qty {
    width:56px!important;
    height:48px!important;
    padding:0 4px!important;
    border:1px solid rgba(255,255,255,.16)!important;
    border-radius:0!important;
    color:#fff!important;
    background:rgba(255,255,255,.045)!important;
    text-align:center!important;
    box-shadow:none!important;
}
.rs-pdp-qty-btn {
    width:42px;
    height:48px;
    padding:0;
    border:1px solid rgba(255,255,255,.16);
    color:#fff;
    background:rgba(255,255,255,.055);
    font-size:19px;
    line-height:1;
}
.rs-pdp-qty-btn--minus { border-radius:0 12px 12px 0; }
.rs-pdp-qty-btn--plus { border-radius:12px 0 0 12px; }
.rs-pdp-buy-area .single_add_to_cart_button,
.rs-pdp-buy-area a.single_add_to_cart_button {
    min-height:48px!important;
    min-width:200px;
    margin:0!important;
    padding:10px 24px!important;
    border:0!important;
    border-radius:13px!important;
    color:#17361f!important;
    background:linear-gradient(135deg,#c4df75,#9fc146)!important;
    box-shadow:0 10px 26px rgba(159,193,70,.18)!important;
    font-size:12px!important;
    font-weight:900!important;
    transition:.2s ease!important;
}
.rs-pdp-buy-area .single_add_to_cart_button:hover { transform:translateY(-1px); background:linear-gradient(135deg,#d0e98a,#acd052)!important; }
.rs-pdp-buy-area .single_add_to_cart_button.disabled { opacity:.5!important; cursor:not-allowed; }

.rs-pdp-buy-area .variations { width:100%!important; margin:0 0 15px!important; border:0!important; }
.rs-pdp-buy-area .variations tr { display:grid; grid-template-columns:110px minmax(0,1fr); gap:10px; align-items:center; margin-bottom:9px; }
.rs-pdp-buy-area .variations th,
.rs-pdp-buy-area .variations td { display:block!important; width:auto!important; padding:0!important; border:0!important; background:none!important; }
.rs-pdp-buy-area .variations label { color:#dce7df; font-size:10px; font-weight:700; }
.rs-pdp-buy-area .variations select {
    width:100%!important;
    min-height:43px;
    padding:6px 12px!important;
    border:1px solid rgba(255,255,255,.15)!important;
    border-radius:11px!important;
    color:#fff!important;
    background:#1b452b!important;
    box-shadow:none!important;
}
.rs-pdp-buy-area .variations select option { color:#1d3425; background:#fff; }
.rs-pdp-buy-area .reset_variations { display:inline-block!important; margin-top:6px; color:#c8da9e!important; font-size:9px!important; }
.rs-pdp-buy-area .single_variation_wrap { margin-top:8px; }
.rs-pdp-buy-area .woocommerce-variation-price { margin:0 0 8px; }
.rs-pdp-buy-area .woocommerce-variation-price .price { color:#fff!important; font-weight:800; }
.rs-pdp-buy-area .woocommerce-variation-description { color:#cbd7ce; font-size:10px; }
.rs-pdp-buy-area .group_table { width:100%; margin-bottom:12px; color:#fff; }
.rs-pdp-buy-area .group_table td { padding:7px 5px; border-color:rgba(255,255,255,.08); }

.rs-pdp-assurances {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
    margin-top:17px;
}
.rs-pdp-assurances > div {
    min-width:0;
    padding:10px 7px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:13px;
    text-align:center;
    background:rgba(255,255,255,.035);
}
.rs-pdp-assurances span { display:grid; place-items:center; width:26px; height:26px; margin:0 auto 5px; border-radius:50%; color:#ddebba; background:rgba(184,216,117,.1); font-size:13px; }
.rs-pdp-assurances strong,.rs-pdp-assurances small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rs-pdp-assurances strong { color:#eff4ef; font-size:9px; }
.rs-pdp-assurances small { margin-top:2px; color:#8fa092; font-size:8px; }

.rs-pdp-meta { margin-top:15px; padding-top:13px; border-top:1px solid rgba(255,255,255,.08); }
.rs-pdp-meta .product_meta { color:#829386; font-size:9px; line-height:2; }
.rs-pdp-meta .product_meta > span { display:inline-block; margin-left:13px; }
.rs-pdp-meta .product_meta a { color:#c4d5c6; text-decoration:none; }
.rs-pdp-meta .product_meta a:hover { color:#d9ebaa; }

.rs-pdp-service-strip {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin:22px 0 0;
    padding:16px 20px;
    border:1px solid rgba(47,111,67,.12);
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 32px rgba(35,70,44,.055);
}
.rs-pdp-service-strip > div { display:flex; align-items:center; gap:12px; min-width:0; }
.rs-pdp-service-icon { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; border-radius:13px; color:#537a19; background:#edf6d8; font-size:18px; }
.rs-pdp-service-strip p { margin:0; min-width:0; }
.rs-pdp-service-strip strong,.rs-pdp-service-strip small { display:block; }
.rs-pdp-service-strip strong { color:#26392c; font-size:11px; }
.rs-pdp-service-strip small { margin-top:2px; color:#738078; font-size:9px; }
.rs-pdp-service-strip > a { flex:0 0 auto; padding:9px 15px; border-radius:11px; color:#fff; background:#315f3f; font-size:10px; font-weight:800; text-decoration:none; }
.rs-pdp-service-strip > a:hover { background:#254c32; color:#fff; }

.rs-pdp-details { margin-top:54px; }
.rs-pdp-section-heading { margin-bottom:18px; text-align:center; }
.rs-pdp-section-heading > span { display:block; margin-bottom:4px; color:#83a924; font-size:10px; font-weight:800; }
.rs-pdp-section-heading h2 { margin:0; color:#263d2d; font-size:clamp(20px,2vw,28px); font-weight:900; }
.rs-pdp-accordion { display:grid; gap:9px; width:min(100%,980px); margin-inline:auto; }
.rs-pdp-detail {
    border:1px solid rgba(47,111,67,.12);
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 26px rgba(34,69,43,.04);
    overflow:hidden;
}
.rs-pdp-detail summary {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:56px;
    gap:15px;
    padding:12px 17px;
    color:#294532;
    cursor:pointer;
    list-style:none;
    font-size:12px;
    font-weight:800;
    user-select:none;
}
.rs-pdp-detail summary::-webkit-details-marker { display:none; }
.rs-pdp-detail summary i { position:relative; width:18px; height:18px; flex:0 0 18px; }
.rs-pdp-detail summary i::before,
.rs-pdp-detail summary i::after { content:""; position:absolute; top:50%; left:50%; width:12px; height:1.5px; border-radius:2px; background:#55735e; transform:translate(-50%,-50%); transition:.18s ease; }
.rs-pdp-detail summary i::after { transform:translate(-50%,-50%) rotate(90deg); }
.rs-pdp-detail[open] summary { color:#416915; background:#f4f8eb; }
.rs-pdp-detail[open] summary i::after { transform:translate(-50%,-50%) rotate(0); }
.rs-pdp-detail__content { padding:18px 20px 22px; border-top:1px solid rgba(47,111,67,.08); color:#4b5c50; font-size:11px; line-height:2.05; }
.rs-pdp-detail__content h2,.rs-pdp-detail__content h3 { color:#2d4b35; font-size:16px; }
.rs-pdp-detail__content p:last-child { margin-bottom:0; }
.rs-pdp-detail__content table { width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid #e2e9df; border-radius:13px; }
.rs-pdp-detail__content table th,.rs-pdp-detail__content table td { padding:11px 12px!important; border:0!important; border-bottom:1px solid #e8eee5!important; text-align:right!important; }
.rs-pdp-detail__content table tr:last-child th,.rs-pdp-detail__content table tr:last-child td { border-bottom:0!important; }
.rs-pdp-detail__content table th { width:32%; color:#36533e; background:#f6f8f3; }

.rs-pdp-detail__content--reviews #reviews { margin:0; }
.rs-pdp-detail__content--reviews #comments { float:none!important; width:100%!important; }
.rs-pdp-detail__content--reviews #review_form_wrapper { float:none!important; width:100%!important; margin-top:22px; }
.rs-pdp-detail__content--reviews #review_form { padding:18px; border-radius:15px; background:#f7f9f5; }
.rs-pdp-detail__content--reviews input,
.rs-pdp-detail__content--reviews textarea,
.rs-pdp-detail__content--reviews select { border:1px solid #dce7d9!important; border-radius:11px!important; background:#fff!important; }
.rs-pdp-detail__content--reviews #respond input#submit { background:#315f3f!important; color:#fff!important; }

.rs-pdp-recommendations { margin-top:62px; }
.rs-pdp-recommendations .upsells.products,
.rs-pdp-recommendations .related.products { margin-top:46px; }
.rs-pdp-recommendations .upsells.products:first-child,
.rs-pdp-recommendations .related.products:first-child { margin-top:0; }
.rs-pdp-recommendations .upsells.products > h2,
.rs-pdp-recommendations .related.products > h2 {
    margin:0 0 20px!important;
    color:#2c4b35!important;
    font-size:22px!important;
    font-weight:900!important;
}
.rs-pdp-recommendations ul.products { grid-template-columns:repeat(4,minmax(0,1fr))!important; }

.rs-pdp-mobile-buy { display:none; }

@media (max-width:1100px) {
    .rs-pdp-hero { grid-template-columns:minmax(0,1fr) minmax(350px,.9fr); }
    .rs-pdp-summary-card { padding:26px 22px 22px; }
    .rs-pdp-gallery-card,.rs-pdp-summary-card { min-height:570px; }
    .rs-pdp-gallery .woocommerce-product-gallery__wrapper { min-height:460px; }
    .rs-pdp-gallery .woocommerce-product-gallery__image img { height:460px!important; max-height:460px; }
}

@media (max-width:900px) {
    body.single-product .rs-page-shell { width:min(calc(100% - 24px),760px); margin-top:20px; }
    .rs-pdp-hero { grid-template-columns:1fr; gap:14px; }
    .rs-pdp-gallery-card,.rs-pdp-summary-card { min-height:auto; }
    .rs-pdp-gallery-card { order:1; }
    .rs-pdp-summary-card { order:2; }
    .rs-pdp-gallery .woocommerce-product-gallery__wrapper { min-height:430px; }
    .rs-pdp-gallery .woocommerce-product-gallery__image img { height:430px!important; max-height:430px; }
    .rs-pdp-recommendations ul.products { grid-template-columns:repeat(3,minmax(0,1fr))!important; }
}

@media (max-width:767.98px) {
    body.single-product { padding-bottom:145px; }
    body.single-product .rs-page-shell { width:calc(100% - 20px); margin:12px auto 50px; }
    .rs-pdp-breadcrumb { margin-bottom:10px; padding-inline:2px; }
    .rs-pdp-breadcrumb .woocommerce-breadcrumb { font-size:9px; }
    .rs-pdp-gallery-card { padding:10px; border-radius:22px; }
    .rs-pdp-gallery-badges { top:13px; right:13px; }
    .rs-pdp-gallery-wishlist { top:11px!important; left:11px!important; width:38px!important; height:38px!important; }
    .rs-pdp-gallery .woocommerce-product-gallery__trigger { top:11px!important; left:57px!important; width:38px!important; height:38px!important; }
    .rs-pdp-gallery .woocommerce-product-gallery__wrapper { min-height:330px; }
    .rs-pdp-gallery .woocommerce-product-gallery__image img { height:330px!important; max-height:330px; padding:18px; }
    .rs-pdp-gallery .flex-control-thumbs { gap:7px; margin-top:2px!important; }
    .rs-pdp-gallery .flex-control-thumbs img { padding:4px; border-radius:12px!important; }

    .rs-pdp-summary-card { padding:22px 17px 18px; border-radius:22px; }
    .rs-pdp-title-wrap { margin-top:18px; }
    .rs-pdp-title-wrap .product_title { font-size:22px!important; line-height:1.65!important; }
    .rs-pdp-rating-row { align-items:flex-start; }
    .rs-pdp-excerpt { font-size:10.5px; }
    .rs-pdp-key-specs { margin-top:14px; gap:6px; }
    .rs-pdp-key-spec { padding:8px 9px; }
    .rs-pdp-price-row { margin-top:18px; }
    .rs-pdp-price .price { font-size:20px!important; }
    .rs-pdp-buy-area .variations tr { grid-template-columns:1fr; gap:4px; }
    .rs-pdp-buy-area .quantity { margin-left:6px!important; }
    .rs-pdp-buy-area .single_add_to_cart_button,
    .rs-pdp-buy-area a.single_add_to_cart_button { min-width:0; width:calc(100% - 145px); padding-inline:10px!important; }
    .rs-pdp-assurances { gap:5px; }
    .rs-pdp-assurances > div { padding:9px 3px; }
    .rs-pdp-assurances strong { font-size:8px; }
    .rs-pdp-assurances small { font-size:7px; }

    .rs-pdp-service-strip { align-items:stretch; flex-direction:column; gap:11px; padding:13px; border-radius:16px; }
    .rs-pdp-service-strip > a { text-align:center; }
    .rs-pdp-details { margin-top:38px; }
    .rs-pdp-section-heading h2 { font-size:19px; line-height:1.7; }
    .rs-pdp-detail summary { min-height:51px; padding:10px 13px; font-size:10.5px; }
    .rs-pdp-detail__content { padding:14px 13px 18px; font-size:10px; }
    .rs-pdp-recommendations { margin-top:42px; }
    .rs-pdp-recommendations .upsells.products > h2,
    .rs-pdp-recommendations .related.products > h2 { font-size:17px!important; }
    .rs-pdp-recommendations ul.products { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px!important; }

    .rs-pdp-mobile-buy {
        position:fixed;
        right:10px;
        left:10px;
        bottom:calc(var(--rs-mobile-bottom-nav-height,72px) + env(safe-area-inset-bottom,0px) + 8px);
        z-index:1185;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        min-height:62px;
        padding:8px 9px 8px 12px;
        border:1px solid rgba(47,111,67,.13);
        border-radius:18px;
        background:rgba(255,255,255,.96);
        box-shadow:0 15px 38px rgba(23,55,34,.18);
        backdrop-filter:blur(14px);
        -webkit-backdrop-filter:blur(14px);
        transform:translateY(120%);
        opacity:0;
        pointer-events:none;
        transition:transform .25s ease,opacity .25s ease;
    }
    .rs-pdp-mobile-buy.is-visible { transform:none; opacity:1; pointer-events:auto; }
    .rs-pdp-mobile-buy__price { min-width:0; color:#263d2e; font-size:11px; font-weight:900; }
    .rs-pdp-mobile-buy__price .price { margin:0!important; }
    .rs-pdp-mobile-buy__price del { display:none; }
    .rs-pdp-mobile-buy__price ins { text-decoration:none; }
    .rs-pdp-mobile-buy button {
        flex:0 0 auto;
        min-width:145px;
        min-height:45px;
        padding:8px 14px;
        border:0;
        border-radius:13px;
        color:#fff;
        background:#315f3f;
        font-size:10px;
        font-weight:900;
    }
}

@media (max-width:380px) {
    .rs-pdp-gallery .woocommerce-product-gallery__wrapper { min-height:290px; }
    .rs-pdp-gallery .woocommerce-product-gallery__image img { height:290px!important; max-height:290px; }
    .rs-pdp-key-specs { grid-template-columns:1fr; }
    .rs-pdp-assurances { grid-template-columns:1fr 1fr 1fr; }
    .rs-pdp-buy-area .single_add_to_cart_button,
    .rs-pdp-buy-area a.single_add_to_cart_button { width:calc(100% - 132px); font-size:10px!important; }
    .rs-pdp-mobile-buy { right:7px; left:7px; }
    .rs-pdp-mobile-buy button { min-width:128px; }
}

@media (prefers-reduced-motion:reduce) {
    .rs-pdp *, .rs-pdp *::before, .rs-pdp *::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; }
}


/* ========================================================================== 
 * Roshd Sabz — Single product refinements 0.6.28
 * ========================================================================== */

/* Desktop: product information on the left, gallery on the right. */
@media (min-width: 901px) {
    .rs-pdp-hero {
        direction: rtl;
        grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    }

    .rs-pdp-gallery-card { grid-column: 1; }
    .rs-pdp-summary-card { grid-column: 2; }
}

/* Gallery thumbs: one horizontal rail, about 5.5 thumbnails visible. */
.rs-pdp-gallery .flex-control-thumbs {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 9px !important;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0 !important;
    padding: 2px 1px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(111,148,22,.45) transparent;
    -webkit-overflow-scrolling: touch;
}

.rs-pdp-gallery .flex-control-thumbs::-webkit-scrollbar { height: 5px; }
.rs-pdp-gallery .flex-control-thumbs::-webkit-scrollbar-track { background: transparent; }
.rs-pdp-gallery .flex-control-thumbs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(111,148,22,.38);
}

.rs-pdp-gallery .flex-control-thumbs li {
    flex: 0 0 calc((100% - 45px) / 5.5) !important;
    width: calc((100% - 45px) / 5.5) !important;
    min-width: 0 !important;
    scroll-snap-align: start;
}

/* Replace vertical accordion with a real one-row tab interface. */
.rs-pdp-tabs {
    width: min(100%, 1080px);
    margin-inline: auto;
    border: 1px solid rgba(47,111,67,.12);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(34,69,43,.055);
    overflow: hidden;
}

.rs-pdp-tab-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid rgba(47,111,67,.10);
    background: #f6f9f2;
    scrollbar-width: thin;
    scrollbar-color: rgba(111,148,22,.36) transparent;
    -webkit-overflow-scrolling: touch;
}

.rs-pdp-tab-list::-webkit-scrollbar { height: 4px; }
.rs-pdp-tab-list::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(111,148,22,.32); }

.rs-pdp-tab-button {
    appearance: none;
    flex: 1 0 max-content;
    min-width: 128px;
    min-height: 46px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #496052;
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.rs-pdp-tab-button:hover,
.rs-pdp-tab-button:focus-visible {
    color: #315f3f;
    border-color: rgba(95,135,34,.16);
    outline: none;
}

.rs-pdp-tab-button.is-active {
    color: #fff;
    border-color: #315f3f;
    background: linear-gradient(135deg,#315f3f,#234c31);
    box-shadow: 0 7px 18px rgba(40,83,51,.16);
}

.rs-pdp-tab-panels { min-height: 180px; }
.rs-pdp-tab-panel {
    display: none;
    padding: 23px 24px 27px;
    border-top: 0 !important;
    background: #fff;
}
.rs-pdp-tab-panel.is-active { display: block; }
.rs-pdp-tab-panel[hidden] { display: none !important; }

/* The WooCommerce review anchor lives inside its tab panel. */
.rs-pdp-tab-panel #reviews { scroll-margin-top: 120px; }

@media (max-width: 900px) {
    /* Mobile/tablet stays image first, information second. */
    .rs-pdp-gallery-card { order: 1; }
    .rs-pdp-summary-card { order: 2; }

    .rs-pdp-gallery .flex-control-thumbs li {
        flex-basis: calc((100% - 32px) / 5.5) !important;
        width: calc((100% - 32px) / 5.5) !important;
    }
}

@media (max-width: 767.98px) {
    .rs-pdp-gallery .flex-control-thumbs {
        gap: 6px !important;
        padding-bottom: 6px !important;
    }

    .rs-pdp-gallery .flex-control-thumbs li {
        flex-basis: calc((100% - 24px) / 5.5) !important;
        width: calc((100% - 24px) / 5.5) !important;
    }

    .rs-pdp-tab-list {
        justify-content: flex-start;
        padding: 6px;
    }

    .rs-pdp-tab-button {
        flex: 0 0 auto;
        min-width: 112px;
        min-height: 43px;
        padding: 8px 13px;
        font-size: 9.5px;
    }

    .rs-pdp-tab-panel {
        padding: 16px 14px 20px;
    }

    /* Simple and variable products: quantity + cart button stay in one row. */
    .rs-pdp-buy-area form.cart:not(.variations_form):not(.grouped_form),
    .rs-pdp-buy-area .woocommerce-variation-add-to-cart.variations_button {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 7px !important;
        width: 100%;
    }

    .rs-pdp-buy-area form.cart:not(.variations_form):not(.grouped_form) .quantity,
    .rs-pdp-buy-area .woocommerce-variation-add-to-cart.variations_button .quantity {
        flex: 0 0 124px !important;
        width: 124px !important;
        margin: 0 !important;
    }

    .rs-pdp-buy-area form.cart:not(.variations_form):not(.grouped_form) .single_add_to_cart_button,
    .rs-pdp-buy-area .woocommerce-variation-add-to-cart.variations_button .single_add_to_cart_button {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .rs-pdp-buy-area form.cart:not(.variations_form):not(.grouped_form) > a.single_add_to_cart_button {
        flex: 1 1 auto !important;
        width: auto !important;
    }
}

@media (max-width: 380px) {
    .rs-pdp-buy-area form.cart:not(.variations_form):not(.grouped_form) .quantity,
    .rs-pdp-buy-area .woocommerce-variation-add-to-cart.variations_button .quantity {
        flex-basis: 112px !important;
        width: 112px !important;
    }
}


/* ==========================================================================
 * Roshd Sabz 0.6.30 — swipe/drag product gallery + related carousels
 * ========================================================================== */

/* ----- Main image drag/swipe ----- */
.rs-pdp-gallery .flex-viewport {
    cursor: grab;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
}

.rs-pdp-gallery .flex-viewport.is-pointer-down,
.rs-pdp-gallery .flex-viewport.is-dragging {
    cursor: grabbing;
}

.rs-pdp-gallery .flex-viewport.is-dragging,
.rs-pdp-gallery .flex-viewport.is-dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
}

.rs-pdp-gallery .woocommerce-product-gallery__image > a {
    cursor: zoom-in;
}

.rs-pdp-gallery .woocommerce-product-gallery__image img {
    -webkit-user-drag: none;
    user-select: none;
}

/* ----- Thumbnail drag rail ----- */
.rs-pdp-gallery .flex-control-thumbs {
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.rs-pdp-gallery .flex-control-thumbs.is-pointer-down,
.rs-pdp-gallery .flex-control-thumbs.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.rs-pdp-gallery .flex-control-thumbs.is-dragging img {
    pointer-events: none;
}

/* ----- Upsells + related products become horizontal carousels ----- */
.rs-pdp-recommendations .rs-pdp-product-carousel {
    position: relative;
    width: 100%;
    margin-top: 48px;
    overflow: hidden;
}

.rs-pdp-recommendations .rs-pdp-product-carousel:first-child {
    margin-top: 0;
}

.rs-pdp-product-carousel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.rs-pdp-recommendations .rs-pdp-product-carousel__head > h2 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
}

.rs-pdp-product-carousel__nav {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    direction: rtl;
}

.rs-pdp-product-carousel__arrow {
    display: inline-grid;
    place-items: center;
    width: 39px;
    height: 39px;
    padding: 0;
    border: 1px solid rgba(59, 104, 57, .16);
    border-radius: 12px;
    background: #fff;
    color: #315f3f;
    font: inherit;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(34, 70, 43, .055);
    transition:
        transform .18s ease,
        background-color .18s ease,
        color .18s ease,
        border-color .18s ease;
}

.rs-pdp-product-carousel__arrow:hover,
.rs-pdp-product-carousel__arrow:focus-visible {
    border-color: #739d20;
    background: #739d20;
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.woocommerce .rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track,
.rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 2px 2px 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(111, 148, 22, .40) transparent;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
}

.rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track::-webkit-scrollbar {
    height: 5px;
}

.rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track::-webkit-scrollbar-track {
    background: transparent;
}

.rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(111, 148, 22, .35);
}

.rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track.is-pointer-down,
.rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track.is-dragging a,
.rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track.is-dragging button {
    pointer-events: none;
}

.woocommerce .rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track > li.product,
.rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track > li.product {
    float: none !important;
    clear: none !important;
    flex: 0 0 calc((100% - 42px) / 4.15) !important;
    width: calc((100% - 42px) / 4.15) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    scroll-snap-align: start;
}

.rs-pdp-recommendations .rs-product-card {
    height: 100%;
}

@media (max-width: 1100px) {
    .woocommerce .rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track > li.product,
    .rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track > li.product {
        flex-basis: calc((100% - 28px) / 3.15) !important;
        width: calc((100% - 28px) / 3.15) !important;
    }
}

@media (max-width: 767.98px) {
    .rs-pdp-product-carousel__head {
        gap: 10px;
        margin-bottom: 13px;
    }

    .rs-pdp-product-carousel__nav {
        gap: 5px;
    }

    .rs-pdp-product-carousel__arrow {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 15px;
    }

    .woocommerce .rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track,
    .rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track {
        gap: 10px !important;
        padding-bottom: 8px !important;
    }

    .woocommerce .rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track > li.product,
    .rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track > li.product {
        flex: 0 0 calc((100% - 10px) / 2.18) !important;
        width: calc((100% - 10px) / 2.18) !important;
    }
}

@media (max-width: 390px) {
    .woocommerce .rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track > li.product,
    .rs-pdp-recommendations ul.products.rs-pdp-product-carousel__track > li.product {
        flex-basis: calc((100% - 8px) / 2.08) !important;
        width: calc((100% - 8px) / 2.08) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-pdp-product-carousel__arrow {
        transition: none !important;
    }
}

/* ========================================================================== 
 * Roshd Sabz — Single product page 0.6.31 adjustments
 * Fix gallery swipe/fullscreen + related carousel + lighter summary palette
 * ========================================================================== */

/* --- Summary card closer to site palette --- */
.rs-pdp-summary-card {
    color: #294532 !important;
    background:
        radial-gradient(circle at 86% 8%, rgba(178, 210, 96, .18), transparent 15rem),
        linear-gradient(180deg, #fbfdf7 0%, #f3f8eb 100%) !important;
    border: 1px solid rgba(116, 154, 33, .18);
    box-shadow: 0 16px 42px rgba(58, 95, 63, .10) !important;
}

.rs-pdp-summary-card::after {
    border-color: rgba(138, 176, 51, .18) !important;
    box-shadow: 0 0 0 32px rgba(161, 196, 71, .05), 0 0 0 64px rgba(161, 196, 71, .03) !important;
}

.rs-pdp-title-wrap .product_title,
.rs-pdp-rating-number,
.rs-pdp-price .price,
.rs-pdp-buy-area .woocommerce-variation-price .price {
    color: #274735 !important;
}

.rs-pdp-title-wrap::after {
    background: linear-gradient(90deg, transparent, rgba(76, 108, 60, .18), transparent) !important;
}

.rs-pdp-eyebrow {
    color: #5c7b19 !important;
    border-color: rgba(116, 154, 33, .22) !important;
    background: rgba(170, 204, 79, .08) !important;
}

.rs-pdp-stock-pill,
.rs-pdp-sku,
.rs-pdp-excerpt,
.rs-pdp-excerpt .woocommerce-product-details__short-description,
.rs-pdp-buy-area .woocommerce-variation-description,
.rs-pdp-buy-area .variations label,
.rs-pdp-meta .product_meta,
.rs-pdp-key-spec span,
.rs-pdp-assurances small,
.rs-pdp-no-rating {
    color: #617365 !important;
}

.rs-pdp-sku b,
.rs-pdp-meta .product_meta a,
.rs-pdp-key-spec strong,
.rs-pdp-assurances strong {
    color: #2d4738 !important;
}

.rs-pdp-review-link,
.rs-pdp-buy-area .reset_variations,
.rs-pdp-price .woocommerce-Price-currencySymbol {
    color: #84a52b !important;
}

.rs-pdp-stars .star-rating::before {
    color: rgba(67, 101, 75, .18) !important;
}

.rs-pdp-key-spec,
.rs-pdp-assurances > div {
    border-color: rgba(118, 152, 39, .14) !important;
    background: rgba(255, 255, 255, .72) !important;
}

.rs-pdp-discount-pill {
    color: #517417 !important;
    background: rgba(162, 201, 64, .16) !important;
}

.rs-pdp-price .price del {
    color: #869385 !important;
    opacity: .9 !important;
}

.rs-pdp-buy-area .stock {
    color: #6f931e !important;
}

.rs-pdp-buy-area .quantity input.qty {
    border-color: rgba(117, 151, 40, .18) !important;
    color: #274735 !important;
    background: #fff !important;
}

.rs-pdp-qty-btn {
    border-color: rgba(117, 151, 40, .18) !important;
    color: #31583f !important;
    background: rgba(255, 255, 255, .92) !important;
}

.rs-pdp-buy-area .single_add_to_cart_button,
.rs-pdp-buy-area a.single_add_to_cart_button {
    color: #fff !important;
    background: linear-gradient(135deg, #a6c74a, #7ea826) !important;
    box-shadow: 0 10px 24px rgba(126, 168, 38, .22) !important;
}

.rs-pdp-buy-area .single_add_to_cart_button:hover,
.rs-pdp-buy-area a.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #b5d359, #87b028) !important;
}

.rs-pdp-buy-area .variations select {
    border-color: rgba(117, 151, 40, .16) !important;
    color: #274735 !important;
    background: #fff !important;
}

.rs-pdp-meta {
    border-top-color: rgba(117, 151, 40, .12) !important;
}

/* --- Gallery improvements --- */
.rs-pdp-gallery .woocommerce-product-gallery__image > a,
.rs-pdp-gallery .woocommerce-product-gallery__image img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.rs-pdp-gallery .flex-viewport {
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y pinch-zoom;
}

.rs-pdp-gallery .flex-viewport.is-pointer-down,
.rs-pdp-gallery .flex-viewport.is-dragging {
    cursor: grabbing;
}

.rs-pdp-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin-top: 10px !important;
    padding-bottom: 2px !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.rs-pdp-gallery .flex-control-thumbs li {
    flex: 0 0 calc((100% - 45px) / 5.5) !important;
    width: calc((100% - 45px) / 5.5) !important;
    min-width: calc((100% - 45px) / 5.5) !important;
    scroll-snap-align: start;
}

.rs-pdp-gallery .flex-control-thumbs.is-pointer-down,
.rs-pdp-gallery .flex-control-thumbs.is-dragging {
    cursor: grabbing;
}

.rs-pdp-gallery .flex-control-thumbs::-webkit-scrollbar {
    height: 5px;
}

.rs-pdp-gallery .flex-control-thumbs::-webkit-scrollbar-thumb {
    background: rgba(126, 168, 38, .35);
    border-radius: 999px;
}

@media (max-width: 767.98px) {
    .rs-pdp-gallery .flex-control-thumbs li {
        flex-basis: calc((100% - 28px) / 4.6) !important;
        width: calc((100% - 28px) / 4.6) !important;
        min-width: calc((100% - 28px) / 4.6) !important;
    }
}

/* --- Lightbox --- */
body.rs-pdp-lightbox-open {
    overflow: hidden;
}

.rs-pdp-lightbox[hidden] {
    display: none !important;
}

.rs-pdp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.rs-pdp-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 21, 16, .82);
    backdrop-filter: blur(5px);
}

.rs-pdp-lightbox__dialog {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 70px;
    align-items: center;
    gap: 10px;
    padding: 24px;
    direction: ltr;
}

.rs-pdp-lightbox__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.rs-pdp-lightbox__image {
    display: block;
    max-width: min(100%, 1200px);
    max-height: calc(100vh - 90px);
    width: auto;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
    background: #fff;
}

.rs-pdp-lightbox__counter {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 24, 18, .65);
    font-size: 13px;
    font-weight: 700;
    direction: rtl;
}

.rs-pdp-lightbox__close,
.rs-pdp-lightbox__nav {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
    cursor: pointer;
}

.rs-pdp-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    font-size: 28px;
    line-height: 1;
}

.rs-pdp-lightbox__nav span {
    font-size: 20px;
    line-height: 1;
}

.rs-pdp-lightbox__close:hover,
.rs-pdp-lightbox__nav:hover,
.rs-pdp-lightbox__close:focus-visible,
.rs-pdp-lightbox__nav:focus-visible {
    background: rgba(166, 199, 74, .24);
    border-color: rgba(166, 199, 74, .42);
    outline: none;
}

@media (max-width: 767.98px) {
    .rs-pdp-lightbox__dialog {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        padding: 16px 10px 20px;
    }

    .rs-pdp-lightbox__image {
        max-height: calc(100vh - 110px);
        border-radius: 16px;
    }

    .rs-pdp-lightbox__close,
    .rs-pdp-lightbox__nav {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .rs-pdp-lightbox__counter {
        right: 10px;
        bottom: 10px;
        font-size: 11px;
    }
}

/* --- Related / upsell products: force one-row carousel even before JS enhancement --- */
.rs-pdp-recommendations .upsells.products,
.rs-pdp-recommendations .related.products {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.woocommerce .rs-pdp-recommendations .upsells.products ul.products,
.woocommerce .rs-pdp-recommendations .related.products ul.products,
.rs-pdp-recommendations .upsells.products ul.products,
.rs-pdp-recommendations .related.products ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 2px 2px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(126, 168, 38, .35) transparent;
}

.woocommerce .rs-pdp-recommendations .upsells.products ul.products > li.product,
.woocommerce .rs-pdp-recommendations .related.products ul.products > li.product,
.rs-pdp-recommendations .upsells.products ul.products > li.product,
.rs-pdp-recommendations .related.products ul.products > li.product {
    float: none !important;
    clear: none !important;
    flex: 0 0 calc((100% - 42px) / 4.15) !important;
    width: calc((100% - 42px) / 4.15) !important;
    min-width: calc((100% - 42px) / 4.15) !important;
    max-width: none !important;
    margin: 0 !important;
    scroll-snap-align: start;
}

@media (max-width: 1100px) {
    .woocommerce .rs-pdp-recommendations .upsells.products ul.products > li.product,
    .woocommerce .rs-pdp-recommendations .related.products ul.products > li.product,
    .rs-pdp-recommendations .upsells.products ul.products > li.product,
    .rs-pdp-recommendations .related.products ul.products > li.product {
        flex-basis: calc((100% - 28px) / 3.15) !important;
        width: calc((100% - 28px) / 3.15) !important;
        min-width: calc((100% - 28px) / 3.15) !important;
    }
}

@media (max-width: 767.98px) {
    .woocommerce .rs-pdp-recommendations .upsells.products ul.products,
    .woocommerce .rs-pdp-recommendations .related.products ul.products,
    .rs-pdp-recommendations .upsells.products ul.products,
    .rs-pdp-recommendations .related.products ul.products {
        gap: 10px !important;
    }

    .woocommerce .rs-pdp-recommendations .upsells.products ul.products > li.product,
    .woocommerce .rs-pdp-recommendations .related.products ul.products > li.product,
    .rs-pdp-recommendations .upsells.products ul.products > li.product,
    .rs-pdp-recommendations .related.products ul.products > li.product {
        flex-basis: calc((100% - 10px) / 2.18) !important;
        width: calc((100% - 10px) / 2.18) !important;
        min-width: calc((100% - 10px) / 2.18) !important;
    }
}

/* ========================================================================== 
 * Roshd Sabz 0.6.34 — independent product gallery + smoother related carousel
 * ========================================================================== */

.rs-pdp-gallery {
    display: grid;
    gap: 12px;
    height: auto !important;
}

.rs-pdp-main-media {
    position: relative;
    min-height: 510px;
    padding: 18px;
    border: 1px solid rgba(111, 148, 22, .12);
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
    overflow: hidden;
}

.rs-pdp-main-image-button {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 472px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    cursor: zoom-in;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
}

.rs-pdp-main-image-button.is-pointer-down,
.rs-pdp-main-image-button.is-dragging {
    cursor: grabbing;
}

.rs-pdp-main-image {
    display: block;
    width: 100%;
    height: 472px;
    max-height: 472px;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    transition: opacity .22s ease, transform .22s ease;
    -webkit-user-drag: none;
    user-select: none;
}

.rs-pdp-main-image.is-changing {
    opacity: .28;
    transform: scale(.985);
}

.rs-pdp-main-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(84, 119, 51, .16);
    border-radius: 50%;
    color: #315f3f;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 20px rgba(45, 79, 52, .10);
    cursor: pointer;
    transform: translateY(-50%);
}

.rs-pdp-main-nav--prev { right: 16px; }
.rs-pdp-main-nav--next { left: 16px; }

.rs-pdp-main-nav:hover,
.rs-pdp-main-nav:focus-visible {
    color: #fff;
    background: #8caf2d;
    outline: none;
}

.rs-pdp-main-counter {
    position: absolute;
    right: 16px;
    bottom: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #315f3f;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 5px 16px rgba(45, 79, 52, .07);
    font-size: 10px;
    font-weight: 800;
    direction: rtl;
}

/* Thumbnail gallery is intentionally a separate visual card from main image. */
.rs-pdp-thumb-gallery {
    padding: 9px;
    border: 1px solid rgba(111, 148, 22, .12);
    border-radius: 18px;
    background: #f9fbf6;
    box-shadow: 0 6px 18px rgba(47, 77, 46, .04);
    overflow: hidden;
}

.rs-pdp-thumb-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    padding: 1px 1px 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: rgba(117, 157, 32, .35) transparent;
}

.rs-pdp-thumb-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rs-pdp-thumb-track::-webkit-scrollbar { height: 4px; }
.rs-pdp-thumb-track::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(117, 157, 32, .30); }

.rs-pdp-thumb {
    flex: 0 0 calc((100% - 36px) / 5.5);
    width: calc((100% - 36px) / 5.5);
    min-width: calc((100% - 36px) / 5.5);
    aspect-ratio: 1 / 1;
    padding: 4px;
    border: 1px solid rgba(82, 117, 54, .12);
    border-radius: 13px;
    background: #fff;
    opacity: .72;
    cursor: pointer;
    scroll-snap-align: center;
    transition: opacity .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.rs-pdp-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 9px;
    pointer-events: none;
}

.rs-pdp-thumb:hover,
.rs-pdp-thumb.is-active {
    opacity: 1;
    border-color: #8cad2e;
    box-shadow: 0 6px 16px rgba(91, 127, 38, .10);
    transform: translateY(-1px);
}

/* Full-screen gallery. */
body.rs-pdp-lightbox-open { overflow: hidden !important; }
.rs-pdp-lightbox[hidden] { display: none !important; }
.rs-pdp-lightbox { position: fixed; inset: 0; z-index: 2147483640; }
.rs-pdp-lightbox__backdrop { position: absolute; inset: 0; background: rgba(13, 23, 16, .88); backdrop-filter: blur(5px); }
.rs-pdp-lightbox__dialog {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 10px;
    padding: 22px;
    direction: ltr;
}
.rs-pdp-lightbox__stage { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; height: 100%; }
.rs-pdp-lightbox__image {
    display: block;
    max-width: min(100%, 1280px);
    max-height: calc(100dvh - 72px);
    width: auto;
    height: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 72px rgba(0, 0, 0, .30);
    opacity: .25;
    transform: scale(.985);
    transition: opacity .18s ease, transform .18s ease;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-drag: none;
}
.rs-pdp-lightbox__image.is-ready { opacity: 1; transform: none; }
.rs-pdp-lightbox__counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(21, 38, 27, .70);
    font-size: 11px;
    font-weight: 800;
    direction: rtl;
}
.rs-pdp-lightbox__close,
.rs-pdp-lightbox__nav {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
}
.rs-pdp-lightbox__close { position: absolute; top: 18px; right: 18px; z-index: 3; font-size: 26px; }
.rs-pdp-lightbox__nav:hover,
.rs-pdp-lightbox__close:hover { background: rgba(149, 187, 61, .28); }

/* Price digits must stay readable on the light product summary card. */
.rs-pdp-price .woocommerce-Price-amount,
.rs-pdp-price .woocommerce-Price-amount bdi,
.rs-pdp-price .woocommerce-Price-currencySymbol,
.rs-pdp-mobile-buy__price .woocommerce-Price-amount,
.rs-pdp-mobile-buy__price .woocommerce-Price-amount bdi,
.rs-pdp-mobile-buy__price .woocommerce-Price-currencySymbol {
    color: #315f3f !important;
}

/* Related/Upsell carousels: native touch momentum + smooth snapping on mobile. */
.woocommerce .rs-pdp-recommendations .upsells.products ul.products,
.woocommerce .rs-pdp-recommendations .related.products ul.products,
.rs-pdp-recommendations .upsells.products ul.products,
.rs-pdp-recommendations .related.products ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
}
.woocommerce .rs-pdp-recommendations .upsells.products ul.products::-webkit-scrollbar,
.woocommerce .rs-pdp-recommendations .related.products ul.products::-webkit-scrollbar { display: none; }
.woocommerce .rs-pdp-recommendations .upsells.products ul.products > li.product,
.woocommerce .rs-pdp-recommendations .related.products ul.products > li.product,
.rs-pdp-recommendations .upsells.products ul.products > li.product,
.rs-pdp-recommendations .related.products ul.products > li.product {
    float: none !important;
    clear: none !important;
    flex: 0 0 calc((100% - 36px) / 4.2) !important;
    width: calc((100% - 36px) / 4.2) !important;
    min-width: calc((100% - 36px) / 4.2) !important;
    margin: 0 !important;
    scroll-snap-align: start;
}

@media (max-width: 900px) {
    .rs-pdp-main-media { min-height: 420px; }
    .rs-pdp-main-image-button { min-height: 382px; }
    .rs-pdp-main-image { height: 382px; max-height: 382px; }
}

@media (max-width: 767.98px) {
    .rs-pdp-main-media { min-height: 330px; padding: 10px; border-radius: 18px; }
    .rs-pdp-main-image-button { min-height: 308px; border-radius: 15px; }
    .rs-pdp-main-image { height: 308px; max-height: 308px; border-radius: 14px; }
    .rs-pdp-main-nav { width: 36px; height: 36px; }
    .rs-pdp-main-nav--prev { right: 9px; }
    .rs-pdp-main-nav--next { left: 9px; }
    .rs-pdp-main-counter { right: 10px; bottom: 9px; font-size: 9px; }
    .rs-pdp-thumb-gallery { padding: 7px; border-radius: 15px; }
    .rs-pdp-thumb-track { gap: 7px; scroll-snap-type: x proximity; }
    .rs-pdp-thumb { flex-basis: calc((100% - 24px) / 4.45); width: calc((100% - 24px) / 4.45); min-width: calc((100% - 24px) / 4.45); border-radius: 11px; }

    .rs-pdp-lightbox__dialog { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 5px; padding: 12px 7px 16px; }
    .rs-pdp-lightbox__image { max-height: calc(100dvh - 80px); border-radius: 14px; }
    .rs-pdp-lightbox__close,
    .rs-pdp-lightbox__nav { width: 38px; height: 38px; border-radius: 11px; }
    .rs-pdp-lightbox__close { top: 10px; right: 10px; }

    .woocommerce .rs-pdp-recommendations .upsells.products ul.products,
    .woocommerce .rs-pdp-recommendations .related.products ul.products,
    .rs-pdp-recommendations .upsells.products ul.products,
    .rs-pdp-recommendations .related.products ul.products {
        gap: 9px !important;
        padding-inline: 2px !important;
        scroll-padding-inline: 2px;
    }
    .woocommerce .rs-pdp-recommendations .upsells.products ul.products > li.product,
    .woocommerce .rs-pdp-recommendations .related.products ul.products > li.product,
    .rs-pdp-recommendations .upsells.products ul.products > li.product,
    .rs-pdp-recommendations .related.products ul.products > li.product {
        flex-basis: calc((100% - 9px) / 2.15) !important;
        width: calc((100% - 9px) / 2.15) !important;
        min-width: calc((100% - 9px) / 2.15) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-pdp-main-image,
    .rs-pdp-lightbox__image,
    .rs-pdp-thumb { transition: none !important; }
    .rs-pdp-thumb-track,
    .rs-pdp-recommendations ul.products { scroll-behavior: auto !important; }
}

/* ========================================================================== 
 * Roshd Sabz 0.6.35 — stable product gallery rail + desktop mouse drag
 * ========================================================================== */
.rs-pdp-gallery,
.rs-pdp-main-media,
.rs-pdp-thumb-gallery,
.rs-pdp-thumb-track {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.rs-pdp-main-media,
.rs-pdp-thumb-gallery {
    contain: layout paint;
}

.rs-pdp-main-image-button,
.rs-pdp-main-image,
.rs-pdp-thumb,
.rs-pdp-thumb img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Keep thumbnail scrolling fully local to the thumbnail card. */
.rs-pdp-thumb-track {
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    cursor: grab;
}

.rs-pdp-thumb-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.rs-pdp-thumb-track.is-dragging .rs-pdp-thumb {
    cursor: grabbing;
}

.rs-pdp-thumb-track.is-dragging .rs-pdp-thumb img {
    pointer-events: none;
}

/* The card itself must never shift as the active thumbnail reaches either end. */
.rs-pdp-gallery-card {
    min-width: 0;
    max-width: 100%;
    isolation: isolate;
}

@media (min-width: 768px) {
    .rs-pdp-main-image-button {
        cursor: grab;
    }

    .rs-pdp-main-image-button.is-pointer-down,
    .rs-pdp-main-image-button.is-dragging {
        cursor: grabbing;
    }
}

@media (max-width: 767.98px) {
    .rs-pdp-thumb-track {
        touch-action: pan-x pan-y;
    }
}
