/* Shop / Product pages — Gudfin theme extension */

.vs-pagination.pagi-shop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.vs-pagination.pagi-shop ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.vs-pagination.pagi-shop ul li a,
.vs-pagination.pagi-shop ul li span,
.vs-pagination.pagi-shop .pagi-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pbmit-white-color);
    color: var(--pbmit-secondary-color);
    border: 1px solid rgba(22, 34, 45, 0.08);
    font-weight: 600;
    transition: 0.25s ease;
    text-decoration: none;
    line-height: 1;
}

.vs-pagination.pagi-shop .pagi-btn i {
    font-size: 14px;
    line-height: 1;
    display: inline-block;
}

.vs-pagination.pagi-shop ul li.active span,
.vs-pagination.pagi-shop ul li a:hover,
.vs-pagination.pagi-shop .pagi-btn:hover:not(.disabled) {
    background: var(--pbmit-global-color);
    color: var(--pbmit-white-color);
    border-color: var(--pbmit-global-color);
}

.vs-pagination.pagi-shop .pagi-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.shop-layout {
    padding: 70px 0 90px;
}

.shop-sidebar {
    background: var(--pbmit-white-color);
    border: 1px solid rgba(22, 34, 45, 0.06);
    border-radius: 18px;
    padding: 28px;
    position: sticky;
    top: 120px;
}

.shop-sidebar-block + .shop-sidebar-block {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(22, 34, 45, 0.08);
}

.shop-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pbmit-heading-color);
    margin: 0 0 16px;
}

.shop-collapse .shop-sidebar-title {
    margin-bottom: 0;
}

.shop-collapse-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: right;
}

.shop-collapse-toggle span {
    font-size: 18px;
    font-weight: 700;
    color: var(--pbmit-heading-color);
}

.shop-collapse-icon {
    font-size: 12px;
    color: var(--pbmit-secondary-color);
    transition: transform 0.25s ease;
    display: inline-block;
}

.shop-collapse.is-open .shop-collapse-icon {
    transform: rotate(-90deg);
}

.shop-collapse-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.shop-collapse.is-open .shop-collapse-body {
    grid-template-rows: 1fr;
    margin-top: 16px;
}

.shop-collapse-body > * {
    overflow: hidden;
    min-height: 0;
}

.shop-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.shop-filter-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    color: var(--pbmit-body-typography-color);
    font-size: 15px;
}

.shop-filter-list input[type="checkbox"],
.shop-filter-list input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--pbmit-global-color);
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: checkbox;
    opacity: 1;
    visibility: visible;
}

.shop-filter-list input[type="radio"] {
    -webkit-appearance: radio;
}

.shop-filter-list input[type="checkbox"]:hover,
.shop-filter-list input[type="checkbox"]:active,
.shop-filter-list input[type="checkbox"]:focus,
.shop-filter-list input[type="radio"]:hover,
.shop-filter-list input[type="radio"]:active,
.shop-filter-list input[type="radio"]:focus {
    outline: none !important;
    box-shadow: none !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.shop-filter-list input[type="radio"]:hover,
.shop-filter-list input[type="radio"]:active,
.shop-filter-list input[type="radio"]:focus {
    -webkit-appearance: radio !important;
}

.shop-filter-input,
.shop-filter-select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(22, 34, 45, 0.1);
    border-radius: 12px;
    padding: 0 16px;
    background: var(--pbmit-light-color);
    color: var(--pbmit-secondary-color);
    outline: none;
}

.shop-filter-input:focus,
.shop-filter-select:focus {
    border-color: var(--pbmit-global-color);
    background: var(--pbmit-white-color);
}

.shop-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.shop-filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.shop-filter-actions .pbmit-btn,
.shop-filter-actions .shop-reset-btn {
    width: 100%;
}

.shop-filter-actions .pbmit-btn {
    border: 1px solid var(--pbmit-global-color);
    background: var(--pbmit-global-color);
    color: var(--pbmit-white-color);
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
}

.shop-filter-actions .pbmit-btn:hover {
    background: var(--pbmit-secondary-color);
    border-color: var(--pbmit-secondary-color);
    color: var(--pbmit-white-color);
}

.shop-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 50px;
    border: 1px solid rgba(22, 34, 45, 0.12);
    color: var(--pbmit-secondary-color);
    background: transparent;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.shop-reset-btn:hover {
    border-color: var(--pbmit-global-color);
    color: var(--pbmit-global-color);
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 18px 22px;
    border-radius: 16px;
    background: var(--pbmit-light-color);
}

.shop-toolbar-meta {
    color: var(--pbmit-body-typography-color);
    margin: 0;
}

.shop-toolbar-meta strong {
    color: var(--pbmit-secondary-color);
}

.shop-sort-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-sort-wrap label {
    margin: 0;
    font-weight: 600;
    color: var(--pbmit-secondary-color);
}

.shop-sort-wrap select {
    min-width: 180px;
    height: 46px;
    border-radius: 12px;
    border: 0;
    padding: 0 14px;
    background: var(--pbmit-white-color);
    color: var(--pbmit-secondary-color);
}

