.products-details-page .carousel {
    position: relative;
}

.products-details-page .products-details {
    margin-top: 3rem;
}

.products-details-page #product-images-slick img {
    object-fit: contain;
    cursor: pointer;
}

.products-details-page #carousel-thumbs {
    padding: 0 50px;
}

.products-details-page #carousel-thumbs img:hover {
    opacity: 100%;
}

.products-details-page #carousel-thumbs img {
    opacity: 80%;
    border: 3px solid transparent;
    cursor: pointer;
}

.products-details-page #carousel-thumbs .selected img {
    opacity: 100%;
}

.products-details-page .carousel-control-prev,
.products-details-page .carousel-control-next {
    width: 44px;
    height: 44px;
}

.products-details-page .carousel-fullscreen-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    z-index: 4;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgba(255,255,255,.80)'  viewBox='0 0 16 16'%3E%3Cpath d='M1.5 1a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4A1.5 1.5 0 0 1 1.5 0h4a.5.5 0 0 1 0 1h-4zM10 .5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 16 1.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zM.5 10a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 0 14.5v-4a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v4a1.5 1.5 0 0 1-1.5 1.5h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5z' /%3E%3C/svg%3E");
}

.products-details-page .carousel-fullscreen-icon:hover {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgb(255,255,255)' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 1a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4A1.5 1.5 0 0 1 1.5 0h4a.5.5 0 0 1 0 1h-4zM10 .5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 16 1.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zM.5 10a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 0 14.5v-4a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v4a1.5 1.5 0 0 1-1.5 1.5h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5z' /%3E%3C/svg%3E");
}

.products-details-page .pause .carousel-pause-icon {
    position: absolute;
    top: 3.75rem;
    left: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    z-index: 4;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgba(255,255,255,.80)'  viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM6.25 5C5.56 5 5 5.56 5 6.25v3.5a1.25 1.25 0 1 0 2.5 0v-3.5C7.5 5.56 6.94 5 6.25 5zm3.5 0c-.69 0-1.25.56-1.25 1.25v3.5a1.25 1.25 0 1 0 2.5 0v-3.5C11 5.56 10.44 5 9.75 5z' /%3E%3C/svg%3E");
}

.products-details-page .pause .carousel-pause-icon:hover {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgb(255,255,255)'  viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM6.25 5C5.56 5 5 5.56 5 6.25v3.5a1.25 1.25 0 1 0 2.5 0v-3.5C7.5 5.56 6.94 5 6.25 5zm3.5 0c-.69 0-1.25.56-1.25 1.25v3.5a1.25 1.25 0 1 0 2.5 0v-3.5C11 5.56 10.44 5 9.75 5z' /%3E%3C/svg%3E");
}

.products-details-page .play .carousel-pause-icon {
    position: absolute;
    top: 3.75rem;
    left: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    z-index: 4;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgba(255,255,255,.80)'  viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM6.79 5.093A.5.5 0 0 0 6 5.5v5a.5.5 0 0 0 .79.407l3.5-2.5a.5.5 0 0 0 0-.814l-3.5-2.5z' /%3E%3C/svg%3E");
}

.products-details-page .play .carousel-pause-icon:hover {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgb(255,255,255)'  viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM6.79 5.093A.5.5 0 0 0 6 5.5v5a.5.5 0 0 0 .79.407l3.5-2.5a.5.5 0 0 0 0-.814l-3.5-2.5z' /%3E%3C/svg%3E");
}

.products-details-page #carousel-thumbs .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgba(0,0,0,.60)' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E") !important;
}

.products-details-page #carousel-thumbs .carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%60000' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E") !important;
}

.products-details-page .modal-content {
    border: none;
}

.products-details-page #lightbox-container-image img {
    width: auto;
    max-height: 520px;
}


.products-details-page .lg-thumbs {
    margin-right: -7.5px;
    margin-left: -7.5px;
    margin-bottom: 25px;
}

.products-details-page .lg-thumbs a {
    cursor: pointer;
}

.products-details-page .lg-thumbs img, .carousel-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.products-details-page .lg-thumbs .col-3 {
    flex: 0 0 20%;
    max-width: 20%;
    margin-top: 15px;
    padding-right: 7.5px;
    padding-left: 7.5px;
}

.products-details-page .lg-thumbs .row {
    margin-left: 7.5px;
    margin-right: 7.5px;
}


