/* Sunset Jams E-Commerce Portal Styles */

/* Hide categories and search on shop page (not many products yet) */
.filter-categories,
.filter-search {
    display: none !important;
}

/* ========== Floating cart icon (corner, flashes on add) ========== */
#sunsetjams-cart-widget {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}
.sunsetjams-cart-float {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    background: #2c3e50;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sunsetjams-cart-float:hover {
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.sunsetjams-cart-float .cart-count {
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}
.sunsetjams-cart-float.cart-flash {
    animation: sunsetjams-cart-flash 6s ease;
}
@keyframes sunsetjams-cart-flash {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
    8% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(44, 62, 80, 0.4); }
    16% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
}

/* Cart "added" message (appears above/beside cart icon) */
.sunsetjams-cart-message {
    position: absolute;
    top: 0;
    right: 65px;
    background: #27ae60;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    pointer-events: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s, transform 0.3s;
}
.sunsetjams-cart-message.show {
    opacity: 1;
    transform: translateX(0);
}
.sunsetjams-cart-message::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #27ae60;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* ========== Mobile-friendly: viewport & scrolling ========== */
html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
#main-wrapper {
    min-height: 50vh;
    -webkit-overflow-scrolling: touch;
}

/* Hero / header mobile adjustments */
@media (max-width: 768px) {
    #site-header.hero-container {
        min-height: 40vh;
        max-height: 50vh;
    }
    #site-header .logo-container img {
        max-height: 50px;
        width: auto;
    }
    #site-header .menu-bar .menu-items {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    #site-header .menu-bar .menu-items a {
        font-size: 18px !important;
        padding: 10px 12px;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .sunsetjams-cart-float {
        top: 12px;
        right: 12px;
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
}

@media (max-width: 500px) {
    #site-header.hero-container {
        min-height: 30vh;
        max-height: 40vh;
    }
    #site-header .logo-container img {
        max-height: 40px;
    }
    #site-header .menu-bar .menu-items a {
        font-size: 16px !important;
        padding: 8px 10px;
    }
}

/* Tap targets: minimum 44px for touch */
.add-to-cart-btn,
button[type="submit"],
a.sunsetjams-cart-float {
    min-height: 44px;
    min-width: 44px;
}

/* Additional styles can be added here if needed */
/* Most styling is inline in the template files */
