/* Kingdom Stone — catalog Livewire bridge for Industrie theme */
[x-cloak] {
    display: none !important;
}

.ks-catalog-section {
    scroll-margin-top: 100px;
}

.ks-catalog-section .rs-section-title-wrapper {
    margin-bottom: 2.5rem;
}

.ks-catalog-filters {
    background: #fff;
    border: 1px solid rgba(97, 97, 97, 0.15);
    padding: 1.5rem 1.25rem;
    margin-bottom: 2rem;
    font-family: var(--rs-ff-body, "Space Grotesk", sans-serif);
}

.ks-catalog-filters .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.ks-catalog-filters .form-control {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 1rem;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: #1a1a1a;
    background-color: #fff;
    border: 1px solid rgba(97, 97, 97, 0.3);
    border-radius: 0;
    appearance: auto;
}

.ks-catalog-filters .form-control::placeholder {
    color: #888;
    font-size: 15px;
    opacity: 1;
}

.ks-catalog-filters .form-control:focus {
    border-color: var(--ks-accent-dark, #e5c96a);
    box-shadow: 0 0 0 0.15rem rgba(254, 230, 127, 0.35);
    outline: 0;
    background-color: #fff;
}

.ks-catalog-filters .ks-filter-num {
    width: 5.5rem;
    min-height: 42px;
    padding: 0.5rem 0.65rem;
    font-size: 15px;
}

.ks-catalog-filters .rs-btn {
    min-height: 48px;
    font-size: 15px;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
}

/* Custom searchable select (no Tailwind / theme button reset) */
.ks-catalog-filters .ks-select {
    position: relative;
    width: 100%;
}

.ks-catalog-filters .ks-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 1rem;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: #1a1a1a;
    text-align: left;
    background-color: #fff !important;
    border: 1px solid rgba(97, 97, 97, 0.3) !important;
    border-radius: 0;
    cursor: pointer;
}

