/* Product page */
.single-product .site-main { margin-top: 0; margin-bottom: 0; }
.single-product .site-main .inside-article { padding: 8px var(--rb-gutter) 0; }
.rb-pp { padding: 4px 0 32px; }
.rb-buy__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: relative; }
.rb-share { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 8px 12px; border: 1px solid var(--rb-line); border-radius: 999px; background: #fff; color: var(--rb-text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.rb-share:hover { border-color: var(--rb-accent); color: var(--rb-accent-dark); }
.rb-share .rb-icon { width: 18px; height: 18px; }
.rb-share__menu { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.rb-share__menu a, .rb-share__menu button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--rb-line); border-radius: 999px; background: var(--rb-bg-2); color: var(--rb-text); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.rb-share__menu .rb-icon { width: 18px; height: 18px; color: var(--rb-accent-dark); }
.rb-share__menu .is-done { border-color: var(--rb-accent); background: var(--rb-accent-soft); }
.rb-pp__top { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .rb-pp__top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; } .rb-pp__top .rb-gal { position: sticky; top: calc(var(--rb-header-h, 0px) + 12px); } }

/* gallery */
.rb-gal { position: relative; min-width: 0; }
.rb-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; background: var(--rb-bg-2); aspect-ratio: 1; }
.rb-gal__track::-webkit-scrollbar { display: none; }
.rb-gal__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; cursor: zoom-in; }
.rb-gal__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rb-gal__badge { top: 12px; left: 12px; font-size: 14px; }
.rb-gal__nav { position: absolute; top: calc(50% - 60px); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--rb-text); box-shadow: var(--rb-shadow); cursor: pointer; }
.rb-gal__nav:hover { background: #fff; color: var(--rb-text); }
.rb-gal__nav.is-prev { left: 10px; transform: scaleX(-1); }
.rb-gal__nav.is-next { right: 10px; }
.rb-gal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.rb-gal__thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--rb-bg-2); cursor: pointer; }
.rb-gal__thumbs button[aria-selected=true] { border-color: var(--rb-accent); }
.rb-gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .rb-gal { margin-inline: calc(var(--rb-gutter) * -1); } .rb-gal__track { border-radius: 0; } .rb-gal__nav { display: none; } .rb-gal__thumbs { padding-inline: var(--rb-gutter); } }

