/*
Theme Name: Reseller-Hat-Flatsome-v40-PRODUCTION-MARKETPLACE-V70
Theme URI:            https://resellerhat.com
Author:               Helal Uddin
Author URI:           https://resellerhat.com
Description:          Reseller Hat WooCommerce Marketplace Theme
Version:              5.1.0
Requires at least:    5.4.0
Requires PHP:         7.4
WC requires at least: 4.7.0
Text Domain:          flatsome
License:              GPL-2.0-or-later
License URI:          https://www.gnu.org/licenses/gpl-2.0.html
*/


/***************
All custom CSS should be added to Reseller Hat > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/

/* Reseller Hat — unified premium marketplace color system. */
:root {
  --rhat-ink: #0b1220;
  --rhat-navy: #101a2f;
  --rhat-teal: #0f766e;
  --rhat-teal-dark: #0b5f59;
  --rhat-gold: #f59e0b;
  --rhat-bg: #f7f9fc;
  --rhat-surface: #ffffff;
  --rhat-border: #e5eaf1;
  --rhat-muted: #667085;
}

html, body { background: var(--rhat-bg); color: var(--rhat-ink); }
body a { color: var(--rhat-teal); }
body a:hover { color: var(--rhat-teal-dark); }

/* Header / navigation */
.header-wrapper, .header-main { background: var(--rhat-surface); }
.header-main { border-bottom: 1px solid var(--rhat-border); }
.header-nav-main > li > a, .nav > li > a { color: var(--rhat-ink); font-weight: 600; }
.header-nav-main > li.active > a, .header-nav-main > li.current-menu-item > a,
.nav > li.active > a, .nav > li.current-menu-item > a { color: var(--rhat-teal); }
.header-nav-main > li > a:hover, .nav > li > a:hover { color: var(--rhat-teal); }

