/*
Theme Name: Rad Leather
Theme URI: https://example.com
Author: Custom
Description: قالب فروشگاهی کامل راد چرم - هدر، منو، انیمیشن، ووکامرس
Version: 9.6.5
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: rad-leather
Tags: e-commerce, woocommerce, rtl, custom-menu, featured-images, elementor
*/

:root {
  --brown: #5c3a21;
  --brown-dark: #2c1810;
  --brown-mid: #8b5e3c;
  --brown-soft: #f7f1eb;
  --cream: #f0d9c0;
  --accent: #c0392b;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #ebebeb;
  --gray-400: #a3a3a3;
  --gray-600: #525252;
  --gray-800: #1a1a1a;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.07);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1240px;
  --font: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.7;
  font-size: 14.5px;
  direction: rtl;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  margin: 0;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 18px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.rl-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.rl-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}
.rl-animate-delay-1 { transition-delay: 0.1s; }
.rl-animate-delay-2 { transition-delay: 0.2s; }
.rl-animate-delay-3 { transition-delay: 0.3s; }
.rl-animate-delay-4 { transition-delay: 0.4s; }

.rl-topbar {
  background: var(--brown-dark);
  color: #fff;
  font-size: 0.8rem;
  padding: 9px 0;
  text-align: center;
}
.rl-topbar .inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.rl-topbar .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rl-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.rl-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
  gap: 12px;
}
.rl-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.15;
}
.rl-logo .r-mark {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent);
}
.rl-logo .name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brown);
}
.rl-logo .tagline {
  font-size: 0.65rem;
  color: var(--gray-400);
  margin-top: 2px;
}
.rl-logo img { max-height: 52px; width: auto; }
.rl-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rl-header-actions a,
.rl-header-actions button {
  position: relative;
  font-size: 1.25rem;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
}
.rl-header-actions a:hover,
.rl-header-actions button:hover {
  background: var(--brown-soft);
  color: var(--brown);
}
.rl-cart-count {
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rl-menu-toggle {
  display: none;
  font-size: 1.45rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.rl-search-wrap { padding: 0 0 12px; }
.rl-search {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.rl-search input {
  width: 100%;
  padding: 12px 48px 12px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  background: var(--gray-100);
  outline: none;
  transition: var(--transition);
}
.rl-search input:focus {
  border-color: var(--brown-mid);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(92,58,33,0.1);
}
.rl-search button {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rl-nav {
  border-top: 1px solid var(--gray-200);
  background: #fff;
}
.rl-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}
.rl-nav-list > li { position: relative; list-style: none; }
.rl-nav-list > li > a {
  display: block;
  padding: 12px 15px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
}
.rl-nav-list > li > a:hover,
.rl-nav-list > li:hover > a {
  color: var(--brown);
  background: var(--brown-soft);
}
.rl-nav-list .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 120;
  border: 1px solid var(--gray-200);
  border-top: none;
  list-style: none;
}
.rl-nav-list > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.rl-nav-list .sub-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
}
.rl-nav-list .sub-menu li a:hover {
  background: var(--brown-soft);
  color: var(--brown);
}

.rl-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.rl-mobile-menu.open {
  display: block;
  opacity: 1;
  visibility: visible;
}
.rl-mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.rl-mobile-menu.open .rl-mobile-panel { transform: translateX(0); }
.rl-mobile-panel .close-btn {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--gray-600);
  display: block;
}
.rl-mobile-panel a {
  display: block;
  padding: 12px 8px;
  border-bottom: 1px solid var(--gray-100);
  font-weight: 500;
}
.rl-mobile-panel .sub {
  padding-right: 16px;
  font-size: 0.88rem;
  color: var(--gray-600);
}

.rl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.rl-btn-primary { background: #fff; color: var(--brown); }
.rl-btn-primary:hover { background: var(--cream); transform: translateY(-2px); }
.rl-btn-brown { background: var(--brown); color: #fff; }
.rl-btn-brown:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(92,58,33,0.3);
}
.rl-btn-outline {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}
.rl-btn-outline:hover { background: rgba(255,255,255,0.15); }

.rl-hero { position: relative; overflow: hidden; margin-bottom: 0; }
.rl-hero-inner {
  position: relative;
  min-height: 420px;
  background: #1a1008;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 56px 24px;
  color: #fff;
}
.rl-hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,12,6,0.15) 0%, rgba(20,12,6,0.55) 45%, rgba(20,12,6,0.82) 100%);
}
.rl-hero-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
  margin-left: 4%;
  text-align: right;
  animation: fadeUp 0.85s ease forwards;
}
.rl-hero-content h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.rl-hero-content p {
  font-size: 0.95rem;
  opacity: 0.92;
  margin-bottom: 24px;
  line-height: 1.85;
}
.rl-hero-content .rl-btn { animation: fadeUp 0.85s ease 0.2s both; }
@media (max-width: 768px) {
  .rl-hero-inner {
    min-height: 320px;
    justify-content: center;
    padding: 40px 18px;
  }
  .rl-hero-inner::before {
    background: linear-gradient(180deg, rgba(20,12,6,0.35) 0%, rgba(20,12,6,0.85) 100%);
  }
  .rl-hero-content {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
  }
}

.rl-cat-icons { padding: 28px 0 16px; }
.rl-cat-icons-inner {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.rl-cat-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 88px;
}
.rl-cat-icon .circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brown-soft);
  border: 2px solid #e8d9c8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition);
  font-size: 1.7rem;
}
.rl-cat-icon .circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rl-cat-icon:hover .circle {
  border-color: var(--brown);
  box-shadow: 0 8px 20px rgba(92,58,33,0.25);
  transform: translateY(-5px) scale(1.05);
}
.rl-cat-icon span {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.rl-cat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.rl-cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--brown-dark);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.rl-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.rl-cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.5s ease;
}
.rl-cat-card:hover img { transform: scale(1.06); }
.rl-cat-card .content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.rl-cat-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.rl-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 36px;
  text-align: center;
}
.rl-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.rl-trust-item:hover {
  border-color: var(--brown-mid);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.rl-trust-item .icon { font-size: 1.6rem; color: var(--brown); }
.rl-trust-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  line-height: 1.4;
}

.rl-section { padding: 12px 0 36px; }
.rl-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.rl-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brown-dark);
  position: relative;
  padding-right: 12px;
}
.rl-section-title::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--brown);
  border-radius: 2px;
}
.rl-view-all {
  font-size: 0.88rem;
  color: var(--brown);
  font-weight: 600;
}
.rl-view-all:hover { text-decoration: underline; }
.rl-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.rl-chip {
  padding: 7px 14px;
  background: var(--brown-soft);
  color: var(--brown);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}
.rl-chip:hover { background: var(--brown); color: #fff; }

.rl-products-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.rl-products-row::-webkit-scrollbar { height: 5px; }
.rl-products-row::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.rl-product-card {
  flex: 0 0 185px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  scroll-snap-align: start;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.rl-product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: transparent;
}
.rl-product-img {
  height: 175px;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rl-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.rl-product-card:hover .rl-product-img img { transform: scale(1.08); }
.rl-product-img .placeholder { font-size: 3rem; color: #d4d4d4; }
.rl-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 2;
  animation: none;
}
.rl-wishlist {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 2;
  color: var(--gray-400);
}
.rl-product-info {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rl-product-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}
.rl-product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 6px;
}
.rl-prices { display: flex; flex-direction: column; }
.rl-old-price {
  font-size: 0.72rem;
  color: var(--gray-400);
  text-decoration: line-through;
}
.rl-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brown-dark);
}
.rl-add-cart {
  width: 36px;
  height: 36px;
  background: var(--brown);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.rl-add-cart:hover {
  background: var(--brown-dark);
  transform: scale(1.08);
}
/* ========== Digikala-style product grid ========== */
.rl-products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.rl-products-grid .rl-product-card {
  flex: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  height: 100%;
}

/* Override WooCommerce default ul.products if present */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin: 0 0 32px !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
  width: 100% !important;
}
ul.products::before,
ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}
ul.products li.product,
.woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
  padding: 0 !important;
}

.rl-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200, #eee);
}


/* Product card digikala-like */
.rl-products-grid .rl-product-img {
  height: 0;
  padding-bottom: 100%;
  position: relative;
}
.rl-products-grid .rl-product-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rl-products-grid .rl-product-title {
  font-size: 0.82rem;
  height: auto;
  min-height: 40px;
  margin-bottom: 10px;
}
.rl-products-grid .rl-price {
  font-size: 0.95rem;
  direction: rtl;
}

.rl-acc-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(120deg, #1a0f0a, #4a2c1a);
  background-size: cover;
  background-position: center;
  padding: 36px 28px;
  color: #fff;
  margin: 12px 0 36px;
}
.rl-acc-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,15,10,0.88), rgba(26,15,10,0.5));
}
.rl-acc-banner > * { position: relative; z-index: 2; }
.rl-acc-banner h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.rl-acc-banner p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.rl-about-strip {
  background: #fff;
  padding: 48px 0;
  margin: 20px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.rl-about-strip .inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.rl-about-strip h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 16px;
}
.rl-about-strip p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 2;
  text-align: justify;
  margin-bottom: 12px;
}
.rl-about-strip .slogan {
  font-weight: 700;
  color: var(--brown);
  margin-top: 16px;
}

.rl-contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background: var(--brown-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 40px;
  text-align: center;
}
.rl-contact-strip .ico { font-size: 1.6rem; margin-bottom: 8px; }
.rl-contact-strip .label { font-size: 0.8rem; opacity: 0.75; margin-bottom: 4px; }
.rl-contact-strip .val { font-weight: 700; font-size: 1rem; }

