/* ============================================================
   AI Wholesale - Custom Frontend Styles
   ============================================================ */

body, .main, p, h1, h2, h3, h4, h5, h6, a, span, li, td, th, input, button, select, textarea {
    font-family: 'Open Sans', Arial, sans-serif;
}

/* ---- Product Grid Layout ---- */
/* 4-col grid — home page only */
.jly-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}
@media (max-width: 1199px) { .jly-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .jly-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .jly-product-grid { grid-template-columns: 1fr; } }

/* 3-col grid — category / all-products pages */
.jly-product-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
@media (max-width: 991px) { .jly-product-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .jly-product-grid-3 { grid-template-columns: 1fr; } }

/* ---- Product Card ---- */
.jly-card {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #eee;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    overflow: hidden;
    position: relative;
    transition: box-shadow .25s, transform .25s, border-color .25s;
    display: flex;
    flex-direction: column;
}
.jly-card:hover {
    box-shadow: 0 8px 28px rgba(255,96,0,.15);
    transform: translateY(-3px);
    border-color: #ff6000;
}

/* ---- Badge ---- */
.jly-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.jly-badge-new { background: #ff6b35; color: #fff; }
.jly-badge-hot { background: #ff6b35; color: #fff; top: 40px; }

/* ---- Wishlist Button ---- */
.jly-wish-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    color: #aaa;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.jly-wish-btn:hover, .jly-wish-btn.active {
    background: #ff6000;
    border-color: #ff6000;
    color: #fff;
}

/* ---- Product Image ---- */
.jly-img-wrap {
    display: block;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
}
.jly-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.jly-card:hover .jly-img { transform: scale(1.05); }

/* ---- Card Info ---- */
.jly-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.jly-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}
.jly-name a { color: #222; text-decoration: none; }
.jly-name a:hover { color: #ff6000; }

/* ---- Size line ---- */
.jly-size {
    font-size: 12px;
    color: #777;
    margin: 0 0 8px;
}

/* ---- Stock Badge ---- */
.jly-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    width: fit-content;
}
.jly-stock.in  { background: #00b67a; color: #fff; }
.jly-stock.out { background: #e8003d; color: #fff; }

/* ---- Price ---- */
.jly-price {
    font-size: 18px;
    font-weight: 800;
    color: #ff6000;
    margin-bottom: 12px;
    letter-spacing: -.3px;
}

/* ---- Buttons base ---- */
.jly-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    border: 2px solid transparent;
    margin-bottom: 8px;
    letter-spacing: .2px;
    box-sizing: border-box;
}

/* View Details — filled pink */
.jly-btn-view {
    background: #ff6000;
    border-color: #ff6000;
    color: #fff !important;
}
.jly-btn-view:hover {
    background: #cc4d00;
    border-color: #cc4d00;
    color: #fff !important;
    text-decoration: none;
}

/* Quick Add — outline pink */
.jly-btn-quick {
    background: #fff;
    border-color: #ff6000;
    color: #ff6000;
    justify-content: flex-start;
    position: relative;
}
.jly-btn-quick:hover { background: #fff3ee; }

/* Out of Stock — disabled grey outline */
.jly-btn-oos {
    background: #fff;
    border: 2px solid #ddd;
    color: #bbb;
    cursor: not-allowed;
    opacity: .8;
}

/* Chevron arrow */
.jly-chevron {
    margin-left: auto;
    font-size: 11px;
    transition: transform .2s;
}

/* ---- Variants Dropdown ---- */
.jly-variants {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: -2px;
    margin-bottom: 4px;
    animation: jlySlideDown .2s ease;
}
.jly-variants.open { display: flex; }

@keyframes jlySlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Variant row */
.jly-variant-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 14px;
    border-radius: 25px;
    border: 1.5px solid #ff6000;
    background: #fff;
    cursor: pointer;
    transition: all .18s;
    font-size: 13px;
    color: #333;
    text-align: left;
    box-sizing: border-box;
}
.jly-variant-row:not([disabled]):hover {
    background: #fff3ee;
    border-color: #cc4d00;
}
.jly-variant-row.variant-out,
.jly-variant-row[disabled] {
    border-color: #ddd;
    color: #aaa;
    cursor: not-allowed;
    background: #fafafa;
}
.jly-variant-row.variant-out .jly-variant-icon,
.jly-variant-row[disabled] .jly-variant-icon { color: #ccc; }

.jly-variant-icon { color: #ff6000; font-size: 13px; flex-shrink: 0; }
.jly-variant-label { flex: 1; text-align: left; font-weight: 600; }
.jly-variant-price { font-weight: 800; color: #333; flex-shrink: 0; }

/* "Out" tag on disabled variant */
.jly-out-tag {
    font-size: 10px;
    font-weight: 700;
    background: #e8003d;
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* ---- Toast Notification ---- */
.jly-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s ease;
    pointer-events: none;
}
.jly-toast.show { opacity: 1; transform: translateY(0); }
.jly-toast-success { background: #28a745; color: #fff; }
.jly-toast-info    { background: #17a2b8; color: #fff; }
.jly-toast-error   { background: #dc3545; color: #fff; }

/* ---- Shop Toolbar ---- */
.shop-toolbar { margin-bottom: 20px; }
.shop-toolbar .input-group .form-control { border-radius: 25px 0 0 25px; height: 38px; }
.shop-toolbar .input-group .btn { border-radius: 0 25px 25px 0; height: 38px; background: #ff6000; border-color: #ff6000; }

/* ---- Sidebar ---- */
.shop-sidebar .panel-body ul li.active > a { color: #ff6000; font-weight: 700; }
.shop-sidebar .panel-body ul li a:hover { color: #ff6000; }

/* ---- Pagination ---- */
.pagination > li > a { color: #ff6000; border-radius: 4px !important; margin: 0 2px; }
.pagination > .active > a,
.pagination > .active > a:hover { background: #ff6000; border-color: #ff6000; color: #fff; }

/* ---- Header cart count ---- */
.cart-qty { font-weight: 700; }

/* ============================================================
   STICKY HEADER
   ============================================================ */
#header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    width: 100%;
}
#header .header-body {
    position: relative !important;
    width: 100% !important;
    min-height: unset !important;
    padding: 0 !important;
    border-top: 3px solid #ff6000 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    background: #fff !important;
}
html.sticky-header-active #header .header-body,
html.sticky-header-enabled #header .header-body {
    position: relative !important;
    top: auto !important;
}

/* Contact Us — pushed to far right */
#mainNav li.nav-contact-us { margin-left: auto !important; }

/* ============================================================
   HEADER LAYOUT
   ============================================================ */
#header .container,
.header-nav .container {
    width: 100% !important;
    max-width: 1400px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}
.header-body  { padding: 0 !important; }
.header-top   { padding: 6px 0 !important; margin-top: 0 !important; }
.header-container.header-nav { margin-top: 0 !important; padding-top: 0 !important; }
.header-container:not(.header-nav) { padding: 4px 0 !important; min-height: unset !important; }

#mainNav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}
#mainNav > li { flex-shrink: 0; }
#mainNav > li > a {
    font-size: 12.5px !important;
    padding: 10px 10px !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    display: block;
}
#mainNav > li.dropdown > a {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
}
#mainNav .dropdown-menu { white-space: normal; min-width: 220px; }
.header-nav-main nav > ul.nav-pills > li > a { border-radius: 0 !important; }

.welcome-msg {
    font-size: 11px !important;
    margin: 14px !important;
    padding: 2px 0 !important;
    line-height: 1.2 !important;
}
.top-menu-area { line-height: 1 !important; }
.top-menu > li > a { font-size: 12px !important; padding: 3px 7px !important; }

@media (min-width: 992px) and (max-width: 1199px) {
    #mainNav > li > a { font-size: 11.5px !important; padding: 10px 8px !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .header-nav-main nav { overflow-x: auto; overflow-y: visible; }
    .header-nav-main nav::-webkit-scrollbar { height: 3px; }
    .header-nav-main nav::-webkit-scrollbar-thumb { background: #ff6000; border-radius: 3px; }
    #mainNav > li > a { font-size: 11px !important; padding: 10px 7px !important; }
}

/* ---- Product Detail Variant Selector ---- */
.variant-selector .jly-variant-row { margin-bottom: 6px; }
.variant-selector .jly-variant-row:hover { background: #fff3ee; }

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .jly-toast { bottom: 15px; right: 15px; left: 15px; }
    .shop-toolbar .input-group { width: 100% !important; }
    .shop-toolbar .pull-right { display: none; }
}

/* ---- Pagination toolbar ---- */
.toolbar-bottom { margin-top: 24px; }
.toolbar-bottom .toolbar { text-align: center; }
.toolbar-bottom .sorter { display: inline-block; }
.toolbar-bottom .pagination { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.toolbar-bottom .pagination > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    border: 2px solid #ff6000;
    background: #fff;
    color: #ff6000;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
}
.toolbar-bottom .pagination > li > a:hover { background: #ff6000; color: #fff; }
.toolbar-bottom .pagination > li.active > a {
    background: #ff6000;
    border-color: #ff6000;
    color: #fff;
    pointer-events: none;
}

/* Homepage bar — ensure it clears the revolution slider */
.homepage-bar { position: relative; z-index: 10; clear: both; }

/* Sidebar category expand/collapse */
.sidebar-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-cat-row a { flex: 1; }
.sidebar-cat-toggle {
    cursor: pointer;
    padding: 2px 6px;
    color: #aaa;
    font-size: 11px;
    flex-shrink: 0;
    transition: color .2s;
}
.sidebar-cat-toggle:hover,
.sidebar-cat-toggle.open { color: #ff6000; }

/* ============================================================
   Product Detail Page
   ============================================================ */
.pd-img-main-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f8f8f8;
    margin-bottom: 10px;
}
.pd-main-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}
.pd-wish-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}
.pd-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.pd-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #eee;
    cursor: pointer;
    transition: border-color .2s;
}
.pd-thumb.active,
.pd-thumb:hover { border-color: #ff6000; }

.pd-title {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    margin: 0 0 6px;
    line-height: 1.3;
}
.pd-size {
    font-size: 13px;
    color: #777;
    margin: 0 0 16px;
}

/* Sections */
.pd-section { margin-bottom: 18px; }
.pd-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}
.pd-desc-text {
    font-size: 13px;
    color: #555;
    margin: 0;
}

/* Features list */
.pd-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pd-features li {
    font-size: 13px;
    color: #444;
    padding: 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.pd-feat-dot {
    color: #ff6000;
    font-size: 8px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Purchase box */
.pd-purchase-box {
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 14px;
    padding: 18px;
}
.pd-select-label {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin: 0 0 12px;
}
.pd-select-label i { color: #ff6000; margin-right: 5px; }

/* Variant options */
.pd-variant-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pd-variant-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #eee;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.pd-variant-option:hover { border-color: #ff6000; background: #fff8f5; }
.pd-variant-option.selected { border-color: #ff6000; background: #fff3ee; }
.pd-var-left { display: flex; flex-direction: column; gap: 3px; }
.pd-var-name { font-size: 14px; font-weight: 700; color: #222; }
.pd-var-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    background: #ff6000;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    width: fit-content;
}
.pd-var-per { font-size: 11px; color: #888; }
.pd-var-price { font-size: 16px; font-weight: 800; color: #222; }

/* Single price (no variants) */
.pd-single-price {
    font-size: 24px;
    font-weight: 800;
    color: #ff6000;
    margin-bottom: 14px;
}

/* Quantity row */
.pd-qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.pd-qty-label { font-size: 13px; font-weight: 700; color: #444; flex-shrink: 0; }
.pd-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
}
.pd-qty-btn {
    background: #fff;
    border: none;
    width: 34px;
    height: 34px;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    transition: background .2s;
    line-height: 1;
}
.pd-qty-btn:hover { background: #f5f5f5; }
#pd-qty-val {
    min-width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    padding: 0 4px;
}
.pd-qty-info { font-size: 12px; color: #888; }

/* Total row */
.pd-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}
.pd-total-price { font-size: 20px; font-weight: 800; color: #ff6000; }

/* Add to Cart button */
.pd-add-cart-btn {
    width: 100%;
    padding: 13px;
    background: #ff6000;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pd-add-cart-btn:hover { background: #cc4d00; }

/* Variant top row: name + badge inline */
.pd-var-top { display: flex; align-items: center; gap: 8px; }

/* Product detail — Out of Stock button */
.pd-add-cart-oos {
    background: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
}
.pd-add-cart-oos:hover { background: #e0e0e0 !important; }

/* ===== Product List Pagination ===== */
.jly-pg-wrap {
    display: block;
    width: 100%;
    text-align: center;
    margin: 30px 0 15px;
    clear: both;
    font-size: 0;
}
.jly-pg-btn {
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    padding: 0 11px;
    margin: 0 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #555 !important;
    text-decoration: none !important;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    box-sizing: border-box;
}
.jly-pg-btn:hover {
    background: #e8e8e8 !important;
    border-color: #aaa;
    color: #333 !important;
    text-decoration: none !important;
}
.jly-pg-btn.jly-pg-active {
    background: #888 !important;
    border-color: #888 !important;
    color: #fff !important;
    cursor: default;
    pointer-events: none;
}
.jly-pg-btn.jly-pg-dis {
    background: #f5f5f5 !important;
    border-color: #ddd !important;
    color: #bbb !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== GLOBAL ORANGE THEME OVERRIDES ===== */

/* --- Nav menu: hover & active --- */
#header .header-nav-main nav > ul > li > a:hover,
#header .header-nav-main nav > ul > li:hover > a,
#header .header-nav-main nav > ul > li.open > a,
#header .header-nav-main nav > ul > li.dropdown.open > a,
#header .header-nav-main nav > ul > li.dropdown:hover > a {
    color: #ff6000 !important;
    background: transparent !important;
}
#header .header-nav-main nav > ul > li.active > a,
#header .header-nav-main nav > ul.nav-pills > li.active > a,
#header .header-nav-main nav > ul.nav-pills > li.active > a:hover,
#header .header-nav-main nav > ul.nav-pills > li.active > a:focus {
    background: #ff6000 !important;
    border-color: #ff6000 !important;
    color: #fff !important;
}

/* --- Dropdown sub-menu links hover --- */
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a:hover,
#header .header-nav-main nav > ul > li.dropdown-mega .dropdown-mega-sub-nav > li:hover > a,
#header .header-nav-main nav > ul > li.dropdown-mega .dropdown-mega-sub-nav > li > a:hover {
    color: #ff6000 !important;
}

/* --- Cart icon color --- */
#header .cart-dropdown .cart-dropdown-icon i,
#header .cart-dropdown .cart-dropdown-icon .minicart-icon,
#header .cart-dropdown .cart-dropdown-icon .minicart-icon:before {
    color: #ff6000 !important;
}
#header .cart-dropdown .cart-dropdown-icon:hover i,
#header .cart-dropdown .cart-dropdown-icon:hover .minicart-icon:before {
    color: #cc4d00 !important;
}
#header .cart-dropdown .cart-dropdown-icon .cart-qty {
    /*color: #ff6000 !important;*/
}

/* --- Bootstrap buttons: unify all to orange --- */
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger {
    background-color: #ff6000 !important;
    border-color: #ff6000 !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-success:hover, .btn-success:focus, .btn-success:active,
.btn-info:hover,    .btn-info:focus,    .btn-info:active,
.btn-warning:hover, .btn-warning:focus, .btn-warning:active,
.btn-danger:hover,  .btn-danger:focus,  .btn-danger:active {
    background-color: #cc4d00 !important;
    border-color: #cc4d00 !important;
    color: #fff !important;
}

/* --- Search button --- */
.shop-toolbar .input-group .btn,
.shop-toolbar .input-group .btn:hover {
    background: #ff6000 !important;
    border-color: #ff6000 !important;
}

/* --- Top menu links hover --- */
#header .header-top .top-menu a:hover,
#header .header-nav-top .nav > li > a:hover {
    color: #ff6000 !important;
}

/* --- Mobile nav active/hover --- */
.mobile-side-menu li a:hover {
    color: #ff6000 !important;
}

/* ===== NAV ARROW FIX & INTERACTIVE DROPDOWN ===== */

/* --- Fix: hide theme's pseudo-element arrow, use our own icon --- */
#header .header-nav-main nav > ul > li > a.dropdown-toggle:after { display: none !important; }
#header .header-nav-main nav > ul > li > a.dropdown-toggle { padding-right: 10px !important; }

/* --- Arrow icon inline with text --- */
.nav-arrow {
    font-size: 10px;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.25s ease;
    display: inline-block;
}
#header .header-nav-main nav > ul > li:hover .nav-arrow,
#header .header-nav-main nav > ul > li.open .nav-arrow {
    transform: rotate(180deg);
    color: #ff6000;
}
#header .header-nav-main nav > ul > li.active .nav-arrow { color: #fff; }

/* --- Dropdown menu: modern card style --- */
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu,
#header .header-nav-main nav > ul > li.dropdown-mega-small .dropdown-menu {
    border-top: 3px solid #ff6000 !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    padding: 8px 0 !important;
    min-width: 220px;
    background: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
#header .header-nav-main nav > ul > li.dropdown:hover .dropdown-menu,
#header .header-nav-main nav > ul > li.dropdown.open .dropdown-menu {
    opacity: 1 !important;
    transform: translateY(0) !important;
    top: auto !important;
}

/* --- Mega dropdown content area --- */
#header .header-nav-main nav > ul > li.dropdown-mega-small > .dropdown-menu {
    padding: 0 !important;
}
.dropdown-mega-content { padding: 16px 20px !important; }

/* --- Sub-nav items: interactive pill style --- */
#header .header-nav-main nav > ul > li.dropdown-mega .dropdown-mega-sub-nav { padding: 0; margin: 0; list-style: none; }
#header .header-nav-main nav > ul > li.dropdown-mega .dropdown-mega-sub-nav > li { margin-bottom: 2px; }
#header .header-nav-main nav > ul > li.dropdown-mega .dropdown-mega-sub-nav > li > a {
    display: flex !important;
    align-items: center;
    padding: 7px 12px !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    color: #444 !important;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
    border-left: 3px solid transparent;
    margin: 0 !important;
}
#header .header-nav-main nav > ul > li.dropdown-mega .dropdown-mega-sub-nav > li > a:before {
    content: '\f105';
    font-family: FontAwesome;
    font-size: 11px;
    margin-right: 7px;
    color: #ccc;
    transition: color 0.15s;
    flex-shrink: 0;
}
#header .header-nav-main nav > ul > li.dropdown-mega .dropdown-mega-sub-nav > li:hover > a,
#header .header-nav-main nav > ul > li.dropdown-mega .dropdown-mega-sub-nav > li > a:hover {
    background: #fff5f0 !important;
    color: #ff6000 !important;
    padding-left: 16px !important;
    border-left-color: #ff6000 !important;
}
#header .header-nav-main nav > ul > li.dropdown-mega .dropdown-mega-sub-nav > li:hover > a:before,
#header .header-nav-main nav > ul > li.dropdown-mega .dropdown-mega-sub-nav > li > a:hover:before {
    color: #ff6000;
}

/* --- Mega dropdown: category header label --- */
.nav-cat-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ff6000;
    padding: 10px 12px 6px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-cat-header a {
    color: #ff6000 !important;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}
.nav-cat-header a:hover { text-decoration: underline !important; }

/* --- Active nav item arrow stays white --- */
#header .header-nav-main nav > ul.nav-pills > li.active > a .nav-arrow { color: #fff !important; }


/* ============================================================
   INTERACTIVE HEADER ENHANCEMENTS
   ============================================================ */

/* Top bar: subtle gradient background */
#header .header-top {
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border-bottom: 2px solid #ff6000;
}

/* Logo: subtle scale on hover */
.header-logo a {
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.header-logo a:hover { transform: scale(1.04); opacity: 0.9; }

/* Welcome message: pill style */
.welcome-msg {
    background: rgba(255,96,0,0.10);
    border: 1px solid rgba(255,96,0,0.25);
    border-radius: 20px;
    padding: 4px 14px !important;
    margin: 10px 14px !important;
    font-size: 11px !important;
    color: #fff !important;
    letter-spacing: 0.3px;
    line-height: 1.4 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.welcome-msg a { color: #ff6000 !important; font-weight: 700; transition: color 0.2s; }
.welcome-msg a:hover { color: #ffaa77 !important; }
/* Wholesale button inside welcome-msg — always visible as solid pill */
.welcome-msg a.welcome-wholesale-btn {
    background: #ff6000 !important;
    color: #fff !important;
    padding: 3px 12px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 11px;
    transition: background 0.2s;
}
.welcome-msg a.welcome-wholesale-btn:hover {
    background: #cc4d00 !important;
    color: #fff !important;
}

/* Top menu links: animated underline */
#header .header-top .top-menu > li > a {
    position: relative;
    color: #ccc !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
    transition: color 0.2s;
}
#header .header-top .top-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 1px;
    background: #ff6000;
    transition: width 0.25s ease, left 0.25s ease;
}
#header .header-top .top-menu > li > a:hover { color: #ff6000 !important; }
#header .header-top .top-menu > li > a:hover::after { width: 100%; left: 0; }

/* Phone number in top menu: icon + text highlight */
#header .header-top .top-menu > li > i.fa-phone { color: #ff6000; margin-right: 4px; }
#header .header-top .top-menu > li > span { color: #ccc; font-size: 12px; }

/* Cart icon: bounce + badge glow */
#header .cart-dropdown .cart-dropdown-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255,96,0,0.08);
    border: 1px solid rgba(255,96,0,0.2);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    color: #ff6000 !important;
}
#header .cart-dropdown .cart-dropdown-icon:hover {
    background: #ff6000;
    border-color: #ff6000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,96,0,0.3);
}
#header .cart-dropdown .cart-dropdown-icon:hover i,
#header .cart-dropdown .cart-dropdown-icon:hover .minicart-icon:before,
#header .cart-dropdown .cart-dropdown-icon:hover .cart-text,
#header .cart-dropdown .cart-dropdown-icon:hover .cart-qty { color: #fff !important; }

.cart-qty {
    background: #ff6000;
    color: #fff !important;
    border-radius: 50%;
    width: 18px; height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    transition: background 0.2s;
}
#header .cart-dropdown .cart-dropdown-icon:hover .cart-qty { background: #fff; color: #ff6000 !important; }

/* Nav bar: bottom accent line on hover */
#header .header-nav-main nav > ul > li > a {
    position: relative;
    transition: color 0.2s, background 0.2s;
}
#header .header-nav-main nav > ul > li > a::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: #ff6000;
    transition: width 0.25s ease, left 0.25s ease;
    border-radius: 2px;
}
#header .header-nav-main nav > ul > li:not(.active):hover > a::before { width: 80%; left: 10%; }
#header .header-nav-main nav > ul.nav-pills > li.active > a::before { display: none; }

/* Mobile menu toggle button — only visible on mobile */
@media (min-width: 992px) {
    .mmenu-toggle-btn { display: none !important; }
}
@media (max-width: 991px) {
    .mmenu-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px; height: 36px;
        border-radius: 8px;
        background: rgba(255,96,0,0.1);
        border: 1px solid rgba(255,96,0,0.25);
        color: #ff6000 !important;
        transition: background 0.2s, transform 0.2s;
    }
    .mmenu-toggle-btn:hover {
        background: #ff6000;
        color: #fff !important;
        transform: rotate(90deg);
    }
}

/* Mobile nav: slide-in feel */
.mobile-nav { transition: transform 0.3s ease; }
.mobile-side-menu li a {
    transition: color 0.2s, padding-left 0.2s;
    border-left: 3px solid transparent;
}
.mobile-side-menu li a:hover {
    color: #ff6000 !important;
    padding-left: 20px;
    border-left-color: #ff6000;
}


/* ============================================================
   INTERACTIVE FOOTER ENHANCEMENTS
   ============================================================ */

/* Footer ribbon: animated pulse */
#footer .footer-ribbon {
    background: #ff6000;
    transition: background 0.3s;
}
#footer .footer-ribbon:hover { background: #cc4d00; }
#footer .footer-ribbon span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Footer headings: accent underline */
#footer h4 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 18px;
}
#footer h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px; height: 2px;
    background: #ff6000;
    border-radius: 2px;
    transition: width 0.3s ease;
}
#footer h4:hover::after { width: 70px; }

