* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
}

/* Header with Transparent Overlay */
.header-top {
    background: transparent;
    backdrop-filter: blur(0px);
    color: #fff;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: none;
    transition: all 0.4s ease;
}

.header-top.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-top.scrolled .logo,
.header-top.scrolled .nav-list a,
.header-top.scrolled .icon-btn {
    color: #333;
}

.header-top.scrolled .icon-btn:hover {
    color: #2f2f42;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo:hover {
    transform: scale(1.05);
    color: #fff;
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
    padding: 0;
    margin: 0;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    padding: 8px 0;
    display: inline-block;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-list a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: #fff;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.header-top.scrolled .nav-list a {
    color: #333;
    text-shadow: none;
}

.header-top.scrolled .nav-list a::after {
    background: #2f2f42;
}

.header-top.scrolled .nav-list a:hover,
.header-top.scrolled .nav-list a.active {
    color: #2f2f42;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    position: relative;
    padding: 10px 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.header-top.scrolled .icon-btn {
    color: #333;
    text-shadow: none;
}

.header-top.scrolled .icon-btn:hover {
    background: rgba(47, 47, 66, 0.1);
    color: #2f2f42;
}

.icon-btn:active {
    transform: translateY(0);
}

.icon-btn i {
    font-size: 20px;
}

/*  & Cart Button Hover Effects */
.icon-btn[title=""]:hover i {
    color: #ff4444;
    animation: heartBeat 0.6s ease;
}

.icon-btn[title="Keranjang"]:hover i {
    animation: cartShake 0.5s ease;
}

@keyframes heartBeat {
    0%,
    100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.25);
    }
}

@keyframes cartShake {
    0%,
    100% {
        transform: translateX(0) scale(1);
    }
    25% {
        transform: translateX(-3px) scale(1.1);
    }
    50% {
        transform: translateX(3px) scale(1.15);
    }
    75% {
        transform: translateX(-2px) scale(1.1);
    }
}

/* Login Button Special Style */
#openLoginModal {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#openLoginModal::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

#openLoginModal:hover::before {
    left: 100%;
}

#openLoginModal:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.header-top.scrolled #openLoginModal {
    background: linear-gradient(135deg, #2f2f42, #2f2f42);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(47, 47, 66, 0.3);
}

.header-top.scrolled #openLoginModal:hover {
    background: linear-gradient(135deg, #1a1a2e, #2f2f42);
    box-shadow: 0 6px 20px rgba(47, 47, 66, 0.4);
}

#openLoginModal:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(47, 47, 66, 0.3);
}

#openLoginModal i {
    font-size: 20px;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.user-menu-btn span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.header-top.scrolled .user-menu-btn {
    background: rgba(47, 47, 66, 0.1);
    border-color: rgba(47, 47, 66, 0.3);
    color: #2f2f42;
    text-shadow: none;
}

.header-top.scrolled .user-menu-btn:hover {
    background: rgba(47, 47, 66, 0.15);
    border-color: rgba(47, 47, 66, 0.5);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    overflow: hidden;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.user-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a,
.dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    text-align: left;
    text-decoration: none;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-family: inherit;
}

.dropdown-menu a i,
.dropdown-menu button i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: #f5f5f5;
    color: #2f2f42;
    padding-left: 24px;
}

.dropdown-menu hr {
    margin: 4px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.dropdown-menu form {
    margin: 0;
}

.dropdown-menu button[type="submit"] {
    color: #e74c3c;
    font-weight: 500;
}

.dropdown-menu button[type="submit"]:hover {
    background: #ffebee;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bottom nav dropdown slides up */
.bottom-nav .dropdown-menu {
    animation: slideUp 0.3s ease;
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    min-height: calc(100vh - 200px);
}

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.bottom-nav-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 10px 0;
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
}

.bottom-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    padding: 5px;
    transition: color 0.2s;
}

.bottom-nav-item a:hover,
.bottom-nav-item a.active {
    color: #2f2f42;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

/* Bottom nav dropdown styles */
.bottom-nav-item .user-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bottom-nav-item .user-dropdown > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    padding: 5px;
    transition: color 0.2s;
    cursor: pointer;
}

.bottom-nav-item .user-dropdown > a:hover,
.bottom-nav-item .user-dropdown.open > a {
    color: #2f2f42;
}

.bottom-nav-item .user-dropdown.open .dropdown-menu {
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #2f2f42, #2f2f42);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    color: #2f2f42;
    font-size: 18px;
    font-weight: bold;
}

.hero {
    background: linear-gradient(135deg, #2f2f42, #2f2f42);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* Footer Styles */
.footer {
    background: #2f2f42;
    color: white;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: white;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-about-text {
    text-align: justify;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-services {
    padding-left: 70px;
}

.footer-qr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 20px;
}

.footer-qr img {
    width: 110px;
    height: auto;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.footer-qr-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-qr-subtitle {
    margin: 4px 0 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.4;
}

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 10px 16px;
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.app-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile and Tablet Responsiveness */
@media (max-width: 1024px) {
    .header-top {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 12px 0;
    }

    .header-top .logo,
    .header-top .icon-btn {
        color: #333;
        text-shadow: none;
    }

    .header-actions {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .bottom-nav {
        display: block;
    }

    .main-content {
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    .header-top .logo {
        color: #2f2f42;
    }

    .header-container {
        gap: 12px;
    }

    .logo {
        font-size: 18px;
        font-weight: 700;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .main-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .bottom-nav {
        display: block;
    }

    .main-content {
        padding: 70px 15px 80px;
    }

    .badge {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        padding: 0 4px;
        border-width: 1.5px;
    }

    .dropdown-menu {
        min-width: 160px;
        right: 0;
        border-radius: 10px;
    }

    .dropdown-menu a,
    .dropdown-menu button {
        padding: 10px 16px;
        font-size: 13px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .product-image {
        height: 180px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-services {
        padding-left: 0;
        text-align: center;
    }

    .footer-qr {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-qr img {
        width: 140px;
        margin: 0 auto;
    }
    @media (max-width: 1024px) {
        .main-content {
            padding-bottom: calc(100px + env(safe-area-inset-bottom));
        }

        .footer {
            margin-bottom: calc(80px + env(safe-area-inset-bottom));
        }
    }

    /* Slightly larger padding for smaller phones if needed */
    @media (max-width: 480px) {
        .main-content {
            padding-bottom: calc(100px + env(safe-area-inset-bottom));
        }

        .footer {
            margin-bottom: calc(80px + env(safe-area-inset-bottom));
        }
    }
}