.rl-footer {
  background: var(--brown-dark);
  color: #fff;
  padding: 48px 0 0;
  margin-top: 24px;
}
.rl-footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rl-footer-brand .rl-logo .r-mark { color: #fff; }
.rl-footer-brand .rl-logo .name { color: var(--cream); }
.rl-footer-brand p {
  font-size: 0.88rem;
  opacity: 0.85;
  margin: 14px 0 16px;
  line-height: 1.8;
}
.rl-footer-brand .contact-lines {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 2;
}
.rl-footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--cream);
}
.rl-footer-col ul li { margin-bottom: 8px; }
.rl-footer-col ul a { font-size: 0.88rem; opacity: 0.8; }
.rl-footer-col ul a:hover { opacity: 1; color: var(--cream); }
.rl-socials { display: flex; gap: 10px; margin-top: 14px; }
.rl-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.rl-socials a:hover {
  background: var(--cream);
  color: var(--brown-dark);
  transform: translateY(-3px);
}
.rl-footer-bottom {
  text-align: center;
  padding: 18px 0;
  font-size: 0.8rem;
  opacity: 0.55;
}

.rl-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.rl-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.rl-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  color: var(--gray-400);
  font-weight: 500;
}
.rl-bottom-nav a:hover,
.rl-bottom-nav a.active { color: var(--brown); }
.rl-bottom-nav a .icon { font-size: 1.25rem; }
.rl-bottom-nav a.home-btn {
  width: 50px;
  height: 50px;
  background: var(--brown);
  color: #fff !important;
  border-radius: 50%;
  justify-content: center;
  margin-top: -22px;
  box-shadow: 0 6px 16px rgba(92,58,33,0.4);
}

.rl-archive-header {
  background: linear-gradient(125deg, var(--brown-dark), var(--brown));
  color: #fff;
  padding: 36px 0;
  margin-bottom: 28px;
  text-align: center;
}
.rl-archive-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.rl-breadcrumb {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  padding: 0 !important;
  transition: var(--transition);
}
.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.woocommerce span.onsale {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 20px;
  font-weight: 700;
  padding: 3px 10px;
  min-height: auto;
}
.woocommerce a.button,
.woocommerce button.button {
  background: var(--brown) !important;
  color: #fff !important;
  border-radius: 10px !important;
  border: none !important;
}

@media (max-width: 1024px) {
  .rl-footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .rl-menu-toggle { display: flex; }
  .rl-nav { display: none; }
  .rl-hero-inner { min-height: 260px; padding: 32px 18px; }
  .rl-trust { grid-template-columns: repeat(2, 1fr); }
  .rl-product-card { flex: 0 0 160px; }
  .rl-product-img { height: 150px; }
  .rl-footer-main { grid-template-columns: 1fr; gap: 24px; }
  .rl-bottom-nav { display: block; }
  body { padding-bottom: 72px; }
  .rl-products-grid,
  ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .rl-products-grid .rl-product-img { padding-bottom: 100%; height: 0; }
  .rl-products-row .rl-product-card { flex: 0 0 150px; }
  .rl-cat-cards { gap: 10px; }
}
@media (max-width: 420px) {
  .rl-cat-icon { width: 72px; }
  .rl-cat-icon .circle { width: 60px; height: 60px; }
  .rl-product-card { flex: 0 0 148px; }
  .rl-cat-cards { grid-template-columns: 1fr; }
}

/* Icon buttons & SVG */
.rl-icon-btn svg,
.rl-header-actions a svg,
.rl-add-cart svg,
.rl-wishlist svg,
.rl-search button svg,
.rl-menu-toggle svg,
.rl-bottom-nav .icon svg,
.rl-trust-item .icon svg,
.rl-contact-strip .ico svg,
.rl-topbar .badge svg,
.rl-footer-brand .contact-lines svg,
.rl-socials a svg {
  display: block;
  vertical-align: middle;
}
.rl-icon-btn {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.rl-topbar .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rl-topbar .badge svg { flex-shrink: 0; }
.nav-chevron {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 2px;
  opacity: 0.6;
}
.rl-wishlist svg { color: var(--gray-400); }
.rl-add-cart svg { color: #fff; }
.rl-footer-brand .contact-lines div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rl-footer-brand .contact-lines svg { flex-shrink: 0; opacity: 0.85; }
.rl-btn svg { flex-shrink: 0; }

/* =====================================================
   WooCommerce My Account / Login (FRONTEND - not wp-admin)
   ===================================================== */
.woocommerce-account .woocommerce,
.woocommerce-page .woocommerce {
  max-width: 480px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.woocommerce-account h2,
.woocommerce-account .woocommerce-MyAccount-navigation + .woocommerce-MyAccount-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brown-dark);
  text-align: center;
  margin-bottom: 20px;
}
.woocommerce form .form-row {
  margin-bottom: 14px;
}
.woocommerce form .form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-600);
  font-size: 0.88rem;
}
.woocommerce form .input-text,
.woocommerce form input[type="text"],
.woocommerce form input[type="password"],
.woocommerce form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-50);
  outline: none;
  transition: var(--transition);
}
.woocommerce form .input-text:focus,
.woocommerce form input:focus {
  border-color: var(--brown-mid);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(92,58,33,0.1);
}
.woocommerce form .button,
.woocommerce-form-login .button,
.woocommerce-form-register .button {
  width: 100%;
  background: var(--brown) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  margin-top: 8px;
  transition: var(--transition);
}
.woocommerce form .button:hover {
  background: var(--brown-dark) !important;
}
.woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  margin: 10px 0;
}
.woocommerce-LostPassword,
.woocommerce-form-login .lost_password {
  text-align: center;
  margin-top: 14px;
  font-size: 0.88rem;
}
.woocommerce-LostPassword a,
.lost_password a {
  color: var(--brown);
  font-weight: 600;
}
.woocommerce-LostPassword a:hover { text-decoration: underline; }

/* Logged-in dashboard */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--brown-soft);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 20px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: var(--brown);
  color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-content {
  font-size: 0.92rem;
  line-height: 1.8;
}
.woocommerce-account .woocommerce-MyAccount-content a {
  color: var(--brown);
  font-weight: 600;
}

@media (min-width: 769px) {
  .woocommerce-account .woocommerce {
    max-width: 900px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    padding: 28px;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 0;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    flex-direction: column;
    align-items: stretch;
  }
  /* When login form only (not logged in) */
  body:not(.logged-in).woocommerce-account .woocommerce {
    display: block;
    max-width: 440px;
  }
}

/* Page title for account */
.woocommerce-account .rl-archive-header,
body.woocommerce-account .entry-header {
  text-align: center;
}












/* ========== LUXURY HERO — blurred background photo + glass card ========== */
.rl-hero-luxury {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

/* Background photo layer — BLURRED / frosted */
.rl-hero-bg {
  position: absolute;
  /* expand so blur edges don't show white */
  top: -24px;
  right: -24px;
  bottom: -24px;
  left: -24px;
  z-index: 0;
  background-color: #1a120c;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Extra CSS blur on top of pre-blurred image */
  filter: blur(6px);
  -webkit-filter: blur(6px);
  transform: scale(1.06);
  -webkit-transform: scale(1.06);
}

/* Dark glass veil over blurred photo */
.rl-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(22, 16, 10, 0.35) 0%,
    rgba(22, 16, 10, 0.48) 50%,
    rgba(22, 16, 10, 0.58) 100%
  );
  pointer-events: none;
}

.rl-hero-luxury .rl-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  background: transparent;
}

.rl-hero-luxury .rl-hero-inner::before,
.rl-hero-luxury .rl-hero-inner::after {
  display: none !important;
}

.rl-hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Frosted glass text card */
.rl-hero-luxury .rl-hero-content {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 42px 38px 46px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.rl-hero-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #2c1810;
  background: rgba(240, 217, 192, 0.95);
  margin-bottom: 16px;
  padding: 7px 18px;
  border-radius: 50px;
}

.rl-hero-luxury .rl-hero-content h1 {
  font-size: clamp(1.9rem, 4.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 14px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.rl-hero-luxury .rl-hero-content p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.93);
  margin-bottom: 26px;
}

.rl-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.rl-hero-luxury .rl-btn-primary {
  background: #f0d9c0;
  color: #2c1810;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 50px;
}
.rl-hero-luxury .rl-btn-primary:hover {
  background: #fff;
}

.rl-hero-luxury .rl-btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 24px;
  border-radius: 50px;
}
.rl-hero-luxury .rl-btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 768px) {
  .rl-hero-luxury {
    min-height: 400px;
  }
  .rl-hero-luxury .rl-hero-inner {
    min-height: 400px;
    padding: 48px 16px;
  }
  /* Stronger blur on mobile background */
  .rl-hero-bg {
    filter: blur(8px);
    -webkit-filter: blur(8px);
  }
  .rl-hero-luxury .rl-hero-content {
    padding: 30px 22px 34px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
  }
  .rl-hero-luxury .rl-hero-content h1 {
    font-size: 1.7rem;
  }
  .rl-hero-luxury .rl-hero-content p {
    font-size: 0.88rem;
    margin-bottom: 22px;
  }
  .rl-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .rl-hero-actions .rl-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .rl-hero-luxury .rl-hero-content {
    padding: 26px 16px 30px;
  }
  .rl-hero-luxury .rl-hero-content h1 {
    font-size: 1.55rem;
  }
}