.products-details-page .carousel-fullscreen-control {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    background-color: #e1e1e1;
}

.products-details-page h4 {
    font-size: 1.3rem;
}


#product-custom-user-dropdown-fields label
{
    display: block;
    color: var( --primary-color);
}

#product-custom-user-dropdown-fields select,
.select-quantity-div select {
    display: block;
    width: 100%;
    padding: 10px 5px;
    border-color: #ccc;
    border-radius: 3px;
    height: auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
}


#product-custom-user-dropdown-fields > div.form-group > div ,
.select-quantity-div > div.form-group > div{
    position: relative;
}

#product-custom-user-dropdown-fields > div.form-group > div:after,
.select-quantity-div > div.form-group > div:after {
    content: '\e94b';
    font-family: 'icomoon';
    font-size: 20px;
    color: #333;
    right: 0px;
    top: 24px;
    padding: 5px 8px;
    border-left: 1px solid #ccc;
    position: absolute;
    pointer-events: none;
    height: 40px;
    width: 40px;
}

.rtl #product-custom-user-dropdown-fields > div.form-group > div:after,
.select-quantity-div div.form-group > div:after{
    right: unset;
    left: 0px;
    border-left: 0;
    border-right: 1px solid #ccc;
}


.rtl .ekko-lightbox-nav-overlay a:last-child span {
    text-align: left;
}

.select-quantity-div > div.form-group {
    width: 100px;
}

.select-quantity-div > div.form-group > div:after{
    top: 0px
}


#product-custom-user-option-fields .form-group label {
    display: inline-block;
    width: 100%;
    padding: 10px 10px;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 3px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
}

#product-custom-user-option-fields, .add-review-form-checkbox {
    display: flex;
    flex-wrap: wrap;
}

#product-custom-user-option-fields .form-group, .add-review-form-checkbox .form-group {
    width: 100%;
}


#product-custom-user-option-fields input + span , .add-review-form-checkbox input + span {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    cursor: pointer;
    right: 2px;
    top: 4px;
    position: relative;
}

.rtl #product-custom-user-option-fields input + span ,.rtl .add-review-form-checkbox input + span {
    right: -2px;
}

.add-review-form-checkbox input + span {
    right: 0!important;
}

#product-custom-user-option-fields input:checked + span:after, .add-review-form-checkbox input:checked + span:after {
    position: absolute;
    top: -2px;
    content: "\e910";
    font-family: 'icomoon';
    font-size: 14px;
}

#product-custom-user-option-fields input, .add-review-form-checkbox input {
    display: none;
}

.description-icon{
    font-size: 32px;
    width: 32px;
    color:var(  --primary-color);
}

.description-title {
    font-size: 1.733rem;
    font-weight: 600;
    color: var(--tg-heading-color, #002169);
    margin-inline-start: 20px;
}

#product-description td, th {
    border: 2px solid #dddddd;
    text-align: center;
    padding: 8px;
}

/* --secondary-color-alt8 is one more of the undefined legacy variables (see
   the options-table comment above) - text was falling back to inherited
   color instead of the intended muted body tone. The 72px left margin is
   the same old icon-header offset .card-table/.description-title used
   (an icon column that no longer exists) - still correct for
   .description-title's bundle-offer usage (still has its icon), but wrong
   for every tab-pane usage (reviews breakdown, empty state, comments,
   metafields), which get it zeroed out below. */
.description-paragrah {
    margin-left: 72px;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--tg-body-color, #445374);
    line-height: 1.6;
}

.description-paragrah.reviews-break-down-div,
.description-paragrah.reviews-break-down-empty,
.description-paragrah.comment-section,
#additional-info-tab-pane .description-paragrah {
    margin-left: 0;
    margin-right: 0;
}

/* "Add Comment" and the rating summary card used to be two separate
   stacked rows - put on one row instead, actions on the reading-start side
   (right in RTL) and the summary card taking the rest of the row. */
.reviews-header-row {
    gap: 16px;
    margin-bottom: 20px;
}

.reviews-header-actions {
    flex: none;
}

.reviews-break-down-div {
    flex: 1;
    min-width: 280px;
}

.tooltip-info-icon{
    font-size: 1.5rem;
    color: var(--secondary-color-alt3);
}


.card-body {
    padding: 10px;
}

