
/* === InterMadinah - Bordeaux + or + creme (2026-05) === */
:root {
    --im-bg: #faf6ee;
    --im-bg-alt: #f3ebd9;
    --im-text: #1a1a1a;
    --im-text-muted: #6b5547;
    --im-bordeaux: #722f37;
    --im-bordeaux-dark: #5a242b;
    --im-bordeaux-light: #8d3a44;
    --im-gold: #c9a55c;
    --im-gold-dark: #a08029;
    --im-gold-light: #e0c280;
    --im-footer: #2c1810;
    --im-footer-dark: #1a0e08;
    --im-cream: #f5e6c8;
    --im-border: #e0d4b8;
}

/* === Background global === */
body {
    background-color: var(--im-bg) !important;
    color: var(--im-text);
}
#wrapper, .featured-products, .page-content, .page-wrapper, main.page-content,
#products, #js-product-list, .product-list, .home-cms, .home-content {
    background-color: var(--im-bg) !important;
}

/* === Header === */
#header {
    background-color: #ffffff !important;
    border-bottom: 3px solid var(--im-gold);
    box-shadow: 0 2px 8px rgba(114, 47, 55, 0.06);
}
#header .top-menu, #_desktop_top_menu, .header-top {
    background-color: #ffffff;
}
.header-top {
    border-bottom: 1px solid rgba(201, 165, 92, 0.2);
}

/* Menu hover */
.top-menu a, #_desktop_top_menu a {
    transition: color 0.2s ease;
}
.top-menu a:hover, #_desktop_top_menu a:hover, .top-menu .sub-menu a:hover,
#_desktop_top_menu .top-menu-cat-link:hover {
    color: var(--im-bordeaux) !important;
}

/* Cart icon */
.blockcart, .header .blockcart {
    background-color: var(--im-bordeaux) !important;
    color: var(--im-cream) !important;
    border-radius: 24px;
    padding: 10px 18px;
}
.blockcart a, .blockcart .header {
    color: var(--im-cream) !important;
}

/* === Titres sections === */
.featured-products .h2, .featured-products h2,
.page-content h1, .page-content h2,
.products-section-title, .h1.text-uppercase {
    color: var(--im-bordeaux) !important;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}
.featured-products .h2::after, .featured-products h2::after,
.products-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--im-gold), var(--im-bordeaux), var(--im-gold), transparent);
}

/* === Cartes produits === */
.product-miniature {
    margin-bottom: 30px;
}
.product-miniature .thumbnail-container, .js-product-miniature .thumbnail-container {
    background-color: var(--im-bg) !important;
    border: 2px solid var(--im-border) !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(114, 47, 55, 0.06);
    overflow: hidden;
}
.product-miniature .thumbnail-container:hover {
    border: 3px solid var(--im-bordeaux) !important;
    border-radius: 10px;
    box-shadow: 0 10px 32px rgba(114, 47, 55, 0.25);
    transform: translateY(-4px);
}
/* Image produit reste sur blanc pour bien voir */
.product-miniature .thumbnail-container .thumbnail, .product-miniature .product-thumbnail {
    background-color: #ffffff;
    display: block;
}
.product-miniature .thumbnail-container .thumbnail img, .product-miniature .product-thumbnail img {
    background-color: #ffffff;
}
/* Zone titre + prix avec fond creme degrade */
.product-miniature .product-description, .product-miniature .product-desc {
    background: linear-gradient(180deg, #fbf5e8 0%, #f5ebd4 100%) !important;
    padding: 18px 14px 20px 14px !important;
    border-top: 1px solid var(--im-gold-light) !important;
    text-align: center;
}
.product-miniature .product-title a, .product-miniature .product-title {
    color: var(--im-bordeaux-dark) !important;
    font-weight: 700;
    font-size: 0.95em;
    line-height: 1.3;
}
.product-miniature .product-title a:hover {
    color: var(--im-bordeaux) !important;
}
.product-miniature .product-price-and-shipping, .product-miniature .price {
    color: var(--im-bordeaux) !important;
    font-weight: 800;
    font-size: 1.25em;
    margin-top: 6px;
}

/* === Boutons CTA === */
.btn-primary, button.btn-primary, .add-to-cart, .btn.add-to-cart,
.account .form-group .btn-primary, button[type="submit"].btn-primary {
    background: linear-gradient(135deg, var(--im-bordeaux) 0%, var(--im-bordeaux-dark) 100%) !important;
    border: 2px solid var(--im-bordeaux-dark) !important;
    color: var(--im-cream) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    border-radius: 6px;
    padding: 10px 24px;
}
.btn-primary:hover, button.btn-primary:hover, .add-to-cart:hover,
button[type="submit"].btn-primary:hover {
    background: linear-gradient(135deg, var(--im-gold) 0%, var(--im-gold-dark) 100%) !important;
    border-color: var(--im-gold-dark) !important;
    color: var(--im-footer) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(201, 165, 92, 0.4);
}

/* Secondary buttons (outline) */
.btn-secondary, .btn-outline-primary {
    border: 2px solid var(--im-bordeaux) !important;
    color: var(--im-bordeaux) !important;
    background-color: transparent !important;
    font-weight: 600;
}
.btn-secondary:hover, .btn-outline-primary:hover {
    background-color: var(--im-bordeaux) !important;
    color: var(--im-cream) !important;
}

/* === Slider home === */
#slider, .slider, .homeslider, .ps_imageslider {
    margin-bottom: 50px;
    box-shadow: 0 6px 28px rgba(44, 24, 16, 0.12);
    background-color: var(--im-bg);
    border-bottom: 4px solid var(--im-gold);
}
#slider .slider-caption, .homeslider-description {
    background: linear-gradient(90deg, transparent, rgba(44, 24, 16, 0.7));
    color: var(--im-cream);
}