/* Single product */
.rl-single-product { padding: 24px 0 48px; }
.rl-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}
.rl-single-gallery img { border-radius: 12px; width: 100%; height: auto; }
.rl-single-summary .product_title { font-size: 1.5rem; margin-bottom: 12px; }
.rl-single-summary .price { font-size: 1.25rem; color: #6b4423; font-weight: 700; margin: 12px 0; }
.rl-single-summary .cart { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.rl-single-summary .single_add_to_cart_button,
.woocommerce .button.alt,
.woocommerce button.button.alt {
  background: #6b4423 !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  border: none !important;
}
.rl-single-summary .single_add_to_cart_button:hover {
  background: #2c1810 !important;
}
.woocommerce-tabs { margin-top: 32px; }
.woocommerce-Tabs-panel { padding: 16px 0; line-height: 1.8; }

/* Cart & Checkout */
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout .woocommerce {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.woocommerce table.shop_table { border-radius: 12px; overflow: hidden; }
.woocommerce-cart-form .button,
.checkout-button,
.woocommerce #place_order {
  background: #6b4423 !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .rl-single-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 1100px) {
  .rl-products-grid,
  ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }
}
@media (max-width: 640px) {
  .rl-products-grid,
  ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .rl-products-grid .rl-product-info { padding: 8px 10px 12px; }
  .rl-products-grid .rl-product-title { font-size: 0.75rem; min-height: 36px; }
  .rl-products-grid .rl-price { font-size: 0.85rem; }
  .rl-products-grid .rl-add-cart { width: 32px; height: 32px; }
}


/* Footer bottom + eNamad */
.rl-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
}
.rl-footer-copy { font-size: 0.85rem; opacity: 0.85; }
.rl-trust-seals {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rl-trust-seals .rl-enamad img {
  width: 80px;
  height: auto;
  max-height: 90px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  display: block;
}
@media (max-width: 768px) {
  .rl-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .rl-trust-seals .rl-enamad img {
    width: 70px;
  }
}


/* ========== Cart & notices — clean ========== */
.rl-added-msg {
  background: #e8f5e9;
  color: #1b5e20;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 12px 0;
  font-size: 0.9rem;
  text-align: center;
}
.rl-added-msg a {
  color: #6b4423;
  font-weight: 700;
  text-decoration: underline;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 10px !important;
  padding: 12px 16px !important;
  margin: 12px 0 !important;
  border-top: none !important;
  list-style: none !important;
}
.woocommerce-message {
  background: #e8f5e9 !important;
  color: #1b5e20 !important;
}
.woocommerce-message a.button {
  display: inline-block !important;
  background: #6b4423 !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 8px 18px !important;
  margin-right: 8px !important;
  float: none !important;
}

/* Hide messy default WC added text layout */
.woocommerce-message .button.wc-forward {
  float: none !important;
}

/* Cart page layout */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.woocommerce-cart-form {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
  overflow-x: visible;
}
.woocommerce table.shop_table {
  border: none !important;
  border-collapse: collapse;
  width: 100%;
}
.woocommerce table.shop_table th {
  background: #faf8f6;
  padding: 12px !important;
  font-size: 0.85rem;
  border: none !important;
}
.woocommerce table.shop_table td {
  padding: 14px 12px !important;
  border-top: 1px solid #f0f0f0 !important;
  border: none !important;
  vertical-align: middle !important;
}
.woocommerce table.shop_table img {
  width: 72px !important;
  height: 72px !important;
  object-fit: cover;
  border-radius: 10px;
}
.woocommerce-cart .cart-collaterals {
  margin-top: 24px;
}
.woocommerce-cart .cart_totals {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px;
  float: none !important;
  width: 100% !important;
  max-width: 400px;
  margin-right: auto;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #place_order,
.woocommerce button.button.alt {
  background: #6b4423 !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 14px 28px !important;
  font-weight: 700 !important;
  width: 100%;
  text-align: center;
  display: block !important;
  border: none !important;
}
.woocommerce a.remove {
  color: #c62828 !important;
  font-size: 1.4rem !important;
}

/* Product card add-to-cart — icon only, no text mess */
.rl-add-cart {
  flex-shrink: 0;
  text-decoration: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden;
}
.rl-add-cart svg {
  width: 16px;
  height: 16px;
}
.rl-add-cart.added::after,
.rl-add-cart.loading::after {
  display: none !important;
}
.added_to_cart.wc-forward {
  display: none !important; /* hide messy "View cart" next to button */
}

/* Single product buy box */
.rl-single-summary form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
.rl-single-summary .quantity input {
  width: 70px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
}
.rl-single-summary .single_add_to_cart_button {
  flex: 1;
  min-width: 180px;
}

@media (max-width: 768px) {
  .woocommerce-cart-form table.shop_table_responsive tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
  }
  .woocommerce table.shop_table_responsive tr td {
    display: flex !important;
    justify-content: space-between;
    text-align: left !important;
    padding: 8px 0 !important;
  }
  .woocommerce-cart .cart_totals {
    max-width: 100%;
  }
}


/* ========== Premium checkout steps ========== */
.rl-checkout-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 0;
}
.rl-checkout-steps span {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #f3f0ec;
  color: #888;
}
.rl-checkout-steps span.is-active {
  background: #6b4423;
  color: #fff;
  box-shadow: 0 4px 14px rgba(107,68,35,0.25);
}

/* ========== Premium single product ========== */
.rl-single-product {
  padding: 8px 0 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.rl-single-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 28px;
}
.rl-single-gallery {
  background: #faf8f6;
  border-radius: 16px;
  overflow: hidden;
  padding: 12px;
}
.rl-single-gallery .woocommerce-product-gallery {
  margin: 0 !important;
}
.rl-single-gallery img {
  border-radius: 12px !important;
  width: 100%;
  height: auto;
}
.rl-sku {
  display: inline-block;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 8px;
}
.rl-single-summary .product_title {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 12px;
  color: #1a120c;
}
.rl-single-summary .price {
  font-size: 1.35rem !important;
  color: #6b4423 !important;
  font-weight: 800 !important;
  margin: 12px 0 16px !important;
}
.rl-single-summary .woocommerce-product-details__short-description {
  color: #555;
  line-height: 1.85;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.rl-product-trust {
  list-style: none;
  margin: 24px 0 0;
  padding: 16px;
  background: #faf8f6;
  border-radius: 14px;
  display: grid;
  gap: 10px;
}
.rl-product-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #444;
}
.rl-product-trust li svg {
  color: #6b4423;
  flex-shrink: 0;
}
.rl-single-summary form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.rl-single-summary .quantity .qty {
  width: 72px;
  height: 48px;
  border: 1.5px solid #e0d8d0;
  border-radius: 12px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}
.rl-single-summary .single_add_to_cart_button {
  flex: 1;
  min-width: 160px;
  height: 48px;
  background: #6b4423 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  box-shadow: 0 6px 18px rgba(107,68,35,0.28);
  transition: transform 0.2s, background 0.2s;
}
.rl-single-summary .single_add_to_cart_button:hover {
  background: #2c1810 !important;
  transform: translateY(-2px);
}

/* Tabs */
.rl-single-tabs {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.woocommerce-tabs ul.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 12px !important;
  margin: 0 0 16px !important;
  border-bottom: 1px solid #eee !important;
  list-style: none !important;
}
.woocommerce-tabs ul.tabs li {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 8px 16px !important;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #777 !important;
}
.woocommerce-tabs ul.tabs li.active a {
  background: #6b4423 !important;
  color: #fff !important;
}
.woocommerce-Tabs-panel {
  line-height: 1.9;
  color: #444;
  font-size: 0.92rem;
}

/* Related */
.rl-related {
  margin: 16px 0 40px;
}
.rl-related .rl-section-title {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

/* Mobile sticky buy bar */
.rl-mobile-buybar {
  display: none;
  position: fixed;
  bottom: 72px;
  left: 12px;
  right: 12px;
  z-index: 90;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 12px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #eee;
}
.rl-mobile-buybar-price {
  font-weight: 800;
  color: #6b4423;
  font-size: 0.95rem;
}
.rl-mobile-buybar-btn {
  white-space: nowrap;
  padding: 10px 18px !important;
  font-size: 0.85rem !important;
}

@media (max-width: 900px) {
  .rl-single-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .rl-mobile-buybar {
    display: flex;
  }
  .rl-checkout-steps span {
    font-size: 0.72rem;
    padding: 6px 12px;
  }
  body.single-product {
    padding-bottom: 140px;
  }
}

/* Product cards polish */
.rl-products-grid .rl-product-card {
  border-radius: 14px;
  border: 1px solid #ebe7e2;
  transition: box-shadow 0.25s, transform 0.25s;
}
.rl-products-grid .rl-product-card:hover {
  box-shadow: 0 12px 28px rgba(40,20,10,0.1);
  transform: translateY(-4px);
}
.rl-products-grid .rl-price .amount,
.rl-products-grid .rl-price {
  color: #6b4423;
  font-weight: 800;
}

/* Cart totals premium */
.cart_totals h2,
.woocommerce-billing-fields h3,
#order_review_heading {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  margin-bottom: 16px !important;
}
#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
  background: #faf8f6 !important;
  border-radius: 14px !important;
  padding: 16px !important;
}
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  border: 1.5px solid #e5ddd5 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  height: auto !important;
}
.woocommerce-checkout .form-row input.input-text:focus {
  border-color: #6b4423 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(107,68,35,0.12);
}


/* Force hide messy view-cart links after add */
.added_to_cart,
a.added_to_cart.wc-forward,
.woocommerce a.added_to_cart {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  font-size: 0 !important;
}
.woocommerce-message {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #e8f5e9 !important;
  border: 1px solid #a5d6a7 !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  color: #1b5e20 !important;
  font-size: 0.9rem !important;
}
.woocommerce-message::before {
  display: none !important;
}
.woocommerce-message a.button {
  order: 2;
  float: none !important;
  margin: 0 !important;
  background: #6b4423 !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
  font-size: 0.85rem !important;
}