.ks-catalog-filters .ks-select-trigger:hover,
.ks-catalog-filters .ks-select-trigger.is-open {
    border-color: var(--ks-accent-dark, #e5c96a) !important;
}

.ks-catalog-filters .ks-select-trigger:focus {
    outline: 0;
    border-color: var(--ks-accent-dark, #e5c96a) !important;
    box-shadow: 0 0 0 0.15rem rgba(254, 230, 127, 0.35);
}

.ks-catalog-filters .ks-select-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.ks-catalog-filters .ks-select-label.is-placeholder {
    color: #888;
}

.ks-catalog-filters .ks-select-chevron {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: #616161;
    transition: transform 0.2s ease;
}

.ks-catalog-filters .ks-select-chevron.is-open {
    transform: rotate(180deg);
}

.ks-catalog-filters .ks-select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1050;
    max-height: 16rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(97, 97, 97, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ks-catalog-filters .ks-select-search-wrap {
    padding: 0.5rem;
    border-bottom: 1px solid #ececec;
}

.ks-catalog-filters .ks-select-search {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    border: 1px solid rgba(97, 97, 97, 0.25);
    background: #fafafa;
}

.ks-catalog-filters .ks-select-search:focus {
    outline: 0;
    border-color: var(--ks-accent-dark, #e5c96a);
}

.ks-catalog-filters .ks-select-options {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    max-height: 12rem;
    overflow-y: auto;
}

.ks-catalog-filters .ks-select-option {
    display: block;
    width: 100%;
    padding: 0.55rem 1rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: #1a1a1a;
    text-align: left;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
}

.ks-catalog-filters .ks-select-option:hover {
    background: #f5f5f5 !important;
}

.ks-catalog-filters .ks-select-option.is-active {
    background: rgba(254, 230, 127, 0.35) !important;
    color: var(--ks-accent-dark, #e5c96a);
    font-weight: 600;
}

.ks-catalog-filters .ks-select-empty {
    padding: 0.75rem 1rem;
    font-size: 14px;
    color: #888;
}

.ks-catalog-section .descrip {
    font-size: 16px;
    line-height: 1.6;
}

.ks-catalog-card {
    background: #fff;
    border: 1px solid rgba(97, 97, 97, 0.12);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.ks-catalog-card-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}

.ks-catalog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ks-catalog-card:hover .ks-catalog-card-thumb img {
    transform: scale(1.05);
}

.ks-catalog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ks-catalog-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.ks-catalog-card-title:hover {
    color: var(--ks-accent-dark, #e5c96a);
}

.ks-catalog-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
}

.ks-catalog-card-actions .rs-btn {
    width: 100%;
    justify-content: center;
}

.ks-catalog-card-actions .ks-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(97, 97, 97, 0.25);
    background: transparent;
    font-size: 0.875rem;
    color: #616161;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.ks-catalog-card-actions .ks-btn-outline:hover {
    border-color: var(--ks-accent-dark, #e5c96a);
    color: var(--ks-accent-dark, #e5c96a);
}

.ks-catalog-empty {
    text-align: center;
    color: #888;
    padding: 3rem 0;
}

.ks-catalog-loading {
    text-align: center;
    padding: 2rem;
    color: #616161;
}

.ks-pagination .page-link {
    color: #1a1a1a;
    border-radius: 0;
}

.ks-pagination .page-item.active .page-link {
    background-color: var(--ks-accent, #fee67f);
    border-color: var(--ks-accent-dark, #e5c96a);
}

.ks-branch-card {
    background: #fff;
    border: 1px solid rgba(97, 97, 97, 0.12);
}

.ks-branch-card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ks-branch-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ks-branch-card-body {
    padding: 1.5rem;
}

.ks-branch-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.ks-branch-meta {
    margin-bottom: 0.35rem;
    color: #616161;
    font-size: 0.9rem;
}

.ks-branch-meta a {
    color: inherit;
    text-decoration: none;
}

.ks-branch-meta a:hover {
    color: var(--ks-accent-dark, #e5c96a);
}

.ks-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ks-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.ks-contact-list a {
    color: #fff;
    text-decoration: underline;
}

.ks-price-modal.show {
    display: block;
}

.ks-price-modal .modal-content {
    border-radius: 0;
}

.ks-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
}

.ks-image-lightbox img {
    max-height: 90vh;
    max-width: 100%;
    object-fit: contain;
}

.ks-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header logo — cap size (company logos are often large PNGs) */
.rs-header-two .rs-header-logo .ks-header-logo-img,
.rs-sticky-header .rs-header-logo .ks-header-logo-img {
    display: block;
    max-height: 42px;
    width: auto;
    max-width: 160px;
    height: auto;
    object-fit: contain;
}

@media only screen and (max-width: 991px) {
    .rs-header-two .rs-header-logo .ks-header-logo-img,
    .rs-sticky-header .rs-header-logo .ks-header-logo-img {
        max-height: 36px;
        max-width: 130px;
    }
}

/* Language switcher (replaces select + nice-select) */
.ks-locale-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ks-locale-link {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 0.35rem 0.25rem;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.ks-locale-link:hover,
.ks-locale-link.is-active {
    color: #fff;
}

.ks-locale-link.is-active {
    color: var(--ks-accent, #fee67f);
}

.ks-locale-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    user-select: none;
}

.ks-locale-switcher--dark .ks-locale-link {
    color: #616161;
}

.ks-locale-switcher--dark .ks-locale-link:hover,
.ks-locale-switcher--dark .ks-locale-link.is-active {
    color: var(--ks-accent, #fee67f);
}

.ks-locale-switcher--dark .ks-locale-sep {
    color: #ccc;
}

/* Hide template settings gear (RTL/LTR) if main.js still injects it */
.rs-theme-settings-area {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Product detail */
.ks-product-detail {
    padding: 4rem 0;
}

.ks-product-detail .rs-section-subtitle {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    justify-content: flex-start;
}

.ks-product-detail h1.rs-section-title {
    font-size: 1.625rem;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.01em;
}

@media only screen and (max-width: 991px) {
    .ks-product-detail h1.rs-section-title {
        font-size: 1.375rem;
    }
}

.ks-product-detail .ks-product-breadcrumb span:last-child {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ks-text, #1f1f1f);
    line-height: 1.4;
}

.ks-product-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #616161;
}

.ks-product-breadcrumb a {
    color: #616161;
    text-decoration: none;
}

.ks-product-breadcrumb a:hover {
    color: var(--ks-accent-dark, #e5c96a);
}

.ks-product-gallery-main {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.ks-product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.ks-product-thumb {
    border: 2px solid transparent;
    padding: 0;
    background: none;
    cursor: pointer;
}

.ks-product-thumb.active {
    border-color: var(--ks-accent-dark, #e5c96a);
}

.ks-product-specs dt {
    color: #616161;
}

.ks-product-specs dd {
    font-weight: 600;
}
