@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #d4af37; /* Gold */
    --primary-light: #f3e5ab; /* Champagne */
    --text-main: #333333;
    --text-light: #666666;
    --bg-main: #ffffff;
    --bg-alt: #f9f9f9;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Header */
.header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header .logo {
    font-size: 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    
    /* Efek Gradasi Emas (Gold Gradient) */
    background: linear-gradient(45deg, #d4af37, #f3e5ab, #b5952f, #d4af37);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Bayangan halus untuk kedalaman */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.header .logo:hover {
    background-position: right center;
    transform: scale(1.05);
    letter-spacing: 3px;
}

/* Hero Banner */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-alt);
    overflow: hidden;
}

.hero img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--primary);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-light);
}

/* Products */
.products-section {
    padding: 60px 20px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: var(--primary);
    bottom: -10px;
    left: 25%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Category Filters */
.category-filters {
    margin-bottom: 40px;
}

.category-dropdown {
    padding: 10px 40px 10px 20px;
    font-size: 16px;
    border: 2px solid var(--primary);
    border-radius: 30px;
    background-color: white;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    font-weight: 600;
    min-width: 250px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23d4af37" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.category-dropdown:hover, .category-dropdown:focus {
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.2);
    border-color: #b5952f;
}

/* Category Badge on Product */
.product-card {
    position: relative;
    /* ... existing styles inside product card ... */
    background: var(--bg-main);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Product Gallery */
.product-gallery {
    display: flex;
    gap: 5px;
    padding: 5px 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.product-gallery img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    scroll-snap-align: start;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.product-gallery img:hover {
    border-color: var(--primary);
}
.product-gallery::-webkit-scrollbar {
    height: 4px;
}
.product-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.map-container {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Cart Button in Header */
.cart-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    padding: 10px;
    transition: color 0.3s;
}

.cart-btn:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: bold;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.cart-overlay.open {
    display: block;
    opacity: 1;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 20px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close-cart:hover {
    color: #333;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.item-details {
    flex: 1;
}

.remove-btn {
    background: #ff4d4f;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.remove-btn:hover {
    background: #d9363e;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.qty-btn {
    background: #f5f5f5;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #666;
    font-size: 10px;
    transition: background 0.2s;
}
.qty-btn:hover {
    background: #e0e0e0;
}
.qty-val {
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background-color: #128C7E;
}

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

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.product-price {
    font-size: 20px;
    color: var(--primary);
    font-weight: 600;
}

.discounted {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 10px;
}

.product-meta {
    font-size: 14px;
    color: var(--text-light);
    margin: 10px 0;
}

.btn-buy {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    background-color: #b5952f;
}

.btn-cart-only {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 6px;
    padding: 0 15px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cart-only:hover {
    background-color: var(--primary);
    color: white;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 20px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-col h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-col p {
    color: #ccc;
    line-height: 1.6;
}

.social-links {
    list-style: none;
    padding: 0;
}

.social-links li {
    margin-bottom: 10px;
}

.social-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #888;
    font-size: 14px;
}