/* ========== Product card cart icon — aligned ========== */
.rl-product-price-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: auto !important;
  width: 100%;
  min-height: 40px;
}
.rl-prices {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  gap: 2px;
}
.rl-prices .rl-price,
.rl-prices .price {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 0.88rem !important;
  line-height: 1.35 !important;
  word-break: keep-all !important;
  direction: rtl !important;
}
.rl-add-cart,
a.rl-add-cart,
.rl-products-grid .rl-add-cart,
.rl-products-row .rl-add-cart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #6b4423 !important;
  color: #fff !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: none !important;
  line-height: 0 !important;
  font-size: 0 !important;
  text-indent: 0 !important;
  overflow: hidden !important;
  text-decoration: none !important;
  float: none !important;
  position: relative !important;
}
.rl-add-cart svg,
a.rl-add-cart svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 auto !important;
  color: #fff !important;
  fill: currentColor !important;
  flex-shrink: 0;
}
/* Kill WC button defaults that break layout */
.rl-add-cart.button,
.woocommerce a.rl-add-cart.button {
  background: #6b4423 !important;
  color: #fff !important;
  padding: 0 !important;
  width: 36px !important;
  height: 36px !important;
}
.rl-product-info {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  padding: 10px 12px 12px !important;
  min-height: 0;
}
.rl-product-title {
  height: auto !important;
  min-height: 2.6em;
  max-height: 2.8em;
  margin-bottom: 8px !important;
}

/* Lighter hover = faster paint */
.rl-product-card:hover {
  transform: none !important;
}
.rl-product-card:hover .rl-product-img img {
  transform: none !important;
}
.rl-products-grid .rl-product-card:hover {
  transform: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}

/* Hero less GPU cost */
.rl-hero-bg {
  filter: blur(4px) !important;
  -webkit-filter: blur(4px) !important;
}
.rl-hero-luxury .rl-hero-content {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

@media (max-width: 768px) {
  .rl-add-cart,
  a.rl-add-cart,
  .rl-products-grid .rl-add-cart {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    border-radius: 8px !important;
  }
  .rl-add-cart svg {
    width: 14px !important;
    height: 14px !important;
  }
  .rl-prices .rl-price {
    font-size: 0.78rem !important;
    white-space: normal !important;
    overflow: visible !important;
  }
}


/* ========== Footer social icons (no text ID mess) ========== */
.rl-socials {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.rl-socials .rl-social-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.1);
  color: #f0d9c0 !important;
  text-decoration: none !important;
  font-size: 0 !important;
  transition: background 0.2s, transform 0.2s;
  border: 1px solid rgba(255,255,255,0.15);
}
.rl-socials .rl-social-btn:hover {
  background: #f0d9c0;
  color: #2c1810 !important;
  transform: translateY(-2px);
}
.rl-socials .rl-social-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* ========== Cart page — premium + mobile stack ========== */
.woocommerce-cart .woocommerce {
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 20px 14px 48px !important;
}
.woocommerce-cart-form {
  background: #fff !important;
  border-radius: 16px !important;
  border: 1px solid #ebe6e0 !important;
  padding: 8px !important;
  overflow: visible !important;
}
.woocommerce-cart table.shop_table {
  border: none !important;
  margin: 0 !important;
}
.woocommerce-cart table.shop_table thead {
  background: #faf7f4;
}
.woocommerce-cart table.shop_table th {
  border: none !important;
  padding: 14px 12px !important;
  font-size: 0.8rem !important;
  color: #888 !important;
  font-weight: 600 !important;
}
.woocommerce-cart table.shop_table td {
  border: none !important;
  border-top: 1px solid #f0ebe6 !important;
  padding: 16px 12px !important;
  vertical-align: middle !important;
}
.woocommerce-cart table.shop_table img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.woocommerce-cart a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #ffebee !important;
  color: #c62828 !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
}
.woocommerce-cart a.remove:hover {
  background: #c62828 !important;
  color: #fff !important;
  transform: scale(1.08);
}
.woocommerce-cart .quantity .qty {
  width: 64px !important;
  height: 40px !important;
  border: 1.5px solid #e5ddd5 !important;
  border-radius: 10px !important;
  text-align: center !important;
  font-weight: 600 !important;
}
.woocommerce-cart button[name="update_cart"],
.woocommerce-cart .actions .button {
  background: #f3efe9 !important;
  color: #6b4423 !important;
  border: 1.5px solid #e0d5c8 !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
  height: auto !important;
  line-height: 1.4 !important;
}
.woocommerce-cart button[name="update_cart"]:hover {
  background: #6b4423 !important;
  color: #fff !important;
}
.woocommerce-cart .cart_totals {
  background: #fff !important;
  border: 1px solid #ebe6e0 !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 4px 20px rgba(40,20,10,0.04);
  max-width: 100% !important;
  width: 100% !important;
  float: none !important;
  margin-top: 20px !important;
}
.woocommerce-cart .cart_totals h2 {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  margin-bottom: 14px !important;
  color: #1a120c !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: linear-gradient(135deg, #6b4423, #8b5a2b) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 14px 24px !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(107,68,35,0.3) !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #2c1810 !important;
}

