/* Product-card shell: visual states only. Sizes and spacing are controlled by Elementor. */
.ks-native-product-card {
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ks-native-product-card-en {
    font-family: "Manrope", Arial, sans-serif;
}

.ks-native-product-card-ar {
    font-family: "Cairo", Arial, sans-serif;
}

.ks-native-product-card:hover {
    border-color: #6F5135;
    box-shadow: 0 10px 24px rgba(47, 36, 24, .07);
    transform: translateY(-2px);
}

.ks-native-product-card:focus-within {
    outline: 2px solid #6F5135;
    outline-offset: 2px;
}

.ks-native-product-card .ks-native-brand .elementor-heading-title,
.ks-native-product-card .ks-native-concentration .elementor-heading-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ks-native-product-card .ks-native-concentration:has(.elementor-heading-title:empty) {
    display: none;
}

.ks-native-product-card-en .ks-native-price .price,
.ks-native-product-card-en .ks-native-price .price * {
    font-family: "Manrope", Arial, sans-serif !important;
}

.ks-native-product-card-ar .ks-native-price .price,
.ks-native-product-card-ar .ks-native-price .price * {
    font-family: "Cairo", Arial, sans-serif !important;
}

.ks-native-product-card .ks-native-price .price ins {
    color: #7A5A3A !important;
    text-decoration: none !important;
}

/* Media controls: positioning only. */
.ks-card-media {
    position: relative;
    overflow: visible;
}

.ks-card-media .ks-quick-view-widget,
.ks-card-media .ks-cart-icon-widget {
    position: absolute;
    top: 14px;
    z-index: 5;
    margin: 0;
}

.ks-card-media .ks-quick-view-widget {
    left: 14px;
}

.ks-card-media .ks-cart-icon-widget {
    right: 14px;
}

/* Reusable eye/cart controls. Their dimensions belong to the components, not Elementor layout. */
.ks-pc-quick-view,
.ks-card-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.ks-pc-quick-view {
    border: 1px solid #C9AA7E;
    background: rgba(255, 253, 252, .96);
    color: #2F2418;
    box-shadow: 0 7px 18px rgba(47, 36, 24, .1);
}

.ks-pc-quick-view svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ks-pc-quick-view:hover,
.ks-pc-quick-view:focus-visible {
    border-color: #2F2418;
    background: #2F2418;
    color: #FFFDFC;
    transform: translateY(-1px);
    outline: none;
}

.ks-card-cart-icon {
    border: 1px solid #2F2418;
    background: #2F2418;
    color: #FFFDFC;
    box-shadow: 0 7px 18px rgba(47, 36, 24, .16);
}

.ks-card-cart-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ks-card-cart-icon:hover {
    border-color: #7A5A3A;
    background: #7A5A3A;
    color: #FFFDFC;
    box-shadow: 0 10px 22px rgba(122, 90, 58, .24);
    transform: translateY(-1px);
}

.ks-card-cart-icon:active {
    border-color: #19120D;
    background: #19120D;
    color: #FFFDFC;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25);
    transform: translateY(1px);
}

.ks-card-cart-icon:focus-visible {
    border-color: #2F2418;
    background: #2F2418;
    color: #FFFDFC;
    outline: 2px solid #B9966E;
    outline-offset: 3px;
}

.ks-cart-icon-widget .added_to_cart {
    display: none !important;
}

.ks-card-cart-icon.loading {
    pointer-events: none;
    opacity: .78;
}

.ks-card-cart-icon.added {
    border-color: #7A5A3A;
    background: #7A5A3A;
}

/* Quick-view modal. */
html.ks-pc-modal-open,
body.ks-pc-modal-open {
    overflow: hidden;
}

.ks-pc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ks-pc-modal.is-open {
    display: flex;
}

.ks-pc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 15, 11, .62);
    backdrop-filter: blur(2px);
}

.ks-pc-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid #D8CDBF;
    border-radius: 0;
    background: #FFFDFC;
    box-shadow: 0 30px 80px rgba(30, 20, 12, .24);
    outline: none;
}

.ks-pc-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #D8CDBF;
    border-radius: 0;
    background: #FFFDFC;
    color: #2F2418;
    font: 300 28px/1 Arial, sans-serif;
    cursor: pointer;
}

