/* =========================================================
   BASE SKIN STYLES (UNCHANGED)
========================================================= */

body,
.card,
.card-header,
.hero {
    background-color: var(--color-white);
    font-family: var(--skin-body-font);
    color: var(--skin-main-text-color-1);
}

/* =========================================================
   MINI CART
========================================================= */

.minicart .minicart-quantity {
    background-color: var(--color-red);
}

.hero {
    border-bottom-color: var(--skin-background-color-1);
}

h1.header.page-title,
h1.header.page-title::before {
    background-color: var(--skin-heading-color-1);
    color: var(--skin-heading-color-1-invert);
}

.refinements ul li button {
    color: var(--skin-primary-color-1);
}

.custom-select {
    background-color: var(--skin-selectbox-background-color-1);
    color: var(--skin-selectbox-text-color-1);
}

a {
    color: var(--skin-link-color-1);
}

.price {
    color: var(--skin-price-1);
}

.dropdown-menu,
.dropdown-menu a,
.navbar,
.navbar .nav-item,
.navbar .nav-item a,
.navbar .nav-item.dropdown,
.navbar .nav-item.dropdown a {
    color: var(--skin-menu-color-1);
}

@media (min-width: 769px) {
    .dropdown-menu,
    .dropdown-menu a,
    .navbar,
    .navbar .nav-item,
    .navbar .nav-item a,
    .navbar .nav-item.dropdown,
    .navbar .nav-item.dropdown a {
        color: var(--skin-menu-color-1-invert);
    }
}

.navbar .nav-item.dropdown,
.navbar .nav-item.dropdown .dropdown-menu.show {
    color: var(--skin-selectbox-text-color-1);
}

.navbar .nav-item.dropdown .dropdown-menu.show {
    background-color: var(--skin-selectbox-background-color-1);
}

.navbar .nav-item.dropdown .dropdown-menu.show a,
.navbar .nav-item.dropdown .dropdown-menu.show .nav-item {
    color: var(--skin-selectbox-text-color-1);
}

.nav-item .nav-link:hover,
.nav-item .nav-link:focus,
.nav-item.show .nav-link {
    background-color: var(--skin-menu-color-1-invert);
    color: var(--skin-menu-color-1) !important;
}

.btn-primary {
    background-color: #c00;
    border-color: #c00;
    color: #fff;
}

.btn-primary:hover {
    color: #c00;
    border-color: #c00;
    background-color: #fff;
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: #c00;
    border-color: #c00;
    color: #fff;
    opacity: 0.5;
}

.btn-outline-primary {
    color: #c00;
    border-color: #c00;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #c00;
    border-color: #c00;
}

/* PRIMARY - active/clicked */
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background-color: #c00;
    border-color: #c00;
    color: #fff;
}

/* PRIMARY - focus ring */
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(204, 0, 0, 0.35);
}

/* OUTLINE PRIMARY - active/clicked */
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
    color: #fff;
    background-color: #c00;
    border-color: #c00;
}

/* OUTLINE PRIMARY - focus ring */
.btn-outline-primary:focus,
.btn-outline-primary.focus,
.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(204, 0, 0, 0.35);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--skin-header-font), sans-serif;
}

header ~ #maincontent .container a:not(.btn-primary, .btn-outline-primary) {
    color: var(--skin-primary-color-1);
}

/* =========================================================
   PRODUCT TILE LINK COLORS
========================================================= */

.product-tile {
    background-color: var(--color-white);
    border: 10px solid var(--skin-border-color-1);
}

.product-tile .link,
.product-tile a.link {
    color: var(--color-black) !important;
    /* Clamp text to 4 lines like Amazon */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 5.6em;
}

.product-tile .link:hover,
.product-tile a.link:hover {
    color: var(--color-red) !important;
}

/* =========================================================
   HEADER MENU - OVERFLOW FIX (NO CSS CLIPPING)
   Desktop only (lg and above) - JavaScript handles hiding overflow items to preserve dropdowns
========================================================= */

