/*
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; }
}



/* V9: Reseller dashboard / profile polish and friendly empty states. */
.rhat-reseller-dashboard{max-width:1100px;margin:22px auto;padding:18px;background:#fff;border-radius:24px;box-shadow:0 12px 40px rgba(22,34,51,.07)}
.rhat-dash-hero{display:flex;align-items:center;gap:18px;padding:24px;border-radius:20px;background:linear-gradient(135deg,#f7f9fc,#eef3f8);border:1px solid #e3e9f0}
.rhat-dash-avatar img{width:84px;height:84px;border-radius:50%;object-fit:cover;display:block;border:3px solid #fff;box-shadow:0 6px 18px rgba(0,0,0,.08)}
.rhat-dash-eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:800;opacity:.55}.rhat-dash-hero h2{margin:5px 0 6px;font-size:25px}.rhat-dash-hero p{margin:0;max-width:760px;color:#667085;font-size:13px;line-height:1.7}
.rhat-dash-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.rhat-dash-stat{padding:17px;border:1px solid #e6eaf0;border-radius:17px;background:#fff}.rhat-dash-stat-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#f4f6f8;margin-bottom:10px;color:#334155}.rhat-dash-icon{width:21px;height:21px}.rhat-dash-stat small{display:block;color:#7a8594;font-size:11px}.rhat-dash-stat strong{display:block;margin-top:4px;font-size:21px;color:#1f2937}
.rhat-dash-section-head{display:flex;align-items:end;justify-content:space-between;margin:23px 2px 10px}.rhat-dash-section-head h3{margin:0;font-size:18px}.rhat-dash-section-head span{font-size:11px;color:#8a94a3}
.rhat-dash-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.rhat-dash-actions a{display:flex;align-items:center;gap:12px;min-height:74px;padding:13px 14px;border:1px solid #e6eaf0;border-radius:17px;background:#fff;text-decoration:none!important;color:#273244;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.rhat-dash-actions a:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(22,34,51,.08);border-color:#ccd5e0}.rhat-dash-action-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:13px;background:#f4f6f8;color:#334155}.rhat-dash-actions strong{display:block;font-size:13px}.rhat-dash-actions small{display:block;margin-top:3px;font-size:10px;color:#8a94a3}.rhat-dash-note{display:flex;gap:12px;align-items:flex-start;margin-top:16px;padding:15px 16px;border-radius:16px;background:#f8fafc;border:1px solid #e8edf3}.rhat-dash-note p{margin:0;color:#647084;font-size:12px;line-height:1.7}.rhat-dash-note strong{color:#354052}.rhat-dash-note-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;background:#fff;color:#475569}.rhn-profile-quick-links{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:18px}.rhn-profile-quick-links a{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 8px;border:1px solid #e4e8ee;border-radius:12px;background:#fafbfc;text-decoration:none!important;color:#3d4b5e;font-size:12px;font-weight:700}.rhn-profile-quick-links a span{font-size:16px;line-height:1}
.rhat-empty-category__icon{display:grid!important;place-items:center}.rhat-empty-category__icon svg{width:30px;height:30px}
@media(max-width:700px){.rhat-reseller-dashboard{margin:12px 7px;padding:10px;border-radius:18px}.rhat-dash-hero{padding:16px;gap:12px;border-radius:16px}.rhat-dash-avatar img{width:62px;height:62px}.rhat-dash-hero h2{font-size:19px}.rhat-dash-hero p{font-size:11px;line-height:1.55}.rhat-dash-stats{grid-template-columns:repeat(2,1fr);gap:8px}.rhat-dash-stat{padding:12px;border-radius:14px}.rhat-dash-stat-icon{width:34px;height:34px;border-radius:10px;margin-bottom:7px}.rhat-dash-stat strong{font-size:17px}.rhat-dash-section-head{margin:17px 2px 8px}.rhat-dash-section-head h3{font-size:16px}.rhat-dash-section-head span{font-size:9px}.rhat-dash-actions{grid-template-columns:repeat(2,1fr);gap:8px}.rhat-dash-actions a{min-height:72px;padding:10px;border-radius:14px;gap:9px}.rhat-dash-action-icon{width:38px;height:38px;flex-basis:38px;border-radius:11px}.rhat-dash-actions strong{font-size:11px}.rhat-dash-actions small{font-size:9px}.rhat-dash-note{padding:11px 12px}.rhat-dash-note p{font-size:10.5px}.rhn-profile-quick-links{grid-template-columns:repeat(2,1fr)} }

/* 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;
  }
}



/* Reseller Hat: mobile header cart/account/balance */
@media (max-width: 849px){
  .header-main .mobile-nav.nav-right{display:flex;align-items:center;justify-content:flex-end;gap:0;}
  .header-main .mobile-nav.nav-right > li{display:flex;align-items:center;}
  .header-main .mobile-nav.nav-right .rhat-mobile-cart-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;line-height:1;}
  .header-main .mobile-nav.nav-right .rhat-mobile-cart-icon svg{width:23px;height:23px;display:block;}
  .header-main .mobile-nav.nav-right .rhat-mobile-cart-count{position:absolute;top:-3px;right:-5px;min-width:15px;height:15px;padding:0 3px;border-radius:999px;font-size:9px;line-height:15px;text-align:center;font-weight:700;background:currentColor;color:inherit;filter:invert(1);}
  .header-main .mobile-nav.nav-right .rhat-mobile-balance-item{margin:0;padding:0;}
  .header-main .mobile-nav.nav-right .rhat-mobile-balance-link{display:flex;align-items:center;height:34px;padding:0 9px;text-decoration:none;white-space:nowrap;}
  .header-main .mobile-nav.nav-right .rhat-mobile-balance-text{font-size:11px;line-height:1;font-weight:700;}
  .header-main .mobile-nav.nav-right .account-item .account-link-mobile{display:flex;align-items:center;justify-content:center;width:34px;height:34px;}
  .header-main .mobile-nav.nav-right .account-item .account-link-mobile svg{width:22px;height:22px;}
  .header-main .mobile-nav.nav-right .header-divider{width:1px;min-width:1px;height:23px;margin:0 5px;background:currentColor;opacity:.28;}
}
@media (max-width:390px){
  .header-main .mobile-nav.nav-right .rhat-mobile-balance-link{padding:0 6px;}
  .header-main .mobile-nav.nav-right .rhat-mobile-balance-text{font-size:10px;}
}

/* Reseller Hat mobile header — final order: Menu → Logo → Search → Balance → Profile → Cart. */
@media(max-width:849px){
  #header .rhat-production-header .rhat-header-actions{display:flex!important;align-items:center!important;gap:3px!important}
  #header .rhat-production-header .rhat-mobile-account-tools{display:flex!important;align-items:center!important;gap:4px!important;height:40px!important;order:2!important;margin-left:0!important}
  #header .rhat-production-header .rhat-mobile-balance-value{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;font-size:10px!important;font-weight:800!important;line-height:1!important;color:#102a43!important;padding:4px 2px!important}
  #header .rhat-production-header .rhat-mobile-account-divider{width:1px!important;height:24px!important;background:rgba(16,42,67,.25)!important;display:block!important;flex:0 0 1px!important}
  #header .rhat-production-header .rhat-mobile-account-link{order:3!important;width:30px!important;height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;color:#102a43!important}
  #header .rhat-production-header .rhat-header-search-trigger{order:1!important}
  #header .rhat-production-header .rhat-header-cart{order:4!important}
  #header .rhat-production-header .rhat-header-cart .header-cart-link{width:30px!important;height:40px!important}
}
@media(max-width:380px){
  #header .rhat-production-header .rhat-header-actions{gap:1px!important}
  #header .rhat-production-header .rhat-mobile-account-tools{gap:2px!important}
  #header .rhat-production-header .rhat-mobile-balance-value{font-size:9px!important}
  #header .rhat-production-header .rhat-header-cart .header-cart-link,#header .rhat-production-header .rhat-header-search-trigger,#header .rhat-production-header .rhat-mobile-account-link{width:28px!important}
}
/* Final mobile header geometry override — prevents logo/action collision and removes the account divider. */
@media(max-width:849px){
  #header .rhat-production-header .rhat-mobile-account-divider{display:none!important}
}