/* Footer links: animated arrow slide */
#footer .links li,
#footer .features li {
    transition: padding-left 0.2s;
}
#footer .links li:hover,
#footer .features li:hover { padding-left: 4px; }

#footer .links li a,
#footer .features li a {
    color: #ccc !important;
    font-size: 13px;
    transition: color 0.2s;
    text-decoration: none;
}
#footer .links li a:hover,
#footer .features li a:hover { color: #ff6000 !important; }

#footer .links li i,
#footer .features li i {
    transition: transform 0.2s, color 0.2s;
    color: #ff6000;
}
#footer .links li:hover i,
#footer .features li:hover i { transform: translateX(4px); }

/* Contact info items */
#footer .contact li p {
    color: #ccc;
    font-size: 13px;
    line-height: 1.6;
    transition: color 0.2s;
}
#footer .contact li:hover p { color: #fff; }
#footer .contact li p i {
    color: #ff6000;
    width: 18px;
    text-align: center;
    margin-right: 4px;
}
#footer .contact li p a {
    color: #ff9966 !important;
    transition: color 0.2s;
}
#footer .contact li p a:hover { color: #ff6000 !important; }

/* Footer copyright bar */
#footer .footer-copyright {
    background: linear-gradient(90deg, #111 0%, #1e1e1e 100%);
    border-top: 2px solid #ff6000;
    padding: 18px 0;
}

