
:root {
    --prod-radius: var(--tb-radius);
    --prod-radius-sm: var(--tb-radius-sm);
    --prod-shadow: var(--tb-shadow);
    --prod-shadow-hover: var(--tb-shadow-hover);
    --prod-border: var(--tb-line);
    --prod-bg-soft: var(--tb-bg-soft);
    --prod-bg-badge: var(--tb-bg-badge);
    --prod-text-muted: var(--tb-muted);
    --prod-transition: .25s ease;
}

/* Utility: hides a native form control visually while keeping it
   keyboard/screen-reader accessible (unlike display:none). */
.visually-hidden-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Font-size / spacing / brand-color utilities moved to the shared
   public/css/components.css (they're used on account pages too, which
   don't load this file — see .font-14/.main-color-one-bg there). */


/* --------------------------------------------------------------------------
   Breadcrumb — visual style now global (custom-bootstrap.css .breadcrumb-item)
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   Product gallery / thumbnails
   -------------------------------------------------------------------------- */
.product-gallery {
    background: var(--tb-white);
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius);
    padding: 15px;
}

ul.thumbnails {
    list-style: none;
    margin: 0;
    padding: 0;
}

.thumbnails .thumbnail {
    display: block;
    border-radius: var(--prod-radius);
    overflow: hidden;
}

.thumbnails .thumbnail img {
    width: 100%;
    height: 320px;
    object-fit: contain;
}

.thumb-product3 .item a,
.thumb-product3-mob .item a {
    display: block;
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-sm);
    overflow: hidden;
    transition: border-color var(--prod-transition);
}

.thumb-product3 .item a:hover,
.thumb-product3 .item a.active {
    border-color: var(--primary);
}

.thumb-product3 .item img,
.thumb-product3-mob .item img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    padding: 6px;
}

.thumb-product3-mob .item img {
    height: 260px;
}

.box-icon {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
    margin-right: 27px;
}

.share-box {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.share-box li a,
.share-box li button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--prod-bg-soft);
    color: var(--p-deep-light);
    border: 0;
    transition: background var(--prod-transition), color var(--prod-transition);
}

.share-box li a:hover,
.share-box li button:hover {
    background: var(--primary);
    color: var(--tb-white);
}


/* --------------------------------------------------------------------------
   Product meta (title / feature boxes / rating)
   -------------------------------------------------------------------------- */
.product-meta-title h5 {
    font-weight: 700;
    color: var(--dark);
}

.product-meta-title img {
    max-height: 40px;
    object-fit: contain;
}

.product-meta-feature {
    margin-top: 20px;
}

.product-meta-feature-items {
    background: var(--prod-bg-soft);
    border-radius: var(--prod-radius-sm);
    padding: 15px;
}

.product-meta-feature-items .title {
    font-weight: 700;
    color: var(--dark);
}

.product-meta-feature-items ul.navbar-nav li.nav {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed var(--prod-border);
    font-size: 13px;
}

.product-meta-feature-items ul.navbar-nav li.nav:last-child {
    border-bottom: 0;
}

.product-meta-feature-items ul.navbar-nav li.nav strong a {
    color: var(--p-deep-light);
}

#showmenu,
.close-box {
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    margin-top: 8px;
    display: inline-block;
}

.product-meta-rating .count-comment {
    font-size: 12px;
    margin-left: 8px;
}

.product-meta-rating .count-rating {
    color: var(--primary);
    font-size: 14px;
}

.product-meta-garanty {
    margin-top: 10px;
    font-size: 12px;
    gap: 6px;
}

.product-meta-garanty i {
    color: var(--primary);
    margin-left: 6px;
}


/* --------------------------------------------------------------------------
   Options / variants (resources/views/livewire/frontend/product/option-single.blade.php)
   -------------------------------------------------------------------------- */
.product-meta-color {
    margin-top: 20px;
}

.js-product-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.c-ui-variant {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--prod-border);
    border-radius: var(--tb-radius-pill);
    cursor: pointer;
    font-size: 13px;
    transition: border-color var(--prod-transition), background var(--prod-transition);
}

