/* ============================================================
   Kaazhagam — Global Premium Typography
   Applies Cormorant (serif) to headings and Montserrat (sans)
   to body text across all pages for brand consistency.
   ============================================================ */

/* Major headings → Cormorant serif */
h1, h2, h3, h4, h5,
.ec-single-title,
.ec-page-title,
.ec-pro-title,
.ec-cat-title,
.ec-section-title,
.section-title,
.ec-pro-heading,
.ec-pro-name {
    font-family: 'Cormorant', Georgia, 'Times New Roman', serif !important;
}

/* Body, navigation, buttons → Montserrat */
body,
.ec-header-bottom,
.ec-main-menu-desk,
.btn,
.ec-btn,
label,
input,
select,
textarea {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Product name in cards */
.ec-product-inner .ec-pro-title,
.ec-product-inner .ec-pro-name {
    font-family: 'Cormorant', Georgia, serif !important;
    font-size: 16px;
    font-weight: 600;
}

/* Price → keep weight strong, use Montserrat for numbers */
.new-price, .old-price, .ec-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ============================================================
   Premium Side Cart Drawer — global styles for all pages
   ============================================================ */

/* Drawer */
#ec-side-cart {
    background: #fff;
    border-left: none;
    box-shadow: -6px 0 40px rgba(0,0,0,.13);
    width: 380px !important;
    max-width: 100vw !important;
}
#ec-side-cart .ec-cart-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#ec-side-cart .ec-cart-top {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #e0cdb5 transparent;
}
#ec-side-cart .ec-cart-top::-webkit-scrollbar { width: 4px; }
#ec-side-cart .ec-cart-top::-webkit-scrollbar-track { background: transparent; }
#ec-side-cart .ec-cart-top::-webkit-scrollbar-thumb { background: #e0cdb5; border-radius: 4px; }

/* ── Header ── */
#ec-side-cart .ec-cart-title {
    background: linear-gradient(135deg, #6b1a3a 0%, #4e1129 100%) !important;
    padding: 15px 18px !important;
    border-bottom: 2px solid rgba(183,149,87,.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: sticky;
    top: 0;
    z-index: 10;
}
.kz-cart-hd-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.kz-cart-hd-icon {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kz-cart-hd-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.kz-cart-count-badge {
    min-width: 26px;
    height: 22px;
    background: linear-gradient(135deg, #B79557, #D4A44A);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    padding: 0 7px;
    font-family: 'Montserrat', sans-serif;
}
#ec-side-cart .cart_title {
    font-family: 'Cormorant', Georgia, serif !important;
    font-size: 20px !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: .3px;
}
#ec-side-cart .ec-cart-title .ec-close {
    width: 32px !important;
    height: 32px !important;
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: 8px !important;
    color: rgba(255,255,255,.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    padding: 0 !important;
    transition: background .2s !important;
    cursor: pointer;
    line-height: 1 !important;
}
#ec-side-cart .ec-cart-title .ec-close:hover {
    background: rgba(255,255,255,.28) !important;
    color: #fff !important;
}

/* ── Free-shipping progress bar ── */
.kz-free-bar-wrap {
    background: linear-gradient(135deg, #fdf8f2, #f7ede0);
    padding: 10px 18px 11px;
    border-bottom: 1px solid #ece4d6;
}
.kz-free-bar-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5px;
    color: #5a4030;
    margin-bottom: 7px;
    line-height: 1.45;
}
.kz-free-bar-text strong { color: #6b1a3a; }
.kz-free-bar-track {
    height: 5px;
    background: #e0d0c0;
    border-radius: 5px;
    overflow: hidden;
}
.kz-free-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #B79557, #D4A44A);
    border-radius: 5px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
    min-width: 4px;
}

/* ── Items list ── */
#ec-side-cart .eccart-pro-items {
    padding: 4px 16px 0 !important;
    list-style: none !important;
    margin: 0 !important;
}
#ec-side-cart .eccart-pro-items li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f5ede4 !important;
    position: relative;
}
#ec-side-cart .sidekka_pro_img {
    flex: 0 0 72px !important;
    display: block !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    width: 72px !important;
    height: 72px !important;
}
#ec-side-cart .sidekka_pro_img img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1.5px solid #ece4d6 !important;
    display: block !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
}
#ec-side-cart .ec-pro-content {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 28px 0 0 !important;
    margin: 0 !important;
    position: relative !important;
}
#ec-side-cart .cart_pro_title {
    font-family: 'Cormorant', Georgia, serif !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #2c1a0e !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 4px !important;
    text-decoration: none !important;
    transition: color .15s !important;
}
#ec-side-cart .cart_pro_title:hover { color: #6b1a3a !important; }
#ec-side-cart .cart-price {
    display: block !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    color: #B79557 !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

