/* Shop chrome used on every page: header cart button, slide-in cart drawer, shared buttons.
   (Page-specific styles stay in products.css, product-detail.css, cart.css, payment-page.css, success.css.) */

.kalon-cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9b8c9;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 17px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.kalon-cart-btn:hover {
    border-color: #ff67b0;
    color: #e0368f;
}

.kalon-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff67b0;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}

.kalon-cart-count[hidden] {
    display: none;
}

.kalon-desktop-btns .kalon-cart-btn {
    margin-right: 4px;
}

.kalon-mob-right .kalon-cart-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

/* Drawer */
.shop-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(17, 24, 39, .45);
    opacity: 0;
    transition: opacity .25s;
}

.shop-overlay.is-open {
    opacity: 1;
}

.shop-overlay[hidden] {
    display: none;
}

body.shop-drawer-lock {
    overflow: hidden;
}

.shop-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    width: min(420px, 100vw);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -12px 0 40px rgba(17, 24, 39, .18);
    transform: translateX(105%);
    transition: transform .28s ease;
    font-family: 'DM Sans', 'Inter', sans-serif;
    outline: none;
}

.shop-drawer.is-open {
    transform: none;
}

.shop-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f3dce8;
}

.shop-drawer-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.shop-drawer-head h3 i {
    color: #ff67b0;
    margin-right: 6px;
}

.shop-drawer-head h3 span {
    color: #7a6672;
    font-weight: 500;
}

.shop-drawer-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fde4f0;
    color: #111827;
    cursor: pointer;
}

.shop-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 20px;
}

.shop-line {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f7e7ef;
}

.shop-line-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff7fa;
}

.shop-line-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-line-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.shop-line-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    line-height: 1.25;
}

.shop-line-name:hover {
    color: #e0368f;
}

.shop-line-kind {
    font-size: 12px;
    color: #7a6672;
}

.shop-qty {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    border: 1px solid #f0cfdf;
    border-radius: 8px;
    width: fit-content;
}

.shop-qty button {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #111827;
    cursor: pointer;
}

.shop-qty button:disabled {
    opacity: .35;
    cursor: default;
}

.shop-qty span {
    min-width: 26px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.shop-line-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    font-size: 14px;
    color: #111827;
}

.shop-line-remove {
    border: 0;
    background: transparent;
    color: #9a8591;
    font-size: 13px;
    cursor: pointer;
}

.shop-line-remove:hover {
    color: #d6407f;
}

.shop-drawer-foot {
    padding: 16px 20px 20px;
    border-top: 1px solid #f3dce8;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}

.shop-drawer-foot[hidden] {
    display: none;
}

.shop-drawer-sub {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #111827;
}

.shop-drawer-note {
    margin: 0;
    font-size: 12px;
    color: #7a6672;
}

.shop-empty {
    text-align: center;
    padding: 60px 10px;
    color: #7a6672;
}

.shop-empty i {
    font-size: 44px;
    color: #f2a8cd;
}

.shop-empty h4 {
    margin: 12px 0 4px;
    color: #111827;
    font-size: 18px;
}

.shop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.shop-btn-primary {
    background: #ff67b0;
    color: #25101b;
}

.shop-btn-primary:hover {
    background: #ff52a6;
    color: #25101b;
}

.shop-btn-ghost {
    background: #fff;
    border-color: #f0cfdf;
    color: #111827;
}

.shop-btn-ghost:hover {
    border-color: #ff67b0;
    color: #c42a7c;
}

/* Card links on the listing */
a.p-card-name,
a.p-card-cta {
    text-decoration: none;
}

a.p-card-name {
    color: inherit;
    display: block;
}

a.p-card-name:hover {
    color: #e0368f;
}

.p-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.cat-section-prod {
    scroll-margin-top: 110px;
}

/* Product page extras */
.shop-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #7a6672;
}

.shop-crumbs a {
    color: #7a6672;
    text-decoration: none;
}

.shop-crumbs a:hover {
    color: #e0368f;
}

.shop-crumbs span {
    color: #111827;
    font-weight: 600;
}

.shop-crumbs i {
    font-size: 11px;
}

.shop-related {
    padding: 56px 0 24px;
}

.shop-related-title {
    margin-bottom: 24px;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: #111827;
}

.shop-related .prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Cart page */
.cart-payment-btn.d-none,
.cart-delivery-card.d-none {
    display: none !important;
}

.checkout-btn.disabled {
    opacity: .5;
    pointer-events: none;
}

.shop-suggest-title {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.sidebar-product-thumb {
    display: block;
}

/* Checkout page */
.payment-option.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.checkout-soon {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f6e6ef;
    color: #7a6672;
    font-size: 11px;
    font-weight: 700;
}

.checkout-delivery-price {
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.checkout-input.is-invalid {
    border-color: #d6407f;
    box-shadow: 0 0 0 3px rgba(214, 64, 127, .15);
}

.checkout-error {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff1f5;
    border: 1px solid #f7b8cf;
    color: #a3204f;
    font-size: 14px;
    font-weight: 600;
}

.checkout-primary-btn:disabled {
    opacity: .7;
    cursor: default;
}

/* Fixes for the shared site header (the shop pages used to carry their own) */
.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.summary-product-thumb,
.order-success-product-thumb {
    overflow: visible;
}

.summary-product-thumb img,
.order-success-product-thumb img {
    border-radius: 8px;
}

/* Shop header: full width, stays at the top while scrolling */
/* position: fixed (not sticky): the site sets overflow-x:hidden on html AND body, which stops sticky from sticking. */
.shop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    width: 100%;
}

.shop-header-spacer {
    height: 62px;
}

.shop-header .spa-navbar {
    width: 100%;
    max-width: none;
    padding: 0 32px;
}

.shop-header-logo {
    display: block;
    max-height: 40px;
    max-width: 170px;
    width: auto;
}

.shop-header-cart {
    position: relative;
}

.shop-header a.nav-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 575.98px) {
    .shop-header .spa-navbar {
        padding: 0 14px;
    }

    .shop-header .nav-actions {
        gap: 6px;
    }

    .shop-header a.nav-book-btn {
        padding: 7px 12px;
        font-size: 13px;
    }

    .shop-header .btn-signin {
        padding: 6px 10px;
        font-size: 13px;
    }
}

.shop-header .btn-signin {
    white-space: nowrap;
}

@media (max-width: 430px) {
    .shop-header .nav-more-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .shop-header .nav-actions {
        gap: 5px;
    }
}

/* Reviews tab */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    padding: 18px 22px;
    border-radius: 16px;
    background: #fff7fa;
    border: 1px solid #fde4f0;
    width: fit-content;
    max-width: 100%;
}

.reviews-summary-score {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: #111827;
}

.reviews-summary-stars i {
    color: #f59e0b;
    font-size: 17px;
}

.reviews-summary-count {
    margin-top: 4px;
    font-size: 13px;
    color: #7a6672;
}

.review-name {
    display: block;
}

.review-meta {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #7a6672;
}

.review-meta i {
    color: #16a34a;
    margin-right: 2px;
}

/* The homepage testimonial slider styles .review-card globally (height:100%, fixed min-heights, !important margins
   on phones); the product page's review grid needs the cards to size to their content. */
.reviews-grid .review-card {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 20px !important;
}

.reviews-grid .review-text {
    min-height: 0;
    font-size: 15px !important;
}

@media (max-width: 767.98px) {
    .tab-content-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }
}