.c-ui-variant input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.c-ui-variant:has(input:focus-visible) {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.c-ui-variant__shape {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid var(--prod-border);
    flex-shrink: 0;
}

.c-ui-variant__check {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.c-ui-variant__price {
    color: var(--prod-text-muted);
    font-size: 11px;
    margin-right: 4px;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .js-c-ui-variant {
        flex: 1 1 100%;
        min-width: 0;
    }

    .c-ui-variant {
        width: 100%;
        padding: 10px 14px;
    }

    .c-ui-variant__check {
        justify-content: space-between;
        gap: 10px;
    }

    .c-ui-variant__price {
        font-size: 12px;
        margin-right: 0;
    }
}

.c-ui-variant:has(input:checked) {
    border-color: var(--primary);
    background: var(--account-brand-soft);
    color: var(--primary);
    font-weight: 700;
}

.option-list select.form-control {
    border-radius: var(--prod-radius-sm);
    border-color: var(--prod-border);
}

.product-meta-count {
    margin-top: 12px;
    font-size: 12px;
    color: var(--p-sale);
}


/* --------------------------------------------------------------------------
   Buy box (resources/views/livewire/frontend/product/price.blade.php)
   -------------------------------------------------------------------------- */
.product-meta-action {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--prod-border);
}

.buy-box-price {
    gap: 12px !important;
}

.offer-product .off-pro {
    background: var(--p-sale);
    color: var(--tb-white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--tb-radius-xs);
}

.buy-box-price .old-price {
    color: var(--prod-text-muted);
    text-decoration: line-through;
    font-size: 13px;
}

.buy-box-price .new-price {
    font-size: 22px;
    font-weight: 800;
}

.buy-box-price .info-cost {
    color: var(--primary);
    font-weight: 700;
}

.out-of-stock-badge {
    display: inline-block;
    background: var(--prod-bg-badge);
    color: var(--p-deep-light);
    padding: 8px 16px;
    border-radius: var(--prod-radius-sm);
    font-size: 13px;
}

.buy-box-actions #button-cart {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    border-radius: var(--prod-radius-sm);
    font-weight: var(--tb-btn-font-weight);
    color: var(--tb-white);
    cursor: pointer;
    transition: background var(--prod-transition);
}

.counter .bootstrap-touchspin {
    display: flex;
    align-items: center;
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-sm);
    overflow: hidden;
}

.counter .btn-counter {
    border: 0;
    background: var(--prod-bg-soft);
    width: 36px;
    height: 40px;
    font-size: 16px;
    font-weight: var(--tb-btn-font-weight);
    color: var(--dark);
    cursor: pointer;
    transition: background var(--prod-transition), color var(--prod-transition);
}

.counter .btn-counter:hover {
    background: var(--primary);
    color: var(--tb-white);
}

/* base sizing (was in custom.css) — .counter #input-quantity below layers
   the product-page look on top of it. */
#input-quantity {
    padding: 7px;
    min-width: 60px;
}

.counter #input-quantity {
    border: 0;
    height: 40px;
    background: var(--tb-white);
}

.notify-me-btn {
    background: var(--primary);
    color: var(--tb-white);
    border: 0;
    border-radius: var(--prod-radius-sm);
    padding: 12px 26px;
    font-size: 13px;
    transition: background var(--prod-transition);
}

.notify-me-btn:hover {
    background: var(--tb-secondary-dark);
    color: var(--tb-white);
}


/* --------------------------------------------------------------------------
   Mobile sticky buy bar
   -------------------------------------------------------------------------- */
.mobile-buy-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 9001;
    background: var(--tb-white);
    box-shadow: 0 -6px 20px rgba(23, 23, 23, .1);
    padding: 12px 0;
}

/* On phone widths the site-wide .mobile-toolbar (template.css) is also
   fixed to bottom:0 with z-index:9000 and would otherwise cover this bar. */
@media screen and (max-width: 767.98px) {
    .mobile-buy-bar {
        bottom: 60px;
    }
}

.mobile-buy-bar-price {
    font-weight: 800;
    font-size: 16px;
}

.mobile-buy-bar #mobileBuyBarBtn,
.mobile-buy-bar .btn {
    border-radius: var(--prod-radius-sm);
    padding: 10px 22px;
    font-weight: var(--tb-btn-font-weight);
}


/* --------------------------------------------------------------------------
   Product description tabs
   -------------------------------------------------------------------------- */
.product-desc-tab ul.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--prod-border);
    margin-bottom: 20px;
}

.product-desc-tab ul.nav li.nav-item button {
    background: none;
    border: 0;
    padding: 12px 4px;
    margin-left: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--prod-text-muted);
    position: relative;
}

.product-desc-tab ul.nav li.nav-item button a {
    color: inherit;
}

.product-desc-tab ul.nav li.nav-item button.active {
    color: var(--primary);
}

.product-desc-tab ul.nav li.nav-item button.active::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.product-desc-content {
    line-height: 2;
    color: var(--dark);
    font-size: 14px;
}