.shop-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--pbmit-white-color);
    border: 1px solid rgba(22, 34, 45, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.shop-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(22, 34, 45, 0.1);
    border-color: rgba(103, 150, 255, 0.35);
}

.shop-product-media {
    position: relative;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    background: linear-gradient(160deg, #f7f9fb 0%, #eef2f6 100%);
}

.shop-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-product-card:hover .shop-product-media > a img {
    transform: scale(1.06);
}

.shop-card-slider,
.shop-card-slider .swiper-wrapper,
.shop-card-slider .swiper-slide,
.shop-card-slide-link {
    height: 100%;
}

.shop-card-slide-link {
    display: block;
}

.shop-card-slider .swiper-pagination {
    bottom: 12px !important;
}

.shop-card-slider .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.shop-card-slider .swiper-pagination-bullet-active {
    background: var(--pbmit-global-color);
}

.shop-detail-slider,
.shop-detail-slider .swiper-wrapper,
.shop-detail-slider .swiper-slide {
    height: 100%;
}

.shop-detail-slider .swiper-pagination {
    bottom: 16px !important;
}

.shop-detail-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.75);
    opacity: 1;
}

.shop-detail-slider .swiper-pagination-bullet-active {
    background: var(--pbmit-global-color);
}

.shop-product-badges {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.shop-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pbmit-white-color);
    background: var(--pbmit-secondary-color);
}

.shop-badge.is-sale {
    background: var(--pbmit-global-color);
}

.shop-badge.is-out {
    background: #c0392b;
}

.shop-product-body {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shop-product-brand {
    display: block;
    margin-bottom: 8px;
    color: var(--pbmit-global-color);
    font-size: 13px;
    font-weight: 700;
}

.shop-product-title {
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 14px;
    min-height: 54px;
}

.shop-product-title a {
    color: var(--pbmit-heading-color);
    text-decoration: none;
}

.shop-product-title a:hover {
    color: var(--pbmit-global-color);
}

.shop-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    min-height: 46px;
}

.shop-price {
    display: grid;
    gap: 4px;
    min-width: 0;
    min-height: 42px;
    align-content: center;
}

.shop-price-old {
    font-size: 13px;
    line-height: 1.2;
    color: #9aa6ab;
    text-decoration: line-through;
    min-height: 16px;
}

.shop-price-current {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--pbmit-secondary-color);
    direction: ltr;
    text-align: right;
}

.shop-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.shop-card-action-form {
    margin: 0;
    display: inline-flex;
}

.shop-card-action {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.shop-card-action i {
    font-size: 14px;
    line-height: 1;
}

.shop-card-action.is-cart {
    background: var(--pbmit-global-color);
    color: #000000;
    box-shadow: 0 10px 22px rgba(103, 150, 255, 0.32);
}

.shop-card-action.is-cart:hover {
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(103, 150, 255, 0.42);
}

.shop-card-action.is-details {
    background: var(--pbmit-secondary-color);
    color: #fff;
    box-shadow: 0 10px 22px rgba(10, 42, 102, 0.18);
}

.shop-card-action.is-details:hover {
    color: #fff;
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.shop-card-action:focus-visible {
    outline: 2px solid rgba(103, 150, 255, 0.7);
    outline-offset: 2px;
}

/* legacy alias */
.shop-card-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pbmit-light-color);
    color: var(--pbmit-secondary-color);
    text-decoration: none;
    transition: 0.25s ease;
}

.shop-card-btn:hover {
    background: var(--pbmit-global-color);
    color: var(--pbmit-white-color);
}

.shop-empty {
    text-align: center;
    padding: 70px 24px;
    border-radius: 20px;
    background: var(--pbmit-light-color);
}

.shop-empty h3 {
    margin-bottom: 10px;
}

.shop-empty p {
    margin-bottom: 24px;
}

.shop-latest-list {
    display: grid;
    gap: 14px;
}

.shop-latest-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    text-decoration: none;
}

.shop-latest-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.shop-latest-item strong {
    display: block;
    color: var(--pbmit-heading-color);
    font-size: 14px;
    margin-bottom: 4px;
}

.shop-latest-item span {
    color: var(--pbmit-global-color);
    font-size: 13px;
    font-weight: 700;
    direction: ltr;
    display: inline-block;
}

/* Product detail */

.product-detail {
    padding: 70px 0 90px;
}

.product-gallery {
    position: sticky;
    top: 120px;
}