/* Buttons and WooCommerce actions */
.button.primary, button.primary, input[type="submit"], .checkout-button, .single_add_to_cart_button {
  background-color: var(--rhat-teal) !important;
  border-color: var(--rhat-teal) !important;
  color: #fff !important;
}
.button.primary:hover, button.primary:hover, input[type="submit"]:hover, .checkout-button:hover, .single_add_to_cart_button:hover {
  background-color: var(--rhat-teal-dark) !important;
  border-color: var(--rhat-teal-dark) !important;
}
.button.secondary { color: var(--rhat-teal) !important; border-color: var(--rhat-teal) !important; }
.button.secondary:hover { background-color: var(--rhat-teal) !important; color: #fff !important; }

/* Marketplace surfaces */
.product-small, .box, .card, .woocommerce-cart-form, .woocommerce-checkout-review-order,
.widget, .account-user, .woocommerce-message, .woocommerce-info { border-color: var(--rhat-border); }
.woocommerce-message { border-top-color: var(--rhat-teal); }
.price, .amount { color: var(--rhat-teal); }
.badge-container .badge-inner { background: var(--rhat-gold); }

/* Forms / focus */
input:focus, textarea:focus, select:focus { border-color: var(--rhat-teal) !important; box-shadow: 0 0 0 2px rgba(15,118,110,.12) !important; }

/* Footer */
#footer { background: var(--rhat-navy); color: #e7edf7; }
#footer a { color: #dbe7f5; }
#footer a:hover { color: #fff; }

/* Premium PWA install prompt */
.rhat-pwa-install[hidden] { display: none !important; }
.rhat-pwa-install { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: flex-end; justify-content: center; padding: 18px; box-sizing: border-box; font-family: inherit; }
.rhat-pwa-install__backdrop { position: absolute; inset: 0; background: rgba(6,12,24,.68); backdrop-filter: blur(5px); }
.rhat-pwa-install__card { position: relative; width: min(100%,430px); box-sizing: border-box; padding: 26px 22px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: linear-gradient(145deg,#101a2f 0%,#0b1220 72%,#0f3f3b 100%); color:#fff; box-shadow:0 24px 70px rgba(0,0,0,.38); text-align:center; overflow:hidden; animation:rhatPwaUp .28s ease-out; }
.rhat-pwa-install__card:before { content:""; position:absolute; width:180px; height:180px; right:-75px; top:-85px; border-radius:50%; background:rgba(245,158,11,.16); }
.rhat-pwa-install__icon { position:relative; width:58px; height:58px; margin:0 auto 9px; display:grid; place-items:center; border-radius:17px; background:linear-gradient(135deg,#f59e0b,#fbbf24); font-size:29px; box-shadow:0 10px 28px rgba(245,158,11,.25); }
.rhat-pwa-install__brand { position:relative; color:#fbbf24; font-size:11px; font-weight:800; letter-spacing:1.7px; }
.rhat-pwa-install__card h2 { position:relative; margin:7px 0 8px; color:#fff; font-size:24px; line-height:1.2; font-weight:800; }
.rhat-pwa-install__card p { position:relative; margin:0 auto 15px; max-width:350px; color:#d7e1ef; font-size:14px; line-height:1.7; }
.rhat-pwa-install__benefits { position:relative; display:flex; justify-content:center; flex-wrap:wrap; gap:7px; margin:0 0 17px; }
.rhat-pwa-install__benefits span { padding:6px 9px; border:1px solid rgba(255,255,255,.12); border-radius:999px; background:rgba(255,255,255,.07); color:#e8eef7; font-size:11px; font-weight:700; }
.rhat-pwa-install__button { position:relative; width:100%; min-height:48px; border:0; border-radius:13px; background:#0f766e; color:#fff; font-size:15px; font-weight:800; cursor:pointer; box-shadow:0 10px 24px rgba(15,118,110,.28); transition:transform .18s ease,background .18s ease; }
.rhat-pwa-install__button:hover { background:#0b5f59; transform:translateY(-1px); }
.rhat-pwa-install__later { position:relative; margin-top:10px; padding:7px 12px; border:0; background:transparent; color:#aebbd0; font-size:12px; cursor:pointer; }
.rhat-pwa-install__later:hover { color:#fff; }
.rhat-pwa-install__close { position:absolute; z-index:2; right:11px; top:10px; width:32px; height:32px; padding:0; border:1px solid rgba(255,255,255,.12); border-radius:50%; background:rgba(255,255,255,.07); color:#fff; font-size:22px; line-height:28px; cursor:pointer; }
.rhat-pwa-install__ios { position:relative; margin-top:10px; padding:11px 12px; border-radius:11px; background:rgba(255,255,255,.08); color:#dce6f4; font-size:12px; line-height:1.6; }
@keyframes rhatPwaUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }

/* Footer — deep premium navy with subtle teal/gold accents */
#footer { background:linear-gradient(135deg,#07111f 0%,#0b1729 55%,#0b302d 100%) !important; color:#dbe5f2; border-top:3px solid var(--rhat-teal); }
#footer .widget-title, #footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6 { color:#fff; }
#footer a { color:#c9d7e8; }
#footer a:hover { color:#fbbf24; }
#footer .reseller-hat-footer-legal-nav > li > a { background:rgba(255,255,255,.045); border-radius:9px; }

/* Reseller Hat legal footer: 2 columns on mobile, one link per cell. */
@media (max-width: 549px) {
  #footer .reseller-hat-footer-legal-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
  }

  #footer .reseller-hat-footer-legal-nav > li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  #footer .reseller-hat-footer-legal-nav > li > a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 9px 7px;
    line-height: 1.25;
  }
}


/* Reseller Haat — compact homepage sections */
.rhat-compact-home-section { padding-top:28px !important; padding-bottom:28px !important; }
.rhat-compact-home-section h2,
.rhat-compact-home-section .section-title { margin-bottom:14px !important; line-height:1.25 !important; }
.rhat-compact-home-section .row { margin-bottom:0 !important; }
.rhat-compact-home-section .col,
.rhat-compact-home-section .column { padding-bottom:12px !important; }
.rhat-compact-home-section .box,
.rhat-compact-home-section .card { margin-bottom:10px !important; }
.rhat-compact-home-section .box-text,
.rhat-compact-home-section .card-body { padding:12px !important; }
.rhat-compact-home-section p { margin-bottom:8px !important; line-height:1.45 !important; }
.rhat-compact-home-section .icon-box { margin-bottom:8px !important; }
@media (max-width: 549px) {
  .rhat-compact-home-section { padding-top:20px !important; padding-bottom:20px !important; }
  .rhat-compact-home-section h2,
  .rhat-compact-home-section .section-title { font-size:20px !important; margin-bottom:10px !important; }
  .rhat-compact-home-section .box-text,
  .rhat-compact-home-section .card-body { padding:9px !important; }
  .rhat-compact-home-section p { font-size:13px !important; line-height:1.4 !important; margin-bottom:6px !important; }
  .rhat-compact-home-section .col,
  .rhat-compact-home-section .column { padding-bottom:8px !important; }
}


/* V14: mobile bottom bar — no active-page color; notification remains distinct */
@media (max-width: 767px) {
  .rhat-mobile-bottom-bar a.active,
  .rhat-mobile-bottom-bar a.is-active,
  .rhat-mobile-bottom-bar .active,
  .rhat-mobile-bottom-bar .is-active,
  .mobile-bottom-bar a.active,
  .mobile-bottom-bar a.is-active,
  .mobile-bottom-bar .active,
  .mobile-bottom-bar .is-active {
    color: inherit !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  .rhat-mobile-bottom-bar a.active svg,
  .rhat-mobile-bottom-bar a.is-active svg,
  .rhat-mobile-bottom-bar .active svg,
  .rhat-mobile-bottom-bar .is-active svg,
  .mobile-bottom-bar a.active svg,
  .mobile-bottom-bar a.is-active svg,
  .mobile-bottom-bar .active svg,
  .mobile-bottom-bar .is-active svg {
    color: inherit !important;
    fill: currentColor !important;
  }
  /* Keep notification badge/icon state distinct */
  .rhat-mobile-bottom-bar .notification,
  .rhat-mobile-bottom-bar .notification-badge,
  .mobile-bottom-bar .notification,
  .mobile-bottom-bar .notification-badge {
    color: initial !important;
  }
}