/* Footer logo: hover glow */
#footer .footer-copyright .logo {
    display: inline-block;
    transition: opacity 0.2s, transform 0.2s;
    filter: brightness(1);
}
#footer .footer-copyright .logo:hover {
    opacity: 0.85;
    transform: scale(1.04);
}

/* Social icons: interactive circles */
#footer .social-icons li a {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc !important;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
    text-decoration: none;
}
#footer .social-icons-facebook a:hover { background: #3b5999; border-color: #3b5999; color: #fff !important; transform: translateY(-3px); }
#footer .social-icons-twitter  a:hover { background: #55acee; border-color: #55acee; color: #fff !important; transform: translateY(-3px); }
#footer .social-icons-linkedin a:hover { background: #0077b5; border-color: #0077b5; color: #fff !important; transform: translateY(-3px); }

/* Copyright text */
#footer .copyright-text {
    color: #888;
    font-size: 12px;
    margin: 8px 0 0;
}

/* Newsletter section */
#footer .newsletter h4 { color: #fff; }
#footer .newsletter .newsletter-info { color: #aaa; font-size: 13px; line-height: 1.6; }

.jly-variant-row.jly-variant-added {
    background: #e6f9ee !important;
    border-color: #28a745 !important;
    transition: background 0.2s, border-color 0.2s;
}
.jly-variant-row.jly-variant-added .jly-variant-icon { color: #28a745; }

/* ---- Quick Add: variant select + qty + cart ---- */
.jly-variant-row.jly-variant-selected {
    background: #fff3ee;
    border-color: #ff6000;
    box-shadow: 0 0 0 2px rgba(255,96,0,.15);
}
.jly-qa-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 6px 4px 2px;
    border-top: 1px solid #f0e8e0;
}
.jly-qa-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #ff6000;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}
.jly-qa-qty-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 16px;
    font-weight: 700;
    color: #ff6000;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background .15s;
}
.jly-qa-qty-btn:hover { background: #fff3ee; }
.jly-qa-qty-val {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: #333;
}
.jly-qa-cart-btn {
    flex: 1;
    background: linear-gradient(90deg,#ff6000,#ff8c42);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .18s;
    white-space: nowrap;
}
.jly-qa-cart-btn:hover { opacity: .88; }
.jly-qa-cart-btn:disabled { opacity: .45; cursor: not-allowed; }