.product-gallery-main {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(160deg, #f7f9fb 0%, #eef2f6 100%);
    border: 1px solid rgba(22, 34, 45, 0.06);
    aspect-ratio: 1 / 1.05;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.product-gallery-thumb {
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    background: var(--pbmit-light-color);
    cursor: pointer;
    aspect-ratio: 1;
}

.product-gallery-thumb.is-active,
.product-gallery-thumb:hover {
    border-color: var(--pbmit-global-color);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-summary {
    padding: 10px 0 10px 20px;
}

.product-summary-brand {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--pbmit-global-color);
    font-weight: 700;
    font-size: 14px;
}

.product-summary-title {
    font-size: 36px;
    line-height: 1.35;
    margin: 0 0 18px;
}

.product-summary-caption {
    color: var(--pbmit-body-typography-color);
    margin-bottom: 24px;
}

.product-summary-price {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--pbmit-light-color);
}

.product-summary-price .current {
    font-size: 28px;
    font-weight: 800;
    color: var(--pbmit-secondary-color);
    direction: ltr;
}

.product-summary-price .old {
    font-size: 16px;
    color: #9aa6ab;
    text-decoration: line-through;
    direction: ltr;
}

.product-summary-price .save {
    background: rgba(103, 150, 255, 0.15);
    color: #b88400;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-weight: 700;
}

.product-stock.is-in {
    color: #1f8f4e;
}

.product-stock.is-out {
    color: #c0392b;
}

.product-meta-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.product-meta-list li {
    display: flex;
    gap: 8px;
    color: var(--pbmit-body-typography-color);
}

.product-meta-list strong {
    color: var(--pbmit-secondary-color);
    min-width: 90px;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.product-add-cart-form {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    flex: 0 1 auto;
}

.product-qty-input {
    box-sizing: border-box;
    width: 72px;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid rgba(22, 34, 45, 0.12);
    border-radius: 50px;
    background: var(--pbmit-light-color);
    color: var(--pbmit-secondary-color);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    direction: ltr;
    appearance: textfield;
    -moz-appearance: textfield;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-qty-input::-webkit-outer-spin-button,
.product-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-qty-input:focus {
    border-color: var(--pbmit-global-color);
    box-shadow: 0 0 0 3px rgba(103, 150, 255, 0.18);
}

.product-actions .product-action-btn,
.product-actions .pbmit-btn,
.product-actions .shop-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0 24px;
    border-radius: 50px;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.product-actions .pbmit-btn {
    border: 1px solid transparent;
}

.product-actions-alert {
    flex: 1 1 100%;
    margin: 0 0 4px;
}

.product-panel {
    margin-top: 60px;
    background: var(--pbmit-white-color);
    border: 1px solid rgba(22, 34, 45, 0.06);
    border-radius: 24px;
    overflow: hidden;
}

.product-panel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid rgba(22, 34, 45, 0.08);
    background: var(--pbmit-light-color);
}

.product-panel-tab {
    border: 0;
    background: transparent;
    padding: 18px 26px;
    font-weight: 700;
    color: var(--pbmit-body-typography-color);
}

.product-panel-tab.is-active {
    background: var(--pbmit-white-color);
    color: var(--pbmit-secondary-color);
    box-shadow: inset 0 -3px 0 var(--pbmit-global-color);
}

.product-panel-body {
    padding: 32px;
}

.product-panel-pane {
    display: none;
}

.product-panel-pane.is-active {
    display: block;
}

.product-specs {
    display: grid;
    gap: 12px;
}

.product-spec-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--pbmit-light-color);
}

.product-spec-row strong {
    color: var(--pbmit-secondary-color);
}

.product-related {
    margin-top: 70px;
    padding: 70px 0;
}

@media (max-width: 991px) {
    .shop-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .product-gallery {
        position: static;
        margin-bottom: 30px;
    }

    .product-summary {
        padding-left: 0;
    }

    .product-summary-title {
        font-size: 28px;
    }

    .product-spec-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 767px) {
    .product-actions {
        gap: 10px;
    }

    .product-add-cart-form {
        width: 100%;
    }

    .product-add-cart-form .product-action-btn {
        flex: 1 1 auto;
    }

    .product-actions > .product-action-btn {
        flex: 1 1 calc(50% - 5px);
    }
}

@media (max-width: 575px) {
    .shop-product-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .shop-card-actions {
        width: 100%;
    }

    .shop-card-action-form,
    .shop-card-action.is-details {
        flex: 1;
    }

    .shop-card-action-form .shop-card-action,
    .shop-card-action.is-details {
        width: 100%;
    }

    .product-actions > .product-action-btn {
        flex: 1 1 100%;
    }
}

/* Home products slider */
.home-products-section {
    position: relative;
}

.home-products-lead {
    max-width: 560px;
    color: rgba(var(--pbmit-blackish-color-rgb), 0.7);
    font-size: 16px;
    line-height: 1.8;
}

.home-products-toolbar {
    min-height: 52px;
}

.home-products-arrow {
    position: relative;
    min-width: 120px;
    min-height: 52px;
}

.home-products-section .home-products-arrow .swiper-button-next,
.home-products-section .home-products-arrow .swiper-button-prev {
    position: absolute;
    top: 0;
    inset: auto auto 0 0;
}

.home-products-section .home-products-arrow .swiper-button-prev {
    margin-left: 60px;
    transform: rotate(0deg) !important;
}

.home-products-section .home-products-arrow .swiper-button-next {
    transform: rotate(180deg) !important;
}

.home-products-slider .swiper-slide {
    height: auto;
}

.home-products-slider .shop-product-card {
    height: 100%;
}

.home-products-slider .swiper-pagination {
    position: relative;
    margin-top: 36px;
    bottom: 0 !important;
}

@media (max-width: 767px) {
    .home-products-toolbar {
        width: 100%;
    }
}