/* === Featured section === */
.featured-products {
    padding: 60px 0 40px 0;
    background: linear-gradient(180deg, var(--im-bg) 0%, var(--im-bg-alt) 100%);
}

/* === FOOTER acajou + or === */
#footer, .page-footer, .footer-container {
    background: linear-gradient(180deg, var(--im-footer) 0%, var(--im-footer-dark) 100%) !important;
    color: var(--im-cream) !important;
    padding: 60px 0 20px 0;
    border-top: 4px solid var(--im-gold);
    margin-top: 60px;
}
#footer *, .footer-container *, .footer-before, .footer-container .row * {
    color: var(--im-cream) !important;
}
#footer h3, #footer .h3, .footer-container h3, .footer-container .h3,
.footer-container .links .h3, .links .h3.hidden-sm-down {
    color: var(--im-gold) !important;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 165, 92, 0.3);
}
#footer a, .footer-container a {
    color: var(--im-cream) !important;
    transition: all 0.2s ease;
    text-decoration: none;
    opacity: 0.9;
}
#footer a:hover, .footer-container a:hover {
    color: var(--im-gold-light) !important;
    opacity: 1;
    padding-left: 4px;
}
.footer-container .links ul li a::before {
    content: "›";
    margin-right: 8px;
    color: var(--im-gold);
    transition: margin-right 0.2s ease;
}
.footer-container .links ul li a:hover::before {
    margin-right: 12px;
    color: var(--im-gold-light);
}
#block_myaccount_infos .myaccount-title a, .links .myaccount-title {
    color: var(--im-gold) !important;
}

/* === Newsletter === */
.block_newsletter, .ps_emailsubscription {
    padding: 30px 0;
    border-top: 1px solid rgba(201, 165, 92, 0.2);
    border-bottom: 1px solid rgba(201, 165, 92, 0.2);
    background: rgba(114, 47, 55, 0.15);
}
.block_newsletter input[type=email], .ps_emailsubscription input[type=email] {
    background-color: rgba(245, 230, 200, 0.08) !important;
    border: 1px solid var(--im-gold) !important;
    color: var(--im-cream) !important;
    border-radius: 24px;
    padding: 10px 18px;
}
.block_newsletter input[type=email]::placeholder {
    color: rgba(245, 230, 200, 0.6) !important;
}
.block_newsletter button, .ps_emailsubscription button {
    background: var(--im-gold) !important;
    color: var(--im-footer) !important;
    border: 2px solid var(--im-gold) !important;
    font-weight: 700;
    border-radius: 24px;
    padding: 10px 24px;
    transition: all 0.2s ease;
}
.block_newsletter button:hover {
    background: var(--im-gold-light) !important;
    border-color: var(--im-gold-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 165, 92, 0.4);
}

/* Copyright */
.copyright, .footer-container .copyright,
#footer .copyright, .footer-container .row.bottom {
    border-top: 1px solid rgba(201, 165, 92, 0.2);
    padding-top: 24px;
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    opacity: 0.75;
}