/* ── Qty stepper ── */
.kz-cart-qty-grp {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    border: 1.5px solid #e0cdb5 !important;
    border-radius: 7px !important;
    overflow: hidden !important;
    height: 30px !important;
    margin-top: 4px !important;
    width: fit-content !important;
}
.kz-cart-qty-grp .rt-side-dec,
.kz-cart-qty-grp .rt-side-inc {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f4ee !important;
    cursor: pointer !important;
    font-size: 15px !important;
    color: #6b1a3a !important;
    user-select: none !important;
    transition: background .15s, color .15s !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 0 !important;
}
.kz-cart-qty-grp .rt-side-dec:hover,
.kz-cart-qty-grp .rt-side-inc:hover {
    background: #6b1a3a !important;
    color: #fff !important;
}
.kz-cart-qty-grp .rt-side-qty {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 30px !important;
    border: none !important;
    border-left: 1.5px solid #e0cdb5 !important;
    border-right: 1.5px solid #e0cdb5 !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    color: #333 !important;
    background: #fff !important;
    -moz-appearance: textfield !important;
    display: block !important;
}
.kz-cart-qty-grp .rt-side-qty::-webkit-inner-spin-button,
.kz-cart-qty-grp .rt-side-qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Remove button ── */
#ec-side-cart .remove {
    position: absolute !important;
    top: 16px !important;
    right: 0 !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #f5ede8 !important;
    color: #b8898a !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: background .2s, color .2s !important;
    float: none !important;
    margin: 0 !important;
    line-height: 1 !important;
}
#ec-side-cart .remove:hover { background: #842029 !important; color: #fff !important; }

/* ── Empty state ── */
/* Selector must out-specificity "#ec-side-cart .eccart-pro-items li" (kz-globals.css:184),
   otherwise its align-items:flex-start !important wins over align-items:center here. */
