/* Spare X — site stylesheet (homepage + shared rx components). */

:root {
    --primary-dark: #1a1a2e;
    --primary-gray: #2d3436;
    --secondary-gray: #636e72;
    --accent-orange: #f39c12;
    --accent-blue: #0984e3;
    --bg-light: #f5f6fa;
    --border-color: #b2bec3;
    --text-dark: #2d3436;
    --success: #27ae60;
    --danger: #e74c3c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #f0f1f3; color: var(--text-dark); line-height: 1.6; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.header { background: linear-gradient(135deg, #1a1a2e 0%, #2d3436 50%, #353b48 100%); color: white; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.header-top { background: rgba(0,0,0,0.3); padding: 8px 0; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.header-top .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.region-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.region-badge { display: flex; align-items: center; gap: 6px; padding: 4px 12px; background: rgba(255,255,255,0.1); border-radius: 20px; font-size: 11px; }
.language-selector { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lang-btn { padding: 5px 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; color: white; cursor: pointer; font-size: 11px; transition: all 0.2s; }
.lang-btn:hover, .lang-btn.active { background: var(--accent-orange); border-color: var(--accent-orange); }
.currency-selector { display: flex; align-items: center; gap: 10px; }
.currency-select { padding: 5px 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; color: white; font-size: 11px; cursor: pointer; max-width: 130px; }
.currency-select option { background: #2d3436; color: white; }

.header-main { padding: 18px 0; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-icon { width: 52px; height: 52px; background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4); }
.logo-text h1 { font-family: 'Rajdhani', sans-serif; font-size: 32px; font-weight: 700; letter-spacing: 2px; line-height: 1; }
.logo-text p { font-size: 11px; opacity: 0.8; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

.search-bar { flex: 1; max-width: 550px; }
.search-bar form { display: flex; gap: 10px; }
.search-bar input { flex: 1; min-width: 0; padding: 14px 20px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; font-size: 14px; background: rgba(255,255,255,0.15); color: white; }
.search-bar input::placeholder { color: rgba(255,255,255,0.5); }
.search-bar input:focus { outline: none; background: rgba(255,255,255,0.2); border-color: var(--accent-orange); }
.search-bar button { padding: 14px 28px; background: var(--accent-orange); color: #1a1a2e; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.search-bar button:hover { background: #e67e22; }

.header-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.header-btn { display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: rgba(255,255,255,0.1); border-radius: 8px; color: white; text-decoration: none; font-weight: 500; font-size: 13px; border: 0; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.header-btn:hover { background: rgba(255,255,255,0.2); }
.header-btn .rx-count { color: #1a1a2e; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #1a1a2e 0%, #2d3436 100%); color: white; padding: 80px 0; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100px; background: linear-gradient(transparent, #f0f1f3); }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-badge { display: inline-block; padding: 8px 20px; background: rgba(243, 156, 18, 0.2); border: 1px solid var(--accent-orange); border-radius: 30px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 25px; color: var(--accent-orange); }
.hero h2 { font-family: 'Rajdhani', sans-serif; font-size: clamp(30px, 5vw, 56px); font-weight: 700; margin-bottom: 20px; line-height: 1.1; letter-spacing: 1px; }
.hero p { font-size: 18px; opacity: 0.8; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 45px; }
.hero-btn { padding: 16px 32px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.hero-btn.primary { background: var(--accent-orange); color: #1a1a2e; }
.hero-btn.secondary { background: rgba(255,255,255,0.12); color: white; border: 1px solid rgba(255,255,255,0.3); }
.hero-btn.whatsapp { background: #25d366; color: #06301a; }
.hero-stats { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .number { font-family: 'Rajdhani', sans-serif; font-size: 48px; font-weight: 700; color: var(--accent-orange); line-height: 1; }
.hero-stat .label { font-size: 12px; opacity: 0.7; letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .badge { display: inline-block; padding: 6px 16px; background: rgba(243, 156, 18, 0.15); color: #e67e22; border-radius: 20px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; font-weight: 600; }
.section-header h2 { font-family: 'Rajdhani', sans-serif; font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: #2d3436; letter-spacing: 1px; }
.section-header p { color: #636e72; font-size: 16px; margin-top: 12px; }

/* ---------- Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.category-card { background: white; padding: 28px 20px; border-radius: 14px; text-align: center; transition: all 0.3s; cursor: pointer; border: 1px solid #e0e0e0; position: relative; overflow: hidden; }
.category-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue)); transform: scaleX(0); transition: transform 0.3s; }
.category-card:hover::before { transform: scaleX(1); }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.category-card .icon { width: 60px; height: 60px; margin: 0 auto 18px; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #636e72; }
.category-card h3 { font-size: 14px; font-weight: 600; color: #2d3436; }
.category-card .count { font-size: 12px; color: #636e72; margin-top: 6px; }

/* ---------- Products ---------- */
.products-section { background: #f0f1f3; }
.filter-bar { background: white; padding: 22px 25px; border-radius: 12px; margin-bottom: 30px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.filter-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-group label { font-weight: 600; color: #2d3436; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-btn { padding: 9px 18px; border: 1px solid #dee2e6; background: white; border-radius: 8px; cursor: pointer; font-size: 13px; font-family: inherit; font-weight: 500; }
.filter-btn:hover, .filter-btn.active { background: var(--accent-orange); color: white; border-color: var(--accent-orange); }
.search-input { padding: 10px 16px; border: 1px solid #dee2e6; border-radius: 8px; font-size: 14px; min-width: 220px; background: #f8f9fa; }
.search-input:focus { outline: none; border-color: var(--accent-orange); background: white; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 25px; }
.product-card { background: white; border-radius: 14px; overflow: hidden; transition: all 0.3s; box-shadow: 0 2px 20px rgba(0,0,0,0.06); border: 1px solid #e8e9ea; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.product-image { height: 200px; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-image .no-image { color: #b2bec3; font-size: 56px; }
.product-badge { position: absolute; top: 14px; left: 14px; padding: 6px 14px; border-radius: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.product-badge.stock { background: linear-gradient(135deg, #27ae60, #2ecc71); color: white; }
.product-badge.out { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; }
.product-content { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-sku { font-size: 11px; color: var(--accent-orange); font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.product-title { font-size: 16px; font-weight: 600; color: #2d3436; margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-category { font-size: 13px; color: #636e72; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid #e8e9ea; margin-top: auto; flex-wrap: wrap; gap: 10px; }
.product-price { font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700; color: #2d3436; }
.product-price span { font-size: 12px; color: #636e72; font-weight: 400; font-family: 'Inter', sans-serif; }
.btn-inquire { padding: 11px 14px; background: linear-gradient(135deg, var(--accent-orange), #e67e22); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; font-family: inherit; }
.btn-wa { padding: 11px 14px; background: #25d366; color: #06301a; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 12px; }
.load-more-container { text-align: center; margin-top: 40px; }
.load-more-btn { padding: 14px 40px; background: linear-gradient(135deg, #2d3436, #636e72); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px; text-transform: uppercase; font-family: inherit; }
.load-more-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* ---------- Why us ---------- */
.why-choose-section { background: #f8f9fa; padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background: white; padding: 35px; border-radius: 16px; text-align: center; border: 1px solid #e8e9ea; }
.feature-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: white; }
.feature-card h3 { font-size: 18px; font-weight: 700; color: #2d3436; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: #636e72; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact-section { background: linear-gradient(135deg, #1a1a2e 0%, #2d3436 100%); color: white; padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: start; }
.contact-info-list { list-style: none; margin-top: 25px; }
.contact-info-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 15px; }
.contact-info-list li i { width: 44px; height: 44px; background: rgba(243,156,18,0.15); border: 1px solid rgba(243,156,18,0.4); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent-orange); font-size: 16px; flex-shrink: 0; }
.contact-info-list a { color: rgba(255,255,255,0.85); text-decoration: none; }
.contact-info-list a:hover { color: var(--accent-orange); }
.contact-form { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 30px; }
.contact-form label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 8px; color: rgba(255,255,255,0.7); }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 16px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.25); border-radius: 8px; color: white; font: 400 14px 'Inter', sans-serif; margin-bottom: 16px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent-orange); }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form button { padding: 14px 30px; background: var(--accent-orange); color: #1a1a2e; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; text-transform: uppercase; font-size: 13px; font-family: inherit; }
.contact-form button:disabled { opacity: 0.6; cursor: wait; }
.contact-message { margin-top: 12px; font-size: 14px; min-height: 20px; }
.contact-message.error { color: #ff9c94; }
.contact-message.success { color: #7bedb1; }

/* ---------- CTA / Footer ---------- */
.cta-section { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); text-align: center; padding: 70px 0; color: #1a1a2e; }
.cta-section h2 { font-family: 'Rajdhani', sans-serif; font-size: clamp(26px, 4vw, 42px); margin-bottom: 14px; }
.cta-section p { font-size: 17px; margin-bottom: 30px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-btn { padding: 15px 36px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.cta-btn.primary { background: #1a1a2e; color: white; }
.cta-btn.whatsapp { background: #25d366; color: #06301a; }

.footer { background: #1a1a2e; color: #b2bec3; padding: 60px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 45px; margin-bottom: 50px; }
.footer-brand h3 { color: white; font-family: 'Rajdhani', sans-serif; font-size: 28px; letter-spacing: 2px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.8; opacity: 0.8; }
.footer h4 { color: white; font-weight: 600; margin-bottom: 22px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; font-size: 14px; }
.footer-links a { color: #b2bec3; text-decoration: none; }
.footer-links a:hover { color: var(--accent-orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; text-align: center; font-size: 13px; }

/* ---------- Floating buttons ---------- */
.live-chat-btn { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: linear-gradient(135deg, #27ae60, #2ecc71); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4); cursor: pointer; border: 0; z-index: 9999; }
.live-chat-btn:hover { transform: scale(1.08); }
.whatsapp-float { position: fixed; bottom: 104px; right: 30px; width: 60px; height: 60px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 30px; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); z-index: 9999; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Shared rx components ---------- */
a { color: #875000; }
[hidden] { display: none !important; }
.rx-page { margin: 0; background: #f0f1f3; color: #2d3436; font: 14px/1.6 'Inter', sans-serif; }
.rx-page * { box-sizing: border-box; }
.rx-page h1, .rx-page h2, .rx-page h3 { font-family: 'Rajdhani', sans-serif; line-height: 1.2; margin: 0 0 16px; }
.rx-page h1 { font-size: clamp(30px, 4vw, 44px); }
.rx-page h2 { font-size: 28px; }
.rx-header { background: #1a1a2e; color: white; padding: 22px 0; }
.rx-container { max-width: 1200px; margin: auto; padding: 0 24px; }
.rx-header .rx-container, .rx-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rx-brand { color: white !important; text-decoration: none; font: 700 32px 'Rajdhani', sans-serif; letter-spacing: 2px; margin-right: auto; }
.rx-brand i { color: #f39c12; }
.rx-header a:not(.rx-brand) { color: white; }
.rx-main { padding-top: 36px; padding-bottom: 60px; }
.rx-card { background: white; border: 1px solid #dfe3e7; border-radius: 14px; padding: 26px; margin: 22px 0; }
.rx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rx-grid .rx-card { margin: 0; }
.rx-muted { color: #636e72; }
.rx-eyebrow { color: #875000; font-weight: 700; letter-spacing: 1px; font-size: 12px; text-transform: uppercase; }
.rx-price { font: 700 32px 'Rajdhani', sans-serif; margin: 20px 0; }
.rx-btn, .rx-icon-btn { font: 600 13px 'Inter', sans-serif; padding: 12px 18px; border-radius: 8px; border: 1px solid transparent; background: #f39c12; color: #1a1a2e !important; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.rx-btn.secondary, .rx-icon-btn { background: #f2f3f5; border-color: #dfe3e7; color: #2d3436 !important; }
.rx-icon-btn { padding: 8px 12px; min-width: 38px; }
.rx-btn:disabled, .rx-icon-btn:disabled { opacity: .55; cursor: wait; }
.rx-btn:hover:not(:disabled) { filter: brightness(.96); }
.rx-form { display: grid; gap: 16px; }
.rx-form label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.rx-form input, .rx-form textarea, .rx-form select, .rx-input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #b2bec3; border-radius: 7px; background: white; font: 400 14px 'Inter', sans-serif; color: #2d3436; }
.rx-form textarea { resize: vertical; min-height: 90px; }
.rx-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.rx-form input:focus, .rx-form textarea:focus, .rx-form select:focus { outline: 2px solid #f39c12; outline-offset: 2px; }
.rx-form p { margin: 0; }
.rx-form .rx-grid { gap: 14px; }
.rx-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.rx-message:empty { display: none; }
.rx-message.error { color: #a52c23; }
.rx-message.success { color: #18683a; }
.rx-status { display: inline-block; padding: 5px 12px; border-radius: 20px; background: #f4e3d2; color: #754000; font-size: 12px; font-weight: 600; }
.rx-status.stock { background: #e2f4e8; color: #18683a; }
.rx-table-wrap { overflow-x: auto; margin-top: 16px; }
.rx-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.rx-table th, .rx-table td { padding: 12px; border-bottom: 1px solid #e3e6e9; vertical-align: top; overflow-wrap: anywhere; }
.rx-table thead { background: #f6f7f8; }
.rx-table th { font-weight: 600; }
.rx-detail-image { min-height: 330px; background: #f6f7f8; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rx-detail-image img { width: 100%; height: 350px; object-fit: contain; padding: 24px; }
.rx-image-fallback { color: #899398; font-size: 80px; }
.rx-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.rx-related a { color: #2d3436; text-decoration: none; border: 1px solid #dfe3e7; border-radius: 12px; padding: 20px; background: white; }
.rx-related strong, .rx-related span { display: block; }
.rx-related a:hover { border-color: #f39c12; }
.rx-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.rx-tabs [aria-selected='true'] { background: #1a1a2e; color: white !important; }
.rx-stats { display: flex; gap: 30px; flex-wrap: wrap; margin: 24px 0; }
.rx-stats strong { display: block; font: 700 34px 'Rajdhani', sans-serif; }
.rx-auth { max-width: 520px; margin: 30px auto; }
.rx-overlay { border: 0; padding: 0; color: #2d3436; border-radius: 14px; width: min(590px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 24px 100px #0004; background: white; margin: auto; font: 14px/1.6 'Inter', sans-serif; }
.rx-overlay::backdrop { background: #121425a6; }
.rx-overlay h2 { margin: 0; font: 700 28px 'Rajdhani', sans-serif; }
.rx-overlay .rx-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e3e6e9; padding: 20px 24px; }
.rx-overlay .rx-dialog-body { padding: 22px 24px; }
.rx-drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; border-radius: 0; width: min(520px, 100vw); animation: rx-slide .2s ease-out; }
@keyframes rx-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.rx-cart-item { padding: 16px 0; border-bottom: 1px solid #e3e6e9; }
.rx-cart-item a { color: #2d3436; font-weight: 600; }
.rx-cart-item p { margin: 4px 0 12px; }
.rx-cart-item .rx-actions { margin-top: 10px; }
.rx-cart-item input { width: 72px; text-align: center; }
.rx-count { display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; background: #f39c12; color: #1a1a2e; min-width: 24px; height: 24px; padding: 0 5px; font-weight: 700; }
.rx-chat { position: fixed; inset: auto 24px 100px auto; width: min(390px, calc(100vw - 32px)); height: min(550px, calc(100dvh - 130px)); margin: 0; z-index: 10000; }
.rx-chat-shell { display: flex; flex-direction: column; height: 100%; }
.rx-chat-log { padding: 18px; overflow-y: auto; flex: 1; min-height: 120px; }
.rx-chat-message { padding: 12px; border-radius: 10px; background: #f0f1f3; margin-bottom: 12px; overflow-wrap: anywhere; }
.rx-chat-message p { margin: 0 0 8px; white-space: pre-wrap; }
.rx-chat-message.user { background: #fff2dc; margin-left: 30px; }
.rx-chat-message small { display: block; color: #636e72; }
.rx-chat-message a { display: block; color: #875000; margin-top: 8px; }
.rx-chat-form { padding: 16px; border-top: 1px solid #e3e6e9; }
.rx-chat-form .rx-actions { flex-wrap: nowrap; }
.rx-toast { position: fixed; bottom: 26px; left: 24px; max-width: min(440px, calc(100vw - 48px)); background: #1a1a2e; color: white; border-radius: 10px; padding: 14px 20px; z-index: 11000; }
.product-card .product-link { color: inherit; text-decoration: none; }
.product-card .product-image.product-link { display: flex; }
.product-card .product-footer .rx-actions { gap: 7px; flex-wrap: wrap; }
.live-chat-btn { border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .header-main .container { flex-direction: column; gap: 15px; align-items: stretch; }
    .header-actions { justify-content: center; }
    .search-bar { width: 100%; max-width: none; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero { padding: 55px 0; }
    .hero-stats { gap: 26px; }
    .filter-bar { padding: 16px; }
    .search-input { min-width: 0; flex: 1; }
    .section { padding: 50px 0; }
    .whatsapp-float { bottom: 96px; right: 20px; width: 54px; height: 54px; font-size: 27px; }
    .live-chat-btn { right: 20px; bottom: 24px; width: 54px; height: 54px; font-size: 21px; }
    .rx-grid { grid-template-columns: 1fr; }
    .rx-container { padding-left: 16px; padding-right: 16px; }
    .rx-card { padding: 20px; }
    .rx-detail-image { min-height: 240px; }
    .rx-detail-image img { height: 260px; }
    .rx-chat { right: 16px; }
    .rx-header .rx-brand { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .rx-drawer { animation: none; } }
.rx-unpriced { color: #a52c23; font-weight: 700; }
.rx-blocked { color: #a52c23; font-weight: 600; }