/* === Reassurance === */
.block-reassurance, .blockreassurance {
    background-color: #ffffff !important;
    border: 1px solid var(--im-border) !important;
    border-radius: 8px;
    margin: 40px 0;
    padding: 24px 10px;
    box-shadow: 0 2px 8px rgba(44, 24, 16, 0.04);
}
.block-reassurance img, .blockreassurance img {
    filter: sepia(0.5) hue-rotate(330deg) saturate(0.7) brightness(0.8);
}
.block-reassurance li, .blockreassurance li {
    color: var(--im-text-muted) !important;
}

/* === Breadcrumb === */
.breadcrumb, .breadcrumb-container {
    background-color: var(--im-bg-alt) !important;
    border-radius: 6px;
    padding: 12px 24px !important;
    border-left: 4px solid var(--im-gold);
}
.breadcrumb a {
    color: var(--im-text-muted) !important;
}
.breadcrumb .active, .breadcrumb li:last-child {
    color: var(--im-bordeaux) !important;
    font-weight: 600;
}

/* === Badges produits === */
.product-flag.new, .product-flags .new {
    background-color: var(--im-gold) !important;
    color: var(--im-footer) !important;
    font-weight: 700;
    border: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-flag.discount, .product-flag.on-sale, .product-flags .discount {
    background-color: var(--im-bordeaux) !important;
    color: var(--im-cream) !important;
}

/* === Prix === */
.product-discount .regular-price {
    color: var(--im-text-muted) !important;
}
.product-price.has-discount .current-price, .has-discount.product-price {
    color: var(--im-bordeaux) !important;
}

/* === Forms / inputs page produit === */
.form-control:focus, input:focus, textarea:focus {
    border-color: var(--im-gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(201, 165, 92, 0.25) !important;
}

/* === Liens textes === */
a {
    color: var(--im-bordeaux);
}
a:hover {
    color: var(--im-bordeaux-dark);
}

/* === Quantity selector === */
.qty .input-group-btn-vertical .btn, .product-quantity .qty .btn {
    background-color: var(--im-bordeaux) !important;
    color: var(--im-cream) !important;
    border-color: var(--im-bordeaux-dark) !important;
}

/* === Tabs page produit === */
.nav-tabs .nav-link.active, .nav-tabs li.active a {
    color: var(--im-bordeaux) !important;
    border-bottom: 3px solid var(--im-gold) !important;
}

/* === Top promo bar (si present) === */
.banner-link, #header .header-nav {
    background-color: var(--im-bordeaux) !important;
    color: var(--im-cream) !important;
}

/* === Bloc BIENVENUE moderne === */
.im-welcome-block {
    margin: 50px auto;
    padding: 0;
    max-width: 1280px;
}
.im-welcome-inner {
    background: linear-gradient(135deg, #ffffff 0%, #fbf5e8 50%, #f5ebd4 100%);
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: 0 8px 40px rgba(114, 47, 55, 0.10);
    position: relative;
    overflow: hidden;
}
.im-welcome-inner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 165, 92, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.im-welcome-inner::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(114, 47, 55, 0.10) 0%, transparent 70%);
    border-radius: 50%;
}
.im-welcome-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}
.im-welcome-ornament {
    color: #c9a55c;
    font-size: 1.2em;
    letter-spacing: 12px;
    margin-bottom: 16px;
    opacity: 0.7;
}
.im-welcome-title {
    color: #722f37 !important;
    font-size: 2.4em;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: 1px;
    line-height: 1.1;
}
.im-welcome-subtitle {
    color: #6b5547;
    font-size: 1.15em;
    font-style: italic;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.im-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto 40px auto;
    position: relative;
    z-index: 2;
}
@media (max-width: 768px) {
    .im-features-grid { grid-template-columns: 1fr; gap: 16px; }
    .im-welcome-inner { padding: 40px 24px; }
    .im-welcome-title { font-size: 1.7em; }
}
.im-feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 165, 92, 0.3);
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}
.im-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a55c, #722f37, #c9a55c, transparent);
    transition: left 0.6s ease;
}
.im-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(114, 47, 55, 0.20);
    border-color: #722f37;
    background: rgba(255, 255, 255, 0.95);
}
.im-feature-card:hover::before {
    left: 0;
}
.im-feature-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    background: linear-gradient(135deg, #fbf5e8 0%, #f5e6c8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(201, 165, 92, 0.2);
    transition: all 0.4s ease;
}
.im-feature-card:hover .im-feature-icon-wrap {
    background: linear-gradient(135deg, #c9a55c 0%, #a08029 100%);
    box-shadow: 0 8px 24px rgba(201, 165, 92, 0.4);
    transform: scale(1.08) rotate(-5deg);
}
.im-feature-icon {
    width: 48px;
    height: 48px;
    color: #c9a55c;
    transition: color 0.4s ease;
}
.im-feature-card:hover .im-feature-icon {
    color: #ffffff;
}
.im-feature-title {
    color: #722f37 !important;
    font-size: 1.25em;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: 0.3px;
}
.im-feature-desc {
    color: #5a5048;
    font-size: 0.95em;
    line-height: 1.55;
    margin: 0;
}

.im-welcome-cta-wrap {
    text-align: center;
    position: relative;
    z-index: 2;
}
.im-welcome-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 38px;
    background: linear-gradient(135deg, #722f37 0%, #5a242b 100%) !important;
    color: #f5e6c8 !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05em;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(114, 47, 55, 0.3);
    border: 2px solid transparent;
}
.im-welcome-cta:hover {
    background: linear-gradient(135deg, #c9a55c 0%, #a08029 100%) !important;
    color: #2c1810 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201, 165, 92, 0.5);
    text-decoration: none !important;
}
.im-cta-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}
.im-welcome-cta:hover .im-cta-arrow {
    transform: translateX(6px);
}

/* RTL adjustments */
[dir="rtl"] .im-welcome-cta:hover .im-cta-arrow {
    transform: translateX(-6px);
}
[dir="rtl"] .im-feature-card:hover .im-feature-icon-wrap {
    transform: scale(1.08) rotate(5deg);
}
/* === Bloc reseaux sociaux footer === */
.im-social-block {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(201, 165, 92, 0.25);
}
.im-social-title {
    color: #c9a55c !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin-bottom: 24px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(201, 165, 92, 0.3) !important;
    display: inline-block !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}
.im-social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}
.im-social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(245, 230, 200, 0.08);
    border: 1.5px solid rgba(201, 165, 92, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5e6c8 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    padding: 0 !important;
}
.im-social-link::before { display: none !important; }
.im-social-link svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}
.im-social-link:hover {
    background: linear-gradient(135deg, #c9a55c 0%, #a08029 100%);
    border-color: #c9a55c;
    color: #2c1810 !important;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(201, 165, 92, 0.45);
    padding-left: 0 !important;
}
.im-social-link:hover svg {
    transform: scale(1.15);
}
@media (max-width: 768px) {
    .im-social-icons { gap: 10px; }
    .im-social-link { width: 42px; height: 42px; }
    .im-social-link svg { width: 19px; height: 19px; }
}
/* === Curseur lumineux (desktop only) === */
@media (hover: hover) and (pointer: fine) {
    body, body a, body button, body input, body textarea {
        cursor: none !important;
    }
    body input[type="text"], body input[type="email"], body input[type="password"],
    body input[type="number"], body input[type="tel"], body input[type="search"],
    body textarea {
        cursor: text !important;
    }
}
.im-cursor-dot, .im-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    border-radius: 50%;
    will-change: transform;
    transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.im-cursor-dot {
    width: 6px;
    height: 6px;
    background: #c9a55c;
    box-shadow: 0 0 8px rgba(201, 165, 92, 0.9), 0 0 16px rgba(201, 165, 92, 0.5);
}
.im-cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(114, 47, 55, 0.55);
    background: radial-gradient(circle, rgba(201, 165, 92, 0.10) 0%, rgba(114, 47, 55, 0.18) 50%, transparent 100%);
    box-shadow: 0 0 24px rgba(114, 47, 55, 0.25), inset 0 0 12px rgba(201, 165, 92, 0.15);
    backdrop-filter: blur(1px);
}
/* Hover sur clickable */
.im-cursor-ring.im-cursor-active {
    width: 60px;
    height: 60px;
    border-color: rgba(201, 165, 92, 0.8);
    background: radial-gradient(circle, rgba(201, 165, 92, 0.20) 0%, rgba(114, 47, 55, 0.30) 60%, transparent 100%);
    box-shadow: 0 0 40px rgba(201, 165, 92, 0.45), inset 0 0 20px rgba(201, 165, 92, 0.25);
}
.im-cursor-dot.im-cursor-active {
    width: 10px;
    height: 10px;
    background: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.9), 0 0 24px rgba(255, 215, 0, 0.6);
}
/* Compensation transform offset au hover */
.im-cursor-ring.im-cursor-active { margin: -12px 0 0 -12px; }
.im-cursor-dot.im-cursor-active { margin: -2px 0 0 -2px; }
/* === Bandeau promo sticky top === */
.im-promo-banner {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #5a242b 0%, #722f37 50%, #5a242b 100%);
    color: #f5e6c8;
    font-family: 'Manrope', 'Open Sans', system-ui, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    font-weight: 500;
    text-align: center;
    padding: 12px 56px;
    border-bottom: 1px solid rgba(201, 165, 92, 0.25);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(44, 24, 16, 0.18);
}
.im-promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 165, 92, 0.12), transparent 45%),
        radial-gradient(circle at 85% 50%, rgba(201, 165, 92, 0.10), transparent 45%);
    pointer-events: none;
}
.im-promo-track {
    position: relative;
    height: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.im-promo-msg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    color: #f5e6c8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.im-promo-msg.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.im-promo-msg::before {
    content: '✦';
    color: #c9a55c;
    font-size: 0.85em;
    opacity: 0.85;
}
.im-promo-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(245, 230, 200, 0.3);
    color: #f5e6c8;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    z-index: 2;
}
.im-promo-close:hover {
    background: rgba(245, 230, 200, 0.18);
    border-color: rgba(245, 230, 200, 0.7);
    transform: translateY(-50%) rotate(90deg);
}
@media (max-width: 700px) {
    .im-promo-banner {
        padding: 10px 44px;
        font-size: 0.72rem;
        letter-spacing: 0.2px;
    }
    .im-promo-track { height: 17px; }
    .im-promo-msg { gap: 8px; }
    .im-promo-msg::before { display: none; }
    .im-promo-close { right: 10px; width: 22px; height: 22px; }
}
[dir="rtl"] .im-promo-close { right: auto; left: 16px; }
[dir="rtl"] .im-promo-banner { letter-spacing: 0; }
@media (max-width: 700px) {
    [dir="rtl"] .im-promo-close { left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .im-promo-msg { transition: opacity 0.01ms !important; transform: none !important; }
    .im-promo-close:hover { transform: translateY(-50%) !important; }
}
/* === IM Chatbot Widget === */
.im-chatbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #722f37, #5a242b);
    border: 2px solid #c9a55c;
    color: #f5e6c8;
    cursor: pointer;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(114, 47, 55, 0.45), 0 0 0 0 rgba(201, 165, 92, 0.5);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    animation: im-chatbot-pulse 4s ease-in-out infinite;
}
.im-chatbot-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 36px rgba(114, 47, 55, 0.55), 0 0 0 8px rgba(201, 165, 92, 0.15);
}
.im-chatbot-toggle svg { width: 28px; height: 28px; transition: transform 0.3s ease; }
.im-chatbot-toggle.is-open svg { transform: rotate(180deg); }
@keyframes im-chatbot-pulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(114, 47, 55, 0.45), 0 0 0 0 rgba(201, 165, 92, 0.5); }
    50%      { box-shadow: 0 8px 28px rgba(114, 47, 55, 0.45), 0 0 0 12px rgba(201, 165, 92, 0); }
}