#ec-side-cart .eccart-pro-items li.kz-cart-empty {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    text-align: center !important;
    border-bottom: none !important;
}
.kz-empty-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f8f0ea, #f0e4d8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 1.5px solid #e8d5c4;
}
.kz-empty-title {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #2c1a0e;
    margin: 0 0 6px;
}
.kz-empty-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #aaa;
    margin: 0 0 14px;
    line-height: 1.6;
}
.kz-empty-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6b1a3a, #4e1129);
    color: #fff !important;
    text-decoration: none;
    border-radius: 7px;
    padding: 10px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 4px 14px rgba(107,26,58,.25);
}
.kz-empty-shop-btn:hover { opacity: .88; transform: translateY(-1px); color: #fff !important; }

/* ── Bottom section ── */
#ec-side-cart .ec-cart-bottom {
    border-top: 2px solid #ece4d6 !important;
    padding: 0 !important;
    background: linear-gradient(180deg, #faf7f2 0%, #f5f0e8 100%) !important;
    flex-shrink: 0;
}

/* Totals */
.kz-cart-totals {
    padding: 10px 16px 8px;
}
.kz-ct-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
}
.kz-ct-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}
.kz-ct-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    color: #555;
    font-weight: 600;
}
.kz-ct-divider {
    height: 1px;
    background: #e8ddd0;
    margin: 7px 0;
}
.kz-ct-grand .kz-ct-label {
    font-size: 13px;
    color: #2c1a0e;
    font-weight: 700;
}
.kz-ct-grand .kz-ct-val {
    font-size: 15px;
    color: #6b1a3a;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

/* Buttons */
.kz-cart-btns {
    padding: 2px 14px 14px;
    display: flex;
    gap: 7px;
}
.kz-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 38px;
    border-radius: 7px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all .2s;
    cursor: pointer;
    border: none;
}
.kz-btn-outline {
    background: transparent;
    border: 1.5px solid #6b1a3a !important;
    color: #6b1a3a !important;
}
.kz-btn-outline:hover { background: #6b1a3a; color: #fff !important; }
.kz-btn-solid {
    background: linear-gradient(135deg, #6b1a3a, #4e1129);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(107,26,58,.28);
}
.kz-btn-solid:hover { box-shadow: 0 6px 18px rgba(107,26,58,.38); transform: translateY(-1px); color: #fff !important; }

/* ============================================================
   Shared page hero breadcrumb — used on Shop, About Us, Contact Us
   ============================================================ */
.sp-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,.65);
    position: relative;
    z-index: 1;
}
.sp-crumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.sp-crumb a:hover { color: #B79557 !important; }
.sp-crumb span:last-child { color: rgba(255,255,255,.95); }

/* WhatsApp float — ensure opacity is part of the base transition */
#rt-wa-float {
    transition: transform .2s, box-shadow .2s, opacity .25s ease !important;
}

/* Hide while cart drawer is open */
body:has(#ec-side-cart.ec-open) #rt-wa-float {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.75) translateY(10px) !important;
}

/* ============================================================
   Fly-to-cart: cart icon jiggle on item arrival
   ============================================================ */
@keyframes kz-cart-jiggle {
    0%   { transform: scale(1) rotate(0deg); }
    20%  { transform: scale(1.25) rotate(-8deg); }
    40%  { transform: scale(1.2) rotate(8deg); }
    60%  { transform: scale(1.1) rotate(-5deg); }
    80%  { transform: scale(1.05) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.kz-cart-jiggle { animation: kz-cart-jiggle 0.48s ease !important; }

/* ============================================================
   Scroll-reveal: fade-in below-fold sections on scroll
   ============================================================ */
.kz-scroll-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.kz-scroll-reveal.kz-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Header top message — consistent font across all pages ── */
.header-top-message {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.4px;
}
.header-top-message span {
    font-family: 'Montserrat', sans-serif !important;
}

/* ── Branded SweetAlert2 popups (rt-alert.js) — replaces native alert()/confirm() ── */
.swal2-popup.rt-swal {
    border-radius: 16px !important;
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 26px;
}
.swal2-popup.rt-swal .swal2-title {
    font-family: 'Cormorant', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    color: #2c1a0e;
}
.swal2-popup.rt-swal .swal2-html-container {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.6;
}
.swal2-popup.rt-swal .swal2-actions {
    gap: 10px;
}
.swal2-popup.rt-swal .swal2-confirm {
    background: linear-gradient(135deg, #6b1a3a, #4e1129) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 11px 28px !important;
    box-shadow: 0 4px 14px rgba(107, 26, 58, .3) !important;
}
.swal2-popup.rt-swal .swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(107, 26, 58, .25) !important;
}
.swal2-popup.rt-swal .swal2-cancel {
    background: #fff !important;
    color: #6b1a3a !important;
    border: 1.5px solid #6b1a3a !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 11px 28px !important;
    box-shadow: none !important;
}
.swal2-popup.rt-swal .swal2-deny {
    background: linear-gradient(135deg, #c0392b, #922b21) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 11px 28px !important;
    box-shadow: 0 4px 14px rgba(192, 57, 43, .3) !important;
}
.swal2-popup.rt-swal .swal2-icon.swal2-success { border-color: #27ae60; color: #27ae60; }
.swal2-popup.rt-swal .swal2-icon.swal2-success [class^='swal2-success-line'] { background-color: #27ae60; }
.swal2-popup.rt-swal .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(39,174,96,.3); }
.swal2-popup.rt-swal .swal2-icon.swal2-error { border-color: #c0392b; color: #c0392b; }
.swal2-popup.rt-swal .swal2-icon.swal2-error [class^='swal2-x-mark-line'] { background-color: #c0392b; }
.swal2-popup.rt-swal .swal2-icon.swal2-warning { border-color: #B79557; color: #B79557; }
.swal2-popup.rt-swal .swal2-icon.swal2-question { border-color: #6b1a3a; color: #6b1a3a; }
.swal2-popup.rt-swal .swal2-icon.swal2-info { border-color: #B79557; color: #B79557; }
.swal2-popup.rt-swal .swal2-timer-progress-bar { background: #B79557 !important; }
