/*==================================================================
  RUDHRAM INDUSTRIES — THEME COLOR OVERRIDE
  Colors pulled from the logo: deep teal/emerald + gold ring
  HOW TO USE: link this file AFTER style.css in header.php, e.g.:
  <link rel="stylesheet" href="assets/css/style.css">
  <link rel="stylesheet" href="assets/css/rudhram-theme-override.css">

  This works because the whole template is built on the single
  CSS variable --primary-color1, used for borders, buttons, text,
  icons and headings site-wide. Changing it here re-themes the
  entire site without touching style.css.
===================================================================*/

:root {
  /* Deep teal/emerald from the logo background */
  --primary-color1: #0B4F44;

  /* Gold from the logo's ring, used below for accents */
  --gold-color: #C9A356;

  /* Warm off-white background used behind banners/sections */
  --bg-color: #fad97f;
}

/* ---- Gold accents on key highlight elements ---- */

/* Discount / badge tags (New, -15%, Hot, etc.) */
.product-card .product-card-img > a .batch > span,
.product-card2 .batch > span,
.batch > span {
  background-color: var(--gold-color) !important;
}

/* Price emphasis */
.product-card .product-card-content .price,
.product-card2 .product-card-content > span {
  color: var(--primary-color1);
}

/* Star ratings stay gold (already default #ffc107 — left as-is on purpose,
   change below if you want star color to match the logo gold exactly) */
.rating ul li i,
.say-about-card-top ul li i,
.testimonial-content .author-rating i {
  color: var(--gold-color);
}

/* Header category button & primary buttons get a subtle gradient nod to the logo */
.primary-btn1,
header .category-dropdown .category-button {
  background-color: var(--primary-color1);
  border-color: var(--primary-color1);
}

/* "Hurry up" / discount badge circles on offer sections */
.hurry-bg svg,
.discount svg {
  fill: var(--gold-color) !important;
}

/* ===== SITE-WIDE BEIGE BACKGROUND (excludes cat slider) ===== */

/* 1. Override the template's --white-color variable — this is the single
      most powerful change: every element using var(--white-color) inherits
      beige automatically without needing individual selectors.            */
:root {
  --white-color: #f7f2e8;
}

/* 2. html + body — beige page background */
html, body {
  background-color: #f7f2e8 !important;
}

/* 3. Real section class names found in the template */
.best-selling-section,
.rdx-bestseller-section,
.rdx-deal-section,
.rdx-jfy-section,
.rdx-jfy-row-wrap,
.rdx-video-section,
.newest-product-section,
.ingredient-spotlight-section,
.just-for-section,
.exclusive-product-section,
.say-about-section,
.say-about-wrapper,
.banner-footer,
.banner-footer-wrapper,
.section-padding,
.section-padding2,
.section-padding3 {
  background-color: #f7f2e8 !important;
  background: #f7f2e8 !important;
}

/* 4. Promo strip — keep green gradient, do NOT beige-ify */
.rdx-promostrip {
  background: linear-gradient(90deg, #e8f7f5 0%, #cdeeea 100%) !important;
}
.rdx-promostrip-inner {
  background: transparent !important;
}

/* 4. Cat slider — solid white, not beige */
.rdx-catstrip {
  background: #ffffff !important;
}

/* Gap between slider and best selling section */
.best-selling-section,
.rdx-bestseller-section {
  margin-top: 120px !important;
}

/* ---- RDX Global Product Card Styles ---- */
.rdx-bs-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eef2f1;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.rdx-bs-card:hover {
    box-shadow: 0 12px 30px rgba(11, 79, 68, 0.12);
    transform: translateY(-4px);
}
.rdx-bs-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f7f9f8;
    overflow: hidden;
}
.rdx-bs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.rdx-bs-card:hover .rdx-bs-card-img img {
    transform: scale(1.04);
}
.rdx-bs-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #20ab76;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}
.rdx-bs-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.rdx-bs-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    color: #444;
    margin-bottom: 6px;
}
.rdx-bs-rating svg {
    width: 14px;
    height: 14px;
    fill: #C9A356;
}
.rdx-bs-rating .rdx-bs-reviews {
    color: #888;
}
.rdx-bs-name {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    text-decoration: none;
    display: block;
    line-height: 1.3;
}
.rdx-bs-name:hover {
    color: #20ab76;
}
.rdx-bs-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    color: #777;
    margin: 0 0 10px;
}
.rdx-bs-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}
.rdx-bs-price {
    font-size: 16.5px;
    font-weight: 700;
    color: #20ab76;
}
.rdx-bs-price-old {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
}
.rdx-bs-discount {
    font-size: 10.5px;
    font-weight: 600;
    color: #d90429;
    background: #fde8e8;
    padding: 2px 6px;
    border-radius: 4px;
}
.rdx-bs-addcart {
    margin-top: auto;
    display: block;
    width: 100%;
    text-align: center;
    background: #20ab76;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 0;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.rdx-bs-addcart:hover {
    background: #20ab76;
    color: #fff;
}

/* Wishlist Icon on Product Hover */
.rdx-wishlist-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0A3A4D !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
    z-index: 10 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-4px) scale(0.9) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.rdx-bs-card:hover .rdx-wishlist-btn,
.product-card:hover .rdx-wishlist-btn,
.rdx-shop-card:hover .rdx-wishlist-btn {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.rdx-wishlist-btn:hover {
    background: #20ab76 !important;
    color: #ffffff !important;
    transform: translateY(0) scale(1.1) !important;
}
.rdx-wishlist-btn:hover svg {
    stroke: #ffffff !important;
}

.rdx-wishlist-btn.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    background: #ffffff !important;
    color: #e63946 !important;
}
.rdx-wishlist-btn.active:hover {
    background: #e63946 !important;
    transform: translateY(0) scale(1.1) !important;
}
.rdx-wishlist-btn.active:hover svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}