/* ============================================
   ARTGALORE WORDPRESS - FINAL CLEAN VERSION
   All fixes consolidated and optimized
   ============================================ */

/* ULTRA-SPECIFIC body height override */
html body,
html body.wp-embed-responsive,
html body.page-template-default,
html body.logged-in {
    height: auto !important;
    min-height: 100vh !important;
}

/* ===================================
   1. WORDPRESS ADMIN BAR FIXES
   =================================== */
body.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
}

/* ===================================
   2. HIDE DEFAULT GENERATEPRESS ELEMENTS
   =================================== */
.site-header {
    display: none;
}

.site-footer {
    display: none;
}

/* ===================================
   3. CONTENT & FOOTER LAYOUT - CLEAN
   =================================== */

/* Force proper heights - no fixed values */
.site,
.site-content,
#content,
.main,
.site-main {
    min-height: auto !important;
    height: auto !important;
}

/* Content area spacing */
.site-content {
    padding-bottom: 10px !important;
    padding-top: 0;
    min-height: 50vh !important;
}

/* Article/Entry spacing */
.inside-article,
.entry-content {
    margin-bottom: 10px !important;
}

/* Footer positioning - natural flow */
footer,
footer.dark-wrapper,
footer.dark-wrapper.inverse-text {
    position: relative !important;
    clear: both !important;
    float: none !important;
    bottom: 0 !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    margin-top: 10px !important;
    z-index: auto !important;
}

/* Footer inner containers */
footer .container,
footer .inner {
    height: auto !important;
    min-height: auto !important;
}

footer .inner {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Responsive footer spacing */
@media (max-width: 768px) {
    footer.dark-wrapper,
    footer.dark-wrapper.inverse-text {
        margin-top: 20px !important;
    }
}

/* ===================================
   4. NAVIGATION MENU STYLES
   =================================== */

/* Mega menu dropdowns */
.navbar-nav > li.mega-menu {
    position: relative;
}

.navbar-nav > li.mega-menu > .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 1140px;
}

.navbar-nav > li.mega-menu:hover > .dropdown-menu,
.navbar-nav > li.mega-menu.open > .dropdown-menu {
    display: block;
}

/* WordPress menu classes compatibility */
.navbar-nav .menu-item-has-children > a::after {
    content: " \f107";
    font-family: "ETmodules";
    padding-left: 5px;
}

.navbar-nav .dropdown-toggle .caret {
    margin-left: 5px;
}

/* ===================================
   5. MOBILE MENU ADJUSTMENTS
   =================================== */

@media (max-width: 991px) {
    .navbar-collapse {
        max-height: none !important;
    }
    
    .navbar-nav .mega-menu .dropdown-menu {
        position: static;
        min-width: auto;
        width: 100%;
    }
    
    .navbar-nav .mega-menu .row {
        margin: 0;
    }
    
    .navbar-nav .mega-menu [class*="col-"] {
        width: 100%;
        float: none;
    }
}

/* ===================================
   6. FOXYCART CART PANEL STYLES
   =================================== */

.cart-visible {
    overflow-y: hidden;
}

.cd-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 10000;
    visibility: hidden;
    transition: visibility 0s 0.6s;
}

.cd-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    transition: background 0.7s 0s;
}

.cart-visible .cd-panel {
    visibility: visible;
    transition: visibility 0s 0s;
}

.cart-visible .cd-panel::after {
    background: rgba(0, 0, 0, 0.6);
}

.cd-panel-container {
    position: fixed;
    width: 90%;
    height: 100%;
    top: 0;
    z-index: 1;
    transition-property: transform;
    transition-duration: 0.7s;
}

[data-fc-with-customcart="from-right"] .cd-panel-container {
    right: 0;
    transform: translate3d(100%, 0, 0);
}

.cart-visible .cd-panel-container {
    transform: translate3d(0, 0, 0);
}

.cd-panel-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===================================
   7. FOOTER WIDGET STYLES
   =================================== */

footer .inner {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Image list in footer */
.image-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.image-list li {
    margin-bottom: 20px;
    overflow: hidden;
}

.image-list figure {
    float: left;
    margin-right: 15px;
    margin-bottom: 0;
}

.image-list .post-content {
    overflow: hidden;
}

/* Overlay effects */
.overlay {
    position: relative;
    display: block;
}

.overlay figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
}

.overlay:hover figcaption {
    opacity: 1;
}

/* Footer link colors */
footer a.nocolor {
    color: inherit;
    text-decoration: none;
}

footer a.nocolor:hover {
    color: #3498db;
}

/* Footer social icons */
.social.social-bg li a {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
}

.social.social-bg li a:hover {
    background: #3498db;
}

/* Sub-footer */
.sub-footer {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Newsletter wrapper */
.newsletter-wrapper {
    margin-bottom: 20px;
}

.newsletter-wrapper img {
    max-width: 100%;
    height: auto;
}

/* Item details list */
.item-details {
    list-style: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.item-details li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.item-details li:last-child {
    border-bottom: none;
}

/* Footer responsive */
@media (max-width: 767px) {
    footer .widget {
        margin-bottom: 30px;
    }
    
    .image-list figure {
        width: 60px;
    }
    
    footer .col-sm-6 {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* ===================================
   8. BLOG POST CONTENT ADJUSTMENTS
   =================================== */

.entry-content {
    clear: both;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.site-main article {
    margin-bottom: 40px;
}

/* ===================================
   9. SEARCH FORM STYLING
   =================================== */

.search-form input[type="text"] {
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.search-form .btn-srch {
    background: url('https://artgalore.ca/style/images/search-icon.png') no-repeat center;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

/* ===================================
   10. WORDPRESS MENU COMPATIBILITY
   =================================== */

.navbar-nav .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-nav .current-menu-item > a,
.navbar-nav .current-menu-parent > a {
    color: #3498db !important;
}

/* ===================================
   11. TAWK.TO CHAT WIDGET
   =================================== */

#tawk-bubble-container {
    z-index: 9999 !important;
}

@media (max-width: 480px) {
    #tawk-bubble-container {
        bottom: 60px !important;
    }
}

/* ===================================
   12. LINK UNDERLINE REMOVAL
   =================================== */

a[href],
a[href]:link,
a[href]:visited,
a[href]:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
}

/* Navigation - never underline */
.navbar a,
.nav a,
.menu a,
footer a {
    text-decoration: none !important;
}

/* Content links - underline on hover only */
.entry-content a:hover,
article a:hover {
    text-decoration: underline !important;
}

/* ===================================
   13. GENERAL SPACING & LAYOUT
   =================================== */

.generate-columns-container,
.inside-article {
    max-width: 100% !important;
}

/* ===================================
   14. SMOOTH TRANSITIONS
   =================================== */

.navbar-nav > li > a,
.btn-group a {
    transition: all 0.3s ease;
}

/* ===================================
   15. ACCESSIBILITY
   =================================== */

.navbar-nav a:focus,
.btn-group a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ===================================
   16. CLONED NAVBAR FIX
   =================================== */

/* Hide cloned navbar that creates white overlay */
nav.navbar.banner--clone,
nav.navbar.extended.banner--clone,
.navbar.banner--clone.fixed,
nav.navbar.banner--clone.fixed.banner--stick {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ensure original navbar stays visible */
nav.navbar:not(.banner--clone) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}