/* === Attitude Spices - custom overrides === */

/* 1. Site-wide left & right padding */
.container-xxxl {
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    .container-xxxl {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (min-width: 1400px) {
    .container-xxxl {
        padding-left: 56px;
        padding-right: 56px;
    }
}

/* 2. Browse by Category heading - centered */
.widget-product-categories .widget-header {
    justify-content: center;
}

.widget-product-categories .widget-header h2 {
    text-align: center;
}

/* 3. Footer - dark charcoal base */
footer {
    background-color: #1F2328;
}

footer .border-top {
    border-color: #343A41 !important;
}

/* Gold Subscribe button needs dark text, never white */
footer .btn-primary {
    color: #1F2328 !important;
}

/* Payment logos sit on a white chip so they stay legible on dark */
footer .footer-payments img {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 6px 12px;
}

/* ==========================================================================
   4. Desktop Header Navigation & Mega Menu (Attitude Spices)
   ========================================================================== */

/* Single-line desktop navigation bar */
.header .header-bottom .header-wrapper .navigation .navigation__center {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding-left: 30px;
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 4px;
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li {
    display: inline-flex !important;
    align-items: center !important;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1f2328 !important;
    padding: 10px 16px !important;
    border-radius: 8px;
    white-space: nowrap !important;
    line-height: 20px !important;
    text-decoration: none !important;
    transition: all 0.22s ease !important;
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li:hover > a,
.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li.current-menu-item > a {
    color: #d9381e !important;
    background-color: rgba(217, 56, 30, 0.06);
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li .sub-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-left: 2px;
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li .sub-toggle .svg-icon {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li:hover > a .sub-toggle .svg-icon {
    transform: rotate(180deg);
}

/* Remove default theme triangle if present */
.menu > li.menu-item-has-children > a:before {
    display: none !important;
}

/* --------------------------------------------------------------------------
   5. About Us Submenu Dropdown
   -------------------------------------------------------------------------- */
.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li:not(.has-mega-menu) {
    position: relative;
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li > ul.sub-menu {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    min-width: 250px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.14), 0 0 1px rgba(0, 0, 0, 0.08) !important;
    padding: 8px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(8px) !important;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s !important;
    z-index: 1050 !important;
    list-style: none !important;
    margin: 0 !important;
}

/* Hover bridge to prevent menu closing when cursor moves */
.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li > ul.sub-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 18px;
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li:hover > ul.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li > ul.sub-menu > li {
    display: block !important;
    list-style: none !important;
    margin: 2px 0 !important;
    padding: 0 !important;
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li > ul.sub-menu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 11px 16px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    border-bottom: none !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li > ul.sub-menu > li > a:hover {
    color: #d9381e !important;
    background-color: #fff6f3 !important;
    transform: translateX(4px);
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li > ul.sub-menu > li > a::after {
    content: '→';
    font-size: 13px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    color: #d9381e;
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li > ul.sub-menu > li > a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* --------------------------------------------------------------------------
   6. Our Products Mega Menu (Responsive 4-Column Grid)
   -------------------------------------------------------------------------- */
.header .header-bottom .header-wrapper {
    position: relative !important;
}

.header .header-bottom .header-wrapper .navigation > .container-xxxl {
    position: relative !important;
}

.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li.has-mega-menu {
    position: static !important;
}

/* Nav item downward hover bridge to seamlessly connect to mega menu */
.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li.has-mega-menu::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    height: 30px;
    background: transparent;
    z-index: 100;
}

.mega-menu.mega-menu--products {
    position: absolute !important;
    top: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(4px) !important;
    width: 1080px !important;
    max-width: calc(100vw - 40px) !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    z-index: 1050 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Large invisible hover bridge extending upwards into navigation bar */
.mega-menu.mega-menu--products::before {
    content: '' !important;
    position: absolute !important;
    top: -30px !important;
    left: 0 !important;
    right: 0 !important;
    height: 35px !important;
    background: transparent !important;
    z-index: 100 !important;
}

/* Active / Open state: triggered via CSS hover or JS menu-opened class */
.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li.has-mega-menu:hover .mega-menu--products,
.header .header-bottom .header-wrapper .navigation .navigation__center .menu > li.has-mega-menu.menu-opened .mega-menu--products,
.mega-menu.mega-menu--products:hover,
.mega-menu.mega-menu--products.menu-opened {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

.mega-menu--products .mega-menu__inner {
    padding: 24px 28px 20px;
}

.mega-menu--products .mega-menu__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.mega-menu--products .mega-menu__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    background: #fff1eb;
    color: #d9381e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 2px;
}

.mega-menu--products .mega-menu__heading {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    font-family: var(--primary-font);
}

.mega-menu--products .mega-menu__lead {
    margin: 0;
    font-size: 13.5px;
    color: #666666;
    line-height: 1.4;
}

.mega-menu--products .mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.mega-menu--products .mega-menu__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.mega-menu--products .mega-menu__card:hover {
    background: #ffffff;
    border-color: #ffd8cc;
    box-shadow: 0 8px 20px -4px rgba(217, 56, 30, 0.12);
    transform: translateY(-2px);
}

.mega-menu--products .mega-menu__card-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-menu--products .mega-menu__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mega-menu--products .mega-menu__card:hover .mega-menu__card-img img {
    transform: scale(1.1);
}

.mega-menu--products .mega-menu__card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d9381e;
    background: #fff5f2;
}

.mega-menu--products .mega-menu__card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.mega-menu--products .mega-menu__card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2328;
    line-height: 1.3;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-menu--products .mega-menu__card:hover .mega-menu__card-title {
    color: #d9381e;
}

.mega-menu--products .mega-menu__card-sub {
    font-size: 11px;
    color: #777777;
    line-height: 1.35;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-menu--products .mega-menu__card-arrow {
    color: #c0c0c0;
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.mega-menu--products .mega-menu__card:hover .mega-menu__card-arrow {
    color: #d9381e;
    transform: translateX(3px);
}

.mega-menu--products .mega-menu__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.mega-menu--products .mega-menu__footer-tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2c7a36;
}

.mega-menu--products .mega-menu__footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff !important;
    background: #d9381e;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(217, 56, 30, 0.25);
}

.mega-menu--products .mega-menu__footer-btn:hover {
    background: #b52912;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(217, 56, 30, 0.35);
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   7. Mobile Menu Drawer Polishing
   -------------------------------------------------------------------------- */
.menu--mobile .sub-menu {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 4px 0 8px 16px !important;
}

.menu--mobile .sub-menu > li > a {
    padding: 8px 14px !important;
    font-size: 14px !important;
    color: #4a5568 !important;
}

.menu--mobile .sub-menu > li > a:hover {
    color: #d9381e !important;
}

/* --------------------------------------------------------------------------
   8. Header Wishlist & Cart Icons
   -------------------------------------------------------------------------- */
.header .navigation__right .header__extra > a {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header .navigation__right .header__extra .svg-icon {
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 24px;
    color: var(--header-text-color);
}

.header .navigation__right .header__extra .svg-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.header .navigation__right .header-wishlist {
    margin-right: 18px;
}

.header .navigation__right .cart--mini .cart-text {
    margin-left: 10px;
}

.header .navigation__right .header__extra .header-item-counter {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
}

.header .navigation__right .cart--mini > .header__extra {
    display: flex;
    align-items: center;
}

.header .navigation__right .cart--mini .cart-text {
    display: flex;
    flex-direction: column;
    margin-left: 16px;
    font-size: 13px;
    line-height: 1.3;
}

.header .navigation__right .cart--mini .cart-text,
.header .navigation__right .cart--mini .cart-text span {
    white-space: nowrap;
}
