/*
Theme Name: Raifa Centre
Theme URI: https://www.raifacentre.com
Author: Raifa Centre
Author URI: https://www.raifacentre.com
Description: Professional bilingual (English/Arabic) eCommerce theme for Raifa Centre stationery & office supplies, Qatar. Synced with ERPNext.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
WC requires at least: 8.0
WC tested up to: 8.9
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raifa-centre
Tags: e-commerce, rtl-language, arabic, woocommerce, custom-logo, featured-images
*/

:root {
  --rc-blue:        #1a4567;
  --rc-blue-light:  #2d6a9f;
  --rc-blue-dark:   #0f2d45;
  --rc-accent:      #f0c040;
  --rc-green:       #27ae60;
  --rc-red:         #e74c3c;
  --rc-gray-100:    #f8fafc;
  --rc-gray-200:    #e8ecf0;
  --rc-gray-500:    #6b7280;
  --rc-gray-900:    #111827;
  --rc-white:       #ffffff;
  --rc-radius:      10px;
  --rc-shadow:      0 2px 12px rgba(0,0,0,0.08);
  --rc-shadow-lg:   0 8px 30px rgba(26,69,103,0.15);
  --rc-transition:  all 0.25s ease;
  --rc-font-en:     'Poppins', sans-serif;
  --rc-font-ar:     'Tajawal', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--rc-font-en);
  color: var(--rc-gray-900);
  background: #f5f7fa;
  line-height: 1.6;
  direction: ltr;
}

body.rtl,
html[dir="rtl"] body {
  font-family: var(--rc-font-ar);
  direction: rtl;
  text-align: right;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--rc-transition);
  font-family: inherit;
}
.btn-primary   { background: var(--rc-blue); color: #fff; }
.btn-primary:hover { background: var(--rc-blue-light); transform: translateY(-1px); box-shadow: var(--rc-shadow-lg); }
.btn-accent    { background: var(--rc-accent); color: var(--rc-blue-dark); }
.btn-accent:hover { background: #e0b030; transform: translateY(-1px); }
.btn-outline   { background: transparent; color: var(--rc-blue); border: 2px solid var(--rc-blue); }
.btn-outline:hover { background: var(--rc-blue); color: #fff; }

/* ── TOP BAR ── */
.rc-topbar {
  background: var(--rc-blue-dark);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  padding: 7px 0;
}
.rc-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rc-topbar-left { display: flex; gap: 20px; align-items: center; }
.rc-topbar-right { display: flex; gap: 16px; align-items: center; }
.rc-topbar a { color: rgba(255,255,255,0.85); }
.rc-topbar a:hover { color: var(--rc-accent); }
.rc-topbar-sep { color: rgba(255,255,255,0.3); }
.rc-lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
}
.rc-lang-btn {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: rgba(255,255,255,0.85);
  transition: var(--rc-transition);
}
.rc-lang-btn.active,
.rc-lang-btn:hover {
  background: var(--rc-accent);
  color: var(--rc-blue-dark);
  border-color: var(--rc-accent);
}

/* ── HEADER ── */
.rc-header {
  background: var(--rc-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.rc-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}
.rc-logo { flex-shrink: 0; }
.rc-logo img { height: 48px; width: auto; filter: brightness(0) invert(1); }
.rc-logo-text {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}
.rc-logo-sub { font-size: 10px; font-weight: 400; opacity: 0.7; letter-spacing: 2px; text-transform: uppercase; }

/* Search */
.rc-search-wrap {
  flex: 1;
  display: flex;
  max-width: 600px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.rc-search-cat {
  padding: 0 14px;
  background: var(--rc-gray-100);
  border: none;
  border-right: 1px solid var(--rc-gray-200);
  font-size: 13px;
  color: var(--rc-gray-900);
  cursor: pointer;
  min-width: 130px;
  font-family: inherit;
}
.rc-search-input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.rc-search-btn {
  background: var(--rc-accent);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  color: var(--rc-blue-dark);
  font-size: 18px;
  transition: var(--rc-transition);
}
.rc-search-btn:hover { background: #e0b030; }

/* Header actions */
.rc-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.rc-header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,0.9);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--rc-transition);
  position: relative;
  font-size: 11px;
  white-space: nowrap;
  background: transparent;
  border: none;
  font-family: inherit;
}
.rc-header-action:hover { background: rgba(255,255,255,0.12); color: #fff; }
.rc-header-action svg,
.rc-header-action .dashicons { font-size: 22px; }
.rc-cart-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--rc-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── NAV ── */
.rc-nav {
  background: var(--rc-white);
  border-bottom: 2px solid var(--rc-gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.rc-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.rc-nav-inner::-webkit-scrollbar { display: none; }

.rc-all-cats-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--rc-blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  font-family: inherit;
  transition: var(--rc-transition);
  flex-shrink: 0;
}
.rc-all-cats-btn:hover { background: var(--rc-blue-light); }

.rc-nav-items {
  display: flex;
  align-items: center;
  gap: 0;
}
.rc-nav-item {
  position: relative;
}
.rc-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rc-gray-900);
  white-space: nowrap;
  transition: var(--rc-transition);
  border-bottom: 3px solid transparent;
}
.rc-nav-link:hover,
.rc-nav-item.current > .rc-nav-link {
  color: var(--rc-blue);
  border-bottom-color: var(--rc-blue);
}

/* Mega dropdown */
.rc-mega-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--rc-gray-200);
  border-radius: 0 0 var(--rc-radius) var(--rc-radius);
  box-shadow: var(--rc-shadow-lg);
  min-width: 600px;
  padding: 24px;
  z-index: 999;
}
.rc-nav-item:hover .rc-mega-dropdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rc-mega-cat-title { font-weight: 700; color: var(--rc-blue); margin-bottom: 10px; font-size: 13px; }
.rc-mega-cat-items li a { display: block; padding: 4px 0; font-size: 12px; color: var(--rc-gray-500); }
.rc-mega-cat-items li a:hover { color: var(--rc-blue); }