.read-more-state {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.read-more-state:focus-visible ~ .read-more-trigger {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.read-more-target {
    transition: .3s ease;
}

.read-more-state ~ .read-more-target {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.read-more-state:checked ~ .read-more-target {
    opacity: 1;
    max-height: none;
}

.read-more-trigger {
    cursor: pointer;
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
}

.read-more-trigger::after {
    content: 'ادامه مطلب';
}

.read-more-state:checked ~ .read-more-trigger::after {
    content: 'بستن';
}


/* --------------------------------------------------------------------------
   Technical specification table
   -------------------------------------------------------------------------- */
.box_list {
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius-sm);
    overflow: hidden;
}

.box_list .title {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--prod-bg-soft);
    padding: 12px 16px;
    margin: 0;
    font-weight: 700;
    color: var(--dark);
}

.box_list .title svg {
    color: var(--primary);
}

.param_list {
    margin: 0;
    padding: 0;
}

.param_list .row {
    border-bottom: 1px solid var(--prod-border);
}

.param_list .row:last-child {
    border-bottom: 0;
}

.box_params_list {
    padding: 10px 16px;
}

.box_params_list p {
    margin: 0;
    font-size: 13px;
}

.border_right_custom1 {
    color: var(--prod-text-muted);
}

.border_right_custom2 {
    color: var(--dark);
    font-weight: 600;
}


/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */
.comment-form {
    background: var(--prod-bg-soft);
    border-radius: var(--prod-radius);
    padding: 20px;
}

.list-commen {
    list-style: none;
    margin-top: 20px;
}

.list-commen .comment {
    border: 1px solid var(--prod-border);
    border-radius: var(--prod-radius);
    padding: 16px;
    background: var(--tb-white);
}

.list-commen .avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.list-commen .avatar img {
    width: 100%;
    height: 100%;
}

.list-commen .desc p {
    line-height: 1.9;
}

.comment-rates .positive,
.comment-rates .negitive {
    background: var(--prod-bg-badge);
    padding: 10px 14px;
}

.comment-rates .positive-nav .nav-link,
.comment-rates .negitive-nav .nav-link {
    background: var(--tb-white);
    border-radius: var(--tb-radius-xs);
    padding: 4px 10px;
    margin: 3px;
}

.list-commen .lnk {
    color: var(--p-deep-light);
}

.list-commen li.more {
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    padding: 12px 0;
}

.star-rating__wrap {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.star-rating__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.star-rating__ico {
    color: var(--tb-gray-400);
    font-size: 20px;
    cursor: pointer;
}

.star-rating__wrap:hover .star-rating__ico:hover,
.star-rating__wrap:hover .star-rating__ico:hover ~ .star-rating__ico,
.star-rating__input:checked ~ .star-rating__ico {
    color: var(--primary);
}

.star-rating__input:focus-visible ~ .star-rating__ico {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.btn-comment {
    display: block;
    padding: 12px 30px;
    border-radius: var(--prod-radius-sm);
    font-weight: var(--tb-btn-font-weight);
}


/* --------------------------------------------------------------------------
   Related / suggested product sliders
   -------------------------------------------------------------------------- */
.site-slider .header-content {
    margin-bottom: 20px;
}

.site-slider .title h5 {
    font-weight: 700;
    margin: 0;
}

.icon-title-product {
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 4px;
    margin-left: 10px;
}

.site-slider .link-more {
    color: var(--tb-gray-650);
    font-size: 13px;
    transition: color var(--prod-transition);
}

.site-slider .link-more:hover {
    color: var(--primary);
}

.owl-pro .owl-nav button {
    position: absolute;
    top: -52px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--prod-bg-soft) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark) !important;
    transition: background var(--prod-transition), color var(--prod-transition);
}

.owl-pro .owl-nav button:hover {
    background: var(--primary) !important;
    color: var(--tb-white) !important;
}

.owl-pro .owl-nav .owl-prev { left: 44px; }
.owl-pro .owl-nav .owl-next { left: 0; }


/* --------------------------------------------------------------------------
   Modals (added-to-cart / share)
   -------------------------------------------------------------------------- */
/* .modal-content radius/border/shadow now global — see custom-bootstrap.css */

.share-modal .share-icon-whatsapp,
.share-modal .share-icon-twitter,
.share-modal .share-icon-facebook,
.share-modal .share-icon-telegram {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tb-white);
    margin: auto;
}

.share-icon-whatsapp { background: #25d366; }
.share-icon-twitter { background: #1da1f2; }
.share-icon-facebook { background: #1877f2; }
.share-icon-telegram { background: #229ed9; }

#copy-button {
    border-radius: var(--prod-radius-sm);
    padding: 10px;
    font-weight: var(--tb-btn-font-weight);
}


