/* --- GLASS STRUCTURE --- */
.glass-structure {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 1. Top Tab (Search Area) */
.glass-search-tab {
    background: var(--panel-bg);
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: none; 
    
    border-top-left-radius: var(--panel-border-radius);
    border-top-right-radius: var(--panel-border-radius);
    border-bottom-right-radius: 0; 
    border-bottom-left-radius: 0; 
    
    padding: 12px 15px 5px 20px;
    width: auto;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1); 
}

/* Curve Element */
.tab-curve {
    position: absolute;
    bottom: 0;
    right: calc(var(--curve-size) * -1); 
    width: var(--curve-size);
    height: var(--curve-size);
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    -webkit-mask: radial-gradient(circle at 100% 0, transparent 70%, black 71%);
    mask-image: radial-gradient(circle at 100% 0, transparent 70%, black 71%);
    z-index: 3;
}

/* 2. Bottom Body (Carousel Area) */
.glass-panel-body {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: none; 
    border-top-left-radius: 0; 
    border-top-right-radius: var(--panel-border-radius);
    border-bottom-left-radius: var(--panel-border-radius);
    border-bottom-right-radius: var(--panel-border-radius);
    padding: 15px;
    width: 100%;
    z-index: 2;
    margin-top: -1px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}







/* --- SEARCH INPUT --- */
.search-pill {
    background: #fff;
    border-radius: 30px;
    padding: 4px 4px 4px 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: 40px;
    margin-right: 10px;
}

.search-form {
    display: flex;
    flex: 1;
    align-items: center;
}

.search-form input {
    border: none;
    outline: none;
    width: 220px;
    font-size: 0.85rem;
    color: #555;
    background: transparent;
}

.btn-search-text {
    background-color: var(--hero-accent-color); /* Updated Color */
    color: white;
    border: none;
    padding: 0 20px;
    height: 32px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-search-text:hover {
    background-color: #1a323d;
}

/* --- CAROUSEL ITEMS --- */
.carousel-wrapper {
    width: 100%;
    overflow: hidden; 
    margin-bottom: 8px;
    position: relative;
}

.products-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory; 
}
.products-track::-webkit-scrollbar { display: none; }

.hero-product-card {
    width: calc((100% - 48px) / 5);
    flex: 0 0 auto; 
    background: #fff;
    border-radius: 10px; 
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    box-shadow: 0 3px 5px rgba(0,0,0,0.05);
    scroll-snap-align: start;
}

.hero-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.img-wrapper {
    height: 120px;
    width: 100%;
    background: #f8f9fa;
    position: relative;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-details {
    padding: 8px;
    text-align: center;
}

.card-details h4 {
    font-size: 0.75rem;
    color: #444;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.card-details .price {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.85rem;
}

/* --- PANEL FOOTER --- */
.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
}

.carousel-nav {
    display: flex;
    gap: 6px;
}

.nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #999;
    background: transparent;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.view-more-link {
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.view-more-link:hover {
    color: var(--hero-accent-color);
}

/* Mobile Responsive - Carousel */
@media (max-width: 768px) {
    .glass-search-tab {
        width: 100%;
        border-radius: 15px 15px 0 0;
        margin-right: 0;
        border: none;
        background: rgba(255, 255, 255, 0.95);
    }
    .tab-curve { display: none; }
    .glass-panel-body {
        border-radius: 0 0 15px 15px;
        background: rgba(255, 255, 255, 0.95);
    }
    .hero-product-card {
        width: calc((100% - 12px) / 2);
    }
}

@media (max-width: 992px) {
    .hero-product-card {
        width: calc((100% - 45px) / 4); 
    }
}