/* ── HERO BANNER ── */
.rc-hero {
  position: relative;
  overflow: hidden;
}
.rc-hero-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.rc-hero-slide {
  min-width: 100%;
  position: relative;
  height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.rc-hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,45,69,0.85) 0%, rgba(15,45,69,0.3) 60%, transparent 100%);
}
.rc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 40px 60px;
  color: #fff;
}
.rc-hero-badge {
  display: inline-block;
  background: var(--rc-accent);
  color: var(--rc-blue-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.rc-hero-title { font-size: 38px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.rc-hero-desc { font-size: 15px; opacity: 0.9; margin-bottom: 28px; line-height: 1.6; }
.rc-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.rc-hero-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.rc-hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  transition: var(--rc-transition);
}
.rc-hero-dot.active { background: var(--rc-accent); width: 28px; border-radius: 5px; }

.rc-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: var(--rc-transition);
}
.rc-hero-arrow:hover { background: rgba(255,255,255,0.3); }
.rc-hero-arrow.prev { left: 16px; }
.rc-hero-arrow.next { right: 16px; }

/* ── PROMO STRIP ── */
.rc-promo-strip {
  background: var(--rc-white);
  border-bottom: 1px solid var(--rc-gray-200);
  padding: 14px 0;
}
.rc-promo-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.rc-promo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-right: 1px solid var(--rc-gray-200);
}
.rc-promo-item:last-child { border-right: none; }
.rc-promo-icon { font-size: 28px; }
.rc-promo-text-title { font-weight: 700; font-size: 13px; color: var(--rc-gray-900); }
.rc-promo-text-sub { font-size: 11px; color: var(--rc-gray-500); }

/* ── SECTION TITLES ── */
.rc-section { padding: 40px 0; }
.rc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--rc-gray-200);
}
.rc-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--rc-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}
.rc-section-title::before {
  content: '';
  display: block;
  width: 5px;
  height: 24px;
  background: var(--rc-accent);
  border-radius: 3px;
}
.rc-section-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--rc-blue);
  display: flex;
  align-items: center;
  gap: 4px;
}
.rc-section-view-all:hover { color: var(--rc-blue-light); }