/* card-table/options-table (the variant options table, Additional-information
   tab) used --secondary-color-alt3/4 and --font-weight-sizeOne, none of
   which are defined anywhere in this theme's active CSS (only
   --primary-color got aliased to the theme's real color, in tpl-custom.css)
   - so the header row rendered with no background/weight at all, just
   default black text. Restyled with the theme's own --tg-* tokens instead.
   The old 72px left margin dates from the pre-restructure layout, where this
   table sat next to a 72px icon column that no longer exists now that it
   lives inside a plain tab pane - dropped so it uses the full tab width. */
.card-table {
    margin: 0 0 10px;
}

.card-table .card,
.options-table .card {
    border: none;
    border-radius: 12px;
    background: var(--tg-border-5, #F8F8F8);
}

.card-table-header {
    background: transparent;
    color: var(--tg-heading-color);
    font-size: 15px;
    font-weight: 600;
}

.card-table-header .card {
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid #E7E7E7;
}

.card-table-header .card-body {
    padding: 0 20px 12px;
}

.options-table {
    margin-bottom: 12px;
}

.options-table .card-body {
    padding: 16px 20px;
}

.options-table .price-detail {
    color: var(--tg-theme-primary);
    font-weight: 700;
}

.options-table .price-detail del {
    color: #8F9AB1;
    font-weight: 500;
    font-size: 0.8em;
    margin-inline-start: 8px;
}

.options-table span.d-none.d-lg-inline {
    color: #8F9AB1;
    font-style: italic;
    font-size: 14px;
}

.variant-image-wrapper {
    width: 44px;
    height: 44px;
    margin-right: 10px;
    border: 1px solid #E7E7E7;
    border-radius: 8px;
    overflow: hidden;
    background: var(--tg-color-white-default, #fff);
}

.rtl .variant-image-wrapper {
    margin-right: unset;
    margin-left: 10px;
}

.variant-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.add-review-btn {
    margin-inline-start: 15px;
}

/* Rating breakdown (templates/product.jinja and templates/reviews.jinja,
   both share this stylesheet, and both now use this same markup). Replaces
   the old flat "count + 5 star icons + label" rows - .card-rate/.icon-star1/
   .rating_count_* are gone now that nothing renders them any more - with a
   contained score+bar-chart card, giving the counts actual proportional
   weight instead of just floating text in a very wide, mostly-empty area. */
.rating-summary {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 520px;
    padding: 20px;
    border-radius: 12px;
    background: var(--tg-border-5, #F8F8F8);
}

@media (max-width: 575.98px) {
    .rating-summary {
        flex-direction: column;
        gap: 16px;
    }
}

.rating-summary-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: none;
    gap: 4px;
    padding-inline-end: 24px;
    border-inline-end: 1px solid #E7E7E7;
}

@media (max-width: 575.98px) {
    .rating-summary-score {
        flex-direction: row;
        padding-inline-end: 0;
        border-inline-end: none;
        border-bottom: 1px solid #E7E7E7;
        padding-bottom: 16px;
        width: 100%;
        justify-content: center;
    }
}

.rating-summary-count {
    color: #8F9AB1;
    font-size: 13px;
}

.rating-summary-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-bar-row .rating-bar-label {
    flex: 0 0 64px;
    font-size: 13px;
    color: var(--tg-body-color, #445374);
}

.rating-bar-track {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #E7E7E7;
    overflow: hidden;
}

.rating-bar-fill {
    display: block;
    height: 100%;
    background: var(--tg-theme-primary, var(--primary-color));
    border-radius: 4px;
}

.rating-bar-count {
    flex: 0 0 20px;
    text-align: center;
    font-size: 13px;
    color: #8F9AB1;
}

.user-review-date {
    margin-inline-start: auto;
    color: #cccccc;
    font-size: 13px;
}

/* .card-review (components/customer-reviews.jinja) is a bootstrap .card
   with bg-transparent forced in its own markup and no border/background of
   its own anywhere in this stylesheet - it was rendering as plain
   unstyled text with no visual boundary at all. Also fixes two more
   instances of the dead-.rtl-margin pattern already found and fixed
   elsewhere in this file, plus a reply-card background that only ever
   existed inside that dead .rtl branch (so it was actually invisible). */
.card-review {
    background: var(--tg-color-white-default, #fff) !important;
    border: 1px solid #E7E7E7 !important;
    border-radius: 12px;
}

.card-name-customer {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tg-heading-color, #002169);
    margin: 0px 2px 0px 2px;
}

/* main.css only colors these gold inside .product__reviews (the product
   header's own rating row) - components/rating-stars.jinja is reused here
   and in .rating-summary-score without that wrapper, so its stars were
   falling back to plain black text. */
.card-rate-comment .rating i,
.rating-summary-score .rating i {
    color: var(--tg-color-yellow-default, #FFBE17);
    font-size: 14px;
}

.user-review-text {
    color: var(--tg-body-color, #484848);
    margin-inline-start: 50px;
}

.card-review .icon-account_circle {
    width: 38px;
    height: 38px;
    font-size: 20px;
    background: #f0f2f5;
    text-align: center;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-review .review-images-container {
    margin-inline-start: 50px;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 15px;
}

.card-review .review-images-container img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 5px;
    border: #ced4da 1px solid;
    overflow: hidden;
    cursor: pointer;
}

.card-review .review-reply-card {
    padding: 12px 14px;
    border-radius: 10px;
    margin-inline-start: 50px;
    background-color: var(--tg-border-5, #F0F1F5);
}

.card-review .review-reply-card .icon-account_circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-review .card-name {
    margin-inline-start: 10px;
}

.product-social i{
    font-size: 20px;
    color:var(  --primary-color);
}

.product-social {
    margin-right: -7.5px;
    margin-left: -7.5px;
}

.product-social a {
    padding: 0px 7.5px;
}

/* --text-color-primary-bg is never defined anywhere in this theme's active
   CSS (same story as --secondary-color-alt3/4 on the options table above),
   so this button's text color was falling back to whatever it inherited -
   dark text on a purple pill, barely readable. Using the theme's real
   tokens instead, plus a proper pill shape matching the rest of the page
   (.add-btn, .buy-btn, the size picker). */
.add-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--tg-theme-primary, var(--primary-color));
    color: var(--tg-color-white-default, #fff);
    border: none;
    border-radius: 30px;
    padding: 10px 22px;
    font-weight: 600;
}

.add-review-btn:hover {
    background-color: var(--tg-theme-secondary, var(--primary-color));
    color: var(--tg-color-white-default, #fff);
}

.add-to-cart-icon {
  width: 20px;
  height: 20px;
  background-color: currentColor;
  mask-size: contain !important;
}

.buy-now-icon {
  width: 20px;
  height: 20px;
  background-color: currentColor;
  mask-size: contain !important;
}

.border-product {
    margin-top: 20px;
}

/* main.css wrote .add-btn/.buy-btn for the theme's own <a> markup, which has
   no native chrome. Add to cart/Buy now need to be real <button> elements
   (onclick cart logic, not navigation), and browsers' default button
   appearance (border/box-shadow bezel) was showing through as an ugly ring
   around the pill - reset it here. */
.product__details-qty .add-btn,
.product__details-content .buy-btn {
    border: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-icon,
.buy-now-icon {
    flex-shrink: 0;
}

/* #product-view-add-to-cart is an empty, unused platform hook (see the
   #product-parent-id incident - these ids get read directly by the
   platform's own bundled JS, so they're kept even though nothing in this
   codebase writes to them). An empty inline element still opens a
   "phantom" line box the height of one line, which was showing up as a
   stray gap between the wishlist row's divider and whatever follows it.
   Collapsing it here only affects it while it stays empty - if the
   platform ever injects real content, that content's own line-height
   still applies normally once it's actual text/elements. */
.product-view-add-to-cart-wrap {
    line-height: 0;
}

/* Old price + discount badge sit above .price (theme's big 30px/bold/
   primary-color price line) in their own small row, so they don't inherit
   that sizing and read as a secondary line instead of crowding the price. */
.product-price-discount-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.product-formatted-price-old {
    font-size: 16px;
    font-weight: 500;
    color: #8F9AB1;
}

.product-formatted-price-discount {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #f25f5f;
    border-radius: 30px;
    padding: 3px 12px;
    line-height: 1.6;
    white-space: nowrap;
}

/* main.css only styles a <button> descendant of .product__size-wrap
   .list-wrap li for the pill look. The platform's own click handler
   (productOptionListItemClicked, wired via vitrin:products/variants_list.jinja)
   expects the click to land directly on the <li>/<span> though, with no
   wrapping <button> in between - so the pill look is replicated directly
   on the <li> here instead of introducing that extra element. */
.product__size-wrap .list-wrap li.size-btn {
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: #F3F3F3;
    color: var(--tg-body-color);
    line-height: 1;
    border-radius: 30px;
    padding: 9px 16px;
    cursor: pointer;
}

.product__size-wrap .list-wrap li.size-btn.active {
    background: var(--tg-theme-primary);
    color: var(--tg-color-white-default);
}

.options-table .col {
    flex-basis: 0;
}

.options-table .variant-name-sm {
    margin-right: 20px;
    width: 22%;
}

.rtl .options-table .variant-name-sm {
    margin-right: unset;
    margin-left: 20px;
}

.options-table .m-col {
    margin: 5px 0px;
}

.rating-average {
    font-size: 2.5rem !important;
    font-weight: 700;
    min-width: 80px;
    margin: 0px;
    color: var(--tg-heading-color, #002169);
}

/*-- Product --*/
.modal-comment-content{
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-product-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.modal-product-title{
    font-size:1.833rem;
    font-weight: 700;
    color:var(--primary-color);
}

/* components/product-question-add.jinja's inputs/textarea/checkbox had no
   styling of their own beyond bootstrap's plain .form-control defaults, and
   the theme's own .btn class (main.css) gives every .btn a solid purple
   pill regardless of variant - so Cancel and Send were rendering as
   identical, equally-prominent purple buttons. */
.modal-comment-content .form-group + .form-group {
    margin-top: 16px;
}

.modal-comment-content .form-control {
    border-radius: 8px;
    border-color: #E7E7E7;
    padding: 12px 16px;
    font-size: 15px;
}

.modal-comment-content .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* main.css's generic .btn:hover forces every button to a solid purple fill
   plus a navy (--tg-theme-secondary) circle-sweep ::before animation on
   hover, regardless of variant - overriding both here so Cancel gets its
   own plain, muted hover instead of the same flashy effect as a primary
   call-to-action. */
.modal-comment-content .btn-default {
    background: transparent;
    color: var(--tg-body-color, #445374);
    border: 1px solid #D9D9D9;
}

.modal-comment-content .btn-default::before {
    display: none;
}

.modal-comment-content .btn-default:hover,
.modal-comment-content .btn-default:focus-visible {
    background: #F3F3F3;
    color: var(--tg-body-color, #445374);
    border-color: #D9D9D9;
}

.checkbox-container {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-inline-end: 6px;
    vertical-align: middle;
}

.checkbox-container .checkbox {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.checkbox-container .custom-checkmark {
    position: absolute;
    inset: 0;
    background: #fff;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
}

.checkbox-container .checkbox:checked ~ .custom-checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container .custom-checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container .checkbox:checked ~ .custom-checkmark::after {
    display: block;
}

.custom-checkbox-label {
    cursor: pointer;
    color: var(--tg-body-color, #445374);
}

.btnrating.active > i:before {
    color: #edb900;
}

.btnrating > i:before , .btnrating.deactive > i:before {
    color: #cccccc;
}

.btnrating {
    cursor: pointer;
    font-size: 18px;
}

.div-btnrating {
    margin-left: auto;
}

.rtl .div-btnrating {
    margin-left: unset;
    margin-right: auto;
}

.bottom-buttons, .review-remaining-count {
    text-align: right;
}

.rtl .bottom-buttons, .rtl .review-remaining-count {
    text-align: left;
}

.product-features {
    margin-right: -7.5px;
    margin-left: -7.5px;
    margin-bottom: 15px;
}

.product-features > div {
    padding-right: 7.5px;
    padding-left: 7.5px;
}

/* Was plain unstyled text + a flag icon sitting inline in the row - a small
   pill sets it apart the same way the badge/limited-quantity label above it
   already reads as one, instead of blending into the surrounding text. */
.low-quantity-section {
    background: rgba(236, 85, 80, 0.08);
    border: 1px solid rgba(236, 85, 80, 0.3);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 10px;
}

.low-quantity {
    color: #EC5550;
    font-size: 13px;
    font-weight: 600;
}

.bundle-offer-title-description {
    font-size: 1rem;
}

.bundle-offer-more {
    text-align: right;
}

.rtl .bundle-offer-more {
    text-align: left;
}

.bundle-offer-more > a {
    color: var( --primary-color);
    text-decoration: underline;
    font-size: 1.2rem;
    cursor: pointer;
}


.modal-dialog-scrollable .modal-dialog{
    overflow-y: initial !important
}

.modal-dialog-scrollable .modal-body .bundle-offer-products{
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.bundle-offer-title {
    unicode-bidi: isolate;
}

.bundle-offer-products-dialog .bundle-offer-title, .bundle-offer-products-dialog .bundle-offer-title-description {
    margin-right: 40px;
}

.rtl .bundle-offer-products-dialog .bundle-offer-title, .rtl .bundle-offer-products-dialog .bundle-offer-title-description {
    margin-right: 0px;
    margin-left: 40px;
}

.description-text-clear *{
    max-width: 100% !important;
}

.bundle-offer-details-products {
    overflow-x: visible;
    flex-wrap: wrap;
}

.section-out-of-stock-notify-me {
    margin: 20px 0;
}

.section-out-of-stock-notify-me > div > .product-title {
    margin-bottom: 15px;
    text-align: right;
}

/* This page never gets a literal .rtl class (RTL locales get dir="rtl" on
   <html> plus a separate mirrored main.rtl.css - see layout.jinja), so the
   .rtl selectors elsewhere in this file are dead. Direction-dependent rules
   added here target [dir] instead. */
html[dir="ltr"] .section-out-of-stock-notify-me > div > .product-title {
    text-align: left;
}

.form-notify-me {
    border: 1px solid var( --primary-color);
    padding: 15px;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: right;
}

html[dir="ltr"] .form-notify-me {
    text-align: left;
}

.form-notify-me h4 {
    margin: 0;
}

.form-notify-me-phone-row {
    display: flex;
    gap: 20px;
    direction: ltr;
}

.form-notify-me-phone-row > input:first-child {
    max-width: 80px;
    text-align: center;
}

.form-notify-me-phone-row > input:last-child {
    text-align: right;
}

html[dir="ltr"] .form-notify-me-phone-row > input:last-child {
    text-align: left;
}


.form-notify-me-submit-button-row {
    display: flex;
    justify-content: end;
}

.btn-send-notify {
    margin-left: 15px;
    width: 100px;
    height: 40px;
}

.rtl .btn-send-notify {
    margin-left: unset;
    margin-right: 15px;
}

.products-details-page .slick-dots {
    display: none !important;
}


.products-details-page .slick-arrow {
    background-color: rgba(204,204,204,0.7);
    border-radius: 50%;
    z-index: 2;
    opacity: 0.5;
}

.products-details-page .slick-next.slick-arrow>span,
.products-details-page .slick-prev.slick-arrow>span {
    color: #ffffff;
}

.products-details-page .slick-prev
{
    left: 0px;
}
[dir='rtl'] .products-details-page .slick-prev
{
    right:  0px;
    left: auto;
}


.products-details-page .slick-next
{
    right: 0px;
}

[dir='rtl'] .products-details-page .slick-next
{
    right: auto;
    left: 0px;
}

.col-product-info {
    padding-top: 0px;
}

.col-product-info-single-image {
    padding-top: 0px;
}

.col-product-image-wrapper {
    padding-right: 15px;
    padding-left: 15px;
}

#product-custom-user-input-fields .file-label {
    margin-bottom: 0px;
}

#product-custom-user-input-fields .icon-close::after {
    font-family: 'icomoon' !important;
    content: "\f05c";
    font-size: 18px;
    cursor: pointer;
}

#product-custom-user-input-fields .file-label > * {
    margin-right: 10px;
}

.rtl #product-custom-user-input-fields .file-label > * {
    margin-right: unset;
    margin-left: 10px;
}

@media only screen and (max-width: 768px) {

    /* main.css lets .product__details-qty (quantity stepper + Add to cart)
       wrap onto two lines below 767.98px, and the button's own flex-grow
       plus the stepper's fixed 149px width don't leave enough room to fit
       side by side on a phone anyway - shrink both instead so they stay on
       one line. */
    .product__details-qty {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .cart-plus-minus {
        width: 118px;
        flex-shrink: 0;
    }

    .cart-plus-minus input {
        height: 44px;
        padding: 0 30px;
        font-size: 15px;
    }

    .cart-plus-minus .qtybutton {
        width: 30px;
        height: 30px;
        top: 7px;
        bottom: auto;
    }

    /* This store runs RTL (main.rtl.css, loaded for session.lang == 'ar' -
       see layout.jinja), which mirrors the base .qtybutton/.qtybutton.inc
       rule to dec=right/inc=left. Setting only one side here (e.g.
       left:4px on .dec) leaves the OTHER side's value from that mirrored
       base rule in place too - left+right+width all explicit at once is
       over-constrained, and the spec has dir:rtl ignore `left` in that
       case, so both buttons collapsed onto the `right` edge on top of each
       other. Setting both sides explicitly here avoids that. */
    html[dir="rtl"] .cart-plus-minus .qtybutton {
        right: 4px;
        left: auto;
    }

    html[dir="rtl"] .cart-plus-minus .qtybutton.inc {
        left: 4px;
        right: auto;
    }

    html[dir="ltr"] .cart-plus-minus .qtybutton {
        left: 4px;
        right: auto;
    }

    html[dir="ltr"] .cart-plus-minus .qtybutton.inc {
        right: 4px;
        left: auto;
    }

    .product__details-qty .add-btn {
        padding: 12px 10px 9px;
        font-size: 14px;
        gap: 4px;
    }

    .user-review-text {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }

    .card-review .review-images-container {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }

    .card-review .review-reply-card {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }
    

    .description-paragrah {
        margin: 0px !important;
    }

    .card-table {
        margin: 0px 0px 10px 0px !important;
    }

    .options-table .col {
        flex-basis: unset;
    }

    /* .product-desc-wrap .nav-tabs (templates/product.jinja - the
       Description/Additional info/Reviews/Questions tab bar) is a plain
       flex row sized for desktop (20px font, 32px padding), with Bootstrap's
       default nav flex-wrap - all four tabs don't fit on a phone width, so
       they wrap onto two rows. Shrink each tab and keep the row on a single
       horizontally-scrollable line instead. */
    .product-desc-wrap .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        gap: 6px;
    }

    .product-desc-wrap .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .product-desc-wrap .nav-tabs .nav-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .product-desc-wrap .nav-tabs .nav-link {
        padding: 12px 16px 10px;
        font-size: 14px;
        white-space: nowrap;
    }

    .description-title {
        margin-left: 20px;
    }

    .rtl .description-title {
        margin-left: unset;
        margin-right: 20px;
    }

    .bundle-offer-details-products {
        overflow-x: scroll;
        flex-wrap: nowrap;
    }

    .add-review-btn {
        margin-inline-start: auto;
    }

    .products-details-page .lg-thumbs {
        display: none;
    }

    .products-details-page .slick-dots {
        display: block !important;
    }

    .products-details-page .products-details {
        margin-top: 0px;
    }

    .col-product-info {
        padding-top: 45px;
    }

    .col-product-info-single-image {
        padding-top: 25px;
    }

    .col-product-image-wrapper {
        padding: 0px;
    }

    .products-details-page .slick-arrow {
        display: none !important;
    }
}

.product-images-carousel-init {
    overflow: hidden;
}

.tabby-product-widget .tabby-promo-snippet {
    font-family: inherit;
}

.all-reviews-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--tg-theme-primary, var(--primary-color));
    text-decoration: none;
    border: 1px solid var(--tg-theme-primary, var(--primary-color));
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 600;
    margin-top: 10px;
}

.all-reviews-btn:hover {
    background-color: var(--tg-theme-primary, var(--primary-color));
    color: var(--tg-color-white-default, #fff);
}

.products-reviews-page .product-image {
    width: 150px;
    height: auto;
    margin-right: 15px;
    object-fit: contain;
    max-height: 180px;
}

.rtl .products-reviews-page .product-image {
    margin-right: 0px;
    margin-left: 15px;
}

.footer-sticky {
    display: block;
    bottom: 0;
    left: 0;
    position: -webkit-sticky;
    position: sticky;
    padding: 0px 20px;
    padding-bottom: calc(0px + env(safe-area-inset-bottom));
    width: 100%;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgb(0 0 0 / 20%);
    -webkit-transform: translateZ(0);
}

.questions-card-init {
  padding: 40px 24px;
  border: 1px dashed #D9D9D9 !important;
  border-radius: 12px;
}

.questions-card-init .image-box {
  margin-bottom: 18px;
  opacity: 0.6;
}

.questions-card-init .content-box {
  margin-bottom: 18px;
}

.questions-card-init .content-box p{
  font-size: 16px;
  color: #81808C;
  font-weight: 400;
}

/* .questions-card-preview is a bootstrap .card (components/product-questions.jinja)
   with no theme-consistent look of its own, just the default thin grey
   1px border - restyled as a soft rounded card matching the rest of the
   page (options table, review cards), with the question/answer visually
   told apart via a colored side accent instead of reading as one flat
   paragraph. */
.questions-card-preview {
  border: none !important;
  border-radius: 12px;
  background: var(--tg-border-5, #F8F8F8);
  padding: 20px;
}

.questions-view_more a {
  color: var(--tg-theme-primary, var(--primary-color));
  font-size: 14px;
  font-weight: 600;
}

.questions-card-preview .customer-name {
  margin-bottom: 12px;
  color: var(--tg-heading-color);
  font-weight: 600;
  font-size: 15px;
}

.questions-card-preview .question-box {
  border-inline-start: 3px solid var(--tg-theme-primary, var(--primary-color));
  padding-inline-start: 14px;
  margin-bottom: 16px;
}

.questions-card-preview .question-box .question {
  font-size: 16px;
  font-weight: 600;
  color: var(--tg-heading-color);
  margin-bottom: 0;
}

.questions-card-preview .answer-box {
  border-inline-start: 3px solid #D9D9D9;
  padding-inline-start: 14px;
}

.questions-card-preview .answer-box .answer-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #8F9AB1;
  margin-bottom: 4px;
}

.questions-card-preview .answer-box .answer {
  font-size: 15px;
  font-weight: 400;
  color: var(--tg-body-color, #494949);
}

.questions-pagination .page-item {
  font-size: 16px;
}

.questions-pagination .page-item .page-link {
  color: var(--primary-color);
}

.questions-pagination .page-item.selected a {
  background-color: var(--primary-color);
  color: #ffffff;
}

.play-icon, .iframe-video{
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  margin: 0 auto;
}
.play-icon {
  z-index: 2;
  cursor: pointer;
  opacity: 0.5;
  width: 70px !important;
  max-width: 25%;
  border: none !important;
}

.play-icon:hover {
  opacity: 1;
}
.iframe-video {
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  background-color: black;
  /* position stays "absolute", inherited from the ".play-icon, .iframe-video"
     rule above - that's what makes this cover the whole poster image as an
     overlay instead of sitting after it in normal flow. It also already
     works fine as the positioning anchor for #iframe-close-btn below, so
     there's no need to set position: relative here too (that was tried
     once and, being the same specificity but later in the file, silently
     overrode the absolute positioning above and broke the overlay). */
}

/* #iframe-close-btn was rendering as a plain "X" through the default .btn
   styles (a big padded pill sitting inline at the top of the flex column,
   overlapping the video's own title bar) - pinning it as a small round
   overlay button in the corner instead. .btn-none/.grow (its other classes)
   don't exist anywhere in this codebase, so .btn's own default look was all
   that was ever actually styling it. */
.iframe-video #iframe-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff !important;
  font-size: 16px;
  line-height: 1;
  border: none;
  cursor: pointer;
}

.iframe-video #iframe-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.85);
}

.rtl .iframe-video #iframe-close-btn {
  right: auto;
  left: 10px;
}

/* vitrin:products/custom_input_fields.jinja is a platform template (not in
   this repo), so its own field markup/classes aren't known here - spacing
   out its direct children generically (rather than guessing at a class name
   to target) works regardless of how many fields it renders or what it
   calls them. */
.custom-fields-wrap > * + * {
  margin-top: 20px;
}

/* #product-gallery-tab (the gallery thumbnail strip, templates/product.jinja)
   has no sizing of its own anywhere - each .nav-link's <img> renders at
   whatever size the source image is, and Bootstrap's plain flex-wrap .nav
   then wraps those oversized thumbnails down to ~2 per row on a phone.
   Fixed-size square thumbnails that stay on one scrollable line instead. */
@media (max-width: 767.98px) {
  #product-gallery-tab {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }
  #product-gallery-tab .nav-item {
    flex: 0 0 auto;
  }
  #product-gallery-tab .nav-link {
    width: 64px;
    height: 64px;
    padding: 4px;
  }
  #product-gallery-tab .nav-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
