@import url('mythemesdefault.css?v=20261009-accessible-coral');

/* Cart feedback uses the same action hierarchy on desktop and small screens. */
.product-cart-info .Alertbuttons { align-items:stretch; }
.product-cart-info .cart-preview-action { min-height:46px;white-space:normal; }
.product-cart-info .cart-preview-action:focus-visible { outline:2px solid var(--ColorInputFocus);outline-offset:3px; }
.SellerinfoButtons .product-seller-actions { display:flex; flex-wrap:wrap; gap:10px; width:100%; }
.product-seller-actions>.my-btn-ouline { display:inline-flex; align-items:center; justify-content:center; gap:8px; flex:1 1 145px; min-height:44px; padding:10px 14px; text-align:center; text-decoration:none; font-size:14px; }
.product-seller-apply:focus-visible { outline:2px solid var(--ColorInputFocus); outline-offset:3px; }
.product-purchase-options { display:none; }
@media(max-width:420px) {
    .product-cart-info .Alertbuttons { flex-direction:column-reverse; }
    .product-cart-info .Alertbuttons>div { flex:auto;width:100%; }
}

.hideproductID {
    display: none;
}

/* Every option has a text label; selection never depends on colour alone. */
.product-price-block { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 0; border-bottom: 1px solid #ecebea; }
.product-price-amount { min-width: 0; flex: 1 1 140px; }
/* Price-side graphic: a cut ribbon, lightning illustration and quiet countdown. */
.product-price-block .flash-deal-timer--detail {
    position: relative; top: auto; right: auto; flex: 0 0 auto; margin-left: auto;
    align-items: flex-start; gap: 5px; width: max-content; max-width: 100%;
    padding: 12px 12px 12px 48px; border-radius: 0 7px 7px 0;
    clip-path: polygon(10px 0,100% 0,100% 100%,10px 100%,0 50%);
    text-align: left; isolation: isolate;
}
.flash-deal-timer--detail .flash-deal-timer-label { justify-content: flex-start; font-size: max(13px,.9rem); letter-spacing: .01em; white-space: normal; }
.flash-deal-timer--detail .flash-deal-timer-label>i { display: none; }
.flash-deal-timer--detail .flash-deal-clock { gap: 2px 5px; justify-content: flex-start; flex-wrap: wrap; }
.flash-deal-timer--detail .flash-deal-timer-prefix { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; font-size: max(11px,.7rem); font-weight: 400; }
.flash-deal-timer--detail .flash-deal-timer-value { font-size: max(12px,.8rem); font-weight: 700; }
.flash-deal-art { position: absolute; inset: 0 auto 0 0; width: 40px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(255,255,255,.1); }
.flash-deal-art>i { position: relative; z-index: 1; font-size: 27px; transform: rotate(-10deg); }
html[data-flash-motion="running"] .flash-deal-art>i { animation: rana-flash-bolt-pop 3.6s ease-out infinite; animation-play-state: var(--flash-deal-play-state,running); }
.flash-deal-art::before { content: ""; position: absolute; left: 6px; top: 13px; width: 21px; height: 2px; box-shadow: 0 29px 0 rgba(255,255,255,.25); background: rgba(255,255,255,.25); transform: rotate(-20deg); }
.flash-deal-art::after { content: ""; position: absolute; inset: -15% auto -15% -24px; width: 14px; background: rgba(255,255,255,.2); transform: translateX(-20px) skewX(-18deg); }
html[data-flash-motion="running"] .flash-deal-art::after { animation: rana-flash-streak 3.6s ease-out infinite; animation-play-state: var(--flash-deal-play-state,running); }
.flash-deal-timer--detail[data-flash-state="scheduled"] .flash-deal-art>i,
.flash-deal-timer--detail[data-flash-state="scheduled"] .flash-deal-art::after,
.flash-deal-timer--detail[data-flash-state="ended"] .flash-deal-art>i,
.flash-deal-timer--detail[data-flash-state="ended"] .flash-deal-art::after { animation: none; }
.flash-deal-timer--detail[data-flash-state="ended"] .flash-deal-art { background: transparent; }
.flash-deal-timer--detail[data-flash-state="ended"] .flash-deal-art::before,
.flash-deal-timer--detail[data-flash-state="ended"] .flash-deal-art::after { display: none; }
@keyframes rana-flash-bolt-pop { 0%,15%,45%,100% { transform: rotate(-10deg) scale(1); } 27% { transform: rotate(-6deg) scale(1.12); } }
@keyframes rana-flash-streak { 0%,15% { transform: translateX(-20px) skewX(-18deg); } 45%,100% { transform: translateX(90px) skewX(-18deg); } }
@media(max-width:768px) {
    .product-price-block { gap: 10px; }
    .product-price-amount { flex-basis: 105px; }
    .product-price-block .flash-deal-timer--detail { padding: 10px 9px 10px 39px; gap: 4px; }
    .flash-deal-timer--detail .flash-deal-timer-label { font-size: max(13px,.82rem); }
    .flash-deal-timer--detail .flash-deal-timer-value { font-size: max(12px,.76rem); }
    .flash-deal-timer--detail .flash-deal-art { width: 33px; }
    .flash-deal-timer--detail .flash-deal-art>i { font-size: 24px; }
}
@media(prefers-reduced-motion:reduce) {
    html[data-flash-motion="running"] .flash-deal-art>i,html[data-flash-motion="running"] .flash-deal-art::after { animation: none; }
    .flash-deal-art::after { display: none; }
}
.product-price-eyebrow { display: block; color: #6d6a68; font-size: .78rem; letter-spacing: .025em; margin-bottom: 7px; }
.product-price-block .newproductprice { display: block; font-size: clamp(1.65rem, 2.8vw, 2.2rem); line-height: 1.15; color: #23211f; font-weight: 700; }
.product-price-amount .sku-price-history{margin-top:10px}
.product-price-amount .card-price-previous{font-size:1rem}
.product-price-amount .card-price-saving{font-size:max(13px,.875rem)}
.product-variant-picker { padding: 6px 0 16px; }
.product-option-group { border: 0; min-width: 0; padding: 0; margin: 18px 0; }
.product-option-group legend { font-size: .9rem; font-weight: 600; color: #35312f; margin-bottom: 10px; }
.product-option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.product-option-button.product-option-button-with-image { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 80px; padding: 7px; }
.product-option-image { display: block; width: 64px; height: 64px; object-fit: contain; border-radius: 4px; background: #fafafa; }
.product-option-image[hidden] { display: none; }
.product-option-label { max-width: 100%; overflow-wrap: anywhere; line-height: 1.4; }
.product-policy-text { display: block; white-space: pre-line; overflow-wrap: anywhere; }
.product-return-eligibility { display: block; margin: 7px 0; font-size: .82rem; color: #504a46; line-height: 1.5; }
.product-option-button { min-width: 46px; min-height: 44px; padding: 9px 14px; border: 1px solid #d9d6d3; border-radius: 8px; background: #fff; color: #35312f; font: inherit; font-size: .88rem; cursor: pointer; transition: border-color .15s, background-color .15s; }
.product-option-button:hover { border-color: var(--ColorPrimary); }
.product-option-button.is-selected { border-color: var(--ColorPrimary); background: #fff0eb; color: #a72d19; box-shadow: inset 0 0 0 1px var(--ColorPrimary); }
.product-option-button.is-unavailable { border-style: dashed; color: #77716d; }
.product-option-button.is-selected.is-unavailable { background: #f8f3ee; color: #665244; }
.product-option-button:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.product-option-button:focus-visible, .product-submedia-item:focus-visible { outline: 3px solid #f9ac9b; outline-offset: 3px; }
.variant-selection-summary { font-size: .82rem; color: #65605c; line-height: 1.6; margin: 10px 0 6px; }
.variant-selection-summary:empty { display: none; }
.variant-availability { display: block; font-size: .9rem; color: #68605b; line-height: 1.5; }
.variant-availability.is-in-stock { color: #246d49; }
.variant-availability.is-unavailable { color: #975125; }
.variant-sku { display: block; font-size: .73rem; color: #736e69; margin-top: 5px; overflow-wrap: anywhere; }
[data-variant-add]:disabled { opacity: .5; cursor: not-allowed; }
.product-summary-description { display: block; color: #504a46; line-height: 1.75; white-space: pre-line; margin-bottom: 22px; }
.product-summary-description:empty { display: none; }

/* Recovery state for invalid or unavailable product links. */
.product-unavailable {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 680px;
    margin: 48px auto;
    padding: clamp(24px, 6vw, 56px);
    text-align: center;
    background: var(--ColorWhite);
    border: 1px solid rgba(128, 128, 128, 0.18);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(21, 21, 21, 0.05);
}

.product-unavailable-icon {
    color: var(--ColorPrimary);
    font-size: 2.5rem;
}

.product-unavailable h1 {
    color: var(--ColorSecondary);
    font-size: clamp(1.4rem, 4vw, 2rem);
    line-height: 1.25;
    margin: 24px 0 12px;
}

.product-unavailable p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 28px;
}

.product-unavailable .my-btn {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
}

/* main layout */
.ProddetailsMaincontainer1 {
    width: 90%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}

.mainpane {
    display: grid;
    grid-gap: 3em;
    grid-template-columns: repeat(4, 1fr);
}

/* left main selection card */
.prodselection {
    grid-column: span 3;
    background-color: var(--ColorWhite);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0.1px 0.1px 0.5px 0 rgba(128, 128, 128, 0.5);
    border: solid 1px rgba(128, 128, 128, 0.2);
}

/* main image + right panel */
.mainimgdiv {
    width: 100%;
    display: flex;
    gap: 1em;
    padding: 5px;
    justify-content: space-between;
}

/* wrapper around main photo + thumbnails */
.onlyphotodiv {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* main product image */
.img1division {
    width: 350px;
    height: 350px;
    position: relative;
}

.img1division img {
    background-image: url('/imgs/erroimagetemplate/errorimag template330p.jpg');
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    object-fit:contain;
}

.img1division video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.FloatingProdPhoto {
    position: relative;
}

.FloatingProdPhoto img,
.FloatingProdPhoto video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.floating-product-video-toggle {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.floating-product-video-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
}

.product-main-video-toggle {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.product-main-video-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
}

.img1division1 {
    width: 100%;
    height: 100%;
}

/* right side of main selection (name, price, variants, cart) */
.RightProdSelectionPane {
    flex: 1;
    padding: 10px;
    background-color: var(--ColorWhite);
}

/* share icons */
.sharethisproddivision {
    display: flex;
    gap: 1em;
}

.sharethisproddivision a {
    text-decoration: none;
    color: var(--TextColor);
}

.sharethisproddivision a:hover {
    color: var(--ColorSecondary);
}

/* right column panels */
.mainrightprodpane {
    /* remains as container for delivery/seller panels */
}

.delivryinfomaindiv {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0.1px 0.1px 0.5px 0 rgba(128, 128, 128, 0.5);
    border: solid 1px rgba(128, 128, 128, 0.2);
}

.deliveryinfotitle {
    padding: 15px;
    border-bottom: solid 1px rgba(128, 128, 128, 0.2);
    font-family: 'Century Gothic';
    font-weight: bold;
    text-align: center;
}

.ShortInfos {
    text-overflow: ellipsis;
}

/* delivery + returns text blocks */
.ranaexpress {
    width: 100%;
    border-bottom: solid 1px rgba(128, 128, 128, 0.2);
    font-family: 'Century Gothic';
    font-size: var(--SmallSize);
    padding: 20px;
}

/* seller info / right panels */
.sellerinfo {
    width: 100%;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0.1px 0.1px 0.5px 0 rgba(128, 128, 128, 0.5);
    border: solid 1px rgba(128, 128, 128, 0.2);
}

.SellerinfoButtons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Are you a seller? box */
.customerjoin {
    width: 100%;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0.1px 0.1px 0.5px 0 rgba(128, 128, 128, 0.5);
    border: solid 1px rgba(128, 128, 128, 0.2);
}

/* title + name area */
.maindiscriptiondiv {
    width: 100%;
    background-color: white;
}

.productmainname {
    font-family: 'Century Gothic';
    font-size: large;
    font-weight: bold;
}

/* rating + share section under product name */
.userating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* main and old price */
.newproductprice {
    font-family: 'Century Gothic';
    font-weight: bolder;
    font-size: var(--NormalSize);
}

.oldproductprice {
    font-family: 'Century Gothic';
    text-decoration: line-through;
    font-size: smaller;
}

/* variants: label row */
.ProductSizeTitle {
    display: flex;
    justify-content: space-between;
    padding: 0 0 5px 0;
}

/* variants: pills container */
.productsize {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border 0.3s ease;
}

/* size buttons */
.productsizebtn {
    width: 40px;
    height: 40px;
    text-align: center;
    padding: 10px;
    border: solid 1px rgba(128, 128, 128, 0.2);
    background-color: transparent;
}

.productsizebtn:hover {
    border: solid 1px rgba(255, 0, 110, 0.5);
    cursor: pointer;
}


/* ADD BACK: other attribute badges (capacity, material, etc.) */
.product-variant-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    margin: 0 0.4rem 0.4rem 0;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-color);
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.05s ease;
}

.product-variant-badge:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.product-variant-badge.variant-selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
}

/* highlight selected size or color image */
.prodsizeselected {
    border: 1px solid rgb(255, 0, 110);
    border-radius: 5px;
}

/* chosen size / color label */
.prodsizelable {
    font-size: smaller;
    color: rgb(128, 128, 128);
    min-width: 20px;
}

/* color thumbnails */
.ProductColorsCover {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.prodcolorimg {
    width: 50px;
    height: 50px;
}

/* subphotos / thumbnails scroller */
.scroll-container-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    
    justify-content:center;
}

.ProductSubPhotosCover {
    
    display:grid;
    grid-auto-flow: column; /* horizontal flow */
    grid-auto-columns: min-content; /* button-sized columns */
    grid-template-rows: repeat(1, auto); /* max 2 rows */
    gap: 0.8rem 0.8rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2.5rem; /* space for arrows */
    scroll-behavior: smooth;
    /* hide scrollbars */
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none;
    cursor:pointer;
}

.ProductSubPhotosCover::-webkit-scrollbar { display: none; }

.ProductSubPhotosCover img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit:contain;
}

.ProductSubPhotosCover video {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: contain;
    background: #fff;
}

.ProductSubPhotosCover img:hover {
    border: solid 1px rgba(255, 0, 110, 0.5);
}

.ProductSubPhotosCover video:hover {
    border: solid 1px rgba(255, 0, 110, 0.5);
}

.product-submedia-item {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.product-submedia-item-selected {
    border: 1px solid rgb(255, 0, 110);
}

/* scroll arrows */
.scroll-btn {
    padding: 5px;
    font-size: large;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.scroll-btn span:hover {
    color: var(--ColorPrimary);
}

/* generic divider rows (price, options, etc.) */
.divisionequalparts {
    border-bottom: solid 1px rgba(128, 128, 128, 0.2);
    padding: 10px 0px 10px;
   
    
}

/* quantity row */
.divisionquantity {
    min-height: 50px;
    background-color: white;
    border-bottom: solid 1px rgba(128, 128, 128, 0.2);
    padding: 10px;
}

.divisionquantity input[type="Number"] {
    border: solid 1px rgba(128, 128, 128, 0.8);
    padding: 5px;
    text-align: center;
    width: 50px;
}

.divisionquantity input[type="Number"]:focus {
    border: solid 1px rgba(128, 128, 128, 0.8);
    outline: none;
}

/* product details: main container */
.proddetailsmaincontainer {
    width: 100%;
    display: grid;
    grid-gap: 3em;
    grid-template-columns: repeat(4, 1fr);
}

/* left details (tabs, overview, specs, reviews) */
.leftpproddetails {
    grid-column: span 3;
    padding: 5px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0.1px 0.1px 0.5px 0 rgba(128, 128, 128, 0.5);
    border: solid 1px rgba(128, 128, 128, 0.2);
}

/* right floating side card (add to cart quick) */
.righttprodetail {
    /* grid column managed in media queries */
}

/* top tab bar */
.maintab {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    align-items: stretch;
}

.maintab > div {
    min-width: 0;
}

.maintab a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    text-decoration: none;
    color: var(--TextColor);
    padding: 0.75rem 1rem;
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 999px;
    background-color: #fff;
    box-shadow: none;
    text-align: center;
    line-height: 1.3;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.maintab a:hover {
    border-color: rgba(249, 81, 49, 0.35);
    color: var(--ColorPrimary);
}

/* selected / deselected tab styles */
.selectedtab {
    border-color: var(--TabPrimaryBgColor);
    background-color: var(--TabPrimaryBgColor)!important; /*rgba(249, 81, 49, 0.2) !important;*/
    color: #c84327 !important;
    box-shadow: inset 0 0 0 1px rgba(249, 81, 49, 0.08), 0 2px 8px rgba(249, 81, 49, 0.10);
    font-weight: 600;
    transform: translateY(-1px);
}

.deselectedtab {
    color: var(--TextColor);
}

/* tab content area */
.lblprodoverview {
    padding: 20px;
}

/* media and text content in overview/specs (product-text defined below) */

/* customer reviews */
.reviewcontainermain {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    align-items: center;
    gap: 1em;
}

.product-reviews-empty {
    margin: 1rem 1.25rem;
    padding: 1.25rem 1rem;
    border: 1px dashed rgba(249, 81, 49, 0.25);
    border-radius: 0.85rem;
    background: rgba(249, 81, 49, 0.04);
    text-align: center;
}

.product-reviews-empty-title {
    color: var(--ColorPrimary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.product-reviews-empty-text {
    color: var(--TextColor);
    font-size: 0.9rem;
}

.review-feedback-summary {
    margin: 1rem 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(128, 128, 128, 0.18);
    border-radius: 0.85rem;
    background-color: #fff;
}

.review-feedback-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.review-feedback-summary-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--TextColor);
}

.review-feedback-summary-total {
    font-size: 0.9rem;
    color: var(--ColorPrimary);
    font-weight: 600;
    white-space: nowrap;
}

.review-feedback-summary-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 44px;
    gap: 0.75rem;
    align-items: center;
}

.review-feedback-summary-row + .review-feedback-summary-row {
    margin-top: 0.65rem;
}

.review-feedback-summary-label,
.review-feedback-summary-value {
    font-size: 0.88rem;
    color: var(--TextColor);
}

.review-feedback-summary-value {
    text-align: right;
    color: var(--ColorFairGrey);
}

.review-feedback-summary-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background-color: rgba(128, 128, 128, 0.15);
    overflow: hidden;
}

.review-feedback-summary-fill {
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(249, 81, 49, 0.35) 0%, rgba(249, 81, 49, 0.85) 100%);
}

.imgprodreviewimage {
    width: 80px;
    height: 80px;
}

.imgprodreviewimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewtext1 > div:not(.rvtext) {
    font-size: small;
    color: rgb(128, 128, 128);
}

.reviewtext1 > div {
    margin-bottom: 10px;
}

/* read-only rating stars inside reviews (from GetStarHtml) */
.review-rating {
    font-size: var(--SmallSize);
    color: var(--ColorPrimary);
}

/* “Rate this product” prompt above stars */
.rate-this-product {
    padding: 15px 20px 10px 20px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    font-size: var(--SmallSize);
}

/* container for “Load more” reviews button */
.Load-morebtn-cover {
    display: flex;
    justify-content: center;
    padding: 10px 0 20px 0;
}

/* modal / carousel for media */
.product-thumb {
    max-width: 100%;
    margin: 5px;
    cursor: pointer;
}

.pdf-thumb {
    width: 100%;
    height: 90vh;
    border: none;
    margin: 5px;
    cursor: pointer;
}

.product-text {
    font-size: var(--MediumSize);
    line-height: 1.6;
    color: #333;
    white-space: normal;
    word-break: break-word;
    margin-bottom: 20px;
}

/* rating stars under main product */
.star-rate {
    font-size: 1.8rem;
    color: #ccc;
    text-decoration: none;
    margin: 0 2px;
}

.star-rate:hover,
.star-rate:focus {
    color: var(--pr);
    cursor: pointer;
}

.rating-wrapper {
    font-size: var(--NormalSize);
    color: var(--ColorPrimary);
}

/* seller rating stars */
.sellerrating-wrapper {
    font-size: var(--MediumSize);
    color: var(--ColorPrimary);
}

/* pagination (if used) */
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 15px;
    align-items: center;
}

.pagination .active-page {
    font-weight: bold;
    color: #fff;
    background-color: var(--ColorPrimary);
    padding: 4px 10px;
    border-radius: 4px;
}

.pagination a {
    text-decoration: none;
    padding: 4px 8px;
    color: var(--TextColor);
}

/* seller recommendations grid below details */


.RecommendationsCover {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border:solid 1px rgba(0,0,0,0.2);
   
}

.sellerrecommendation {
    grid-column: span 4;
    
    background-color: white;
    min-height: 280px;
    border-radius: 5px;
    box-shadow: 0.1px 0.1px 0.5px 0 rgba(128, 128, 128, 0.5);
   
   
}

.sellerrecommendation1 {
    grid-column: span 4;  
    width: 100%;
    background-color: white;
    min-height: 280px;
    border-radius: 5px;
    overflow: auto;
    box-shadow: 0.1px 0.1px 0.5px 0 rgba(128, 128, 128, 0.5);
    
}
.Ruleline {
    font-weight:bolder;
    padding:15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.GridCoverRep{
    padding:20px;
}
/* side sticky mini-card */
.sideprodinfo {
    width: 100%;
    min-height: 160px;
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0.1px 0.1px 0.5px 0 rgba(128, 128, 128, 0.5);
    border: solid 1px rgba(128, 128, 128, 0.2);
}

.FloatingProdPhotoCover{
    display:flex;
}
.FloatingProdPhoto {
    width: 120px;
    height: 120px;
}

FloatingProdPhoto img, FloatingProdPhoto video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* new bottom actions row */
.sideprod-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sideprod-add-btn {
    flex: 1 1 auto; /* button grows, icons stay compact */
}

.sideprod-icon-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    text-decoration: none;
}

.sideprod-icon-btn .fa,
.sideprod-icon-btn .fas {
    font-size: 1rem;
}

.sideprod-icon-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Delivery / Return info modal */
.info-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.2);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter:blur(5px);
}

.info-modal {
    background-color: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    font-family: 'Century Gothic', sans-serif;
}

.info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.info-modal-title {
    font-weight: bold;
    font-size: var(--MediumSize);
    color: var(--TextColor);
}

.info-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    text-decoration: none;
}

.info-modal-close:hover {
    color: var(--ColorDefaulCrimson);
}

.info-modal-body {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    font-size: var(--NormalSize);
    color: #333;
    line-height: 1.6;
    word-break: break-word;
}


/* Large screens: keep side add-to-cart column stuck under navbar */
@media screen and (min-width: 801px) {
    .righttprodetail {
        position: sticky;
        top: calc(var(--rana-header-height, 116px) + 16px); /* adjust to sit just under your header/nav */
        align-self: flex-start;
        height: fit-content; /* ensure it only wraps its content */
        z-index: 10;
    }

    /* let the card itself be normal inside the sticky column */
    .sideprodinfo {
        position: static;
    }
}

/* responsive tweaks */

/* 1) Large tablet / narrow desktop */
@media screen and (max-width: 1300px) {
    /* use more width and slightly reduce gaps to avoid cramped columns */
    .ProddetailsMaincontainer1 {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .mainpane,
    .proddetailsmaincontainer,
    .RecommendationsCover {
        grid-gap: 2em;
    }

    /* 3-column layout: product (2 cols) + right pane (1 col) */
    .mainpane {
        grid-template-columns: repeat(3, 1fr);
    }

    .prodselection {
        grid-column: span 3;
    }

    .mainrightprodpane {
        grid-column: span 3;
    }

    /* slightly smaller main image so the right pane has more room */
    .img1division {
        width: 320px;
        height: 320px;
    }

    /* details area: 3 columns, main details (2) + right sticky card (1) */
    .proddetailsmaincontainer {
        grid-template-columns: repeat(3, 1fr);
    }

    .leftpproddetails {
        grid-column: span 2;
    }

    .righttprodetail {
        grid-column: span 1;
    }

    /* recommendations: 3 columns, cards take full width */
    .RecommendationsCover {
        grid-template-columns: repeat(3, 1fr);
    }

    .sellerrecommendation,
    .sellerrecommendation1 {
        grid-column: span 3;
    }

    .SellerinfoButtons {
        width: 100%;
        display: flex;
        gap: 1em;
        justify-content: space-between;
        flex-wrap: wrap;
    }

        .SellerinfoButtons > div {
            width: 100%;
        }
}


@media (max-width: 960px){
    .mainimgdiv {
        display: flex;
        flex-direction: column;
        gap: 1em;
        padding: 5px;
    }
}



/* 2) Tablet / small laptop – stack left and right panels vertically */
@media screen and (max-width: 800px) {
    .ProddetailsMaincontainer1 {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* single-column layout for main product + right panel */
    .mainpane {
        grid-template-columns: 1fr;
        grid-gap: 2em;
    }

    .prodselection,
    .mainrightprodpane {
        grid-column: span 1;
    }

    /* keep image reasonably sized before phone breakpoint */
    .mainimgdiv {
        display: flex;
        gap: 1em;
        padding: 5px;
    }

    .img1division {
        width: 260px;
        height: 260px;
    }

    .ProductSubPhotosCover {
        /*max-width: 260px;*/
    }

    /* details and right mini-card stacked */
    .proddetailsmaincontainer {
        grid-template-columns: 1fr;
        grid-gap: 2em;
    }

    .leftpproddetails,
    .righttprodetail {
        grid-column: span 1;
    }

    /* recommendations stacked */
    .RecommendationsCover {
        grid-template-columns: 1fr;
        grid-gap: 2em;
    }

    .sellerrecommendation,
    .sellerrecommendation1 {
        grid-column: span 1;
    }

    .SellerinfoButtons {
        width: 100%;
        display: flex;
        gap: 1em;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

        .SellerinfoButtons > div {
            width: 100%;
        }
}

/* 3) Phone */
@media screen and (max-width: 550px) {
    .mainimgdiv {
        display: flex;
        flex-direction: column;
        gap: 1em;
        padding: 5px;

        
    }

    .img1division {
        width: 100%;
        height: 300px;
       
    }

    .scroll-container-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: center;
    }

    .ProductSubPhotosCover {
        /*max-width: 100%;*/
    }

    .productmainname {
        font-family: 'Century Gothic';
        font-size: var(--SmallSize);
        font-weight: bold;
    }

    .userating {
        font-size: var(--SmallSize);
    }

    .rating-wrapper {
        font-size: var(--SmallSize);
    }

    .newproductprice {
        font-size: var(--MediumSize);
    }

    .ProductSizeTitle {
        font-size: var(--SmallSize);
    }

    .productsizebtn {
        width: 30px;
        height: 30px;
        text-align: center;
        padding: 5px;
        font-size: var(--SmallSize);
    }

    .divisionequalparts {
        font-size: var(--SmallSize);
    }

    .prodcolorimg {
        width: 25px;
        height: 25px;
    }

    .divisionquantity {
        font-size: var(--XsmallSize);
    }

        .divisionquantity input[type="Number"] {
            min-width: 40px;
        }

    .maintab {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.5rem;
        padding: 0.75rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .maintab::-webkit-scrollbar {
        display: none;
    }

    .maintab > div {
        flex: 0 0 auto;
        min-width: 140px;
    }

    .maintab a {
        min-height: 42px;
        padding: 0.20rem 0.30rem;
        font-size: var(--SmallSize);
        white-space: nowrap;
    }

    .product-reviews-empty {
        margin: 0.75rem;
        padding: 1rem 0.85rem;
    }

    .review-feedback-summary {
        margin: 0.75rem;
        padding: 0.9rem 0.85rem;
    }

    .review-feedback-summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .review-feedback-summary-row {
        grid-template-columns: 52px minmax(0, 1fr) 36px;
        gap: 0.55rem;
    }

    .product-text {
        font-size: var(--SmallSize);
    }

    /* Mobile adjustments */
   
        .info-modal-backdrop {
            padding: 0.5rem;
        }

        .info-modal {
            max-width: 100%;
            max-height: 85vh;
            border-radius: 6px;
        }

        .info-modal-title {
            font-size: var(--SmallSize);
        }

        .info-modal-body {
            font-size: var(--SmallSize);
            padding: 0.75rem 0.9rem 1rem 0.9rem;
        }
    
}

/* Safety clamp to prevent horizontal overflow on small screens */
@media screen and (max-width: 550px) {
    .ProddetailsMaincontainer1,
    .mainpane,
    .prodselection,
    .mainrightprodpane,
    .proddetailsmaincontainer,
    .leftpproddetails,
    .righttprodetail,
    .RecommendationsCover {
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }

    /* ensure thumbnail strip never pushes layout sideways */
    .scroll-container-wrapper,
    .ProductSubPhotosCover {
        max-width: 100%;
    }
}

/* Additional styles for small phones */
@media screen and (max-width: 550px) {

    /* keep main layout from overflowing */
    .ProddetailsMaincontainer1 {
        padding-bottom: 80px; /* space so content not hidden behind bar */
    }

    /* pin the side card as a bottom bar above the app bar */
    .sideprodinfo {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        box-shadow: 0 0px 0px rgba(0,0,0,0.15);
        z-index: 1200; /* higher than nav-toggle-wrapper (999) */
        min-height: 40px;
    }

    /* hide floating photo to keep bar compact on phones */
    .FloatingProdPhotoCover {
        display: none;
    }

    /* tighten spacing inside actions bar on phones */
    .sideprod-actions {
        gap: 0.4rem;
    }

    .sideprod-icon-btn {
        width: 36px;
        height: 36px;
    }
}


/* Phase 3: consistent spacing and flexible columns from phone to wide desktop. */
.ProddetailsMaincontainer1 { width: min(1440px, calc(100% - 40px)); margin: 24px auto 48px; }
.mainpane, .proddetailsmaincontainer { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
.prodselection, .leftpproddetails { grid-column: span 1; min-width: 0; border-radius: 14px; padding: 0; overflow: hidden; box-shadow: 0 8px 24px rgba(30, 23, 18, .035); }
.mainrightprodpane, .righttprodetail { grid-column: span 1; min-width: 0; }
.mainimgdiv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 26px; box-sizing: border-box; }
.onlyphotodiv { min-width: 0; align-self: start; }
.img1division { width: 100%; height: auto; aspect-ratio: 1; background: #faf9f7; border-radius: 12px; overflow: hidden; }
.img1division .product-thumb { margin: 0; }
.RightProdSelectionPane { min-width: 0; padding: 0; }
.productmainname { font-family: inherit; font-size: clamp(1.3rem, 1.6vw, 1.8rem); line-height: 1.35; color: #292522; margin: 0 0 12px; }
.userating { flex-wrap: wrap; gap: 12px; }
.rating-wrapper { font-size: .95rem; }
.sharethisproddivision { gap: 16px; font-size: 1rem; }
.divisionquantity { display: flex; align-items: center; gap: 20px; padding: 12px 0 16px; font-size: .9rem; }
.divisionquantity input[type="Number"] { box-sizing: border-box; width: 80px; min-height: 44px; border: 1px solid #d9d6d3; border-radius: 8px; font: inherit; }
.divisionquantity input[type="Number"]:focus { outline: 2px solid #f9ac9b; outline-offset: 2px; }
.divisionquantity input:disabled { opacity: .5; }
#divisionpromotions { border: 0; padding-bottom: 0; }
#BtnAddToCart { min-height: 48px; border-radius: 9px; }
.delivryinfomaindiv, .sellerinfo, .customerjoin, .sideprodinfo { border-radius: 12px; box-shadow: none; overflow: hidden; }
.deliveryinfotitle { text-align: left; font-family: inherit; }
.ranaexpress { box-sizing: border-box; padding: 16px; line-height: 1.7; font-family: inherit; color: #605b56; }
.ranaexpress a { display: inline-block; margin-top: 8px; color: #b33822; font-size: .85rem; }
.ranaexpress b { display: block; color: #37322e; margin-bottom: 6px; }
.ProductSubPhotosCover { min-width: 0; max-width: 100%; padding: 6px; }
.product-submedia-item { width: 60px; height: 60px; flex-shrink: 0; padding: 3px; border: 1px solid #e5e1dd; background: #fff; cursor: pointer; border-radius: 8px; }
.product-submedia-item-selected { border: 2px solid var(--ColorPrimary); background: #fff5f0; }
.maintab a.selectedtab { background: #fff0eb !important; border-color: #f8bfaf; box-shadow: none; transform: none; }
.RecommendationsCover { border-radius: 14px; overflow: hidden; border-color: #e7e2de; }
.Ruleline { padding: 20px 24px; font-size: 1.05rem; }
.FloatingProdPhotoCover { gap: 12px; align-items: center; margin-bottom: 18px; }
.FloatingProdPhoto { width: 90px; height: 90px; flex-shrink: 0; }
.FloatingProdPhoto img, .FloatingProdPhoto video { height: 100%; object-fit: contain; }
.sideprod-actions .sideprod-add-btn { min-height: 44px; }


.info-modal-body { font-size: 1rem; }
.info-modal-title{margin:0;color:var(--ColorSecondary);line-height:1.4}.info-modal-close{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:9px;color:var(--ColorSecondary)}.info-modal-close:hover{background:#f4f4f4;color:var(--ColorSecondary)}.info-modal{max-height:calc(100dvh - 40px);border-radius:18px}
/* Product-specific policies: centered desktop dialog and content-sized mobile sheet. */
dialog.info-modal-backdrop[data-product-info-sheet] { inset:0;margin:auto;box-sizing:border-box;width:100%;max-width:none;height:100%;max-height:none;padding:20px;border:0;background:transparent;backdrop-filter:none;overflow:hidden; }
dialog[data-product-info-sheet]:not([open]) { display:none; }
dialog[data-product-info-sheet]::backdrop { background:rgba(21,21,21,.5); }
dialog[data-product-info-sheet] .info-modal { display:flex;flex-direction:column;min-width:0;min-height:0;max-width:600px;max-height:calc(var(--product-info-viewport-height,100dvh) - 40px);overflow:hidden; }
dialog[data-product-info-sheet] .info-modal-header { flex:0 0 auto;gap:12px; }
dialog[data-product-info-sheet] .info-modal-title { flex:1;min-width:0;overflow-wrap:anywhere; }
dialog[data-product-info-sheet] .info-modal-body { flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding:16px; }
dialog[data-product-info-sheet] .info-modal-close:focus-visible { outline:2px solid var(--ColorPrimary);outline-offset:-2px; }
@media(min-width:769px) {
    dialog[data-product-info-sheet][open] .info-modal { animation:rana-feedback-pop 380ms cubic-bezier(.16,1,.3,1); }
}
@media(max-width:768px) {
    dialog.info-modal-backdrop[data-product-info-sheet] { inset:auto 0 var(--product-info-viewport-bottom,0px);margin:0;display:flex;flex-direction:column;width:100%;height:auto;--mobile-sheet-viewport-height:var(--product-info-viewport-height,100dvh);max-height:var(--mobile-sheet-height-limit,min(86dvh,calc(100dvh - 24px)));padding:0;align-items:stretch;border-radius:18px 18px 0 0;background:#fff;box-shadow:0 -8px 32px rgba(0,0,0,.15); }
    dialog[data-product-info-sheet] .info-modal { flex:1 1 auto;max-width:none;max-height:inherit;border-radius:inherit;box-shadow:none; }
    dialog[data-product-info-sheet] .info-modal-header { padding:0 16px 10px; }
    dialog[data-product-info-sheet] .info-modal-title { font-size:1.05rem; }
    dialog[data-product-info-sheet] .info-modal-body { padding:16px 16px max(24px,env(safe-area-inset-bottom));font-size:1rem; }
}
@media(prefers-reduced-motion:reduce) {
    dialog[data-product-info-sheet][open] .info-modal { animation:none; }
}
@media (max-width: 1200px) {
    .mainpane { grid-template-columns: minmax(0, 1fr); }
    .mainrightprodpane { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .mainrightprodpane > br { display: none; }
    .mainimgdiv { gap: 28px; }
}
@media (max-width: 800px) {
    .ProddetailsMaincontainer1 { width: calc(100% - 24px); margin-top: 12px; }
    .mainimgdiv { padding: 20px; gap: 20px; }
    .mainrightprodpane { grid-template-columns: minmax(0, 1fr); }
    .proddetailsmaincontainer { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .righttprodetail { display: none; }
    .maintab { padding: 10px; gap: 8px; }
    .maintab > div { min-width: 0; flex: 1; }
    .maintab a { padding: 10px 8px; font-size: .82rem; }
}
@media (max-width: 600px) {
    .mainimgdiv { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 24px; }
    .img1division { max-width: 440px; }
    .onlyphotodiv { width: 100%; }
    .productmainname { font-size: 1.3rem; }
    .product-price-block { padding: 18px 0; }
    .lblprodoverview { padding: 18px; }
    .GridCoverRep { padding: 12px; }
    .Ruleline { padding: 18px; }
}

@media (max-width: 480px) {
    .mainimgdiv { padding: 12px; gap: 20px; }
    .product-option-values { gap: 7px; }
    .product-option-button { min-width: 44px; min-height: 44px; max-width: 100%; padding: 8px 12px; font-size: 14px; overflow-wrap: anywhere; }
    .product-option-group legend, .divisionquantity { font-size: 14px; }
    #BtnAddToCart { width: 100%; min-height: 44px; padding: 10px 14px; font-size: 14px; background: var(--ColorPrimary); background-image: var(--ColorPrimaryGradient); color: var(--ColorPrimaryText); }
    #BtnAddToCart:hover:not(:disabled) { background: var(--ColorPrimaryHover); background-image: none; }
    .divisionquantity input[type="Number"] { font-size: 16px; }
    .scroll-container-wrapper .scroll-btn { min-width: 44px; min-height: 44px; padding: 6px; font-size: 14px; }
    .ProductSubPhotosCover { gap: 8px; }
    .maintab { gap: 4px; padding: 8px; }
    .maintab a { min-height: 44px; padding: 10px 6px; font-size: 14px; }
    .product-main-video-toggle, .floating-product-video-toggle { min-width: 44px; min-height: 44px; }
}

.product-option-group legend { display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%; }

/* Catalog gallery: keep the image, controls and native dialog accessible at every viewport size. */
.product-gallery-trigger { position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in;color:var(--ColorSecondary); }
.product-gallery-trigger .product-thumb { display:block;margin:0;width:100%;height:100%;object-fit:contain; }
.product-gallery-hint { position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #dedad6;border-radius:6px;background:rgba(255,255,255,.95);font-family:inherit;font-weight:500;font-size:.8rem;line-height:1.3; }
.product-gallery-video-open { position:absolute;right:12px;top:12px;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:#fff;color:var(--ColorSecondary);border:1px solid #dedad6;border-radius:6px;cursor:pointer; }
.product-gallery-trigger:focus-visible { outline:2px solid var(--ColorPrimary);outline-offset:-4px;box-shadow:none; }
.product-gallery-dialog { position:fixed;inset:var(--gallery-viewport-top,0px) 0 var(--gallery-viewport-bottom,0px);margin:auto;padding:0;border:0;width:min(1080px,calc(100% - 32px));max-width:none;height:calc(var(--gallery-viewport-height,100dvh) - 32px);max-height:calc(var(--gallery-viewport-height,100dvh) - 32px);overflow:hidden;background:#fff;color:var(--ColorSecondary);border-radius:12px;box-shadow:0 18px 55px rgba(0,0,0,.22); }
.product-gallery-dialog:not([open]) { display:none; }
.product-gallery-dialog[open] { display:flex; }
.product-gallery-dialog::backdrop { background:rgba(0,0,0,.45); }
.product-gallery-shell { display:flex;flex-direction:column;flex:1;min-width:0;min-height:0; }
.product-gallery-header { flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;border-bottom:1px solid #eee; }
.product-gallery-header h2 { margin:0;font-size:1rem;line-height:1.4;font-weight:600; }
.product-gallery-close { display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:0;padding:0;background:transparent;color:inherit;font-size:1.2rem;cursor:pointer; }
.product-gallery-slide { flex:1 1 auto;display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;padding:16px;overflow:hidden;touch-action:pan-y pinch-zoom; }
.product-gallery-slide>img,.product-gallery-slide>video,.product-gallery-slide>iframe { display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;border:0; }
.product-gallery-error { flex:0 0 auto;padding:8px 16px;margin:0;font-size:.9rem;line-height:1.5;color:var(--ColorSecondary);background:#fff0ec; }
.product-gallery-error[hidden] { display:none; }
.product-gallery-footer { flex:0 0 auto;min-width:0;border-top:1px solid #eee;padding:8px 16px max(12px,env(safe-area-inset-bottom));background:#fff; }
.product-gallery-controls { display:flex;align-items:center;justify-content:center;gap:16px; }
.product-gallery-controls button { display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid #dedad6;border-radius:6px;padding:0;background:#fff;color:inherit;cursor:pointer; }
.product-gallery-controls button:disabled { opacity:.4;cursor:default; }
.product-gallery-controls p { min-width:95px;margin:0;text-align:center;font-size:.85rem;line-height:1.5; }
.product-gallery-thumbnails { display:flex;gap:8px;overflow-x:auto;min-width:0;padding:8px 2px 2px;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch; }
.product-gallery-thumbnails::-webkit-scrollbar { display:none; }
.product-gallery-thumbnail { position:relative;flex:0 0 60px;display:flex;align-items:center;justify-content:center;gap:4px;width:60px;height:60px;padding:4px;border:1px solid #dedad6;border-radius:6px;background:#fff;color:var(--ColorSecondary);cursor:pointer; }
.product-gallery-thumbnail img { width:100%;height:100%;object-fit:contain; }
.product-gallery-thumbnail span { position:absolute;bottom:1px;right:2px;padding:0 3px;background:#fff;font-size:.7rem;line-height:1.3; }
.product-gallery-thumbnail img[hidden] { display:none; }
.product-gallery-thumbnail[aria-pressed="true"] { border:2px solid var(--ColorPrimary);background:#fff0ec; }
.product-gallery-dialog button:focus-visible,.product-gallery-video-open:focus-visible { outline:2px solid var(--ColorPrimary);outline-offset:2px;box-shadow:none; }
@media(max-width:600px) {
 .product-gallery-dialog { width:100%;height:var(--gallery-viewport-height,100dvh);max-height:var(--gallery-viewport-height,100dvh);border-radius:0; }
 .product-gallery-header { padding:max(8px,env(safe-area-inset-top)) 12px 8px; }
 .product-gallery-slide { padding:12px; }
 .product-gallery-footer { padding-inline:12px; }
 .product-gallery-thumbnail { flex-basis:52px;width:52px;height:52px; }
 .product-gallery-hint { right:8px;bottom:8px;padding:7px 9px;font-size:.75rem; }
}
@media(max-height:450px) {
 .product-gallery-thumbnails { display:none; }
 .product-gallery-header { padding-top:4px;padding-bottom:4px; }
 .product-gallery-slide { padding:8px; }
}

/* Keep the original purchase control above the measured mobile navigation, with room at page end. */
@media(max-width:768px) {
 .product-purchase-actions { position:fixed; inset-inline:0; bottom:var(--product-mobile-nav-height,calc(72px + env(safe-area-inset-bottom))); z-index:900; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:10px; box-sizing:border-box; margin:0; padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left)); border-top:1px solid #e8e4df; border-bottom:0; background:#fff; box-shadow:0 -3px 14px rgba(0,0,0,.04); }
 .product-purchase-options { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:48px; padding:6px 8px; border:1px solid #dedad6; border-radius:8px; color:var(--ColorSecondary); background:#fff; text-decoration:none; font-size:max(13px,.85rem); line-height:1.35; }
 .product-purchase-actions #BtnAddToCart { width:100%; min-width:0; min-height:48px; margin:0; padding:10px 14px; border-radius:8px; font-size:14px; line-height:1.4; white-space:normal; background:var(--ColorPrimary); background-image:var(--ColorPrimaryGradient); color:var(--ColorPrimaryText); }
 .product-purchase-actions #BtnAddToCart:hover:not(:disabled) { background:var(--ColorPrimaryHover); background-image:none; color:var(--ColorPrimaryText); }
 .product-purchase-actions #BtnAddToCart:disabled { opacity:.6; cursor:not-allowed; }
 .product-purchase-actions :is(a,button):focus-visible { outline:2px solid var(--ColorInputFocus); outline-offset:2px; }
 html.product-mobile-purchase-active { scroll-padding-bottom:calc(var(--product-mobile-nav-height,72px) + var(--product-purchase-height,65px) + 12px); }
 body:has(.product-purchase-actions) .footer.site-footer { padding-bottom:calc(var(--product-mobile-nav-height,calc(72px + env(safe-area-inset-bottom))) + var(--product-purchase-height,65px) + 16px); }
 .SellerinfoButtons .product-seller-actions { gap:8px; }
 .product-seller-actions>.my-btn-ouline { flex-basis:130px; gap:6px; padding:6px 12px; font-size:max(13px,.85rem); line-height:1.35; }
}

/* Review cards share their typography, avatar, date and feedback layout with storefront reviews. */
.product-reviews { padding-inline: 20px; }
.product-reviews .review-pagination { padding-bottom: 20px; }
/* A fixed thumbnail keeps uploaded review photos compact and reserves their loading space. */
.product-reviews .product-review-photo { display:block; width:96px; max-width:100%; margin:12px 0; border-radius:8px; }
.product-reviews .product-review-photo img { display:block; width:96px; height:96px; max-width:100%; object-fit:contain; border:1px solid #edf0f3; border-radius:8px; }
.product-reviews .product-review-photo:focus-visible { outline:2px solid var(--ColorPrimary); outline-offset:3px; }
@media(max-width:768px) { .product-reviews { padding-inline: 16px; } }

/* Supported rich product text is rendered from encoded text runs, not stored HTML. */
.product-rich-text{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap;tab-size:4;line-height:1.75}
.product-rich-text p{margin:0 0 .8rem}.product-rich-text p:last-child{margin-bottom:0}
.product-rich-text ul,.product-rich-text ol{padding-inline-start:1.6rem;margin:.5rem 0 1rem}.product-rich-text li{margin:.25rem 0}
.product-rich-text strong{font-weight:700}.product-rich-text em{font-style:italic}.product-rich-text u{text-decoration:underline}
