/* Base Styles & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #FDFCF8; 
    color: #333;
}

/* Header / Sticky Navbar */
.navbar {
    background-color: #EBCD2B; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    display: flex;            
    align-items: center;      
    text-decoration: none;
    color: #362F1C;
    margin: 0 15px;
    font-size: 20px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #8A7B4D;
}

.cart img {
    height: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    position: relative;
    display: inline-block;
}

.avatar-trigger {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #362F1C;
    transition: transform 0.2s ease;
}

.avatar-trigger:hover {
    transform: scale(1.05);
}

.avatar-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    color: #EBCD2B;
    font-size: 18px;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1100;
    overflow: hidden;
    border: 1px solid #eee;
}

.profile-dropdown.show {
    display: block;
    animation: fadeInDropdown 0.2s ease-out;
}

.dropdown-item {
    color: #333333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #8A7B4D;
}

.dropdown-item.logout {
    border-top: 1px solid #eee;
    color: #cc0000;
}

.dropdown-item.logout:hover {
    background-color: #fff0f0;
    color: #ff0000;
}

.dropdown-item.disabled {
    color: #aaaaaa !important;
    background-color: #fafafa !important;
    cursor: not-allowed !important;
    pointer-events: none; 
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Content & Jumbotron */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
}

.jumbotron {
    position: relative;
    background-image: url('../asset/Cream\ Minimalist\ Woman\ Fashion\ Etsy\ Shop\ Cover.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 20px 20px;
    padding: 10px 80px;
    margin: 0 -20px 50px -20px;
    text-align: center;
    color: #fff;
    overflow: visible !important; /* Diubah agar elemen dropdown melayang tidak terpotong */
}

.jumbotron::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(69, 69, 69, 0.4); 
}

.jumbotron * {
    position: relative;
    z-index: 1;
}

.jumbotron h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.jumbotron p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.jumbotron-content {
    overflow: visible !important;
}

/* Search and Filters Section */
.search-filter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible !important;
}

