/* Retailers Shop Public Styles */

/* ============ BASE ============ */
.rs-shop-wrapper, .rs-register-wrapper, .rs-dashboard-wrapper, .rs-cart-wrapper {
    max-width: 1200px; margin: 0 auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; position: relative; z-index: 1;
}
* { box-sizing: border-box; }

/* ============ BUTTONS (theme-proof) ============ */
.rs-btn { display: inline-flex !important; align-items: center !important; gap: 6px; padding: 10px 20px !important; border-radius: 8px !important; font-size: 14px !important; font-weight: 600 !important; text-decoration: none !important; cursor: pointer !important; border: none !important; transition: all 0.3s !important; line-height: 1.4 !important; letter-spacing: 0.3px; text-transform: none !important; box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important; }
.rs-btn-primary { background: linear-gradient(135deg, #16a34a, #15803d) !important; color: #fff !important; }
.rs-btn-primary:hover { background: linear-gradient(135deg, #22c55e, #16a34a) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(22,163,74,0.4) !important; transform: translateY(-1px); }
.rs-btn-primary:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(22,163,74,0.3) !important; }
.rs-btn-outline { background: #fff !important; color: #374151 !important; border: 2px solid #d1d5db !important; box-shadow: none !important; }
.rs-btn-outline:hover { background: #f9fafb !important; border-color: #16a34a !important; color: #16a34a !important; }
.rs-btn-text { background: none !important; border: none !important; color: #dc2626 !important; padding: 5px !important; font-size: 13px !important; box-shadow: none !important; }
.rs-btn-lg { padding: 14px 28px !important; font-size: 16px !important; }
.rs-btn-block { width: 100% !important; justify-content: center !important; }
.rs-btn:disabled { opacity: 0.6 !important; cursor: not-allowed !important; transform: none !important; }

/* ============ NOTICES ============ */
.rs-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.rs-notice-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.rs-notice-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.rs-notice-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ============ SHOP TOP BAR ============ */
.rs-shop-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.rs-shop-title { margin: 0; font-size: 22px; }
.rs-shop-subtitle { color: #6b7280; font-size: 13px; }
.rs-shop-topbar-right { display: flex; gap: 10px; align-items: center; }
.rs-cart-badge { background: #dc2626; color: #fff; border-radius: 50%; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

/* ============ SUBSCRIPTION BAR ============ */
.rs-subscription-bar { display: flex !important; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important; border: 1px solid #bbf7d0 !important; padding: 12px 18px !important; border-radius: 10px !important; margin-bottom: 16px; font-size: 14px; }
.rs-days-badge { background: #16a34a !important; color: #fff !important; padding: 4px 14px !important; border-radius: 20px !important; font-size: 13px !important; font-weight: 700 !important; }
.rs-days-warning { background: #dc2626 !important; }

/* ============ SEARCH BAR ============ */
.rs-search-bar { margin-bottom: 16px !important; }
.rs-search-form { display: flex !important; max-width: 500px; border: 2px solid #16a34a !important; border-radius: 8px !important; overflow: hidden; background: #fff !important; }
.rs-search-input { flex: 1 !important; padding: 10px 14px !important; border: none !important; font-size: 14px !important; outline: none !important; background: #fff !important; min-width: 0 !important; }
.rs-search-btn { padding: 10px 16px !important; background: #16a34a !important; border: none !important; cursor: pointer !important; font-size: 16px; color: #fff !important; }
.rs-search-btn:hover { background: #15803d !important; }

/* ============ CATEGORY FILTER ============ */
.rs-category-filter { display: flex !important; gap: 6px !important; flex-wrap: wrap !important; margin-bottom: 16px !important; padding-bottom: 14px; border-bottom: 1px solid #e5e7eb; align-items: center !important; }
.rs-cat-btn { padding: 6px 14px !important; border-radius: 20px !important; font-size: 12px !important; font-weight: 500 !important; color: #374151 !important; background: #f3f4f6 !important; text-decoration: none !important; transition: all 0.2s !important; border: 1px solid #e5e7eb !important; white-space: nowrap !important; line-height: 1.4 !important; display: inline-block !important; }
.rs-cat-btn.active, .rs-cat-btn:hover { background: #16a34a !important; color: #fff !important; border-color: #16a34a !important; }
.rs-cat-btn.rs-cat-sub { padding: 4px 12px !important; font-size: 11px !important; background: #eff6ff !important; border-color: #bfdbfe !important; color: #1d4ed8 !important; }
.rs-cat-btn.rs-cat-sub.active, .rs-cat-btn.rs-cat-sub:hover { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }

/* ============ PRODUCTS GRID — Elementor-style ============ */
.rs-products-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; }

.rs-product-card { background: #fff !important; border: 1px solid #e5e7eb !important; border-radius: 10px !important; overflow: hidden; transition: box-shadow 0.3s, transform 0.2s !important; display: flex !important; flex-direction: column !important; }
.rs-product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important; transform: translateY(-2px); }

.rs-product-image { position: relative !important; padding-top: 100% !important; overflow: hidden !important; background: #f9fafb !important; height: auto !important; }
.rs-product-image img.rs-gallery-slide { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; opacity: 0; transition: opacity 0.3s ease !important; pointer-events: none; }
.rs-product-image img.rs-slide-active { opacity: 1 !important; pointer-events: auto; }
.rs-product-image:not(.rs-has-gallery) img { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; opacity: 1 !important; }

/* Gallery navigation arrows */
.rs-gallery-nav { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; opacity: 0; transition: opacity 0.2s; }
.rs-has-gallery:hover .rs-gallery-nav { opacity: 1; }
.rs-gallery-prev, .rs-gallery-next { pointer-events: auto; background: rgba(255,255,255,0.85) !important; border: none !important; width: 28px; height: 28px; border-radius: 50% !important; font-size: 18px; line-height: 26px; text-align: center; cursor: pointer; color: #374151; box-shadow: 0 1px 4px rgba(0,0,0,0.15); padding: 0 !important; }
.rs-gallery-prev:hover, .rs-gallery-next:hover { background: #fff !important; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }

/* Gallery dots */
.rs-gallery-dots { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 3; }
.rs-gallery-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.2s; border: 1px solid rgba(0,0,0,0.1); }
.rs-gallery-dot.active { background: #fff; transform: scale(1.3); box-shadow: 0 0 3px rgba(0,0,0,0.3); }
.rs-no-image { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 40px !important; color: #d1d5db !important; }

/* Discount Badge — green circle like Elementor orange */
.rs-discount-badge { position: absolute !important; top: 8px !important; left: 8px !important; background: #16a34a !important; color: #fff !important; width: 42px !important; height: 42px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 11px !important; font-weight: 700 !important; z-index: 2 !important; line-height: 1 !important; }

.rs-timer-badge { position: absolute !important; top: 8px !important; right: 8px !important; background: rgba(0,0,0,0.7) !important; color: #fff !important; padding: 3px 8px !important; border-radius: 4px !important; font-size: 10px !important; font-weight: 500 !important; z-index: 2 !important; }
.rs-timer-urgent { background: #dc2626 !important; }

.rs-stock-badge { position: absolute !important; bottom: 8px !important; left: 8px !important; background: #f59e0b !important; color: #fff !important; padding: 3px 8px !important; border-radius: 4px !important; font-size: 10px !important; font-weight: 600 !important; z-index: 2 !important; }

.rs-product-content { padding: 12px !important; flex: 1 !important; display: flex !important; flex-direction: column !important; }
.rs-product-title { margin: 0 0 4px !important; font-size: 14px !important; font-weight: 600 !important; color: #111827 !important; line-height: 1.3 !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
.rs-product-desc { color: #6b7280 !important; font-size: 12px !important; margin: 0 0 6px !important; line-height: 1.3 !important; display: -webkit-box !important; -webkit-line-clamp: 1 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }

/* Price Display — strikethrough old + bold wholesale */
.rs-price-display { margin-bottom: 6px !important; display: flex !important; align-items: baseline !important; gap: 6px !important; flex-wrap: wrap !important; }
.rs-price-old { font-size: 12px !important; color: #9ca3af !important; text-decoration: line-through !important; }
.rs-price-wholesale { font-size: 16px !important; font-weight: 700 !important; color: #16a34a !important; }
.rs-price-from { font-size: 10px !important; color: #9ca3af !important; }

/* Compact tier tags */
.rs-tier-compact { display: flex !important; flex-wrap: wrap !important; gap: 4px !important; margin-bottom: 8px !important; }
.rs-tier-tag-compact { background: #f0fdf4 !important; color: #065f46 !important; padding: 2px 6px !important; border-radius: 4px !important; font-size: 10px !important; font-weight: 600 !important; border: 1px solid #bbf7d0 !important; white-space: nowrap !important; }

/* Product meta */
.rs-product-meta { font-size: 12px !important; color: #6b7280 !important; margin-bottom: 8px !important; }

/* ADD TO CART — full-width orange button like Elementor */
.rs-add-to-cart-compact { margin-top: auto !important; }
.rs-atc-btn { display: block !important; width: 100% !important; padding: 10px 16px !important; background: linear-gradient(135deg, #f59e0b, #d97706) !important; color: #fff !important; border: none !important; border-radius: 8px !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: 0.5px !important; cursor: pointer !important; transition: all 0.3s !important; text-align: center !important; text-transform: uppercase !important; }
.rs-atc-btn:hover { background: linear-gradient(135deg, #fbbf24, #f59e0b) !important; box-shadow: 0 4px 12px rgba(245,158,11,0.4) !important; transform: translateY(-1px) !important; }
.rs-atc-btn:active { transform: translateY(0) !important; }
.rs-atc-btn.rs-added { background: linear-gradient(135deg, #16a34a, #15803d) !important; }

/* Keep the quantity input for cart page but hide in grid */
.rs-add-to-cart-section { display: flex !important; gap: 8px; align-items: stretch; }

.rs-qty-input { display: flex !important; align-items: center; border: 1.5px solid #d1d5db !important; border-radius: 8px !important; overflow: hidden; }
.rs-qty-btn { width: 34px !important; height: 34px !important; border: none !important; background: #f3f4f6 !important; cursor: pointer !important; font-size: 16px !important; font-weight: 600 !important; color: #374151 !important; display: flex !important; align-items: center; justify-content: center; }
.rs-qty-btn:hover { background: #e5e7eb !important; }
.rs-qty-field { width: 42px !important; height: 34px !important; border: none !important; text-align: center !important; font-size: 13px !important; font-weight: 500 !important; -moz-appearance: textfield; background: #fff !important; }
.rs-qty-field::-webkit-outer-spin-button,
.rs-qty-field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rs-qty-sm .rs-qty-btn { width: 30px !important; height: 32px !important; font-size: 16px !important; }
.rs-qty-sm .rs-qty-field { width: 40px !important; height: 32px !important; font-size: 13px !important; }
.rs-add-to-cart { flex: 1; }
.rs-btn-block.rs-add-to-cart { flex: 1; }

/* ============ EMPTY SHOP ============ */
.rs-empty-shop, .rs-empty-cart { text-align: center; padding: 60px 20px; }
.rs-empty-icon { font-size: 64px; margin-bottom: 16px; }
.rs-empty-shop h3, .rs-empty-cart h3 { margin-bottom: 8px; color: #374151; }
.rs-empty-shop p, .rs-empty-cart p { color: #6b7280; margin-bottom: 20px; }
.rs-empty-text { color: #9ca3af; text-align: center; padding: 20px; }

/* ============ REGISTRATION ============ */
.rs-register-card { max-width: 640px; margin: 0 auto 24px !important; background: #fff !important; border: 1px solid #e5e7eb !important; border-radius: 12px !important; padding: 32px !important; box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important; }
.rs-login-card { margin-bottom: 0 !important; border-top: 4px solid #16a34a !important; }
.rs-register-card h2 { margin: 0 0 8px !important; font-size: 22px !important; color: #111827 !important; }
.rs-register-intro { color: #6b7280 !important; margin-bottom: 20px; }

/* OR Divider */
.rs-divider { max-width: 640px; margin: 24px auto !important; display: flex !important; align-items: center; gap: 16px; }
.rs-divider::before, .rs-divider::after { content: '' !important; flex: 1; height: 1px; background: #d1d5db !important; }
.rs-divider span { color: #6b7280 !important; font-size: 14px !important; font-weight: 700 !important; text-transform: uppercase; }

.rs-pricing-preview { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px !important; }
.rs-price-item { background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important; padding: 16px !important; border-radius: 10px !important; text-align: center; border: 2px solid #16a34a !important; }
.rs-price-label { display: block !important; font-size: 13px !important; font-weight: 600 !important; color: #065f46 !important; margin-bottom: 4px; }
.rs-price-value { display: block !important; font-size: 22px !important; font-weight: 700 !important; color: #16a34a !important; }

/* Steps */
.rs-steps { display: flex !important; align-items: center; justify-content: center; gap: 0; margin-bottom: 30px; }
.rs-step { display: flex !important; align-items: center; gap: 8px; color: #9ca3af !important; }
.rs-step.active { color: #16a34a !important; }
.rs-step.completed { color: #065f46 !important; }
.rs-step-num { width: 32px !important; height: 32px !important; border-radius: 50% !important; border: 2px solid currentColor !important; display: flex !important; align-items: center; justify-content: center; font-size: 13px !important; font-weight: 700 !important; }
.rs-step.active .rs-step-num { background: #16a34a !important; color: #fff !important; border-color: #16a34a !important; box-shadow: 0 2px 8px rgba(22,163,74,0.3); }
.rs-step.completed .rs-step-num { background: #065f46 !important; color: #fff !important; border-color: #065f46 !important; }
.rs-step-label { font-size: 13px; font-weight: 600 !important; }
.rs-step-line { width: 40px; height: 2px; background: #d1d5db; margin: 0 8px; }

/* Forms */
.rs-form .rs-field-group, .rs-checkout-card .rs-field-group, .rs-dash-card .rs-field-group { margin-bottom: 14px; }
.rs-field-group label { display: block !important; font-size: 13px !important; font-weight: 600 !important; color: #374151 !important; margin-bottom: 6px !important; }
.rs-field-group label .required { color: #dc2626 !important; }
.rs-field-group input, .rs-field-group textarea, .rs-field-group select,
.rs-select { width: 100% !important; padding: 11px 14px !important; border: 1.5px solid #d1d5db !important; border-radius: 8px !important; font-size: 14px !important; transition: border-color 0.2s, box-shadow 0.2s !important; background: #fff !important; }
.rs-field-group input:focus, .rs-field-group textarea:focus, .rs-field-group select:focus { border-color: #16a34a !important; outline: none !important; box-shadow: 0 0 0 3px rgba(22,163,74,0.15) !important; }

.rs-form-row { display: grid; gap: 12px; }
.rs-form-row-2 { grid-template-columns: 1fr 1fr; }

.rs-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.rs-checkbox-label { font-size: 13px; display: flex; align-items: center; gap: 6px; padding: 4px 0; cursor: pointer; }

/* Payment */
.rs-payment-summary { background: #f9fafb; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.rs-payment-amount { display: flex; justify-content: space-between; align-items: center; font-size: 15px; padding: 8px 0; }
.rs-payment-amount strong { font-size: 22px; color: #16a34a; }
.rs-payment-detail { display: flex; justify-content: space-between; font-size: 13px; color: #6b7280; padding: 4px 0; }
.rs-prorate-info { background: #fef3c7; padding: 10px; border-radius: 6px; margin-bottom: 10px; font-size: 13px; color: #92400e; }
.rs-prorate-info p { margin: 0; }

.rs-payment-status { margin-top: 12px; padding: 12px; border-radius: 8px; text-align: center; font-size: 14px; }
.rs-payment-checking { background: #fef3c7; color: #92400e; }
.rs-payment-success { background: #d1fae5; color: #065f46; }
.rs-payment-failed { background: #fee2e2; color: #991b1b; }

/* ============ DASHBOARD ============ */
.rs-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rs-dash-card { background: #fff !important; border: 1px solid #e5e7eb !important; border-radius: 12px !important; padding: 24px !important; box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important; }
.rs-dash-card h3 { margin: 0 0 16px !important; font-size: 16px !important; font-weight: 700 !important; color: #111827 !important; }

.rs-sub-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; background: #d1fae5; color: #065f46; margin-bottom: 16px; }
.rs-badge-expired { background: #fee2e2; color: #991b1b; }

.rs-sub-countdown { text-align: center; margin-bottom: 12px; }
.rs-countdown-num { font-size: 48px; font-weight: 700; color: #16a34a; line-height: 1; }
.rs-countdown-label { font-size: 13px; color: #6b7280; }

.rs-progress-bar { width: 100%; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.rs-progress-fill { height: 100%; background: #16a34a; border-radius: 4px; transition: width 0.5s; }
.rs-stock-progress { margin: 8px 0; }
.rs-stock-text { display: flex; justify-content: space-between; font-size: 11px; color: #6b7280; }
.rs-sold-text { color: #dc2626; font-weight: 600; }
.rs-progress-danger { background: #dc2626; }

.rs-sub-dates { display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; }

.rs-info-list { display: flex; flex-direction: column; gap: 10px; }
.rs-info-row { display: flex; justify-content: space-between; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid #f3f4f6; }
.rs-info-label { color: #6b7280; }
.rs-info-value { font-weight: 500; color: #111827; }

/* Tables */
.rs-table-responsive { overflow-x: auto; }
.rs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rs-table th { background: #f9fafb; padding: 10px 12px; text-align: left; font-weight: 600; color: #374151; border-bottom: 2px solid #e5e7eb; }
.rs-table td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; }
.rs-table tr:hover td { background: #f9fafb; }

.rs-status-pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.rs-status-active, .rs-status-completed, .rs-status-processing { background: #d1fae5; color: #065f46; }
.rs-status-pending { background: #fef3c7; color: #92400e; }
.rs-status-expired, .rs-status-cancelled, .rs-status-failed { background: #fee2e2; color: #991b1b; }

/* ============ CART ============ */
.rs-cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.rs-cart-header h2 { margin: 0; }

.rs-cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }

.rs-cart-item { display: flex; gap: 14px; padding: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 12px; }
.rs-cart-item-image { width: 90px; height: 90px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.rs-cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.rs-no-image-sm { width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; background: #f3f4f6; font-size: 30px; border-radius: 8px; }

.rs-cart-item-details h4 { margin: 0 0 4px; font-size: 15px; }
.rs-cart-tier-info { margin-bottom: 6px; }
.rs-cart-tier-info small { color: #6b7280; font-size: 11px; }
.rs-tier-tag { background: #f0fdf4; color: #065f46; padding: 1px 6px; border-radius: 4px; margin-left: 4px; font-size: 11px; }

.rs-cart-item-price { display: flex; justify-content: space-between; margin-bottom: 8px; }
.rs-unit-price { color: #6b7280; font-size: 13px; }
.rs-line-total { font-weight: 700; color: #16a34a; font-size: 15px; }

.rs-cart-item-actions { display: flex; align-items: center; gap: 10px; }

/* Checkout Sidebar */
.rs-checkout-card { background: #fff !important; border: 1px solid #e5e7eb !important; border-radius: 12px !important; padding: 24px !important; position: sticky; top: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important; }
.rs-checkout-card h3 { margin: 0 0 16px !important; font-size: 18px !important; font-weight: 700 !important; }
.rs-checkout-card h4 { margin: 14px 0 8px !important; font-size: 14px !important; color: #374151 !important; font-weight: 600 !important; }

.rs-summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; }
.rs-summary-total { font-size: 18px; padding: 14px 0; border-top: 2px solid #111827; }
.rs-summary-total strong { color: #16a34a; }

.rs-checkout-section { border-top: 1px solid #f3f4f6; padding-top: 10px; margin-top: 10px; }

/* Packing */
.rs-packing-note { font-size: 12px !important; color: #6b7280 !important; margin: 0 0 10px !important; font-style: italic; }
.rs-packing-item { padding: 8px 0 !important; border-bottom: 1px solid #f3f4f6; }
.rs-packing-item:last-of-type { border-bottom: none; }
.rs-packing-label { display: flex !important; align-items: center !important; gap: 8px !important; font-size: 13px !important; cursor: pointer !important; font-weight: 500 !important; }
.rs-packing-name { flex: 1 !important; color: #111827 !important; }
.rs-packing-price { color: #16a34a !important; font-weight: 600 !important; white-space: nowrap; }
.rs-packing-desc { display: block !important; color: #9ca3af !important; font-size: 11px !important; margin-left: 26px !important; margin-top: 2px; }
.rs-packing-qty-row { display: flex !important; align-items: center !important; gap: 8px !important; margin: 6px 0 0 26px !important; padding: 6px 0; }
.rs-packing-qty-row label { font-size: 12px !important; color: #6b7280 !important; }
.rs-packing-error { background: #fef3c7 !important; color: #92400e !important; padding: 8px 12px !important; border-radius: 6px !important; font-size: 13px !important; margin-top: 8px !important; border: 1px solid #fde68a !important; }
.rs-no-packing { color: #9ca3af; font-size: 13px; font-style: italic; }

/* Required asterisk */
.rs-required { color: #dc2626 !important; font-weight: 700; }

/* M-Pesa Phone section */
.rs-mpesa-section { background: linear-gradient(135deg, #f0fdf4, #ecfdf5) !important; margin: 12px -24px !important; padding: 14px 24px !important; border-top: 1px solid #bbf7d0 !important; border-bottom: 1px solid #bbf7d0 !important; }
.rs-phone-input { width: 100% !important; padding: 10px 12px !important; border: 2px solid #16a34a !important; border-radius: 8px !important; font-size: 16px !important; font-weight: 600 !important; letter-spacing: 1px; background: #fff !important; }
.rs-phone-input:focus { border-color: #15803d !important; box-shadow: 0 0 0 3px rgba(22,163,74,0.15) !important; outline: none !important; }
.rs-field-hint { display: block !important; font-size: 11px !important; color: #6b7280 !important; margin-top: 4px; }

/* MOQ Notice */
.rs-moq-notice { background: #fef3c7; border: 1px solid #fde68a; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.rs-moq-notice p { margin: 0; font-size: 13px; color: #92400e; }

/* ============ RESPONSIVE ============ */

/* Tablets */
@media (max-width: 1024px) {
    .rs-products-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; }
}

/* Mobile */
@media (max-width: 768px) {
    .rs-shop-wrapper, .rs-register-wrapper, .rs-dashboard-wrapper, .rs-cart-wrapper {
        padding: 12px !important;
    }

    /* Top bar stacks */
    .rs-shop-topbar { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
    .rs-shop-topbar-right { width: 100% !important; }
    .rs-shop-topbar-right .rs-btn { flex: 1 !important; justify-content: center !important; font-size: 13px !important; padding: 8px 12px !important; }
    .rs-shop-title { font-size: 18px !important; }

    /* Subscription bar stacks */
    .rs-subscription-bar { flex-direction: column !important; gap: 6px !important; text-align: center !important; font-size: 13px !important; padding: 10px 14px !important; }

    /* Search bar full width */
    .rs-search-form { max-width: 100% !important; }

    /* Categories — clean 3-per-row grid on mobile */
    .rs-category-filter { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; padding-bottom: 12px !important; }
    .rs-cat-btn { text-align: center !important; padding: 6px 8px !important; font-size: 11px !important; border-radius: 6px !important; }

    /* Products — 2 columns like Elementor mobile */
    .rs-products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }

    /* Compact card content on mobile */
    .rs-product-content { padding: 8px !important; }
    .rs-product-title { font-size: 12px !important; margin-bottom: 2px !important; -webkit-line-clamp: 2 !important; }
    .rs-product-desc { display: none !important; }
    .rs-price-display { margin-bottom: 4px !important; }
    .rs-price-old { font-size: 11px !important; }
    .rs-price-wholesale { font-size: 14px !important; }
    .rs-tier-compact { display: none !important; }
    .rs-atc-btn { padding: 8px 10px !important; font-size: 11px !important; border-radius: 6px !important; }
    .rs-discount-badge { width: 36px !important; height: 36px !important; font-size: 10px !important; }
    .rs-timer-badge { font-size: 9px !important; padding: 2px 5px !important; }
    .rs-stock-badge { font-size: 9px !important; padding: 2px 5px !important; }

    /* Cart layout */
    .rs-cart-layout { grid-template-columns: 1fr !important; }
    
    /* Dashboard */
    .rs-dash-grid { grid-template-columns: 1fr !important; }
    
    /* Forms */
    .rs-form-row-2 { grid-template-columns: 1fr !important; }
    .rs-pricing-preview { grid-template-columns: 1fr !important; }
}

/* Very small screens */
@media (max-width: 400px) {
    .rs-products-grid { gap: 8px !important; }
    .rs-category-filter { grid-template-columns: repeat(2, 1fr) !important; }
    .rs-product-title { font-size: 11px !important; }
    .rs-price-wholesale { font-size: 13px !important; }
    .rs-atc-btn { padding: 7px 8px !important; font-size: 10px !important; }
}

/* ============================================
   DROPSHIPPER STYLES
   ============================================ */

/* Account Type Selector on Registration */
.rs-account-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.rs-type-option {
    cursor: pointer;
}
.rs-type-option input[type="radio"] {
    display: none;
}
.rs-type-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
    background: #fff;
}
.rs-type-option:hover .rs-type-card {
    border-color: #16a34a;
    background: #f0fdf4;
}
.rs-type-active .rs-type-card {
    border-color: #16a34a;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
}
.rs-type-icon {
    font-size: 28px;
    margin-bottom: 6px;
}
.rs-type-name {
    font-weight: 700;
    font-size: 15px;
    color: #111;
    margin-bottom: 4px;
}
.rs-type-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
}

/* Dropshipper Dashboard Header */
.rs-ds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.rs-ds-header h2 {
    margin: 0;
    font-size: 22px;
}

/* Dashboard Tabs */
.rs-ds-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
    overflow-x: auto;
}
.rs-ds-tab {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.2s;
}
.rs-ds-tab:hover {
    color: #16a34a;
}
.rs-ds-tab.active {
    color: #16a34a;
    border-bottom-color: #16a34a;
}
.rs-tab-badge {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}

/* Stats Grid */
.rs-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}
.rs-stat-box {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}
.rs-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #16a34a;
}
.rs-stat-label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

/* Badges */
.rs-badge-ds {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.rs-badge-self {
    background: #f3e8ff;
    color: #7c3aed;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
}
.rs-badge-client {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
}

/* Inventory Grid */
.rs-inventory-grid {
    display: grid;
    gap: 12px;
}
.rs-inv-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    transition: box-shadow 0.2s;
}
.rs-inv-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.rs-inv-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}
.rs-inv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rs-inv-details {
    flex: 1;
    min-width: 0;
}
.rs-inv-details h4 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
}
.rs-inv-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
}
.rs-inv-remaining {
    background: #f0fdf4;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #16a34a;
    margin-bottom: 8px;
}
.rs-inv-remaining strong {
    font-size: 16px;
}
.rs-inv-price {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}
.rs-inv-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Modal */
.rs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.rs-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1000000 !important;
}
.rs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.rs-modal-header h3 {
    margin: 0;
    font-size: 17px;
}
.rs-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0 5px;
}
.rs-modal-body {
    padding: 20px;
}
.rs-dist-summary {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
}

/* Dropshipper info banner in cart */
.rs-dropshipper-info {
    margin: 10px 0;
}

@media (max-width: 600px) {
    .rs-account-type-selector { grid-template-columns: 1fr; }
    .rs-inv-card { flex-direction: column; }
    .rs-inv-image { width: 100%; height: 150px; }
    .rs-ds-tabs { gap: 0; }
    .rs-ds-tab { padding: 8px 12px; font-size: 12px; }
    .rs-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* WoodMart theme compatibility: ensure buttons are clickable */
.rs-product-card .rs-atc-btn,
.rs-product-card .rs-add-to-cart,
.rs-cs-inline-form button,
.rs-cs-inline-join button {
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Pulsing Active Cost Shares header */
@keyframes rsCsPulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 8px rgba(245,114,36,0.3); }
    50% { opacity: 0.6; text-shadow: 0 0 20px rgba(245,114,36,0.6); }
}
.rs-cs-pulse-header {
    color: #f57224;
    animation: rsCsPulse 1.5s ease-in-out infinite;
}

/* ===== Tier Cards ===== */
.rs-tier-grid { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; margin: 8px 0 10px !important; }
.rs-tier-card { display: flex !important; flex-direction: column !important; align-items: center !important; background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important; border: 1.5px solid #86efac !important; border-radius: 8px !important; padding: 5px 10px !important; min-width: 60px !important; flex: 1 !important; }
.rs-tier-qty { font-size: 10px !important; font-weight: 600 !important; color: #166534 !important; white-space: nowrap !important; line-height: 1.2 !important; }
.rs-tier-price { font-size: 13px !important; font-weight: 800 !important; color: #15803d !important; white-space: nowrap !important; line-height: 1.3 !important; }

/* ===== Mobile tab scrolling ===== */
@media (max-width: 768px) {
    .rs-ds-tabs-wrap { position: relative; }
    .rs-ds-tabs-wrap::after { content: ''; position: absolute; right: 0; top: 0; bottom: 2px; width: 48px; background: linear-gradient(to right, transparent, #fff 80%); pointer-events: none; z-index: 2; transition: opacity 0.3s; }
    .rs-ds-tabs-wrap.rs-tabs-end::after { opacity: 0; }
    .rs-ds-tabs { overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .rs-ds-tabs::-webkit-scrollbar { display: none; }
    .rs-ds-tab { padding: 10px 14px; font-size: 13px; }
    .rs-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
