

/* 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(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: 15px;
}

ul.thumbnails {
    list-style: none;
    margin: 0;
    padding: 0;
}

.thumbnails .thumbnail {
    display: block;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-white);
}

.thumbnails .thumbnail img {
    width: 100%;
    height: 340px;
    object-fit: contain;
    padding: 16px;
}

.thumb-product3 .item a,
.thumb-product3-mob .item a {
    display: block;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.thumb-product3 .item a:hover,
.thumb-product3 .item a.active {
    border-color: var(--color-primary);
}

.thumb-product3 .item img,
.thumb-product3-mob .item img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    padding: 6px;
}

.thumb-product3 .item img {
    aspect-ratio: 1;
    height: auto;
}

/* The mobile slide already sits inside the framed .product-gallery box,
   so a second border on each slide just draws a box inside a box. */
.thumb-product3-mob .item a {
    border: 0;
}

.thumb-product3-mob .item img {
    height: 260px;
}

.thumb-product3-mob .owl-dots {
    margin-top: 6px;
}

.thumb-product3-mob .owl-dots .owl-dot span {
    width: 7px;
    height: 7px;
    margin: 4px;
}

.thumb-product3-mob .owl-dots .owl-dot.active span {
    width: 18px;
    background: var(--color-primary);
}

@media (max-width: 991.98px) {
    .product-gallery {
        padding: 8px;
        margin-inline: 0;
    }
}

.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(--color-surface-soft);
    color: var(--color-text-subtle);
    border: 0;
    transition: background var(--transition-base), color var(--transition-base);
}

.share-box li a:hover,
.share-box li button:hover {
    background: var(--color-primary);
    color: var(--color-white);
}


/* --------------------------------------------------------------------------
   Product meta (title / feature boxes / rating)
   -------------------------------------------------------------------------- */
.product-meta-title h5 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.7;
    color: var(--color-dark);
}

.product-meta-title p {
    font-size: 13px;
}

@media (max-width: 991.98px) {
    .product-meta-title h5 {
        font-size: 17px;
    }
}

.product-meta-title img {
    max-height: 40px;
    object-fit: contain;
}

.product-meta-feature {
    margin-top: 20px;
}

.product-meta-feature-items {
    background: var(--color-surface-soft);
    border-radius: var(--radius-sm);
    padding: 15px;
}

.product-meta-feature-items .title {
    font-weight: 700;
    color: var(--color-dark);
}

.product-meta-feature-items ul.navbar-nav li.nav {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed var(--color-line);
    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(--color-text-subtle);
}

#showmenu,
.close-box {
    color: var(--color-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(--color-primary);
    font-size: 14px;
}

.product-meta-garanty {
    margin-top: 10px;
    font-size: 12px;
    gap: 6px;
}

.product-meta-garanty i {
    color: var(--color-primary);
    margin-left: 6px;
}


/* --------------------------------------------------------------------------
   Options / variants (resources/views/livewire/frontend/product/option-single.blade.php)
   -------------------------------------------------------------------------- */
.product-meta-color {
    margin-top: 20px;
}

.product-option__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.product-option__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}

.product-option__title::after {
    content: ":";
}

.product-option__selected {
    font-size: 14px;
    color: var(--color-text-muted);
}

.js-product-variants {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.js-c-ui-variant {
    min-width: 0;
}

.c-ui-variant {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    margin: 0;
    padding: 10px 12px;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    user-select: none;
    transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.c-ui-variant:hover {
    border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
}

.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(--color-primary);
    outline-offset: 2px;
}

.c-ui-variant__shape {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-black) 12%, transparent);
}