.im-chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #c9a55c;
    color: #2c1810;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    border: 2px solid #fff;
    letter-spacing: 0.5px;
}

.im-chatbot-panel {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(44, 24, 16, 0.25), 0 4px 12px rgba(44, 24, 16, 0.08);
    z-index: 99989;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    border: 1px solid rgba(201, 165, 92, 0.3);
    font-family: 'Manrope', 'Open Sans', sans-serif;
}
.im-chatbot-panel.is-open {
    display: flex;
    animation: im-chatbot-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes im-chatbot-in {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.im-chatbot-header {
    background: linear-gradient(135deg, #2c1810 0%, #1a0e08 100%);
    padding: 18px 20px;
    color: #f5e6c8;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #c9a55c;
    position: relative;
}
.im-chatbot-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a55c, #a08029);
    display: flex; align-items: center; justify-content: center;
    color: #2c1810;
    flex-shrink: 0;
    position: relative;
}
.im-chatbot-avatar::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 10px; height: 10px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid #2c1810;
}
.im-chatbot-avatar svg { width: 22px; height: 22px; }
.im-chatbot-titles { flex: 1; min-width: 0; }
.im-chatbot-name {
    font-family: Georgia, serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #f5e6c8;
    margin: 0;
    line-height: 1.1;
}
.im-chatbot-status {
    font-size: 0.72rem;
    color: rgba(245, 230, 200, 0.7);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.im-chatbot-status::before {
    content: '';
    width: 6px; height: 6px;
    background: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 6px #4caf50;
}
.im-chatbot-close {
    background: transparent;
    border: 1px solid rgba(245, 230, 200, 0.3);
    color: #f5e6c8;
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}
.im-chatbot-close:hover {
    background: rgba(245, 230, 200, 0.15);
    transform: rotate(90deg);
}

.im-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    background: linear-gradient(180deg, #faf6ee 0%, #f5ebd4 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.im-chatbot-messages::-webkit-scrollbar { width: 6px; }
.im-chatbot-messages::-webkit-scrollbar-thumb { background: rgba(201, 165, 92, 0.4); border-radius: 3px; }

.im-chatbot-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: im-msg-in 0.3s ease-out;
}
@keyframes im-msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.im-chatbot-msg.is-bot {
    background: #fff;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(44, 24, 16, 0.06);
    border-left: 3px solid #c9a55c;
}
.im-chatbot-msg.is-user {
    background: linear-gradient(135deg, #722f37, #5a242b);
    color: #f5e6c8;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 2px 6px rgba(114, 47, 55, 0.25);
}
.im-chatbot-msg a {
    color: #c9a55c;
    text-decoration: underline;
    font-weight: 600;
}
.im-chatbot-msg.is-user a { color: #f5e6c8; }
.im-chatbot-msg.is-error {
    background: #ffe9eb;
    color: #722f37;
    border-left-color: #722f37;
    font-style: italic;
}

.im-chatbot-typing {
    align-self: flex-start;
    background: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(44, 24, 16, 0.06);
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
.im-chatbot-typing span {
    width: 7px; height: 7px;
    background: #c9a55c;
    border-radius: 50%;
    animation: im-typing-dot 1.4s ease-in-out infinite;
}
.im-chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.im-chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes im-typing-dot {
    0%, 60%, 100% { transform: scale(1); opacity: 0.4; }
    30%           { transform: scale(1.3); opacity: 1; }
}

.im-chatbot-quickreplies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 0 4px;
    margin-top: 4px;
}
.im-chatbot-quick {
    background: transparent;
    border: 1px solid #c9a55c;
    color: #722f37;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.im-chatbot-quick:hover {
    background: #c9a55c;
    color: #2c1810;
}

.im-chatbot-input-wrap {
    border-top: 1px solid rgba(201, 165, 92, 0.25);
    padding: 12px 14px;
    background: #fff;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.im-chatbot-input {
    flex: 1;
    border: 1px solid rgba(201, 165, 92, 0.4);
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 80px;
    background: #faf6ee;
    transition: all 0.2s ease;
    color: #1a1a1a;
}
.im-chatbot-input:focus {
    border-color: #722f37;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}
.im-chatbot-send {
    background: linear-gradient(135deg, #722f37, #5a242b);
    color: #f5e6c8;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
}
.im-chatbot-send:hover:not(:disabled) {
    background: linear-gradient(135deg, #c9a55c, #a08029);
    color: #2c1810;
    transform: scale(1.06);
}
.im-chatbot-send:disabled { opacity: 0.4; cursor: not-allowed; }
.im-chatbot-send svg { width: 18px; height: 18px; }

.im-chatbot-footer {
    text-align: center;
    padding: 6px;
    font-size: 0.65rem;
    color: #6b5547;
    background: #faf6ee;
    border-top: 1px solid rgba(201, 165, 92, 0.15);
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .im-chatbot-panel {
        width: calc(100vw - 16px);
        right: 8px;
        bottom: 88px;
        height: calc(100vh - 110px);
        border-radius: 14px;
    }
    .im-chatbot-toggle {
        width: 54px; height: 54px;
        bottom: 18px; right: 18px;
    }
}

[dir="rtl"] .im-chatbot-toggle { right: auto; left: 24px; }
[dir="rtl"] .im-chatbot-panel { right: auto; left: 24px; transform-origin: bottom left; }
[dir="rtl"] .im-chatbot-msg.is-bot { border-left: none; border-right: 3px solid #c9a55c; align-self: flex-end; }
[dir="rtl"] .im-chatbot-msg.is-user { align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
    .im-chatbot-toggle, .im-chatbot-panel, .im-chatbot-msg, .im-chatbot-typing span {
        animation: none !important;
    }
}