/* Mobile cart: stacked cards, easy delete each item */
@media (max-width: 768px) {
  .woocommerce-cart table.shop_table_responsive thead {
    display: none !important;
  }
  .woocommerce-cart table.shop_table_responsive tbody tr {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px;
    margin-bottom: 14px !important;
    padding: 14px !important;
    background: #fff !important;
    border: 1px solid #ebe6e0 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  }
  .woocommerce-cart table.shop_table_responsive tbody tr td {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: right !important;
    padding: 6px 0 !important;
    border: none !important;
    width: 100% !important;
  }
  .woocommerce-cart table.shop_table_responsive tbody tr td.product-remove {
    order: -1;
    justify-content: flex-start !important;
    padding-bottom: 4px !important;
  }
  .woocommerce-cart table.shop_table_responsive tbody tr td.product-thumbnail {
    justify-content: center !important;
  }
  .woocommerce-cart table.shop_table_responsive tbody tr td.product-thumbnail img {
    width: 100px !important;
    height: 100px !important;
  }
  .woocommerce-cart table.shop_table_responsive tbody tr td.product-name {
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .woocommerce-cart table.shop_table_responsive tbody tr td::before {
    content: attr(data-title);
    font-weight: 600;
    color: #999;
    font-size: 0.78rem;
    margin-left: 8px;
  }
  .woocommerce-cart table.shop_table_responsive tbody tr td.product-remove::before,
  .woocommerce-cart table.shop_table_responsive tbody tr td.product-thumbnail::before,
  .woocommerce-cart table.shop_table_responsive tbody tr td.product-name::before {
    display: none;
  }
  .woocommerce-cart .actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .woocommerce-cart .actions .button {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Checkout buttons same style */
.woocommerce #place_order,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
  background: linear-gradient(135deg, #6b4423, #8b5a2b) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 14px 28px !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(107,68,35,0.28) !important;
}

/* Faster scroll feel on homepage */
html {
  scroll-behavior: auto !important;
}
.rl-animate {
  transition: opacity 0.35s ease, transform 0.35s ease !important;
}

/* Lighter hero for speed */
.rl-hero-bg {
  filter: blur(2px) !important;
  -webkit-filter: blur(2px) !important;
  will-change: auto !important;
}
.rl-hero-luxury .rl-hero-content {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
.rl-hero-luxury .rl-hero-inner {
  min-height: 420px !important;
}
@media (max-width: 768px) {
  .rl-hero-luxury {
    min-height: 380px !important;
    overflow: hidden !important;
  }
  .rl-hero-luxury .rl-hero-inner {
    min-height: 380px !important;
  }
  /* Full-cover responsive background on mobile (logo landscape → portrait) */
  .rl-hero-bg {
    top: -40px !important;
    right: -40px !important;
    bottom: -40px !important;
    left: -40px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transform: scale(1.12) !important;
    -webkit-transform: scale(1.12) !important;
    filter: blur(3px) !important;
    -webkit-filter: blur(3px) !important;
  }
  .rl-hero-luxury .rl-hero-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(30, 22, 16, 0.78) !important;
  }
}


/* ========== Cart: hide duplicate price on mobile ========== */
.woocommerce-cart-form .product-price {
  /* keep one price only */
}
@media (max-width: 768px) {
  .woocommerce table.shop_table_responsive tr td.product-price {
    display: none !important;
  }
  .woocommerce table.shop_table_responsive tr td.product-name {
    display: block !important;
    text-align: right !important;
  }
  .woocommerce table.shop_table_responsive tr td.product-name::before {
    display: none !important;
  }
  .woocommerce table.shop_table_responsive tr td.product-subtotal::before,
  .woocommerce table.shop_table_responsive tr td.product-price::before,
  .woocommerce table.shop_table_responsive tr td.product-quantity::before {
    display: none !important;
    content: none !important;
  }
  .woocommerce table.shop_table_responsive tr td.product-subtotal {
    display: block !important;
    text-align: left !important;
    font-weight: 800;
    color: #6b4423;
    font-size: 0.95rem;
    padding-top: 4px !important;
  }
  /* Block theme / plugin cart layout with floating price */
  .wc-block-cart-item__prices,
  .wc-block-cart-item__total-price-and-details {
    /* keep single price */
  }
}

/* Toast after add — no redirect */
.rl-toast-added {
  position: fixed !important;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: #1b5e20 !important;
  color: #fff !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: rlToastIn 0.3s ease, rlToastOut 0.3s ease 2s forwards;
  border: none !important;
  margin: 0 !important;
  list-style: none !important;
}
@keyframes rlToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes rlToastOut {
  to { opacity: 0; transform: translateX(-50%) translateY(8px); pointer-events: none; }
}
.woocommerce-message {
  position: fixed !important;
  bottom: 90px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 99999 !important;
  width: auto !important;
  max-width: 90% !important;
  background: #1b5e20 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 24px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
  text-align: center !important;
  font-size: 0.9rem !important;
}
.woocommerce-message a.button {
  display: none !important;
}
.woocommerce-message::before {
  display: none !important;
}

/* ========== Checkout button — premium ========== */
.woocommerce-cart .wc-proceed-to-checkout {
  padding: 0 !important;
  margin-top: 16px !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
a.checkout-button.button.alt,
.woocommerce a.checkout-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 16px 24px !important;
  margin: 0 !important;
  background: linear-gradient(135deg, #6b4423 0%, #4a2c14 100%) !important;
  color: #fff !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 24px rgba(107, 68, 35, 0.35) !important;
  text-align: center !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s !important;
  line-height: 1.4 !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
a.checkout-button.button.alt:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(107, 68, 35, 0.45) !important;
  background: linear-gradient(135deg, #7a5030 0%, #5a3520 100%) !important;
  color: #fff !important;
}

/* Place order button same style */
#place_order,
.woocommerce #payment #place_order {
  display: block !important;
  width: 100% !important;
  padding: 16px 24px !important;
  background: linear-gradient(135deg, #6b4423 0%, #4a2c14 100%) !important;
  color: #fff !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 24px rgba(107, 68, 35, 0.35) !important;
  cursor: pointer !important;
}

/* Free shipping Persian label if possible via CSS content - limited */
.woocommerce-shipping-totals .shipping td[data-title="Shipping"] {
  /* left as is */
}

/* Header cart badge pulse when updated */
.rl-cart-count {
  transition: transform 0.25s ease;
}
.rl-cart-count.rl-bump {
  transform: scale(1.3);
}


/* ===== FINAL: checkout + place order solid brown pill (single-line RTL text) ===== */
a.checkout-button,
.woocommerce a.checkout-button.button.alt,
.wc-proceed-to-checkout a.checkout-button,
.wp-block-button__link.wc-block-cart__submit-button,
button#place_order,
#place_order.button,
.woocommerce-page #place_order {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 52px !important;
  height: auto !important;
  padding: 14px 18px !important;
  border-radius: 999px !important;
  border: none !important;
  background: #6b4423 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  box-shadow: 0 6px 18px rgba(107,68,35,0.28) !important;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
  text-decoration: none !important;
  cursor: pointer !important;
  text-align: center !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  direction: rtl !important;
  letter-spacing: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}
a.checkout-button:hover,
.woocommerce a.checkout-button.button.alt:hover,
.wc-proceed-to-checkout a.checkout-button:hover,
button#place_order:hover,
#place_order.button:hover {
  background: #5a3820 !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(107,68,35,0.4) !important;
  border: none !important;
}


/* Checkout cleanup */
.woocommerce-checkout .woocommerce-form__label-for-checkbox span,
.woocommerce-account .woocommerce-form__label-for-checkbox span {
  font-size: 0.88rem;
}
.woocommerce-checkout #order_review_heading {
  font-size: 1.1rem;
  font-weight: 800;
}
/* Hide accidental floating numbers / badges on checkout mobile */
.woocommerce-checkout .product-quantity .screen-reader-text {
  position: absolute;
  clip: rect(0,0,0,0);
}


/* ========== ONLY hide left duplicate price on cart item (keep title price + totals) ========== */
/* WooCommerce Blocks Cart — extra total on the side */
.wc-block-cart-items__row .wc-block-cart-item__total,
.wc-block-cart-items__row .wc-block-components-product-price--align-right,
.wc-block-cart-item__wrap .wc-block-cart-item__prices {
  /* keep product price under name if that's the only one */
}
/* The left-side orphan price in RTL mobile blocks cart */
.wc-block-cart-items__row > .wc-block-cart-item__total {
  display: none !important;
}
.wc-block-cart-items .wc-block-cart-item__total {
  display: none !important;
}

/* Classic table: hide product-subtotal column on mobile only — price stays under product name via product-price in name area */
@media (max-width: 768px) {
  .woocommerce-cart-form table.shop_table_responsive tr td.product-subtotal {
    display: none !important;
  }
  .woocommerce-cart-form table.shop_table_responsive tr td.product-price {
    display: none !important;
  }
  /* price under product name remains from description; if WC puts price only in those cells, show price inside product-name */
  .woocommerce-cart-form table.shop_table_responsive tr td.product-name .amount,
  .woocommerce-cart-form table.shop_table_responsive tr td.product-name .woocommerce-Price-amount {
    display: inline !important;
  }
}

/* Blocks cart layout: hide the standalone price that sits opposite the product (left in RTL) */
.wc-block-cart-items__row {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
}
.wc-block-cart-items__row .wc-block-cart-item__image {
  grid-column: 2;
}
.wc-block-cart-items__row .wc-block-cart-item__product {
  grid-column: 1;
}
/* Force hide any direct child that is only a price column on the edge */
.wc-block-components-order-summary-item__total-price,
.wc-block-cart-item__total-price {
  display: none !important;
}

/* More specific: in is-mobile / cart line, the price on the START edge (left in LTR, but in RTL it's the physical left which is end...) */
/* Screenshot shows price on physical LEFT of screen while product is on the RIGHT */
.wp-block-woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__total,
.wp-block-woocommerce-filled-cart-block .wc-block-cart-item__total,
.wc-block-cart .wc-block-cart-items__row td:first-child .wc-block-formatted-money-amount,
.wc-block-cart-items__row > div.wc-block-cart-item__total {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
}

/* Keep price that appears under product title (inside product details) */
.wc-block-cart-item__product .wc-block-cart-item__prices,
.wc-block-cart-item__product .wc-block-components-product-price,
.wc-block-components-product-metadata .wc-block-components-product-price {
  display: block !important;
  font-size: 0.95rem !important;
  visibility: visible !important;
  height: auto !important;
  width: auto !important;
  overflow: visible !important;
}

/* Totals box at bottom — NEVER hide */
.wc-block-components-totals-wrapper,
.wc-block-components-totals-item,
.wc-block-components-totals-footer-item,
.cart_totals,
.wc-block-cart__sidebar {
  /* intact */
}
.wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item-tax-value,
.cart_totals .amount {
  display: inline !important;
  visibility: visible !important;
  font-size: inherit !important;
  height: auto !important;
  width: auto !important;
}


/* ========== PDP — Product Detail Page (mockup) ========== */
body.single-product .rl-topbar { display: none; } /* compact header on product */

.rl-pdp {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 16px 48px;
  color: #4a4a4a;
}
.rl-pdp-breadcrumb {
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: #999;
}
.rl-pdp-breadcrumb a { color: #888; }
.rl-pdp-breadcrumb .sep { margin: 0 6px; color: #ccc; }

.rl-pdp-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
  background: #fff;
  border: 1px solid #eee8e2;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(40,20,10,0.04);
}

/* Gallery */
.rl-pdp-gallery {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
}
.rl-pdp-gallery .woocommerce-product-gallery {
  margin: 0 !important;
  opacity: 1 !important;
}
.rl-pdp-gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
}
.rl-pdp-gallery .woocommerce-product-gallery__image {
  border-radius: 12px;
  overflow: hidden;
  background: #f0ebe6;
}
.rl-pdp-gallery .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.rl-pdp-gallery .flex-control-thumbs {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 12px !important;
  padding: 0;
  overflow-x: auto;
  list-style: none;
}
.rl-pdp-gallery .flex-control-thumbs li {
  flex: 0 0 72px;
  width: 72px !important;
  height: 72px !important;
  float: none !important;
  margin: 0 !important;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #e8e0d8;
  background: #fff;
}
.rl-pdp-gallery .flex-control-thumbs li img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 1 !important;
}
.rl-pdp-gallery .flex-control-thumbs li img.flex-active,
.rl-pdp-gallery .flex-control-thumbs li img:hover {
  border-color: #6b4423;
  outline: 2px solid #6b4423;
  outline-offset: -2px;
}

/* Info column */
.rl-pdp-title {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem) !important;
  font-weight: 800 !important;
  color: #2c1810 !important;
  line-height: 1.45 !important;
  margin: 0 0 8px !important;
}
.rl-pdp-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: #999;
}
.rl-pdp-price {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: #6b4423 !important;
  margin: 0 0 12px !important;
}
.rl-pdp-price del {
  font-size: 0.9rem;
  color: #aaa;
  margin-left: 8px;
}
.rl-pdp-excerpt, .rl-pdp-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 18px;
  display: block;
}
.rl-pdp-desc.is-clamped {
  max-height: 8.5em !important;
  overflow: hidden !important;
  position: relative !important;
}
.rl-pdp-desc.is-open {
  max-height: none !important;
  overflow: visible !important;
}

/* Variation labels */
.rl-pdp .variations {
  width: 100%;
  margin-bottom: 12px;
}
.rl-pdp .variations th,
.rl-pdp .variations td {
  display: block;
  text-align: right;
  padding: 0;
  border: none;
}
.rl-pdp .variations th label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #444;
  margin-bottom: 8px;
  display: block;
}
.rl-pdp .variations select.rl-ui-hidden {
  /* hidden only after JS builds swatches; keep in DOM for WC */
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}
.rl-pdp .variations select:not(.rl-ui-hidden) {
  display: block !important;
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 100% !important;
  max-width: 280px !important;
  height: 46px !important;
}