.c-ui-variant__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.c-ui-variant__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c-ui-variant__price {
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.c-ui-variant__price small {
    font-size: 10px;
}

.c-ui-variant__tick {
    position: absolute;
    top: -7px;
    left: -7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 9px;
    color: var(--color-white);
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.6);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.c-ui-variant:has(input:checked) {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 6%, transparent);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.c-ui-variant:has(input:checked) .c-ui-variant__name,
.c-ui-variant:has(input:checked) .c-ui-variant__price {
    color: var(--color-primary);
}

.c-ui-variant:has(input:checked) .c-ui-variant__name {
    font-weight: 700;
}

.c-ui-variant:has(input:checked) .c-ui-variant__tick {
    opacity: 1;
    transform: scale(1);
}

.option-list .form-select {
    min-height: 44px;
    font-size: 14px;
    border-color: var(--color-line);
    border-radius: var(--radius-sm);
}

.option-list .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

@media (max-width: 575.98px) {
    .js-product-variants {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .c-ui-variant {
        min-height: 52px;
        padding: 8px 10px;
        gap: 8px;
    }

    .c-ui-variant__shape {
        width: 18px;
        height: 18px;
    }
}

.product-meta-count {
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-sale);
}


/* --------------------------------------------------------------------------
   Buy box (resources/views/livewire/frontend/product/price.blade.php)
   -------------------------------------------------------------------------- */
.product-meta-action {
    margin-top: 20px;
    padding: 18px 20px;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
}

.buy-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.buy-box-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.buy-box-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.buy-box-discount {
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-product .off-pro,
.buy-box-discount .off-pro {
    background: var(--color-sale);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 9px;
    border-radius: var(--radius-pill);
}

.buy-box-price .old-price {
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-size: 14px;
    line-height: 1;
}

.buy-box-price .new-price {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
}

.buy-box-price .new-price small {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.buy-box-price .info-cost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 700;
}

.buy-box-notice,
.out-of-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface-badge);
    color: var(--color-text-subtle);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.buy-box-notice {
    width: 100%;
}

.buy-box-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.notify-me-btn {
    align-self: flex-start;
}

.product-float-action #button-cart {
    flex: 1;
}

.counter .bootstrap-touchspin {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    overflow: hidden;
}

.counter .btn-counter {
    border: 0;
    background: transparent;
    width: 40px;
    height: 44px;
    font-size: 18px;
    font-weight: var(--btn-font-weight);
    color: var(--color-primary);
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base);
}

.counter .btn-counter:hover {
    background: var(--color-surface-soft);
}

/* 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;
    min-width: 0;
    width: 48px;
    height: 44px;
    padding: 0;
    font-weight: 700;
    background: var(--color-white);
}

.counter #input-quantity:focus {
    outline: none;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .product-meta-action {
        padding: 14px;
    }

    .buy-box-row {
        gap: 12px;
    }

    .buy-box-price .new-price {
        font-size: 20px;
    }

    .buy-box-actions,
    .notify-me-btn,
    .buy-box-call {
        width: 100%;
    }

    .buy-box-actions #button-cart {
        flex: 1;
        padding-inline: 14px;
    }
}


/* --------------------------------------------------------------------------
   Mobile sticky buy bar
   -------------------------------------------------------------------------- */
.mobile-buy-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 9001;
    background: var(--color-white);
    border-top: 1px solid var(--color-line);
    box-shadow: 0 -6px 20px color-mix(in srgb, var(--color-dark) 8%, transparent);
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
}

/* Reserve room so the fixed bar never covers the end of the page (footer). */
@media (max-width: 991.98px) {
    body:has(.mobile-buy-bar) {
        padding-bottom: 76px;
    }
}

.mobile-buy-bar-price {
    font-weight: 800;
    font-size: 16px;
}


/* --------------------------------------------------------------------------
   Floating info card (resources/views/livewire/frontend/product/info.blade.php)
   -------------------------------------------------------------------------- */
.product-float {
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-float-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-line);
}

.product-float-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    overflow: hidden;
}

.product-float-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.product-float-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--color-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-float-options .product-meta-color-items + .product-meta-color-items {
    margin-top: 12px;
}

.product-float-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: var(--color-surface-soft);
    border-radius: var(--radius-sm);
}

