/* === ROOT VARIABLES === */
:root {
    --primary: #1a1a1a;
    --accent: #d4af37;
    --text: #333333;
    --bg: #fdfdfd;
    --white: #ffffff;
    --gray: #f5f5f5;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* === HEADER === */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    transition: transform 0.3s ease;
}

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

.logo span {
    color: var(--accent);
}

.navbar {
    display: flex;
    gap: 30px;
}

.navbar a {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 150px;
    color: var(--white);
    font-size: 14px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box i {
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
}

.cart-btn {
    position: relative;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.cart-btn i {
    color: var(--white);
    font-size: 24px;
}

#cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent);
    color: var(--white);
    padding: 3px 7px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

#menu-icon {
    display: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

/* === HERO SECTION === */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=1600') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8%;
    color: var(--white);
    position: relative;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    background: #c9a332;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

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

/* === SECTIONS === */
.categories,
.products,
.inspiration {
    padding: 100px 8%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.active-category {
    color: var(--accent);
    font-weight: 600;
    margin-top: 10px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-text:hover {
    gap: 12px;
    color: #c9a332;
}

/* === CATEGORIES === */
.category-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 600px;
}

.category-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.category-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-box:hover img {
    transform: scale(1.15);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: var(--white);
    z-index: 10;
}

.product-count {
    display: inline-block;
    background: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.category-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.category-box:hover .explore-link {
    opacity: 1;
    transform: translateX(0);
}

/* === PRODUCTS === */
.products {
    background: var(--gray);
}

.products .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

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

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-card h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: block;
}

.product-card .btn {
    width: 100%;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
}

.product-card .btn:hover {
    background: var(--accent);
}

/* === INSPIRATION === */
.inspiration {
    background: linear-gradient(135deg, #fff9f0 0%, #ffe9cc 100%);
}

.inspire-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.inspire-text {
    padding: 60px;
}

.inspire-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.inspire-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.inspire-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 32px;
    color: var(--white);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.7);
    }
}

/* === CART SIDEBAR === */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    padding: 0;
    box-shadow: -5px 0 30px var(--shadow);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border);
    background: var(--gray);
}

.cart-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.cart-header i {
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-header i:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

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

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-cart i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--gray);
    border-radius: 15px;
    margin-bottom: 15px;
    align-items: center;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: #ebebeb;
    transform: translateX(-5px);
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-info h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.cart-item-info .price {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.quantity-controls button:hover {
    background: var(--accent);
    color: var(--white);
}

.quantity-controls span {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-remove {
    color: #ff4444;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    transform: scale(1.2);
    color: #cc0000;
}

.cart-footer {
    padding: 25px;
    border-top: 2px solid var(--border);
    background: var(--gray);
}

.total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.total-box span:last-child {
    color: var(--accent);
}

.checkout-btn {
    width: 100%;
    background: var(--accent);
    color: var(--white);
    padding: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #c9a332;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1500;
    display: none;
    transition: all 0.3s ease;
}

.overlay.active {
    display: block;
}

/* === PAYMENT MODAL === */
.payment-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.payment-modal.active {
    display: flex;
}

.payment-content {
    background: var(--white);
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

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

.payment-header {
    text-align: center;
    margin-bottom: 30px;
}

.payment-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, #c9a332 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.payment-icon i {
    font-size: 40px;
    color: var(--white);
}

.payment-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.payment-total {
    font-size: 1.1rem;
    color: #666;
}

.payment-total span {
    font-weight: 700;
    color: var(--accent);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 15px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.payment-btn:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.payment-btn i {
    font-size: 32px;
}

.midtrans-btn i {
    color: #2c97de;
}

.whatsapp-btn i {
    color: #25D366;
}

.payment-btn div {
    text-align: left;
}

.payment-btn strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
}

.payment-btn small {
    color: #999;
    font-size: 13px;
}

.btn-cancel {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: var(--gray);
    border-color: #ccc;
}

/* === FOOTER === */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 8% 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-box p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 15px;
}

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

.footer-box ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-box ul li a:hover {
    color: var(--accent);
    padding-left: 8px;
}

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

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

.social-media a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.social-media a i {
    font-size: 22px;
    color: var(--white);
}

.btn-footer-wa {
    margin-top: 15px;
    padding: 12px 25px;
    background: #25D366;
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-footer-wa:hover {
    background: #20ba5a;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 15px 20px;
    background: var(--accent);
    border: none;
    cursor: pointer;
    color: var(--white);
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #c9a332;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent);
}

.payment-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.payment-icons i {
    font-size: 32px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 20px 5%;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 5%;
        flex-direction: column;
        gap: 15px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.4s ease;
    }
    
    .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    #menu-icon {
        display: block;
    }
    
    .search-box {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 15px 5%;
        border-radius: 0;
        backdrop-filter: blur(10px);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .search-box.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .search-box input {
        width: 100%;
        font-size: 16px;
    }
    
    #search-icon {
        font-size: 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .category-side {
        grid-template-rows: auto;
        grid-template-columns: 1fr 1fr;
    }
    
    .inspire-box {
        grid-template-columns: 1fr;
    }
    
    .inspire-img img {
        height: 350px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 768px) {
    .categories,
    .products,
    .inspiration {
        padding: 60px 5%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .category-side {
        grid-template-columns: 1fr;
    }
    
    .product-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .inspire-text {
        padding: 40px 30px;
    }
    
    .inspire-text h2 {
        font-size: 2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float i {
        font-size: 28px;
    }
    
    .payment-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .product-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item img {
        width: 60px;
        height: 60px;
    }
}