/* Size / color button groups (JS) */
.rl-var-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.rl-var-btn {
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid #e0d8d0;
  border-radius: 10px;
  background: #fff;
  color: #444;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.rl-var-btn:hover {
  border-color: #6b4423;
}
.rl-var-btn.is-selected {
  background: #6b4423;
  border-color: #6b4423;
  color: #fff;
}
.rl-var-btn.is-color {
  width: 72px;
  height: auto;
  min-height: 64px;
  padding: 6px;
  flex-direction: column;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
}
.rl-var-btn.is-color .swatch {
  width: 36px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.rl-var-btn.is-color.is-selected {
  background: #fff;
  color: #6b4423;
  border-color: #6b4423;
  box-shadow: 0 0 0 1px #6b4423;
}

/* Qty + Add to cart row */
.rl-pdp form.cart {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px !important;
}
.rl-pdp .quantity {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e0d8d0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.rl-pdp .quantity .qty {
  width: 48px !important;
  height: 48px !important;
  border: none !important;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  background: transparent;
  -moz-appearance: textfield;
}
.rl-pdp .quantity .qty::-webkit-outer-spin-button,
.rl-pdp .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.rl-pdp .single_add_to_cart_button {
  flex: 1;
  min-width: 180px;
  height: 48px !important;
  padding: 0 24px !important;
  background: #6b4423 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(107,68,35,0.22) !important;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s !important;
}
.rl-pdp .single_add_to_cart_button:hover {
  background: #5a3820 !important;
  transform: translateY(-1px);
}

/* Trust row */
.rl-pdp-trust {
  list-style: none;
  margin: 8px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #f0ebe6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.rl-pdp-trust li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: #666;
}
.rl-pdp-trust .ico {
  color: #6b4423;
  flex-shrink: 0;
  margin-top: 2px;
}
.rl-pdp-trust strong {
  display: block;
  color: #2c1810;
  font-size: 0.8rem;
}
.rl-pdp-trust small {
  display: block;
  color: #999;
  font-size: 0.72rem;
  margin-top: 2px;
}

/* Tabs */
.rl-pdp-tabs {
  margin-top: 28px;
  background: #fff;
  border: 1px solid #eee8e2;
  border-radius: 16px;
  padding: 8px 20px 24px;
  box-shadow: 0 2px 12px rgba(40,20,10,0.03);
}
.rl-pdp-tabs .woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 0;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: 1px solid #eee8e2 !important;
  list-style: none !important;
  overflow-x: auto;
}
.rl-pdp-tabs .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}
.rl-pdp-tabs .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 18px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #888 !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  white-space: nowrap;
}
.rl-pdp-tabs .woocommerce-tabs ul.tabs li.active a,
.rl-pdp-tabs .woocommerce-tabs ul.tabs li a:hover {
  color: #6b4423 !important;
  border-bottom-color: #6b4423 !important;
}
.rl-pdp-tabs .woocommerce-Tabs-panel {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #555;
  padding: 4px 4px 8px !important;
}

/* Hide old single product chrome */
.rl-pdp .rl-sku,
.rl-single-product,
.rl-product-steps { }
body.single-product .rl-mobile-buybar { display: none !important; } /* replaced by sticky CTA on mobile if needed */

/* Compact header global polish */
.rl-topbar {
  padding: 4px 0 !important;
  font-size: 0.72rem !important;
}
.rl-header {
  padding: 8px 0 0 !important;
}
.rl-header .rl-logo .tagline {
  font-size: 0.68rem !important;
}
.rl-header-top {
  gap: 10px !important;
  padding-bottom: 8px !important;
}
.rl-search input {
  height: 40px !important;
  font-size: 0.85rem !important;
}
.rl-nav {
  padding: 0 !important;
}
.rl-nav-list > li > a {
  padding: 10px 12px !important;
  font-size: 0.86rem !important;
}