.product-float-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.product-float-old {
    width: 100%;
}

.product-float-old .old-price {
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-size: 13px;
}

.product-float-old .off-pro {
    background: var(--color-sale);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

.product-float-price .new-price {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}

.product-float-price .new-price small {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.product-float-price .info-cost {
    align-self: stretch;
    text-align: center;
    color: var(--color-primary);
    font-weight: 700;
}

.product-float-action {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.product-float-action .counter .bootstrap-touchspin {
    flex-wrap: nowrap;
    height: 100%;
    background: var(--color-white);
}

.product-float-action .counter #input-quantity {
    min-width: 0;
    width: 44px;
}

/* Narrow sidebar column (lg) and small phones: stack counter above the button. */
@media (min-width: 992px) and (max-width: 1199.98px), (max-width: 399.98px) {
    .product-float-action {
        flex-direction: column;
    }

    .product-float-action .counter .bootstrap-touchspin {
        justify-content: space-between;
    }

    .product-float-action .counter #input-quantity {
        flex: 1;
    }
}

@media (max-width: 991.98px) {
    .product-float {
        padding: 12px;
        box-shadow: none;
    }

    .product-float-thumb {
        width: 56px;
        height: 56px;
    }
}


/* --------------------------------------------------------------------------
   Product description tabs
   -------------------------------------------------------------------------- */
.product-desc-tab ul.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--color-line);
    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(--color-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(--color-primary);
}

/* Keep tabs on one swipeable line on phones instead of wrapping to two rows. */
@media (max-width: 767.98px) {
    .product-desc-tab ul.nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .product-desc-tab ul.nav::-webkit-scrollbar {
        display: none;
    }

    .product-desc-tab ul.nav li.nav-item button {
        white-space: nowrap;
        margin-left: 12px;
    }
}

.product-desc-tab ul.nav li.nav-item button.active::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
}

.product-desc-content {
    line-height: 2;
    color: var(--color-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(--color-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(--color-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(--color-line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.box_list .title {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface-soft);
    padding: 12px 16px;
    margin: 0;
    font-weight: 700;
    color: var(--color-dark);
}

.box_list .title svg {
    color: var(--color-primary);
}

.param_list {
    margin: 0;
    padding: 0;
}

.param_list .row {
    border-bottom: 1px solid var(--color-line);
}

.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(--color-text-muted);
}

.border_right_custom2 {
    color: var(--color-dark);
    font-weight: 600;
}


/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */
.comment-form {
    background: var(--color-surface-soft);
    border-radius: var(--radius-md);
    padding: 20px;
}

.list-commen {
    list-style: none;
    margin-top: 20px;
}

.list-commen .comment {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: 16px;
    background: var(--color-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(--color-surface-badge);
    padding: 10px 14px;
}

.comment-rates .positive-nav .nav-link,
.comment-rates .negitive-nav .nav-link {
    background: var(--color-white);
    border-radius: var(--radius-xs);
    padding: 4px 10px;
    margin: 3px;
}

.list-commen .lnk {
    color: var(--color-text-subtle);
}

.list-commen li.more {
    text-align: center;
    color: var(--color-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(--color-gray-300);
    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(--color-primary);
}

.star-rating__input:focus-visible ~ .star-rating__ico {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}


/* --------------------------------------------------------------------------
   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(--color-primary);
    border-radius: 4px;
    margin-left: 10px;
}

.site-slider .link-more {
    color: var(--color-gray-600);
    font-size: 13px;
    transition: color var(--transition-base);
}

.site-slider .link-more:hover {
    color: var(--color-primary);
}


/* --------------------------------------------------------------------------
   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(--color-white);
    margin: auto;
}

.share-icon-whatsapp { background: var(--color-social-whatsapp); }
.share-icon-twitter { background: var(--color-social-twitter); }
.share-icon-facebook { background: var(--color-social-facebook); }
.share-icon-telegram { background: var(--color-social-telegram); }


