/* Global Styles */
:root {
    --primary-color: #9370db;
    --secondary-color: #d8bfd8;
    --accent-color: #ba55d3;
    --text-color: #333;
    --text-light: #555;
    --white: #fff;
    --light-gray: #f5f5f5;
    --gray: #ddd;
    --dark-gray: #999;
    --danger: #ff3860;
    --success: #23d160;
    --warning: #ffdd57;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
/* Carousel Styles */
.carousel {
    position: relative;
}

.carousel-item {
    display: none;
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
}

.carousel-item.active {
    display: block;
}

.carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 600px;
}

.hero-content h1 {
    font-size: 54px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.btn-shop {
    background: #a084e8;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 28px;
    font-size: 18px;
    margin-top: 18px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s;
}

.btn-shop:hover {
    background: #7c3aed;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: white;
    opacity: 0.5;
    border-radius: 50%;
    cursor: pointer;
}

.indicator.active {
    opacity: 1;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.carousel-nav button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 20px;
    color: #9e72df; /* ungu sesuai topbar */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-starting {
    position: absolute;
    bottom: 60px;
    right: 30px;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 2;
}

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

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
}

/* Topbar Styles */
.topbar {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.free-refund i {
    margin-right: 5px;
}

.discount-text {
    font-weight: bold;
}

.social-icons a {
    margin-left: 15px;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    opacity: 0.8;
}

/* Navbar Styles */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 24px;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.nav-categories {
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
    margin-right: 20px;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--text-color);
    font-weight: 500;
}

.dropdown-toggle i {
    margin-left: 5px;
    font-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    display: none;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--text-color);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link i {
    margin-right: 5px;
}

.nav-link:hover, .dropdown-toggle:hover {
    color: var(--primary-color);
}

.search-cart-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    position: relative;
    margin-right: 20px;
}

.search-bar input {
    padding: 8px 15px;
    border: 1px solid var(--gray);
    border-radius: 20px;
    min-width: 200px;
    font-size: 14px;
}

.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: var(--primary-color);
}

.cart-icon,
.shipping-status-icon,
.profile-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.cart-icon a,
.shipping-status-icon a,
.profile-icon a {
    color: #333;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cart-icon a:hover,
.shipping-status-icon a:hover,
.profile-icon a:hover {
    color: #4CAF50;
}

/* Notification badges for icons */
.cart-icon .notification-badge,
.shipping-status-icon .notification-badge,
.profile-icon .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    display: none;
}

.cart-icon.has-notification .notification-badge,
.shipping-status-icon.has-notification .notification-badge,
.profile-icon.has-notification .notification-badge {
    display: block;
}

/* Hero Section / Carousel */
.hero {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    color: var(--white);
    overflow: hidden;
    border-bottom: 0;
    line-height: 0; /* Force no line height gap */
    font-size: 0; /* Force no font sizing gap */
}

.hero .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    line-height: 0; /* Force no line height gap */
    font-size: 0; /* Force no font sizing gap */
    background-color: white;
}

.carousel {
    position: relative;
    height: 450px;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0; /* Force no line height gap */
    font-size: 0; /* Force no font sizing gap */
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 0;
    border: 0;
}

.carousel-item.active {
    display: block;
}

/* Fix text styling within carousel items */
.carousel-item * {
    line-height: normal; /* Restore line height for text inside */
    font-size: 16px; /* Restore font size for text inside */
}

.hero-content h1 {
    font-size: 42px; /* Restore specific font size */
    line-height: 1.2; /* Restore specific line height */
}

.hero-content p {
    font-size: 18px; /* Restore specific font size */
    line-height: 1.5; /* Restore specific line height */
}

/* Move Products starting from 50RB tag */
.products-starting {
    position: absolute;
    bottom: 100px; /* Move further up */
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px !important; /* Force font size */
    font-weight: 500;
    z-index: 3;
    line-height: normal !important; /* Force line height */
}

/* Make sure SKINCARE BRANDS section is directly adjacent */
.skincare-brands,
section:has(h2:contains("SKINCARE BRANDS")),
section:has(.skincare-brands),
[id*="skincare-brands"],
[class*="skincare-brands"] {
    margin-top: -1px !important; /* Force negative margin to ensure connection */
    padding-top: 30px;
    position: relative;
    background-color: white;
    font-size: initial; /* Reset font size */
    line-height: normal; /* Reset line height */
    display: block;
}

/* Radical fix for any remaining gap */
body {
    margin: 0;
    padding: 0;
}