@media (min-width: 992px) {
    /* Remove overflow:hidden to allow dropdowns to show */
    .main-menu,
    .main-menu > .container,
    .main-menu .row,
    .main-menu [class^="col-"],
    .main-menu [class*=" col-"] {
        overflow: visible !important;
    }

    /* Keep menu structure */
    .main-menu {
        width: 100%;
        max-width: 100%;
    }

    .main-menu > .container {
        width: 100%;
        max-width: 100%;
    }

    .main-menu .row {
        display: block;
        margin: 0;
    }

    .main-menu [class^="col-"],
    .main-menu [class*=" col-"] {
        max-width: none;
        width: 100%;
        flex: none;
        padding: 0;
    }

    /* Menu items layout */
    .main-menu ul.navbar-nav {
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        width: auto;
        min-width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-menu li.nav-item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .main-menu li.nav-item a.nav-link {
        white-space: nowrap;
    }

    /* Ensure dropdowns display properly */
    .main-menu .nav-item.dropdown .dropdown-menu {
        position: absolute;
        z-index: 1000;
    }

    /* Prevent horizontal scrollbar on page */
    html,
    body {
        overflow-x: hidden;
    }
}

/* =========================================================
   HEADER LOGO SIZE OVERRIDE (MOBILE)
========================================================= */

@media (max-width: 991.98px) {
    .brand {
        width: 6.5em;
        margin-left: -3.25em;
        padding-top: 0;
    }
}

/* =========================================================
   HEADER STYLE OVERRIDE (DESKTOP)
========================================================= */

/* Desktop "All" button - force override all button styles */
/* Hover state - white background like other nav items */

.main-menu {
    background-color: var(--skin-banner-background-color-1);
}

.banner-color {
    background-color: var(--skin-banner-background-color-1);
}

.header-banner {
    background-color: var(--skin-banner-background-color-2);
    color: var(--skin-banner-text-color-1);
}

.header-banner .close-button .close {
    background-color: var(--skin-primary-color-1);
}

.nav-item button.nav-link.desktop-all-toggle:hover {
    background-color: #ffffff !important;
    color: var(--skin-menu-color-1) !important;
    opacity: 1 !important;
}

/*========================*/
/* Emega Costume CSS */
/*========================*/

/*========================*/
/* PDP Page
/*========================*/
.product-detail .product-name {
    font-size: 1.5rem; /* or whatever size you prefer */
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768.98px) {
    .product-detail .product-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 543.98px) {
    .product-detail .product-name {
        font-size: 1.125rem;
    }
}

/* =========================================================
   FOOTER STYLE OVERRIDE
========================================================= */

/* NewsLetter Section */
.home-email-signup {
    background-color: #444;
}
.home-email-signup > .container {
    padding-top: 0.625em;
    padding-bottom: 0.625em;
}
.home-email-signup .email-description {
    padding-top: 0.375em;
    color: #fff;
}

/* Footer Newsletter Override */
.footer-item .home-email-signup {
    background-color: transparent !important;
    padding: 0;
}

.footer-item .home-email-signup .email-description {
    color: #ddd;
    font-size: 0.813rem;
    padding-bottom: 20px;
    line-height: 1.4;
}

.footer-item .home-email-signup form {
    margin: 0;
}

.footer-item .home-email-signup .input-group {
    display: block;
}

.footer-item .home-email-signup .form-control {
    width: 100%;
    margin-bottom: 0.625rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    height: 44px;
    line-height: 1.5;
}

.footer-item .home-email-signup .input-group-append {
    display: block;
    width: 100%;
}

.footer-item .home-email-signup .subscribe-email {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    border-radius: 3px;
    margin-bottom: 0.625rem;
    height: 44px;
    line-height: 1.5;
    border: none;
}

/* Footer Background Colors */
#footercontent {
    background-color: #232f3e !important;
    color: #fff !important;
    padding: 0 !important;
}

