.product-catalog-search {
    margin-bottom: 30px;
}

.product-catalog-search .form-control {
    height: 52px;
    border-radius: 0;
}

.product-catalog-search .btn {
    height: 52px;
    border-radius: 0;
    background: #fa4216;
    border-color: #fa4216;
    font-weight: 600;
}

.product-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-catalog-summary {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 18px;
}

.product-catalog-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.product-catalog-pagination .pagination {
    gap: 6px;
}

.product-catalog-pagination .page-link {
    border-radius: 0;
    color: #121213;
    min-width: 42px;
    text-align: center;
}

.product-catalog-pagination .page-item.active .page-link {
    background: #fa4216;
    border-color: #fa4216;
}

.product-catalog-pagination .page-item.disabled .page-link {
    color: #9ca3af;
}

.product-catalog-layout .ft-service-sidebar-widget {
    margin-bottom: 20px;
}

.product-catalog-layout .product-category-filter {
    padding: 16px 14px;
}

.product-catalog-layout .product-category-filter .widget-title {
    font-size: 16px;
    padding-bottom: 10px;
    margin-bottom: 0;
}

.product-catalog-layout .product-category-filter li {
    margin-bottom: 8px;
}

.product-catalog-layout .product-category-filter li a {
    padding: 8px 34px 8px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.product-catalog-layout .product-category-filter li a:after {
    top: 9px;
    right: 12px;
    font-size: 11px;
}

.product-card {
    background: #fff;
    border: 1px solid #eceff3;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.product-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.product-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f6f7f9;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__body {
    padding: 16px;
}

.product-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #121213;
}

.product-card__categories {
    font-size: 13px;
    color: #6b7280;
}

.service-category-widget ul li a.active {
    color: #fa4216;
    font-weight: 700;
}

.pgallery {
    margin-bottom: 32px;
    --pg-accent: #fa4216;
    --pg-dark: #121213;
}

.pgallery__stage {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 48px rgba(18, 18, 19, 0.1);
    border: 1px solid #e8ebf0;
}

.pgallery__slides {
    position: relative;
    min-height: 320px;
    background: linear-gradient(180deg, #fafbfc 0%, #f0f2f6 100%);
}

.pgallery__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgallery__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.pgallery__image {
    width: 100%;
    height: min(52vw, 420px);
    object-fit: contain;
    padding: 32px;
    box-sizing: border-box;
    cursor: zoom-in;
}

.pgallery__expand {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--pg-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pgallery__expand svg {
    width: 20px;
    height: 20px;
}

.pgallery__expand:hover {
    background: var(--pg-accent);
    color: #fff;
    transform: scale(1.05);
}

.pgallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--pg-dark);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pgallery__nav svg {
    width: 22px;
    height: 22px;
}

.pgallery__nav:hover {
    background: var(--pg-accent);
    color: #fff;
    transform: translateY(-50%) scale(1.06);
}

.pgallery__nav--prev {
    left: 16px;
}

.pgallery__nav--next {
    right: 16px;
}

.pgallery__counter {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(18, 18, 19, 0.78);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    z-index: 4;
}

.pgallery__indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.pgallery__indicators--single {
    pointer-events: none;
}

.pgallery__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(18, 18, 19, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.pgallery__dot.is-active {
    background: var(--pg-accent);
    transform: scale(1.2);
}

.pgallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.pgallery__thumb {
    flex: 0 0 88px;
    width: 88px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pgallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pgallery__thumb.is-active {
    border-color: var(--pg-accent);
    box-shadow: 0 6px 20px rgba(250, 66, 22, 0.22);
    transform: translateY(-2px);
}

.pgallery__legend {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--pg-dark);
    color: #fff;
}

.pgallery__legend h4 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}

.pgallery__legend p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.pgallery--single .pgallery__stage {
    border-radius: 16px;
}

.pgallery--single .pgallery__image {
    height: min(52vw, 420px);
}

.pgallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgallery-lightbox[hidden] {
    display: none !important;
}

.pgallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 16, 0.92);
}

.pgallery-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(94vw, 1100px);
    max-height: 94vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgallery-lightbox__figure {
    margin: 0;
    text-align: center;
}

.pgallery-lightbox__image {
    max-width: 100%;
    max-height: calc(94vh - 80px);
    object-fit: contain;
    border-radius: 8px;
}

.pgallery-lightbox__figure figcaption {
    margin-top: 14px;
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
}

.pgallery-lightbox__close,
.pgallery-lightbox__nav {
    position: absolute;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pgallery-lightbox__close:hover,
.pgallery-lightbox__nav:hover {
    background: var(--pg-accent);
    transform: scale(1.05);
}

.pgallery-lightbox__close {
    top: -52px;
    right: 0;
    width: 44px;
    height: 44px;
}

.pgallery-lightbox__close svg,
.pgallery-lightbox__nav svg {
    width: 22px;
    height: 22px;
}

.pgallery-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
}

.pgallery-lightbox__nav:hover {
    transform: translateY(-50%) scale(1.05);
}

.pgallery-lightbox__nav--prev {
    left: -64px;
}

.pgallery-lightbox__nav--next {
    right: -64px;
}

body.pgallery-lightbox-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .product-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pgallery-lightbox__nav--prev {
        left: 8px;
    }

    .pgallery-lightbox__nav--next {
        right: 8px;
    }

    .pgallery-lightbox__close {
        top: 12px;
        right: 12px;
        background: rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 575px) {
    .product-catalog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .pgallery__image {
        height: min(64vw, 300px);
        padding: 20px;
    }

    .pgallery__nav {
        width: 40px;
        height: 40px;
    }

    .pgallery__nav--prev {
        left: 10px;
    }

    .pgallery__nav--next {
        right: 10px;
    }
}

.product-detail-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-detail-meta {
    color: #6b7280;
    margin-bottom: 20px;
}

.product-detail-description {
    line-height: 1.8;
    margin-bottom: 24px;
    color: #374151;
    font-size: 16px;
}

.product-detail-description.rich-text-content strong,
.product-detail-description.rich-text-content b,
.product-detail-description.rich-text-content [style*="font-weight: bold"] {
    font-weight: 700;
}

.product-detail-description.rich-text-content em,
.product-detail-description.rich-text-content i,
.product-detail-description.rich-text-content [style*="font-style: italic"] {
    font-style: italic;
}

.product-detail-description.rich-text-content u,
.product-detail-description.rich-text-content [style*="text-decoration: underline"] {
    text-decoration: underline;
}

.product-detail-description.rich-text-content p,
.product-detail-description.rich-text-content div {
    margin-bottom: 0.85em;
}

.product-detail-description.rich-text-content p:last-child,
.product-detail-description.rich-text-content div:last-child {
    margin-bottom: 0;
}

.product-detail-description [style*="text-align: center"],
.product-detail-description div[align="center"],
.product-detail-description p[align="center"] {
    text-align: center;
}

.product-detail-description [style*="text-align: right"],
.product-detail-description div[align="right"],
.product-detail-description p[align="right"] {
    text-align: right;
}

.product-detail-description [style*="text-align: left"],
.product-detail-description div[align="left"],
.product-detail-description p[align="left"] {
    text-align: left;
}

.product-detail-sheet .btn {
    background: #fa4216;
    border-color: #fa4216;
    color: #fff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 0;
}

.product-empty {
    padding: 40px 20px;
    text-align: center;
    background: #f6f7f9;
    border: 1px dashed #d1d5db;
}