.search-form-wrapper {
    overflow: visible !important;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white; 
    border: 1px solid #CCC;
    border-radius: 25px;
    padding: 10px 20px;
    width: 500px;
    max-width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-icon {
    margin-right: 10px;
    color: #888;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 16px;
}

.filter-tags {
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    align-items: center; 
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 10px;
    overflow: visible !important;
}

.filter-tags-row-2 {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.dropdown-wrapper { 
    position: relative; 
    z-index: 99999;
    overflow: visible !important;
}

/* Filter Button & Tag Styling */
.filter-icon-btn, .tag {
    background: transparent;
    border: 1px solid #362F1C;
    border-radius: 20px;
    padding: 6px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-icon-btn {
    background: #FFF; 
    border: 2px solid #EAEAEA; 
    border-radius: 20px; 
    width: 38px; 
    height: 38px; 
    font-size: 16px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    color: #362F1C;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-icon-btn:hover { 
    border-color: #EBCD2B; 
    background: #FFF9E6; 
}

.tag:hover {
    background-color: #E2DFD2;
}

.tag.active {
    background-color: #5A5A5A;
    color: white;
    border-color: #5A5A5A;
}

/* Category Dropdown Floating Menu */
.cat-dropdown-menu {
    display: none; 
    position: absolute; 
    top: 110%; 
    left: 0; 
    background: #FFFFFF; 
    border: 1px solid #EAEAEA; 
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    z-index: 99999 !important; 
    min-width: 240px;
    max-height: 280px; 
    overflow-y: auto !important; 
    text-align: left;
    padding: 8px 0;
}

.cat-dropdown-menu.show { 
    display: block; 
}

.cat-dropdown-item {
    padding: 10px 18px; 
    cursor: pointer; 
    border-bottom: 1px solid #F9F9F9; 
    font-size: 14px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: #333;
    transition: 0.2s;
}

.cat-dropdown-item:hover { 
    background-color: #FFF9E6; 
    color: #362F1C;
}

.cat-dropdown-item input[type="checkbox"] {
    width: 18px; 
    height: 18px; 
    accent-color: #362F1C; 
    cursor: pointer;
}

.cat-dropdown-item label { 
    cursor: pointer; 
    margin: 0; 
    flex-grow: 1; 
    font-weight: 500;
}

/* Promo Banners */
.promo-banner {
    width: 100%;
    height: 250px;
    margin-bottom: 50px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #EAEAEA;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Sections */
.product-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 400;
    margin-right: 10px;
}

.more-link {
    color: #00D1FF; 
    text-decoration: none;
    font-size: 14px;
}

/* Product Grid Layout Horisontal */
.product-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto; 
    padding-bottom: 15px;
    scrollbar-width: none; 
}

.product-grid::-webkit-scrollbar {
    display: none; 
}

.product-card {
    max-width: 180px;
    flex: 0 0 auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: fill;
    background-color: #EAEAEA;
    margin-bottom: 10px;
    border-radius: 8px;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-info .price {
     font-size: 14px;
    font-weight: 500;
    color: #ee4d2d; 
    margin: 0;
}

/* Custom Scrollbar Indicator */
.scroll-indicator {
    width: 100%;
    height: 6px;
    background-color: #E2DFD2;
    border-radius: 3px;
    margin-top: 10px;
    position: relative;
    overflow: hidden; 
}

.scroll-thumb {
    width: 15%; 
    height: 100%;
    background-color: #333;
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: left 0.1s ease-out; 
}

/* All Products Shopee Grid Layout (2 Kolom Vertikal Base) */
.all-products-section {
    margin-top: 40px;
    margin-bottom: 50px;
    padding: 0 15px;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.products-grid-shopee {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
}

.product-card-shopee {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-shopee:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card-shopee .img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f7f7f7;
}

.product-img-shopee {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-shopee {
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.product-info-shopee .product-title {
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: #222;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px; 
}

.product-info-shopee .price {
    font-size: 14px;
    font-weight: 500;
    color: #ee4d2d; 
    margin: 0;
}

.category-grid .category-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    background-color: #EAEAEA;
    border-radius: 8px;
}

/* Footer Section */
.footer {
    background: #3A321E;
    color: #FDFCF8;
    padding: 50px 40px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.footer-brand h2 {
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.footer-brand p {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
    max-width: 300px;
}

.footer-contact-social h3 {
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-contact-social ul {
    list-style: none;
    margin-bottom: 15px;
}

.footer-contact-social li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-contact-social a {
    color: #EAEAEA;
    text-decoration: none;
    transition: 0.2s;
}

.footer-contact-social a:hover {
    color: #EBCD2B;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
}

.social-links a.ig:hover { background: #E1306C; }
.social-links a.tt:hover { background: #000000; }
.social-links a.shopee:hover { background: #EE4D2D; }
.social-links a.tokopedia:hover { background: #03AC0E; }

.social-links a:hover {
    transform: translateY(-3px);
}

.map-placeholder {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #bbb;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.floating-cart {
    display: none;
}

/* Mobile Responsiveness (Max-width: 768px) */
@media (max-width: 768px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 15px 20px 10px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo {
        width: 100%; 
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
        width: 100%;
        gap: 15px;
        margin-top: 0;
        margin-bottom: 8px;
        padding: 0 40px; 
    }

    .nav-links a {
        margin: 0;
        font-size: 14px;
    }

    .cart {
        display: none;
    }

    .user-profile {
        display: flex !important;
        align-items: center;
        position: absolute;
        right: 20px; 
        bottom: 10px; 
    }
    
    .avatar-trigger {
        width: 32px;
        height: 32px;
    }
    
    .profile-dropdown {
        top: 40px;
        right: 0;
        left: auto;
    }

    .jumbotron {
        margin: 0 -15px 40px -15px;
        padding: 40px 15px;
    }

    .jumbotron h1 {
        font-size: 2rem;
    }

    .search-bar {
        width: 100%;
    }

    .filter-tags, .filter-tags-row-2 {
        flex-wrap: wrap;
        gap: 8px;
    }

    .promo-banner {
        height: 150px;
    }

    .product-card {
        min-width: 140px;
    }

    .product-img {
        height: 140px;
    }

    .category-grid .category-img {
        width: 140px;
        height: 140px;
    }

    .footer {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-desc {
        margin: auto;
    }

    .social-links {
        justify-content: center;
    }

    .map-placeholder {
        width: 100%;
        min-height: 250px;
    }

    .floating-cart {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #EBCD2B;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 6px 15px rgba(0,0,0,0.2);
        z-index: 999;
        transition: all 0.3s ease;
    }

    .floating-cart img {
        width: 28px;
        height: 28px;
    }

    .floating-cart:hover {
        transform: scale(1.1);
        background: #d4b925;
    }
}

/* Media Query Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .products-grid-shopee {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

/* Media Query Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    .products-grid-shopee {
        grid-template-columns: repeat(6, 1fr); 
        gap: 15px;
    }
    
    .product-info-shopee .product-title {
        font-size: 14px;
    }
}