/* ========== Mobile PDP ========== */
@media (max-width: 900px) {
  .rl-pdp-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
  }
  .rl-pdp-gallery .woocommerce-product-gallery__image img {
    max-height: 360px;
  }
  .rl-pdp-gallery .flex-control-thumbs li {
    flex: 0 0 56px;
    width: 56px !important;
    height: 56px !important;
  }
  .rl-pdp-trust {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .rl-pdp-title {
    font-size: 1.15rem !important;
  }
  .rl-pdp-price {
    font-size: 1.3rem !important;
  }
  /* form.cart stays in flow — sticky only on .woocommerce-variation-add-to-cart (see mobile block below) */
  .rl-pdp form.cart,
  .rl-pdp form.variations_form {
    position: static !important;
    bottom: auto !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 12px 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .rl-pdp .single_add_to_cart_button {
    min-width: 0;
    flex: 1;
  }
  body.single-product {
    padding-bottom: 160px;
  }
  /* hide desktop-only search in header on small screens — already handled */
}
@media (max-width: 768px) {
  .rl-pdp {
    padding: 8px 12px 32px;
  }
  .rl-pdp-grid {
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
  .rl-pdp-gallery {
    padding: 0;
    background: #fff;
    border-radius: 12px;
  }
  .rl-pdp-tabs {
    padding: 8px 12px 20px;
  }
  body.single-product .rl-search-wrap {
    display: none !important;
  }
}

.rl-qty-btn {
  width: 40px;
  height: 48px;
  border: none;
  background: #f5f0eb;
  color: #6b4423;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.rl-qty-btn:hover { background: #ebe4dc; }
.rl-pdp .quantity { direction: ltr; }


/* ========== Beautiful product pagination ========== */
.woocommerce-pagination,
.rl-shop-pagination,
nav.woocommerce-pagination {
  display: flex !important;
  justify-content: center !important;
  margin: 36px 0 16px !important;
  padding: 0 !important;
}
.woocommerce-pagination ul.page-numbers,
.rl-shop-pagination .page-numbers,
ul.page-numbers {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  background: #fff;
  border: 1px solid #eee8e2;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(40,20,10,0.05);
}
.woocommerce-pagination ul.page-numbers li,
.rl-shop-pagination .page-numbers li,
ul.page-numbers li {
  margin: 0 !important;
  display: inline-flex !important;
}
.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span,
.rl-shop-pagination .page-numbers li a,
.rl-shop-pagination .page-numbers li span,
ul.page-numbers li a,
ul.page-numbers li span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px !important;
  border-radius: 50% !important;
  border: none !important;
  background: transparent !important;
  color: #666 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s, transform 0.15s !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
.woocommerce-pagination ul.page-numbers li a:hover,
.rl-shop-pagination .page-numbers li a:hover,
ul.page-numbers li a:hover {
  background: #f5f0eb !important;
  color: #6b4423 !important;
  transform: translateY(-1px);
}
.woocommerce-pagination ul.page-numbers li span.current,
.rl-shop-pagination .page-numbers li span.current,
ul.page-numbers li span.current {
  background: #6b4423 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(107,68,35,0.3) !important;
}
.woocommerce-pagination ul.page-numbers li a.prev,
.woocommerce-pagination ul.page-numbers li a.next,
ul.page-numbers li a.prev,
ul.page-numbers li a.next {
  border-radius: 50px !important;
  min-width: 44px;
  background: #faf8f6 !important;
  color: #6b4423 !important;
}
@media (max-width: 480px) {
  .woocommerce-pagination ul.page-numbers li a,
  .woocommerce-pagination ul.page-numbers li span,
  ul.page-numbers li a,
  ul.page-numbers li span {
    min-width: 36px;
    height: 36px;
    font-size: 0.82rem !important;
  }
}


/* Cart product image must always show */
.woocommerce-cart .product-thumbnail,
.woocommerce-cart td.product-thumbnail,
.wc-block-cart-item__image,
.wc-block-components-product-image {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.woocommerce-cart .product-thumbnail img,
.wc-block-cart-item__image img {
  display: block !important;
  width: 88px !important;
  height: 88px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}


/* ========== PDP MOCKUP v5.5 ========== */
.rl-pdp {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}
.rl-pdp-breadcrumb {
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: #aaa;
  text-align: right;
}
.rl-pdp-breadcrumb a { color: #999; text-decoration: none; }
.rl-pdp-breadcrumb .sep { margin: 0 6px; color: #ccc; }

/* Image LEFT, info RIGHT (like mockup) */
.rl-pdp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
  direction: ltr;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #f0ebe6;
  box-shadow: 0 4px 24px rgba(40,20,10,0.04);
}
.rl-pdp-info {
  direction: rtl;
  text-align: right;
}

.rl-pdp-gallery {
  background: #f5f2ee;
  border-radius: 16px;
  padding: 16px;
  position: relative;
}
.rl-pdp-gallery .woocommerce-product-gallery { margin: 0 !important; opacity: 1 !important; width: 100% !important; }
.rl-pdp-gallery .woocommerce-product-gallery__image {
  border-radius: 14px;
  overflow: hidden;
  background: #efeae4;
}
.rl-pdp-gallery .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  max-height: 480px;
  object-fit: contain !important;
  margin: 0 auto;
  display: block;
}
.rl-pdp-gallery .flex-control-thumbs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow-x: auto;
}
.rl-pdp-gallery .flex-control-thumbs li {
  flex: 0 0 68px !important;
  width: 68px !important;
  height: 68px !important;
  margin: 0 !important;
  float: none !important;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
}
.rl-pdp-gallery .flex-control-thumbs li img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
}
.rl-pdp-gallery .flex-control-thumbs li img.flex-active {
  outline: 2px solid #6b4423;
  outline-offset: -2px;
  border-radius: 8px;
}

.rl-pdp-title {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: #1a120c !important;
  line-height: 1.5 !important;
  margin: 0 0 10px !important;
}
.rl-pdp-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 8px;
}
.rl-pdp-sep { color: #ddd; }
.rl-pdp-rating {
  margin-bottom: 12px;
  font-size: 0.85rem;
}
.rl-pdp-rating .star { color: #ddd; letter-spacing: 1px; }
.rl-pdp-rating .star.on { color: #e6a817; }
.rl-pdp-rating .count { color: #999; font-size: 0.78rem; margin-right: 4px; }

.rl-pdp-price {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: #6b4423 !important;
  margin: 0 0 12px !important;
}
.rl-pdp-price del { font-size: 0.95rem; color: #bbb; font-weight: 500; }
.rl-pdp-excerpt, .rl-pdp-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #777;
  margin-bottom: 18px;
  display: block !important;
}
.rl-pdp-desc.is-clamped {
  max-height: 8.5em !important;
  overflow: hidden !important;
  position: relative !important;
}
.rl-pdp-desc.is-open {
  max-height: none !important;
  overflow: visible !important;
}

/* Variations */
.rl-pdp table.variations { margin-bottom: 4px; width: 100%; }
.rl-pdp table.variations th,
.rl-pdp table.variations td { display: block; border: 0; padding: 0; text-align: right; }
.rl-pdp table.variations label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #333;
  margin: 12px 0 8px;
  display: block;
}
.rl-pdp table.variations select.rl-ui-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.rl-pdp table.variations select:not(.rl-ui-hidden) {
  display: block !important;
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 100% !important;
  max-width: 280px !important;
  height: 46px !important;
}

.rl-var-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.rl-var-btn {
  min-width: 48px;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid #e5ddd5;
  border-radius: 10px;
  background: #fff;
  color: #444;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.rl-var-btn:hover { border-color: #6b4423; }
.rl-var-btn.is-selected {
  background: #6b4423;
  border-color: #6b4423;
  color: #fff;
}
.rl-var-btn.is-color {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 110px;
  height: auto;
  min-height: 56px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #555;
}
.rl-var-btn.is-color .swatch {
  width: 40px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e0d8d0;
  flex-shrink: 0;
  background-size: cover !important;
  background-position: center !important;
}
.rl-var-btn.is-color.is-selected {
  background: #fff;
  color: #6b4423;
  border-color: #6b4423;
  box-shadow: 0 0 0 1px #6b4423;
}

/* Cart form — variable products are block (table + ATC row); simple are flex */
.rl-pdp form.variations_form.cart {
  display: block !important;
  margin: 16px 0 20px !important;
}
.rl-pdp form.cart:not(.variations_form) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 20px !important;
}
.rl-pdp .woocommerce-variation-add-to-cart {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.rl-pdp .quantity {
  display: inline-flex !important;
  align-items: center;
  border: 1.5px solid #e5ddd5;
  border-radius: 12px;
  overflow: hidden;
  direction: ltr;
  margin: 0 !important;
  background: #fff;
}
.rl-pdp .quantity .qty {
  width: 44px !important;
  height: 46px !important;
  border: 0 !important;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  background: transparent;
  -moz-appearance: textfield;
}
.rl-pdp .quantity .qty::-webkit-outer-spin-button,
.rl-pdp .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.rl-qty-btn {
  width: 40px;
  height: 46px;
  border: 0;
  background: #f7f3ef;
  color: #6b4423;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}
.rl-qty-btn:hover { background: #efe8e0; }
.rl-pdp .single_add_to_cart_button {
  flex: 1;
  min-width: 200px;
  height: 48px !important;
  padding: 0 28px !important;
  background: #6b4423 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 18px rgba(107,68,35,0.25) !important;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s !important;
}
.rl-pdp .single_add_to_cart_button:hover {
  background: #5a3820 !important;
  transform: translateY(-1px);
}

.rl-pdp-trust {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid #f0ebe6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.rl-pdp-trust li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: #666;
}
.rl-pdp-trust .ico { color: #6b4423; flex-shrink: 0; margin-top: 2px; }
.rl-pdp-trust strong { display: block; color: #2c1810; font-size: 0.8rem; }
.rl-pdp-trust small { display: block; color: #999; font-size: 0.72rem; margin-top: 2px; }

.rl-pdp-tabs {
  margin-top: 32px;
  background: #fff;
  border: 1px solid #f0ebe6;
  border-radius: 16px;
  padding: 8px 24px 28px;
}
.rl-pdp-tabs .woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 0;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: 1px solid #f0ebe6 !important;
  list-style: none !important;
}
.rl-pdp-tabs .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}
.rl-pdp-tabs .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 14px 20px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #999 !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
}
.rl-pdp-tabs .woocommerce-tabs ul.tabs li.active a {
  color: #6b4423 !important;
  border-bottom-color: #6b4423 !important;
}
.rl-pdp-tabs .woocommerce-Tabs-panel {
  font-size: 0.92rem;
  line-height: 1.9;
  color: #555;
}

/* Mobile — column like mockup */
@media (max-width: 900px) {
  .rl-pdp { padding: 8px 12px 100px; }
  .rl-pdp-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    direction: rtl;
  }
  .rl-pdp-gallery {
    padding: 0;
    border-radius: 14px;
  }
  .rl-pdp-gallery .woocommerce-product-gallery__image img {
    max-height: 340px;
  }
  .rl-pdp-gallery .flex-control-thumbs li {
    flex: 0 0 56px !important;
    width: 56px !important;
    height: 56px !important;
  }
  .rl-pdp-title { font-size: 1.15rem !important; }
  .rl-pdp-price { font-size: 1.35rem !important; }
  .rl-pdp-trust { grid-template-columns: 1fr; gap: 10px; }
  /* Form stays in normal page flow (Digikala-style) — NOT fixed */
  .rl-pdp form.cart,
  .rl-pdp form.variations_form {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 12px 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    display: block !important;
    width: 100% !important;
  }
  /* Only the ATC actions row sticks above bottom nav */
  .rl-pdp .woocommerce-variation-add-to-cart,
  .rl-pdp form.cart:not(.variations_form) {
    position: fixed !important;
    bottom: 72px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 95 !important;
    background: #fff !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1) !important;
    border: none !important;
    border-top: 1px solid #eee !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .rl-pdp .single_add_to_cart_button {
    min-width: 0;
    flex: 1;
    height: 48px !important;
    font-size: 0.92rem !important;
    margin: 0 !important;
  }
  .rl-pdp .quantity {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  body.single-product .rl-search-wrap { display: none !important; }
  body.single-product { padding-bottom: 160px !important; }
}


/* ========== FIX: Product gallery MUST show images ========== */
.rl-pdp-grid {
  direction: rtl !important; /* normal RTL — info right, gallery left in visual via order */
  grid-template-columns: 0.95fr 1.05fr !important;
}
.rl-pdp-info { order: 1; direction: rtl; text-align: right; }
.rl-pdp-gallery { order: 2; }

.rl-pdp-gallery,
.rl-pdp-gallery .woocommerce-product-gallery,
.rl-pdp-gallery .woocommerce-product-gallery__wrapper,
.rl-pdp-gallery .woocommerce-product-gallery__image,
.rl-pdp-gallery .woocommerce-product-gallery__image a,
.rl-pdp-gallery .flex-viewport,
.rl-pdp-gallery .woocommerce-product-gallery figure {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
.rl-pdp-gallery .woocommerce-product-gallery {
  position: relative !important;
}
.rl-pdp-gallery .woocommerce-product-gallery__image img,
.rl-pdp-gallery .wp-post-image,
.rl-pdp-gallery img.wp-post-image,
.rl-pdp-gallery .zoomImg,
.single-product .rl-pdp-gallery img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}
/* Hide broken zoom overlay that can cover image */
.rl-pdp-gallery .zoomImg {
  display: none !important;
}
.rl-pdp-gallery .flex-control-thumbs {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.rl-pdp-gallery .flex-control-thumbs li img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* FIX trust badges — no overlapping text */
.rl-pdp-trust {
  list-style: none !important;
  margin: 20px 0 0 !important;
  padding: 18px 0 0 !important;
  border-top: 1px solid #f0ebe6 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px 24px !important;
  direction: rtl !important;
}
.rl-pdp-trust li {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 1 160px !important;
  min-width: 140px !important;
  font-size: 0.82rem !important;
  color: #555 !important;
  line-height: 1.4 !important;
}
.rl-pdp-trust li .ico {
  flex-shrink: 0 !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f7f3ef !important;
  border-radius: 50% !important;
  color: #6b4423 !important;
}
.rl-pdp-trust li span:not(.ico) {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.rl-pdp-trust li strong {
  display: block !important;
  font-size: 0.84rem !important;
  color: #2c1810 !important;
  font-weight: 700 !important;
  white-space: normal !important;
}
.rl-pdp-trust li small {
  display: block !important;
  font-size: 0.75rem !important;
  color: #999 !important;
  white-space: normal !important;
}

/* Qty row clean */
.rl-pdp form.cart {
  direction: rtl !important;
}
.rl-pdp .quantity {
  direction: ltr !important;
}

@media (max-width: 900px) {
  .rl-pdp-grid {
    grid-template-columns: 1fr !important;
  }
  .rl-pdp-gallery { order: 0 !important; }
  .rl-pdp-info { order: 1 !important; }
  .rl-pdp-trust {
    flex-direction: column !important;
  }
  .rl-pdp-trust li {
    flex: 1 1 100% !important;
  }
}


/* ========== Custom gallery — always visible ========== */
.rl-gallery { width: 100%; }
.rl-gallery-main {
  position: relative;
  background: #f5f2ee;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rl-gallery-main-img,
.rl-gallery-main img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin: 0 auto;
}
.rl-gallery-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #c62828;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 2;
}
.rl-gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.rl-gallery-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid #e8e0d8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.rl-gallery-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
}
.rl-gallery-thumb.is-active,
.rl-gallery-thumb:hover {
  border-color: #6b4423;
}
.rl-gallery-empty {
  min-height: 280px;
  background: #f0ebe6;
}

/* Grid: gallery left, info right in visual */
.rl-pdp-grid {
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr !important;
  gap: 36px !important;
  align-items: start !important;
  direction: ltr !important;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #f0ebe6;
}
.rl-pdp-gallery { direction: ltr; }
.rl-pdp-info {
  direction: rtl !important;
  text-align: right !important;
}

@media (max-width: 900px) {
  .rl-pdp-grid {
    grid-template-columns: 1fr !important;
    direction: rtl !important;
    padding: 0 !important;
    border: none !important;
    gap: 16px !important;
  }
  .rl-gallery-main { aspect-ratio: 1 / 1; border-radius: 14px; }
  .rl-gallery-thumb { flex: 0 0 60px; width: 60px; height: 60px; }
}

.rl-social-btn[aria-label*="واتساپ"],
.rl-social-btn[href*="wa.me"] { color: #25D366 !important; }
.rl-social-btn[aria-label*="روبیکا"],
.rl-social-btn[href*="rubika"] { color: #7B2D8E !important; }




/* ========== v7.7 Shop sorting (مرتب‌سازی) ========== */
.rl-shop-toolbar,
.woocommerce-before-shop-loop,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  /* container handled below */
}
.rl-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px 14px;
  background: #faf7f4;
  border: 1px solid #efe8e1;
  border-radius: 16px;
}
.woocommerce .woocommerce-result-count {
  margin: 0 !important;
  font-size: 0.85rem !important;
  color: #8a7a6c !important;
  float: none !important;
}
.woocommerce .woocommerce-ordering {
  margin: 0 !important;
  float: none !important;
}
.woocommerce .woocommerce-ordering select,
.woocommerce-ordering .orderby {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b4423' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat left 14px center !important;
  background-size: 12px 8px !important;
  border: 1.5px solid #e5ddd5 !important;
  border-radius: 999px !important;
  padding: 10px 18px 10px 36px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #2c1810 !important;
  min-width: 180px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(107,68,35,0.06) !important;
  transition: border-color .15s, box-shadow .15s !important;
}
.woocommerce .woocommerce-ordering select:hover,
.woocommerce .woocommerce-ordering select:focus {
  border-color: #6b4423 !important;
  box-shadow: 0 4px 14px rgba(107,68,35,0.12) !important;
  outline: none !important;
}
@media (max-width: 600px) {
  .rl-shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .woocommerce .woocommerce-ordering select {
    width: 100% !important;
    min-width: 0 !important;
  }
  .woocommerce .woocommerce-result-count {
    text-align: center;
  }
}

/* ========== v7.7 Pagination — clean pill style ========== */
.rl-shop-pagination,
.woocommerce-pagination,
nav.woocommerce-pagination {
  display: flex !important;
  justify-content: center !important;
  margin: 36px 0 24px !important;
  padding: 0 !important;
}
.woocommerce-pagination ul.page-numbers,
.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 6px !important;
  background: #faf7f4 !important;
  border: 1px solid #efe8e1 !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
}
.woocommerce-pagination ul.page-numbers li,
.woocommerce nav.woocommerce-pagination ul li {
  margin: 0 !important;
  float: none !important;
  border: none !important;
  display: inline-flex !important;
}
.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border: none !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #5c4a3a !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  transition: background .15s, color .15s, transform .15s !important;
}
.woocommerce-pagination ul.page-numbers li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: #fff !important;
  color: #6b4423 !important;
  transform: translateY(-1px);
}
.woocommerce-pagination ul.page-numbers li span.current,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: #6b4423 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(107,68,35,0.28) !important;
}
.woocommerce-pagination ul.page-numbers li a.prev,
.woocommerce-pagination ul.page-numbers li a.next {
  font-size: 1rem !important;
}
@media (max-width: 480px) {
  .woocommerce-pagination ul.page-numbers li a,
  .woocommerce-pagination ul.page-numbers li span {
    min-width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
  }
}

/* Loop cart button touch target */
.rl-add-cart {
  position: relative;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.rl-add-cart.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* v8.1 force swatches visible */
.rl-swatches { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; visibility: visible !important; opacity: 1 !important; }
.rl-swatch { display: inline-flex !important; visibility: visible !important; opacity: 1 !important; }


/* ========== RL-GLOBAL-MOBILE-WIDTH: full-bleed mobile, no half-desktop shrink ========== */
@media (max-width: 1100px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .container,
  .rl-pdp,
  .rl-pdp-wrap,
  .rl-archive-header .container,
  .rl-shop-toolbar,
  main,
  #page,
  .site,
  .rl-header .container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .rl-pdp-wrap,
  .rl-pdp-grid,
  .rl-single-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .rl-header,
  .rl-topbar {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
  img, video, iframe {
    max-width: 100% !important;
    height: auto;
  }
}


/* v8.4 full short description + ATC inside box */
.rl-pdp-desc.is-open,
.rl-pdp .rl-pdp-desc.is-open,
.woocommerce-product-details__short-description {
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  white-space: normal !important;
  text-overflow: clip !important;
}
.rl-pdp-desc.is-clamped {
  max-height: 8.5em !important;
  overflow: hidden !important;
  position: relative !important;
}
.rl-pdp-info form.cart,
.rl-pdp-info .woocommerce-variation-add-to-cart {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  flex-wrap: wrap !important;
  overflow: hidden !important;
}
.rl-pdp-info .single_add_to_cart_button {
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 1 1 auto !important;
}


/* ========== RL-RESPONSIVE-MASTER-v85 ========== */
/* Global safety — no horizontal scroll, full width on small screens */
*, *::before, *::after { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  min-width: 0;
}
img, video, iframe, svg, canvas {
  max-width: 100% !important;
  height: auto;
}
table { max-width: 100%; }
.container {
  width: 100%;
  max-width: var(--container, 1240px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* ---- Tablet & below: single-column product, full bleed ---- */
@media (max-width: 1100px) {
  .rl-pdp,
  .rl-pdp-wrap,
  .rl-pdp-grid,
  .rl-single-grid,
  .rl-single-product {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
  }
  .rl-products-grid,
  ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }
}

/* ---- Mobile phone ---- */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.single-product {
    padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Header */
  .rl-topbar .badge:nth-child(n+3) { display: none; }
  .rl-header-top {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .rl-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  .rl-nav { display: none !important; } /* desktop nav hidden; mobile menu used */
  .rl-bottom-nav { display: block !important; }

  /* Hero */
  .rl-hero,
  .rl-hero-luxury,
  .rl-hero-inner {
    min-height: auto !important;
    width: 100% !important;
  }
  .rl-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    text-align: center !important;
  }
  .rl-hero-content { max-width: 100% !important; }
  .rl-hero-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .rl-hero-actions a,
  .rl-hero-actions .button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Product rows / grids */
  .rl-products-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 12px !important;
    padding-bottom: 8px !important;
    scroll-snap-type: x mandatory;
  }
  .rl-products-row .rl-product-card {
    flex: 0 0 160px !important;
    max-width: 160px !important;
    scroll-snap-align: start;
  }
  .rl-products-grid,
  ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .rl-product-card {
    min-width: 0 !important;
    width: 100% !important;
  }
  .rl-product-title {
    height: auto !important;
    min-height: 2.6em;
  }

  /* Categories */
  .rl-cat-cards,
  .rl-trust {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Sections */
  .rl-section { padding: 28px 0 !important; }
  .rl-section-title { font-size: 1.15rem !important; }
  .rl-section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  /* Shop toolbar */
  .rl-shop-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .woocommerce .woocommerce-ordering,
  .woocommerce .woocommerce-ordering select {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Footer */
  .rl-footer-main {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Cart / Checkout tables */
  .woocommerce table.shop_table,
  .woocommerce-cart-form,
  .woocommerce-checkout {
    width: 100% !important;
    max-width: 100% !important;
  }
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tr {
    display: block !important;
    margin-bottom: 12px !important;
  }
  .woocommerce table.shop_table_responsive td {
    display: block !important;
    text-align: right !important;
    width: 100% !important;
  }

  /* PDP */
  .rl-pdp { padding: 0 0 20px !important; }
  .rl-pdp-wrap {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    gap: 0 !important;
  }
  .rl-pdp-gallery,
  .rl-g-main {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
  }
  .rl-pdp-info {
    padding: 16px 14px 24px !important;
    width: 100% !important;
  }
  .rl-pdp-info form.cart,
  .rl-pdp-info .woocommerce-variation-add-to-cart {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .rl-swatches {
    gap: 8px !important;
  }
  .rl-swatch {
    min-width: 44px !important;
    height: 40px !important;
  }

  /* Account pages */
  .woocommerce-account .woocommerce {
    display: block !important;
  }
  .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
  }

  /* Forms */
  input, select, textarea, button {
    max-width: 100% !important;
  }
}

/* ---- Very small phones ---- */
@media (max-width: 380px) {
  .rl-products-row .rl-product-card {
    flex: 0 0 140px !important;
    max-width: 140px !important;
  }
  .rl-product-price-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .rl-bottom-nav a { font-size: 0.6rem !important; }
  .rl-bottom-nav a.home-btn {
    width: 46px !important;
    height: 46px !important;
  }
}

/* ---- Desktop: keep bottom nav hidden ---- */
@media (min-width: 769px) {
  .rl-bottom-nav { display: none !important; }
  body { padding-bottom: 0 !important; }
  body.single-product { padding-bottom: 0 !important; }
}


/* RL-FORCE-PDP-v91 — defer to pdp.css / inline on product pages */
body.single-product .rl-pdp-gallery .woocommerce-product-gallery { display: none !important; }
