.error{ color: red!important;}
.seo-tag {display: none; }
/* Floating Widget Container */
.seo-score-floating-widget {
    position: fixed;
    top: 200px;
    right: 20px;
    z-index: 9999; /* Keeps it above your header and page content */
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seo-score-floating-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Label above the circle */
.seo-widget-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-circle-link {
    text-decoration: none;
    display: inline-block;
}

/* Circular Progress Bar */
.score-circle {
    --size: 70px; /* Slightly larger to fit the /100 text */
    --thickness: 6px;
    
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Uses the color variable passed from PHP */
    background:
        radial-gradient(closest-side, #fff calc(100% - var(--thickness)), transparent 0 99.9%, #fff 0),
        conic-gradient(var(--score-color) calc(var(--score) * 1%), #f0f0f0 0);
}

/* Inner Text Formatting */
.score-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #333;
    line-height: 1;
}

.score-total {
    font-size: 10px;
    color: #999;
    font-weight: 600;
    margin-top: 2px;
}
/* Base Header Adjustments - Removed 'position: fixed' so it flows naturally under the announcement bar */
.hr-main-header {
  width: 100%;
  z-index: 1020;
  border-bottom: transparent !important;
  background-color: #000;
  position: relative; /* Removes buggy sticky rules */
}
.th-admin-edit span {
    color: var(--color-1) !important;
    z-index: 9999;
    position: relative;
}
.main_menu.hr-header-menu .fa.fa-pencil {
    color: var(--color-1) !important;
}

/* Sticky top scrolling effect */
.hr-main-header.header-scrolled {
    position: fixed !important;
    top: 0;
    left: 0;
    background-color: #000; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    animation: slideDown 0.3s ease-in-out forwards; /* Smooth entry */
}

/* Fix general dropdown hovers */
.hr-inner-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 200px;
    z-index: 1000;
}
.nav-item:hover > .hr-inner-dropdown {
    display: block;
}

/* NEW MULTI-LEVEL NESTED DROPDOWN */
.nested-dropdown-container {
    min-width: 260px;
    top: 100%;
    left: 0;
    margin-top: 0;
    display: none;
}
.nav-item.dropdown:hover > .nested-dropdown-container {
    display: block;
}
.nested-dropdown-container .dropdown-item {
    font-size: 15px;
    transition: all 0.2s ease-in-out;
}
.nested-dropdown-container .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--color-1, #000) !important;
    padding-left: 25px !important; 
}
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
    min-width: 240px;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
.nested-dropdown-container li:last-child {
    border-bottom: none !important;
}