/* Force sections to be adjacent without gap */
section + section {
    margin-top: -1px !important; /* Force sections to overlap slightly */
}

/* Alternative approach - completely remove the white space element */
.hero + *:empty,
.carousel + *:empty,
.carousel-item + *:empty {
    display: none !important;
}

/* Force adjacent sections to connect */
html {
    font-size: 16px;
    line-height: normal;
}

/* Add this to directly target any empty elements or divs after the hero */
.hero ~ div:empty,
.carousel ~ div:empty,
.carousel-item ~ div:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Brand Showcase */
.brand-showcase {
    background-color: var(--white);
    padding: 40px 0;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.showcase-header h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 0;
}

.see-all {
    color: var(--accent-color);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.see-all i {
    margin-left: 5px;
    font-size: 14px;
}

.brand-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.brand-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.brand-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.brand-item p {
    font-size: 14px;
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
}

/* Product Grid */
.products {
    padding: 60px 0;
}

.products h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.product-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    margin: 0 8px 10px;
    background-color: var(--white);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.product-image {
    height: 140px;
    display: block;
    background: #f8f8f8;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    padding: 0;
    text-align: center;
    transition: transform 0.25s;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
    vertical-align: top;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.discount-label, .badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff5a5f;
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.badge-discount[style*='background:#7c3aed;'] {
    background: #7c3aed !important;
}

.badge-discount[style*='background:#ff9800;'] {
    background: #ff9800 !important;
}

.product-info {
    padding: 10px 12px 0 12px;
    display: block;
}

.product-info .brand {
    min-height: 18px;
    display: block;
}

.product-info .product-name {
    min-height: 24px;
    display: block;
}

.price {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.current-price {
    font-weight: 700;
    font-size: 18px;
    color: #7c3aed;
    margin-right: 10px;
}

.original-price {
    font-size: 14px;
    color: #aaa;
    text-decoration: line-through;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    margin-bottom: 8px;
}

.stars {
    color: #FFD600;
    font-size: 1.1em;
}

.rating-value {
    color: #222;
    font-weight: 600;
    margin-left: 2px;
}

.sold-count {
    color: #888;
    font-size: 13px;
    margin-left: 6px;
}

.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 0;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 10px;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(124,58,237,0.07);
    text-transform: none;
    text-align: center;
    text-decoration: none;
}

.btn-buy:hover {
    background: #5b21b6;
}

/* Services Section */
.services {
    background: linear-gradient(135deg, #f9f4ff, #f0e6ff);
    padding: 60px 0;
}

.services h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.services-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 32px;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: #2a2a2a;
    color: var(--light-gray);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 0;
}

.footer-column p {
    margin-bottom: 20px;
    color: #b8b8b8;
    font-size: 14px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.footer-column h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #b8b8b8;
    font-size: 14px;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.subscribe-form {
    display: flex;
    margin-top: 20px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 14px;
    border-radius: 4px 0 0 4px;
}

.subscribe-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    border-radius: 0 4px 4px 0;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.payment-methods {
    display: flex;
    align-items: center;
}

.payment-methods i {
    font-size: 24px;
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.back-to-top {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.back-to-top i {
    margin-right: 5px;
}

.back-to-top:hover {
    background-color: var(--accent-color);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .topbar-content {
        flex-direction: column;
        gap: 5px;
    }
    
    .navbar-content {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav-categories {
        margin-bottom: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-cart-profile {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-bar {
        flex: 1;
    }
    
    .brand-logos {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 { font-size: 32px; }
    .hero-content p { font-size: 16px; }
    .btn-shop { font-size: 14px; padding: 8px 18px; }
    .hero-content { left: 5%; max-width: 90vw; }
}

@media screen and (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .carousel-nav button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .products-starting {
        display: none;
    }
    
    .brand-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brand-item {
        padding: 15px;
    }
    
    .brand-item img {
        height: 60px;
    }
}

@media screen and (max-width: 1200px) {
    .brand-logos {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* JavaScript Feature Styles */
/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    color: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.notification.success {
    background-color: var(--success);
}

.notification.error {
    background-color: var(--danger);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
}

/* Sticky Navbar */
.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
    z-index: 1000;
}

/* Product Transitions */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Filter Button Active State */
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Search Results Highlight */
.search-highlight {
    background-color: rgba(147, 112, 219, 0.2);
    padding: 0 2px;
    border-radius: 2px;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-categories {
        display: none;
        width: 100%;
        padding: 10px 0;
        background-color: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-categories.show {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 5px;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    /* Adjust cart position for mobile */
    .cart-icon {
        position: relative;
        margin-right: 20px;
    }

    .cart-count {
        top: -5px;
        right: -10px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(147, 112, 219, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Back to Top Button */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Subscribe Form Focus States */
.subscribe-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.subscribe-form button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(147, 112, 219, 0.5);
}

/* Load More Button Styles */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 20px 0 40px;
}

.btn-load-more {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn-load-more:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-load-more i {
    font-size: 18px;
}

.btn-load-more.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-load-more.loading span {
    display: none;
}

.btn-load-more.loading i {
    display: inline-block !important;
}

/* Shopee-style Product Card */
.shopee-card {
    width: 200px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 10px;
    position: relative;
    font-family: Arial, sans-serif;
    margin: 10px;
    display: inline-block;
    vertical-align: top;
}
.shopee-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
}
.store-name {
    font-weight: bold;
    color: #222;
}
.official-badge {
    background: #007aff;
    color: #fff;
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 10px;
    margin-left: 4px;
}
.discount-badge {
    color: #ff424f;
    font-weight: bold;
    font-size: 13px;
}
.product-image {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 5px;
}
.promo-badge {
    background: #ffb400;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    padding: 2px 6px;
    position: absolute;
    top: 45px;
    left: 10px;
}
.product-title {
    font-size: 13px;
    margin: 6px 0 2px 0;
    color: #222;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.star-badge {
    background: #ff424f;
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    padding: 1px 4px;
    margin-right: 4px;
}
.shopee-labels {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}
.cheapest {
    background: #f5f5f5;
    color: #ff424f;
    font-size: 11px;
    border-radius: 3px;
    padding: 1px 4px;
}
.cod-badge {
    background: #ffb400;
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
    padding: 1px 4px;
}
.product-price {
    color: #ff424f;
    font-size: 18px;
    font-weight: bold;
    margin-top: 2px;
}
.original-price {
    color: #888;
    font-size: 13px;
    text-decoration: line-through;
    margin-left: 6px;
}

.btn-wishlist {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    z-index: 3;
    transition: background 0.2s, color 0.2s;
}

.btn-wishlist:hover {
    background: #7c3aed;
    color: #fff;
}

@media screen and (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
        min-width: 0;
    }
}

#pagination-container {
    text-align: center;
    margin: 32px 0;
    padding: 20px 0;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pagination-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 40px;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: #f4511e;
    color: #fff;
    border-color: #f4511e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(244, 81, 30, 0.3);
}

.pagination-btn.active {
    background: #f4511e;
    color: #fff;
    border-color: #f4511e;
    box-shadow: 0 2px 8px rgba(244, 81, 30, 0.3);
}

.pagination-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-btn.prev-btn,
.pagination-btn.next-btn {
    min-width: 100px;
    font-weight: 600;
}

.pagination-ellipsis {
    color: #999;
    font-size: 14px;
    padding: 0 8px;
}

.page-info {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* Loading and error states */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.error {
    text-align: center;
    padding: 40px;
    color: #f4511e;
    font-size: 16px;
}

/* Responsive pagination */
@media screen and (max-width: 768px) {
    .pagination-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-numbers {
        order: 2;
    }
    
    .pagination-btn.prev-btn,
    .pagination-btn.next-btn {
        order: 1;
        min-width: 120px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .page-info {
        order: 3;
        font-size: 12px;
    }
}

.pagination-container, #pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0 0 0;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-container button, #pagination-container button {
    background: #fff;
    color: #7c3aed;
    border: 1px solid #7c3aed;
    border-radius: 6px;
    padding: 8px 16px;
    margin: 0 2px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.pagination-container button.active, #pagination-container button.active {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.pagination-container button:disabled, #pagination-container button[disabled], #pagination-container button[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .pagination-container, #pagination-container {
        flex-direction: column;
        gap: 4px;
    }
    .pagination-container button, #pagination-container button {
        width: 100%;
        min-width: 120px;
    }
}

/* Hero section: pastikan isi carousel dan hero-content rata kiri */
.hero .carousel {
    width: 100%;
}
.hero .carousel-item {
    display: flex;
    align-items: center;
    min-height: 400px; /* atau sesuai kebutuhan */
    padding-left: 0;
    margin-left: 0;
}
.hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 0;
    margin-left: 0;
    max-width: 600px;
}