/* ── CATEGORY GRID (like Noon) ── */
.rc-cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}
.rc-cat-card {
  background: var(--rc-white);
  border-radius: var(--rc-radius);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--rc-transition);
  border: 2px solid transparent;
  box-shadow: var(--rc-shadow);
}
.rc-cat-card:hover {
  border-color: var(--rc-blue);
  transform: translateY(-4px);
  box-shadow: var(--rc-shadow-lg);
}
.rc-cat-img-wrap {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--rc-gray-100);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  overflow: hidden;
  transition: var(--rc-transition);
}
.rc-cat-card:hover .rc-cat-img-wrap { background: rgba(26,69,103,0.08); }
.rc-cat-img-wrap img { width: 48px; height: 48px; object-fit: contain; }
.rc-cat-name { font-size: 12px; font-weight: 600; color: var(--rc-gray-900); line-height: 1.3; }

/* ── PRODUCT CARD ── */
.rc-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.rc-product-card {
  background: var(--rc-white);
  border-radius: var(--rc-radius);
  overflow: hidden;
  box-shadow: var(--rc-shadow);
  transition: var(--rc-transition);
  position: relative;
  border: 1px solid transparent;
}
.rc-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rc-shadow-lg);
  border-color: var(--rc-gray-200);
}
.rc-product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rc-badge-new     { background: var(--rc-green); color: #fff; }
.rc-badge-sale    { background: var(--rc-red); color: #fff; }
.rc-badge-hot     { background: var(--rc-accent); color: var(--rc-blue-dark); }

.rc-product-img-wrap {
  background: var(--rc-gray-100);
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.rc-product-img-wrap img {
  max-height: 168px; max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.rc-product-card:hover .rc-product-img-wrap img { transform: scale(1.06); }

.rc-product-actions {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--rc-transition);
}
.rc-product-card:hover .rc-product-actions { opacity: 1; transform: translateX(0); }
.rc-product-action-btn {
  width: 34px; height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  color: var(--rc-gray-500);
  font-size: 16px;
  border: none;
  transition: var(--rc-transition);
}
.rc-product-action-btn:hover { color: var(--rc-blue); background: var(--rc-gray-100); }

.rc-product-info { padding: 14px; }
.rc-product-cat { font-size: 10px; color: var(--rc-gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.rc-product-name {
  font-size: 13px; font-weight: 600; color: var(--rc-gray-900);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.rc-product-sku { font-size: 10px; color: var(--rc-gray-500); margin-bottom: 8px; }
.rc-product-price-wrap { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.rc-product-price { font-size: 17px; font-weight: 800; color: var(--rc-blue); }
.rc-product-price-old { font-size: 12px; color: var(--rc-gray-500); text-decoration: line-through; }
.rc-product-discount { font-size: 11px; font-weight: 700; color: var(--rc-red); }
.rc-product-uom { font-size: 10px; color: var(--rc-gray-500); }

.rc-add-to-cart {
  width: 100%;
  padding: 9px;
  background: var(--rc-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: var(--rc-transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.rc-add-to-cart:hover { background: var(--rc-blue-light); }
.rc-add-to-cart.added { background: var(--rc-green); }

/* ── FLASH DEALS STRIP ── */
.rc-flash-deals {
  background: linear-gradient(135deg, var(--rc-blue-dark) 0%, var(--rc-blue) 100%);
  padding: 28px 0;
  margin: 10px 0;
}
.rc-flash-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.rc-flash-title { font-size: 24px; font-weight: 800; color: #fff; }
.rc-flash-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--rc-accent);
  font-size: 13px;
  font-weight: 700;
}
.rc-timer-block {
  background: var(--rc-accent);
  color: var(--rc-blue-dark);
  font-size: 20px;
  font-weight: 900;
  width: 44px; height: 44px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}

/* ── PROMO BANNERS ── */
.rc-promo-banners {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 20px 0;
}
.rc-promo-banner {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 160px;
  cursor: pointer;
}
.rc-promo-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.rc-promo-banner:hover img { transform: scale(1.04); }
.rc-promo-banner-content {
  position: absolute;
  inset: 0;
  padding: 20px;
  background: linear-gradient(90deg, rgba(15,45,69,0.75) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.rc-promo-banner-title { font-size: 18px; font-weight: 800; }
.rc-promo-banner-sub { font-size: 12px; opacity: 0.85; }

/* ── BRANDS STRIP ── */
.rc-brands {
  background: var(--rc-white);
  padding: 30px 0;
  border-top: 1px solid var(--rc-gray-200);
  border-bottom: 1px solid var(--rc-gray-200);
}
.rc-brands-track {
  display: flex;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.rc-brand-item {
  flex-shrink: 0;
  opacity: 0.6;
  filter: grayscale(1);
  transition: var(--rc-transition);
}
.rc-brand-item:hover { opacity: 1; filter: grayscale(0); }
.rc-brand-item img { height: 32px; width: auto; object-fit: contain; }

/* ── NEWSLETTER ── */
.rc-newsletter {
  background: linear-gradient(135deg, var(--rc-blue) 0%, var(--rc-blue-light) 100%);
  padding: 50px 0;
  text-align: center;
  color: #fff;
}
.rc-newsletter-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.rc-newsletter-sub { font-size: 15px; opacity: 0.85; margin-bottom: 28px; }
.rc-newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.rc-newsletter-input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.rc-newsletter-btn {
  padding: 14px 24px;
  background: var(--rc-accent);
  border: none;
  color: var(--rc-blue-dark);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--rc-transition);
}
.rc-newsletter-btn:hover { background: #e0b030; }

/* ── FOOTER ── */
.rc-footer {
  background: var(--rc-blue-dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 0;
}
.rc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.rc-footer-logo { margin-bottom: 16px; }
.rc-footer-logo img { height: 44px; filter: brightness(0) invert(1); }
.rc-footer-desc { font-size: 13px; line-height: 1.7; opacity: 0.75; margin-bottom: 20px; }
.rc-footer-socials { display: flex; gap: 10px; }
.rc-social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: var(--rc-transition);
}
.rc-social-btn:hover { background: var(--rc-accent); color: var(--rc-blue-dark); }

.rc-footer-col-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.rc-footer-links li { margin-bottom: 9px; }
.rc-footer-links a { font-size: 13px; opacity: 0.75; transition: var(--rc-transition); }
.rc-footer-links a:hover { opacity: 1; color: var(--rc-accent); }

.rc-footer-contact-item {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 12px; font-size: 13px;
}
.rc-footer-contact-icon { opacity: 0.6; font-size: 16px; margin-top: 2px; }

.rc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.7;
}
.rc-payment-icons { display: flex; gap: 8px; align-items: center; }
.rc-payment-icon {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* ── SHOP PAGE ── */
.rc-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 28px 0;
}
.rc-sidebar {
  background: var(--rc-white);
  border-radius: var(--rc-radius);
  padding: 20px;
  height: fit-content;
  box-shadow: var(--rc-shadow);
}
.rc-sidebar-widget { margin-bottom: 28px; }
.rc-sidebar-widget:last-child { margin-bottom: 0; }
.rc-sidebar-title {
  font-size: 14px; font-weight: 700; color: var(--rc-gray-900);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--rc-gray-200);
}
.rc-filter-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; cursor: pointer; font-size: 13px;
}
.rc-filter-item input { accent-color: var(--rc-blue); width: 15px; height: 15px; }
.rc-filter-count { margin-left: auto; font-size: 11px; color: var(--rc-gray-500); background: var(--rc-gray-100); padding: 1px 7px; border-radius: 10px; }

.rc-price-slider { width: 100%; accent-color: var(--rc-blue); margin: 10px 0; }
.rc-price-inputs { display: flex; gap: 8px; }
.rc-price-input { flex: 1; padding: 6px 10px; border: 1px solid var(--rc-gray-200); border-radius: 6px; font-size: 12px; text-align: center; }

.rc-shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--rc-white); border-radius: var(--rc-radius);
  padding: 12px 16px; margin-bottom: 20px; box-shadow: var(--rc-shadow);
}
.rc-result-count { font-size: 13px; color: var(--rc-gray-500); }
.rc-sort-select { padding: 7px 12px; border: 1px solid var(--rc-gray-200); border-radius: 6px; font-size: 13px; font-family: inherit; }
.rc-view-btns { display: flex; gap: 4px; }
.rc-view-btn { padding: 6px 10px; border: 1px solid var(--rc-gray-200); border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; }
.rc-view-btn.active { background: var(--rc-blue); color: #fff; border-color: var(--rc-blue); }

/* ── PRODUCT SINGLE ── */
.rc-product-single { padding: 30px 0; }
.rc-product-single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rc-product-gallery { position: sticky; top: 80px; }
.rc-main-img-wrap {
  background: var(--rc-gray-100); border-radius: 12px;
  height: 420px; display: flex; align-items: center; justify-content: center;
  padding: 24px; margin-bottom: 14px; overflow: hidden;
}
.rc-main-img { max-height: 100%; max-width: 100%; object-fit: contain; }
.rc-thumbs { display: flex; gap: 10px; }
.rc-thumb {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: var(--rc-transition);
  background: var(--rc-gray-100); display: flex; align-items: center; justify-content: center;
}
.rc-thumb.active, .rc-thumb:hover { border-color: var(--rc-blue); }
.rc-thumb img { max-width: 56px; max-height: 56px; object-fit: contain; }

.rc-product-brand { font-size: 13px; color: var(--rc-blue); font-weight: 600; margin-bottom: 8px; }
.rc-product-title-single { font-size: 22px; font-weight: 800; color: var(--rc-gray-900); margin-bottom: 10px; line-height: 1.3; }
.rc-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.rc-stars { color: var(--rc-accent); font-size: 14px; }
.rc-rating-count { font-size: 13px; color: var(--rc-gray-500); }
.rc-product-price-single { font-size: 28px; font-weight: 900; color: var(--rc-blue); margin-bottom: 6px; }
.rc-product-price-old-single { font-size: 15px; color: var(--rc-gray-500); text-decoration: line-through; margin-bottom: 16px; }
.rc-product-stock { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.rc-in-stock { color: var(--rc-green); }
.rc-out-stock { color: var(--rc-red); }
.rc-product-desc-short { font-size: 14px; color: var(--rc-gray-500); line-height: 1.7; margin-bottom: 20px; }

.rc-qty-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rc-qty-label { font-size: 13px; font-weight: 600; }
.rc-qty-input-wrap { display: flex; align-items: center; border: 2px solid var(--rc-gray-200); border-radius: 8px; overflow: hidden; }
.rc-qty-btn { padding: 8px 14px; background: var(--rc-gray-100); border: none; font-size: 18px; cursor: pointer; font-weight: 700; }
.rc-qty-input { width: 52px; text-align: center; border: none; padding: 8px; font-size: 15px; font-weight: 700; font-family: inherit; }
.rc-uom-select { padding: 9px 14px; border: 2px solid var(--rc-gray-200); border-radius: 8px; font-size: 13px; font-family: inherit; }

.rc-single-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.rc-btn-cart { flex: 1; min-width: 160px; padding: 14px; background: var(--rc-blue); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit; transition: var(--rc-transition); }
.rc-btn-cart:hover { background: var(--rc-blue-light); }
.rc-btn-wishlist { padding: 14px 18px; border: 2px solid var(--rc-gray-200); border-radius: 10px; background: #fff; cursor: pointer; font-size: 20px; transition: var(--rc-transition); }
.rc-btn-wishlist:hover { border-color: var(--rc-red); color: var(--rc-red); }

.rc-product-meta { padding: 16px; background: var(--rc-gray-100); border-radius: 8px; font-size: 13px; }
.rc-product-meta-row { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--rc-gray-200); }
.rc-product-meta-row:last-child { border-bottom: none; }
.rc-meta-label { font-weight: 700; min-width: 100px; color: var(--rc-gray-900); }
.rc-meta-val { color: var(--rc-gray-500); }

/* ── CART ── */
.rc-cart-page { padding: 28px 0; }
.rc-cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.rc-cart-table { background: #fff; border-radius: var(--rc-radius); overflow: hidden; box-shadow: var(--rc-shadow); }
.rc-cart-table table { width: 100%; border-collapse: collapse; }
.rc-cart-table th { background: var(--rc-gray-100); padding: 14px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; border-bottom: 2px solid var(--rc-gray-200); }
.rc-cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--rc-gray-200); vertical-align: middle; }
.rc-cart-product { display: flex; align-items: center; gap: 14px; }
.rc-cart-img { width: 64px; height: 64px; border-radius: 8px; background: var(--rc-gray-100); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.rc-cart-img img { max-width: 52px; max-height: 52px; object-fit: contain; }
.rc-cart-name { font-size: 14px; font-weight: 600; }
.rc-cart-sku { font-size: 11px; color: var(--rc-gray-500); }
.rc-cart-remove { background: none; border: none; color: var(--rc-gray-500); cursor: pointer; font-size: 18px; padding: 4px; }
.rc-cart-remove:hover { color: var(--rc-red); }

.rc-cart-summary {
  background: #fff; border-radius: var(--rc-radius);
  padding: 24px; box-shadow: var(--rc-shadow);
  position: sticky; top: 80px;
}
.rc-summary-title { font-size: 16px; font-weight: 800; margin-bottom: 20px; color: var(--rc-gray-900); }
.rc-summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--rc-gray-200); }
.rc-summary-total { font-weight: 800; font-size: 18px; color: var(--rc-blue); border-bottom: none !important; }
.rc-checkout-btn { width: 100%; margin-top: 18px; padding: 15px; background: var(--rc-blue); color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 800; cursor: pointer; font-family: inherit; transition: var(--rc-transition); }
.rc-checkout-btn:hover { background: var(--rc-blue-light); }

/* ── BREADCRUMB ── */
.rc-breadcrumb {
  background: var(--rc-white);
  border-bottom: 1px solid var(--rc-gray-200);
  padding: 12px 0;
  font-size: 13px;
}
.rc-breadcrumb-inner { display: flex; align-items: center; gap: 8px; color: var(--rc-gray-500); }
.rc-breadcrumb-inner a { color: var(--rc-blue); }
.rc-breadcrumb-inner a:hover { text-decoration: underline; }
.rc-breadcrumb-sep { color: var(--rc-gray-200); }

/* ── PAGINATION ── */
.rc-pagination { display: flex; gap: 6px; justify-content: center; padding: 30px 0; }
.rc-page-btn {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--rc-gray-200);
  background: #fff; cursor: pointer; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: var(--rc-transition); font-family: inherit;
}
.rc-page-btn:hover, .rc-page-btn.active { background: var(--rc-blue); color: #fff; border-color: var(--rc-blue); }

/* ── STICKY CART BAR (mobile) ── */
.rc-sticky-cart-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--rc-blue); color: #fff;
  padding: 12px 20px; z-index: 999;
  gap: 10px; align-items: center; justify-content: space-between;
}

/* ── RTL adjustments ── */
html[dir="rtl"] .rc-hero-overlay { background: linear-gradient(270deg, rgba(15,45,69,0.85) 0%, rgba(15,45,69,0.3) 60%, transparent 100%); }
html[dir="rtl"] .rc-hero-content { margin-right: 0; margin-left: auto; }
html[dir="rtl"] .rc-hero-arrow.prev { left: auto; right: 16px; }
html[dir="rtl"] .rc-hero-arrow.next { right: auto; left: 16px; }
html[dir="rtl"] .rc-mega-dropdown { left: auto; right: 0; }
html[dir="rtl"] .rc-product-badge { left: auto; right: 10px; }
html[dir="rtl"] .rc-product-actions { right: auto; left: 10px; transform: translateX(-10px); }
html[dir="rtl"] .rc-product-card:hover .rc-product-actions { transform: translateX(0); }
html[dir="rtl"] .rc-section-title::before { margin-right: 0; margin-left: 10px; }
html[dir="rtl"] .rc-cart-table th { text-align: right; }
html[dir="rtl"] .rc-meta-label { text-align: right; }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 1200px) {
  .rc-cat-grid { grid-template-columns: repeat(5, 1fr); }
  .rc-products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .rc-header-inner { flex-wrap: wrap; }
  .rc-search-wrap { order: 3; max-width: 100%; flex: 0 0 100%; }
  .rc-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .rc-products-grid { grid-template-columns: repeat(3, 1fr); }
  .rc-footer-grid { grid-template-columns: 1fr 1fr; }
  .rc-shop-layout { grid-template-columns: 1fr; }
  .rc-promo-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .rc-product-single-grid { grid-template-columns: 1fr; }
  .rc-cart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .rc-topbar { display: none; }
  .rc-hero-slide { height: 280px; }
  .rc-hero-content { padding: 24px; }
  .rc-hero-title { font-size: 24px; }
  .rc-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .rc-products-grid { grid-template-columns: repeat(2, 1fr); }
  .rc-promo-banners { grid-template-columns: 1fr; }
  .rc-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .rc-sticky-cart-bar { display: flex; }
}
@media (max-width: 480px) {
  .rc-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .rc-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