/* buy box */
.rb-buy { display: grid; gap: 14px; min-width: 0; }
.rb-buy__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; }
@media (max-width: 767px) { .rb-buy__title { font-size: 21px; } }
.rb-buy__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--rb-text-2); }
.rb-buy__meta .rb-stars { text-decoration: none; }
.rb-seller { display: inline-flex; align-items: center; gap: 6px; }
.rb-seller a { display: inline-flex; align-items: center; gap: 6px; color: var(--rb-accent-dark); text-decoration: none; }
.rb-seller img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.rb-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.rb-buy__price ins { text-decoration: none; font-size: 30px; font-weight: 800; color: var(--rb-accent-dark); line-height: 1.1; }
.rb-buy__price del { font-size: 17px; color: var(--rb-text-2); }
.rb-save { padding: 3px 10px; border-radius: 99px; background: #fee2e2; color: var(--rb-sale); font-size: 13px; font-weight: 700; }
.rb-buy__from { flex-basis: 100%; color: var(--rb-text-2); }
.rb-buy__short { color: var(--rb-text-2); font-size: 15px; }
.rb-buy__short p { margin: 0 0 6px; }
.rb-buy__short ul { margin: 0; padding-left: 20px; }
.rb-pick { margin: 0; padding: 0; border: 0; }
.rb-pick legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 15px; }
.rb-pick legend b { color: var(--rb-accent-dark); }
.rb-pick__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-pick__opt { min-width: 48px; padding: 10px 14px; border: 1.5px solid var(--rb-line); border-radius: 10px; background: #fff; color: var(--rb-text); font-size: 15px; font-weight: 600; cursor: pointer; }
.rb-pick__opt:hover { border-color: var(--rb-accent); background: #fff; color: var(--rb-text); }
.rb-pick__opt[aria-pressed=true] { border-color: var(--rb-accent); background: var(--rb-accent); color: #fff; }
.rb-pick__opt:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.rb-buy__stock { margin: 0; color: var(--rb-sale); font-weight: 600; font-size: 14px; }
.rb-buy__msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: 14px; }
.rb-buy__row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.rb-qty--lg button { width: 44px; height: 50px; font-size: 20px; }
.rb-qty--lg output { min-width: 40px; font-size: 17px; }
.rb-buy__add { min-height: 52px; font-size: 16px; border-radius: 12px; }
.rb-buy__now { min-height: 54px; font-size: 17px !important; border-radius: 12px !important; }
.rb-buy__oos { margin: 0; padding: 12px; border-radius: 10px; background: var(--rb-bg-2); font-weight: 600; }
.rb-ship { padding: 14px 16px; border: 1px solid var(--rb-line); border-radius: 12px; background: var(--rb-bg-2); font-size: 14px; }
.rb-ship__h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; }
.rb-ship__h .rb-icon { color: var(--rb-accent); }
.rb-ship ul { margin: 0 0 8px; padding: 0; list-style: none; }
.rb-ship li { display: flex; justify-content: space-between; padding: 3px 0; }
.rb-ship small { color: var(--rb-text-2); }
.rb-ship__cod { margin: 0; color: var(--rb-text-2); }

/* info sections */
.rb-pp__info { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 900px) { .rb-pp__info { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } .rb-pp__desc { grid-row: span 2; } }
.rb-prose { font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.rb-prose img { border-radius: 10px; }
.rb-prose table { width: 100%; border-collapse: collapse; }
.rb-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.rb-specs, .rb-specs th, .rb-specs td { border-left: 0; border-right: 0; border-top: 0; }
.rb-specs th, .rb-specs td { padding: 9px 10px; border-bottom: 1px solid var(--rb-bg-3); text-align: left; vertical-align: top; }
.rb-specs th { width: 42%; color: var(--rb-text-2); font-weight: 600; }
.rb-pp__reviews .woocommerce-Reviews-title, .rb-pp__reviews #reply-title { font-size: 17px; margin: 0 0 12px; }
.rb-pp__reviews ol.commentlist { margin: 0; padding: 0; list-style: none; }
.rb-pp__reviews .comment_container { padding: 10px 0; border-bottom: 1px solid var(--rb-bg-3); }
.rb-pp__reviews .avatar { display: none; }
.rb-pp__reviews textarea, .rb-pp__reviews input[type=text], .rb-pp__reviews input[type=email] { width: 100%; padding: 10px 12px; border: 1px solid #d4d4d8; border-radius: 10px; }
.rb-section-h { margin: 36px 0 14px; font-size: 22px; font-weight: 800; }

/* sticky bar + lightbox */
.rb-sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rb-line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
.rb-sticky-buy__price { font-size: 20px; font-weight: 800; color: var(--rb-accent-dark); }
.rb-sticky-buy .rb-pill { border: 0; padding: 12px 28px; font-size: 16px; cursor: pointer; }
@media (min-width: 900px) { .rb-sticky-buy { display: none !important; } }
.rb-lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #000; }
.rb-lightbox::backdrop { background: #000; }
.rb-lightbox__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.rb-lightbox__track figure { flex: 0 0 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: start; overflow: auto; touch-action: pan-x pan-y pinch-zoom; }
.rb-lightbox__track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rb-lightbox__x { position: fixed; top: 10px; right: 10px; z-index: 2; background: rgba(255, 255, 255, .9); }
/* promise list under the buy buttons */
.rb-assure { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--rb-text-2); }
.rb-assure li { position: relative; padding-left: 24px; }
.rb-assure li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--rb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/10px no-repeat; }
@media (max-width: 767px) { .single-product .site-main .inside-article { padding-top: 0; } .rb-pp { padding-top: 0; } }