/* Mobile Off-Canvas Menu Styling */
.hr-mob-menu-pop {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 100vw;
    height: 100vh;
    background-color: #1a1a1a;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    padding: 30px 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}
.hr-main-header .hr-header-menu .nav .nav-item .nav-link:hover {
    color: var(--color-1) !important;
}
.hr-mob-menu-pop.show-menu {
    right: 0 !important;
    display: block !important;
}

/* Cart Badge Styling */
.cart-count {
    position: absolute;
    top: 0px;
    right: -5px;
    background: var(--color-1);
    color: #fff;
    font-size: 10px;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.hr-main-header .hr-header-menu .nav .nav-item, .hr-main-header .hr-header-menu .nav .nav-item .nav-link {
    font-family: var(--font-03);
    color: #fff;
    font-size: clamp(15px, 0.75vw + 4.5px, 22px);
    padding: 14px 3px;
}
.user-name-btn {
    padding: 5px;
}
.hr-header-cart i {
    color: #fff;
}
.hr-main-header .hr-brand-link img {
    width: auto;
    object-fit: contain;
    padding-right: 30px;
    max-width: 300px;
}
.main_menu.hr-header-menu .nav {
    column-gap: 5px;
}
.hr-mob-menu .hr-menu-btn{
    color: #fff;
    border: 1px solid #fff;
}
.dropdown-item {
    font-family: var(--font-03);
}
.dropdown-menu span{
    font-size: 12px;
}

/* Announcement Bar Adjustments - Removed .hr-header prefix */
.hr-announcement-warp {
    padding: 9px 0px;
    transition: all 0.3s ease-in-out;
    background: #cda85f;
}
.hr-announcement-warp .hr-announcement-bar {
    padding-bottom: 0.25rem;
    padding-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hr-announcement-right .nav li .office-address-inner {
    column-gap: 5px;
    display: flex;
    align-items: center;
}
.hr-announcement-bar .nav .nav-item .nav-link {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: var(--weight-400);
    padding: 0;
    margin-right: 0;
    margin-left: 1rem;
    font-size: 18px;
    font-family: var(--font-03);
}
.hr-announcement-bar .nav .nav-item .nav-link.hr-phone {
    font-weight: 400;
    margin-right: 1rem !important;
    margin-left: 1.5rem !important;
}
.hr-announcement-right .nav li .office-address-inner .office-address-content .office-location {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: var(--weight-400);
    padding: 0;
    font-size: 18px;
    font-family: var(--font-03);
}
.hr-announcement-bar .nav .nav-item .nav-link .hr-announcement-icon {
    margin-right: 0.5rem;
}
.hr-announcement-bar .nav .nav-item .nav-link .hr-announcement-icon span {
    font-size: 14px;
    color: #000;
}
.hr-announcement-bar .nav .nav-item:last-child .nav-link {
    margin-right: 0;
}
.hr-announcement-bar .nav .nav-item .nav-link.email {
    text-transform: var(--lower);
    font-weight: 400;
}
.hr-announcement-left .nav .nav-item {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: var(--weight-400);
    padding: 0;
    margin-right: 1.5rem;
    font-size: 15px;
    column-gap: 7px;
    font-family: var(--font-02);
}
.hr-announcement-left .nav .nav-item .social-link {
    color: #fff !important;
    text-decoration: none;
    font-weight: 700 !important;
    background: #000;
    width: 27px;
    height: 27px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}
@media(min-width: 1517px){
    .hr-main-header .hr-brand-link img {
        max-width: 270px;
    }
}
@media(max-width:1400px){
  .hr-main-header .hr-header-menu .nav .nav-item, .hr-main-header .hr-header-menu .nav .nav-item .nav-link {
  font-size: 15px;
  padding: 14px 3px;
  }
  .hr-main-header .hr-brand-link img {
    max-height: 50px;
  }
}
@media(max-width:1200px){
  .hr-header-right {
    display: none;
  }
  .hr-mob-menu {
    display: block !important;
  }
}
@media only screen and (min-width: 992px) {
    .nested-dropdown-container::before,
    .hr-inner-dropdown::before {
        content: "";
        position: absolute;
        top: -35px;
        left: 0;
        width: 100%;
        height: 35px;
        background: transparent;
        z-index: 999;
    }
    .dropdown-submenu::after {
        content: "";
        position: absolute;
        top: 0;
        right: -10px;
        width: 10px;
        height: 100%;
        background: transparent;
    }
}
@media (max-width: 992px) {
    .hr-announcement-right .nav li .office-address-inner {
        display: none;
    }
}
@media screen and (max-width: 768px) {
  .hr-announcement-warp .hr-announcement-bar {
      justify-content: center;
  }
  .hr-announcement-warp .hr-announcement-bar .hr-announcement-left {
      display: none;
  }
}
@media(max-width:576px){
  .hr-main-header .hr-brand-link img {
    max-height: 70px;
  }
  .hr-announcement-warp {
      padding: 5px 0px;
  }
  .hr-announcement-bar .nav .nav-item .nav-link {
      font-size: 12px;
      margin: 0 !important;
      color: #fff;
  }
}
@media(max-width:390px){
  .hr-main-header .hr-brand-link img {
    max-height: 60px;
  }
}

/* ==========================================================================
   FIX BLOCK – SINGLE-LINE RESPONSIVE HEADER (logged-in / logged-out safe)
   ========================================================================== */

/* 1) The header row itself must never wrap */
.hr-inner-header { flex-wrap: nowrap !important; }
.hr-header-left  { flex: 0 0 auto; }              /* logo never shrinks   */
.hr-header-actions { flex: 0 0 auto; }            /* cart+auth never shrink */
.hr-header-right { min-width: 0; }                /* only the menu absorbs width */

/* 2) Desktop menu: NO wrapping (Bootstrap .nav wraps by default = your bug) */
.hr-header-menu > ul.nav { flex-wrap: nowrap !important; }
.hr-header-menu > ul.nav > li > a.nav-link { white-space: nowrap; }

/* 3) Auth area: "Hi Name" + Logout stay on ONE line, compact pill sizes */
.hr-auth-inline { align-items: center; flex-wrap: nowrap; white-space: nowrap; gap: 8px; }
@media (min-width: 992px) {
    .hr-auth-inline { display: flex !important; }
}
.hr-auth-inline .user-name-btn {
    display: inline-block;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px 8px;
    font-size: 15px;
}
.hr-auth-inline .btn-sale {
    padding: 8px 16px;
    font-size: 13px;
    letter-spacing: .5px;
    white-space: nowrap;
}

/* 4) "MORE" overflow dropdown (auto-created by JS when space runs out) */
li.menu-more > a.nav-link { cursor: pointer; }
.more-list { min-width: 220px; }
.more-list > li { position: relative; border-bottom: 1px solid #eee; }
.more-list > li:last-child { border-bottom: 0; }
.more-list > li > a.nav-link {
    color: #222 !important;
    padding: 8px 16px !important;
    font-size: 15px;
    display: block;
    width: 100%;
    white-space: nowrap;
}
.more-list > li > a.nav-link:hover {
    color: var(--color-1, #cda85f) !important;
    background: #f8f9fa;
}
/* sub-menus of items inside MORE fly out to the RIGHT */
.more-list > li > .hr-inner-dropdown,
.more-list > li > .nested-dropdown-container {
    top: 0 !important;
    left: 100% !important;
    margin-top: 0 !important;
    display: none;
}
.more-list > li:hover > .hr-inner-dropdown,
.more-list > li:hover > .nested-dropdown-container { display: block; }

/* ==========================================================================
   5) RESPONSIVE TYPE SCALE
      < 1300px  : unchanged (hamburger menu / compact sizes you already like)
      1300-1599 : compact (menu + logged-in auth must fit one line)
      1600+     : type grows step by step with the screen size
   ========================================================================== */

/* --- 1300 – 1399 : compact --- */
@media (min-width: 1300px) and (max-width: 1399.98px) {
    .hr-main-header .hr-header-menu .nav .nav-item,
    .hr-main-header .hr-header-menu .nav .nav-item .nav-link {
        font-size: 14px;
        padding: 14px 4px;
    }
    .main_menu.hr-header-menu .nav { column-gap: 3px; }
    .hr-main-header .hr-brand-link img { max-width: 200px; }
    .hr-auth-inline .user-name-btn { font-size: 14px; max-width: 90px; }
    .hr-auth-inline .btn-sale { font-size: 13px; padding: 8px 14px; }
}

/* --- 1400 – 1599 : current "ok" size --- */
@media (min-width: 1400px) and (max-width: 1599.98px) {
    .hr-main-header .hr-header-menu .nav .nav-item,
    .hr-main-header .hr-header-menu .nav .nav-item .nav-link {
        font-size: 15px;
        padding: 14px 5px;
    }
    .main_menu.hr-header-menu .nav { column-gap: 6px; }
    .hr-main-header .hr-brand-link img { max-width: 220px; }
    .hr-auth-inline .user-name-btn { font-size: 15px; max-width: 100px; }
    .hr-auth-inline .btn-sale { font-size: 13px; padding: 8px 16px; }
}

/* --- 1600 – 1799 : step up --- */
@media (min-width: 1600px) and (max-width: 1799.98px) {
    .hr-main-header .hr-header-menu .nav .nav-item,
    .hr-main-header .hr-header-menu .nav .nav-item .nav-link {
        font-size: 16px;
        padding: 15px 5px;
    }
    .main_menu.hr-header-menu .nav { column-gap: 8px; }
    .hr-main-header .hr-brand-link img { max-width: 230px; }
    .hr-auth-inline .user-name-btn { font-size: 16px; max-width: 110px; }
    .hr-auth-inline .btn-sale { font-size: 14px; padding: 9px 18px; }
    .hr-announcement-bar .nav .nav-item .nav-link,
    .hr-announcement-right .nav li .office-address-inner .office-address-content .office-location {
        font-size: 19px;
    }
    .hr-announcement-left .nav .nav-item .social-link { width: 29px; height: 29px; font-size: 15px; }
    .hr-header-cart i { font-size: 19px; }
    .cart-count { width: 19px; height: 19px; font-size: 10px; }
}

/* --- 1800 – 1919 : step up --- */
@media (min-width: 1800px) and (max-width: 1919.98px) {
    .hr-main-header .hr-header-menu .nav .nav-item,
    .hr-main-header .hr-header-menu .nav .nav-item .nav-link {
        font-size: 17px;
        padding: 16px 6px;
    }
    .main_menu.hr-header-menu .nav { column-gap: 10px; }
    .hr-main-header .hr-brand-link img { max-width: 240px; }
    .hr-auth-inline .user-name-btn { font-size: 17px; max-width: 120px; }
    .hr-auth-inline .btn-sale { font-size: 15px; padding: 9px 20px; }
    .hr-announcement-bar .nav .nav-item .nav-link,
    .hr-announcement-right .nav li .office-address-inner .office-address-content .office-location {
        font-size: 19px;
    }
    .hr-announcement-left .nav .nav-item .social-link { width: 30px; height: 30px; font-size: 15px; }
    .hr-header-cart i { font-size: 20px; }
    .cart-count { width: 20px; height: 20px; font-size: 11px; }
    .nested-dropdown-container .dropdown-item,
    .hr-inner-dropdown .nav-link { font-size: 16px; }
}

/* --- 1920 – 2199 (Full HD) : BIG --- */
@media (min-width: 1920px) and (max-width: 2199.98px) {
    .hr-main-header .hr-header-menu .nav .nav-item,
    .hr-main-header .hr-header-menu .nav .nav-item .nav-link {
        font-size: 19px;
        padding: 18px 7px;
    }
    .main_menu.hr-header-menu .nav { column-gap: 12px; }
    .hr-main-header .hr-brand-link img { max-width: 260px; }
    .hr-auth-inline .user-name-btn { font-size: 18px; max-width: 130px; }
    .hr-auth-inline .btn-sale { font-size: 16px; padding: 10px 24px; }
    .hr-announcement-bar .nav .nav-item .nav-link,
    .hr-announcement-right .nav li .office-address-inner .office-address-content .office-location {
        font-size: 20px;
    }
    .hr-announcement-left .nav .nav-item .social-link { width: 32px; height: 32px; font-size: 16px; }
    .hr-header-cart i { font-size: 22px; }
    .cart-count { width: 21px; height: 21px; font-size: 11px; }
    .nested-dropdown-container .dropdown-item,
    .hr-inner-dropdown .nav-link { font-size: 16px; }
}

/* --- 2200+ (2K / ultra-wide) : BIGGEST --- */
@media (min-width: 2200px) {
    .hr-main-header .hr-header-menu .nav .nav-item,
    .hr-main-header .hr-header-menu .nav .nav-item .nav-link {
        font-size: 21px;
        padding: 20px 8px;
    }
    .main_menu.hr-header-menu .nav { column-gap: 14px; }
    .hr-main-header .hr-brand-link img { max-width: 280px; }
    .hr-auth-inline .user-name-btn { font-size: 20px; max-width: 150px; }
    .hr-auth-inline .btn-sale { font-size: 17px; padding: 11px 26px; }
    .hr-announcement-bar .nav .nav-item .nav-link,
    .hr-announcement-right .nav li .office-address-inner .office-address-content .office-location {
        font-size: 22px;
    }
    .hr-announcement-left .nav .nav-item .social-link { width: 34px; height: 34px; font-size: 17px; }
    .hr-header-cart i { font-size: 24px; }
    .cart-count { width: 22px; height: 22px; font-size: 12px; }
    .nested-dropdown-container .dropdown-item,
    .hr-inner-dropdown .nav-link { font-size: 17px; }
}