#footercontent > .container {
    padding-top: 2.5rem;
}

#footercontent .footer-container {
    padding-bottom: 2rem;
}

#footercontent .footer-item h4,
#footercontent .footer-item .content-asset h4,
#footercontent .footer-item h2,
#footercontent .footer-item .title {
    color: #fff !important;
}

#footercontent .footer-item a {
    color: #ddd !important;
}

#footercontent .footer-item a:hover {
    color: #fff !important;
    text-decoration: underline;
}

#footercontent .footer-item ul {
    list-style: none;
    padding-left: 0;
}

#footercontent hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0;
}

/* Back to Top Button */
#footercontent .back-to-top {
    background-color: #c00 !important;
    color: #fff !important;
    width: 100%;
    padding: 1rem;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 0.813rem;
    font-weight: 500;
    display: block;
    transition: background-color 0.2s ease;
    margin: 0 !important;
}

#footercontent .back-to-top:hover {
    background-color: rgba(201, 3, 3, 0.671) !important;
}

/* Footer Bottom Section (Inside #footercontent) */
#footercontent .footer-bottom {
    background-color: #131a22 !important;
    width: 100%;
    padding: 1.5rem 0 !important;
    margin: 0 !important;
}

#footercontent .footer-bottom .container {
    background-color: transparent;
}

/* Override Bootstrap push/pull classes */
#footercontent .footer-bottom .row {
    display: flex;
    align-items: flex-start;
    margin: 0;
}

#footercontent .footer-bottom .social,
#footercontent .footer-bottom .copyright-notice {
    position: static !important;
    left: auto !important;
    right: auto !important;
}

#footercontent .footer-bottom .social {
    background-color: transparent !important;
    padding: 0;
    margin: 0;
}

#footercontent .footer-bottom .copyright-notice {
    background-color: transparent !important;
    padding: 0;
    margin: 0;
    color: #fff !important;
}

#footercontent .footer-bottom .social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#footercontent .footer-bottom .social-links li {
    display: inline-block;
}

#footercontent .footer-bottom .social-links a {
    color: #fff !important;
    transition: opacity 0.2s ease;
    display: inline-block;
}

#footercontent .footer-bottom .social-links a:hover {
    opacity: 0.8;
}

#footercontent .footer-bottom .copyright,
#footercontent .footer-bottom .content-asset {
    color: #fff !important;
    margin: 0;
}

/* Desktop - Amazon style layout */
@media (min-width: 576px) {
    #footercontent .footer-bottom .row {
        justify-content: space-between;
        flex-direction: row;
    }

    #footercontent .footer-bottom .social {
        order: 2;
        text-align: right;
    }

    #footercontent .footer-bottom .copyright-notice {
        order: 1;
        text-align: left;
    }

    #footercontent .footer-bottom .social-links {
        justify-content: flex-end;
    }

    #footercontent .footer-bottom .social-links li {
        margin-left: 0.5rem;
    }

    #footercontent .footer-bottom .social-links li:first-child {
        margin-left: 0;
    }
}

/* Mobile - centered layout with better spacing */
@media (max-width: 575px) {
    #footercontent .footer-bottom .row {
        flex-direction: column;
        justify-content: center;
    }

    #footercontent .footer-bottom .social {
        width: 100%;
        order: 2;
        margin-top: 1.5rem;
        text-align: center;
    }

    #footercontent .footer-bottom .copyright-notice {
        width: 100%;
        order: 1;
        text-align: center;
    }

    #footercontent .footer-bottom .social-links {
        justify-content: center;
        gap: 1rem;
    }

    #footercontent .footer-bottom .social-links li {
        margin: 0;
    }

    #footercontent .footer-bottom .copyright,
    #footercontent .footer-bottom .content-asset {
        text-align: center;
    }
}

.footer-company-details {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.9;
}