.ks-pc-close:hover,
.ks-pc-close:focus-visible {
    border-color: #2F2418;
    background: #2F2418;
    color: #FFFDFC;
    outline: none;
}

.ks-pc-loading,
.ks-pc-error {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #706862;
    font-family: Manrope, Cairo, Arial, sans-serif;
    font-size: 14px;
    text-align: center;
}

.ks-pc-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #DDD4C8;
    border-top-color: #A9855F;
    border-radius: 50%;
    animation: ks-pc-spin .75s linear infinite;
}

@keyframes ks-pc-spin {
    to { transform: rotate(360deg); }
}

.ks-pc-quick-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    min-height: 520px;
    color: #191516;
}

.ks-pc-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 48px 34px;
    background: #FFFDFC;
}

.ks-pc-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ks-pc-product-image {
    width: 100%;
    max-width: 420px;
    max-height: 440px;
    object-fit: contain;
    object-position: center;
}

.ks-pc-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 58px 44px 42px;
    border-left: 1px solid #E8E0D5;
    background: #FAF7F1;
    font-family: Manrope, Cairo, Arial, sans-serif;
}

.ks-pc-quick-content[dir="rtl"] .ks-pc-summary {
    border-right: 1px solid #E8E0D5;
    border-left: 0;
    font-family: Cairo, Arial, sans-serif;
}

.ks-pc-quick-content[dir="rtl"] .ks-pc-full-details span {
    display: inline-block;
    transform: rotate(180deg);
}

.ks-pc-brand {
    margin-bottom: 7px;
    color: #A9855F;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ks-pc-quick-content[dir="rtl"] .ks-pc-brand {
    letter-spacing: 0;
    text-transform: none;
}

.ks-pc-title {
    margin: 0 44px 12px 0;
    color: #191516;
    font-family: inherit;
    font-size: clamp(22px, 2.2vw, 31px);
    font-weight: 600;
    line-height: 1.28;
}

.ks-pc-quick-content[dir="rtl"] .ks-pc-title {
    margin-right: 0;
    margin-left: 44px;
    line-height: 1.55;
}

.ks-pc-price {
    margin-bottom: 18px;
    color: #191516;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.ks-pc-price del {
    margin-inline-end: 7px;
    color: #8D857E;
    font-size: 13px;
    font-weight: 400;
    opacity: .72;
}

.ks-pc-price ins {
    color: #A9855F;
    text-decoration: none;
}

.ks-pc-description {
    margin-bottom: 18px;
    color: #5F5751;
    font-size: 13px;
    line-height: 1.75;
}

.ks-pc-description p {
    margin: 0 0 8px;
}

.ks-pc-meta {
    display: grid;
    gap: 0;
    margin: 0 0 20px;
    border-top: 1px solid #DDD4C8;
}

.ks-pc-meta > div {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #E8E0D5;
}

.ks-pc-meta dt,
.ks-pc-meta dd {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.ks-pc-meta dt {
    color: #706862;
    font-weight: 500;
}

.ks-pc-meta dd {
    color: #2F2418;
    font-weight: 650;
}

.ks-pc-meta dd.is-in-stock {
    color: #4F7654;
}

.ks-pc-meta dd.is-out-of-stock {
    color: #A2473E;
}

.ks-pc-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.ks-pc-actions .ks-card-action {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 9px !important;
    border: 1px solid #2F2418 !important;
    border-radius: 0 !important;
    background: #2F2418 !important;
    color: #FFFDFC !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
}

.ks-pc-actions .ks-card-action:hover,
.ks-pc-actions .ks-card-action:focus-visible {
    border-color: #7A5A3A !important;
    background: #7A5A3A !important;
    color: #FFFDFC !important;
}

.ks-pc-full-details {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: 18px;
    color: #2F2418;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    border-bottom: 1px solid #A9855F;
}

.ks-pc-full-details:hover,
.ks-pc-full-details:focus-visible {
    color: #A9855F;
}

@media (prefers-reduced-motion: reduce) {
    .ks-native-product-card,
    .ks-native-product-card *,
    .ks-pc-quick-view,
    .ks-card-cart-icon,
    .ks-pc-spinner {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
