/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #e74c3c;
    --primary-light: #fff5f3;
    --primary-dark: #c0392b;
    --secondary-color: #2c3e50;
    --secondary-dark: #34495e;
    --text-color: #333333;
    --text-light: #7f8c8d;
    --border-color: #ecf0f1;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

body {
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ========== NAVBAR STYLES ========== */
.navbar {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1600607686527-6fb886090705?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 5%;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

/* ========== BUTTON STYLES ========== */

/* Base Button */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

/* ========== FILTER BUTTONS ========== */

/* Filter Container */
.filter-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

/* Category Filter Buttons - KAPSUL */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px; /* KAPSUL untuk kategori */
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* ========== SIZE FILTER BUTTONS - PERSEGI PANJANG ========== */

/* Size Filter Group */
.filter-group {
    margin-bottom: 2rem;
    width: 100%;
}

.filter-group-title {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.filter-group-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Size Filter Buttons Container */
.size-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
}

/* Size Filter Button - PERSEGI PANJANG */
.size-filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: var(--white);
    color: var(--text-color);
    border-radius: 4px; /* PERSEGI PANJANG (bukan kapsul) */
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    min-width: 90px;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.size-filter-btn i {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition);
}

/* Hover effect */
.size-filter-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.15);
}

.size-filter-btn:hover i {
    color: var(--primary-color);
}

/* Active state */
.size-filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.size-filter-btn.active i {
    color: var(--white);
}

/* Size Filter Button Active for "All" */
.size-filter-btn[data-size="all"].active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.size-filter-btn[data-size="all"].active i {
    color: var(--white);
}

/* Ukuran khusus untuk tombol "Semua" */
.size-filter-btn[data-size="all"] {
    min-width: 90px;
}

/* ========== BACK BUTTON ========== */

/* Container untuk tombol back */
.back-button-group {
    margin: 20px 0;
    text-align: left;
}

.back-button {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    border-radius: 4px; /* Persegi panjang */
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background: linear-gradient(135deg, #5a6268, #4a5258);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
}

.back-button:active {
    transform: translateY(0);
}

.back-button i {
    font-size: 1.1rem;
}

/* ========== CATEGORY FILTER GROUP ========== */

/* Container untuk filter kategori */
#categoryFilterGroup {
    transition: all 0.3s ease;
}

/* ========== ANIMASI UNTUK FILTER GROUP ========== */

.size-filter-group {
    animation: slideDown 0.3s ease-out;
    transform-origin: top;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#selectedCategoryName {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ========== PRODUCT SECTION ========== */
.products {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Product Image */
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background-color: #f5f5f5;
    isolation: isolate;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.product-image img[loading="lazy"] {
    animation: fadeIn 0.5s ease;
}

.product-image img.error {
    object-fit: contain;
    padding: 20px;
    opacity: 0.7;
}

/* Product Info */
.product-info {
    padding: 15px;
    text-align: left;
    background: var(--white);
    flex: 1;
}

.product-category {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 500;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-specs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* ========== PRODUCT SIZE BADGE ========== */

/* Badge ukuran pada product card */
.product-size-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 4px; /* Persegi panjang */
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    margin-right: 5px;
}

.product-size-badge i {
    color: var(--primary-color);
    font-size: 0.7rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-description-badge {
    font-size: 0.75rem;
    color: var(--text-light);
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 8px;
    border-left: 3px solid var(--primary-color);
    font-style: italic;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Favorite Button */
.btn-favorite {
    flex: 1;
    padding: 0.7rem;
    background: #ecf0f1;
    border: none;
    border-radius: 4px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-favorite:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-favorite.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Detail Button */
.btn-detail {
    flex: 2;
    padding: 0.7rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-detail:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

/* Finish Badge */
.product-finish {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 4px; /* Persegi panjang */
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 5px;
    white-space: nowrap;
}

.product-finish i {
    font-size: 0.7rem;
}

.finish-glossy {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.finish-matte {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.finish-cutting {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* New Arrival Badge */
.new-arrival-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.3;
    box-shadow: 0 2px 5px rgba(39, 174, 96, 0.3);
}

.new-arrival-badge i {
    font-size: 14px;
    margin-bottom: 2px;
}

.new-text {
    font-weight: 700;
    font-size: 10px;
}

.new-date {
    font-size: 8px;
    opacity: 0.9;
}

/* ========== VISUALIZER SECTION ========== */
.visualizer {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    padding: 5rem 5%;
    color: var(--white);
}

.visualizer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.visualizer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.visualizer-preview {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.preview-image {
    width: 100%;
    height: 300px;
    background: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* ========== CALCULATOR SECTION ========== */
.calculator {
    padding: 2rem 5%; /* Berkurang dari 5rem */
    max-width: 1400px;
    margin: 0 auto;
}

.calculator-container {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem; /* Berkurang dari 3rem */
    box-shadow: var(--shadow-md);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem; /* Berkurang dari 3rem */
}

/* Section Title dalam Calculator */
.calculator .section-title {
    margin-bottom: 1.5rem; /* Berkurang dari default 3rem */
}

.calculator .section-title h2 {
    font-size: 2rem; /* Berkurang dari 2.5rem */
    margin-bottom: 0.5rem;
}

.calculator .section-title p {
    font-size: 1rem; /* Berkurang dari 1.1rem */
}

/* Input Group */
.input-group {
    margin-bottom: 1rem; /* Berkurang dari 1.5rem */
}

.input-group label {
    display: block;
    margin-bottom: 0.25rem; /* Berkurang dari 0.5rem */
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem; /* Label lebih kecil */
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 0.6rem; /* Berkurang dari 0.8rem */
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem; /* Font lebih kecil */
    transition: border-color 0.3s;
}

.input-group input:focus, 
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Calculator Button */
.calculate-btn {
    width: 100%;
    padding: 0.8rem; /* Berkurang dari 1rem */
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem; /* Font lebih kecil */
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem; /* Tambahan margin atas */
}

.calculate-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Result Box */
.result-box {
    background: #f8f9fa;
    padding: 1.25rem; /* Berkurang dari 2rem */
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px; /* Tinggi minimal */
}

.result-box h3 {
    font-size: 1.2rem; /* Ukuran judul hasil */
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.result-number {
    font-size: 2.5rem; /* Berkurang dari 3rem */
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.25rem 0; /* Berkurang dari 1rem */
    line-height: 1.2;
}

.result-text {
    font-size: 0.95rem; /* Teks hasil lebih kecil */
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.result-note {
    font-size: 0.8rem; /* Catatan lebih kecil */
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Responsive untuk tablet */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr; /* Stack vertically di mobile */
        gap: 1rem;
    }
    
    .result-box {
        min-height: auto; /* Hapus min-height di mobile */
        padding: 1rem;
    }
    
    .result-number {
        font-size: 2rem;
    }
}

/* Responsive untuk mobile */
@media (max-width: 480px) {
    .calculator {
        padding: 1.5rem 5%;
    }
    
    .calculator-container {
        padding: 1rem;
    }
    
    .calculator .section-title h2 {
        font-size: 1.5rem;
    }
    
    .input-group input, 
    .input-group select {
        padding: 0.5rem;
    }
    
    .calculate-btn {
        padding: 0.7rem;
    }
    
    .result-box {
        padding: 0.75rem;
    }
    
    .result-number {
        font-size: 1.8rem;
    }
}

/* ========== MAP SECTION ========== */
.map-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

#map {
    height: 450px;
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.store-list {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    max-height: 450px;
    overflow-y: auto;
}

.store-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.store-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.store-item:last-child {
    border-bottom: none;
}

.store-name {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.store-address {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.store-phone {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.store-phone i {
    margin-right: 0.3rem;
}

/* ========== CONTACT SECTION ========== */
.contact {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem;
    border-radius: 10px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-detail i {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* ========== WHATSAPP BUTTON ========== */
.btn-wa {
    background-color: #25D366;
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 4px; /* Persegi panjang */
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.btn-wa i {
    font-size: 1.2rem;
}

/* ========== TOGGLE BUTTON ========== */
.btn-toggle {
    background: #17a2b8;
    color: var(--white);
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-toggle:hover {
    background: #138496;
    transform: translateY(-2px);
}

/* ========== WATERMARK STYLES ========== */

/* Watermark Kecil */
.watermark-small {
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Watermark Besar (untuk modal) */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    color: rgba(231, 76, 60, 0.5);
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255,255,255,0.5);
    font-family: 'Poppins', sans-serif;
    width: 100%;
    text-align: center;
    z-index: 10;
}

/* ========== MODAL STYLES ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    max-width: 800px;
    margin: 50px auto;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Image Zoom Container */
.image-zoom-container {
    text-align: center;
    padding: 20px;
}

.watermark-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.zoomable-image {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.zoomable-image.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.image-caption {
    margin: 15px 0;
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
}

/* ========== SHARE BUTTONS ========== */
.share-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1.5rem 2%; /* Berkurang dari 3rem */
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo di Footer */
.footer .logo {
    display: inline-block;
    font-size: 1.5rem; /* Ukuran logo lebih kecil */
    margin-bottom: 0.25rem;
}

.footer .logo span {
    color: var(--primary-color);
}

/* Teks deskripsi */
.footer-content > p {
    font-size: 0.9rem; /* Teks lebih kecil */
    opacity: 0.9;
    margin-bottom: 1rem; /* Berkurang dari sebelumnya */
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Berkurang dari 2rem */
    margin: 1rem 0; /* Berkurang dari 2rem */
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem; /* Ukuran link lebih kecil */
    padding: 0.2rem 0;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem; /* Berkurang dari 1rem */
    margin-bottom: 1rem; /* Berkurang dari 2rem */
}

.social-icons a {
    width: 32px; /* Berkurang dari 40px */
    height: 32px; /* Berkurang dari 40px */
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem; /* Ukuran icon lebih kecil */
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Copyright */
.copyright {
    font-size: 0.8rem; /* Ukuran copyright lebih kecil */
    opacity: 0.8;
    margin-top: 1rem; /* Berkurang dari sebelumnya */
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1); /* Garis pemisah tipis */
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .footer {
        padding: 1.25rem 2%;
    }
    
    .footer .logo {
        font-size: 1.3rem;
    }
    
    .footer-links {
        gap: 1rem;
        margin: 0.75rem 0;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .social-icons {
        margin-bottom: 0.75rem;
    }
    
    .social-icons a {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .copyright {
        font-size: 0.7rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1rem 2%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .footer-links a {
        display: block;
        padding: 0.25rem 0;
    }
    
    .social-icons {
        gap: 0.5rem;
    }
}

/* ========== LOADING & NO PRODUCTS ========== */
.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.loading-indicator i {
    margin-right: 0.5rem;
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    width: 100%;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.no-products p {
    font-size: 1.2rem;
}

/* ========== BADGES ========== */
.badge-primary {
    background: #cfe2ff;
    color: #084298;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

.badge-secondary i, 
.badge-success i {
    margin-right: 3px;
    font-size: 10px;
}

.old-badge {
    display: inline-block;
    background: #95a5a6;
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
}

/* ========== BUTTON DISABLED STATE ========== */
.btn:disabled,
.filter-btn:disabled,
.size-filter-btn:disabled,
.calculate-btn:disabled,
.submit-btn:disabled,
.btn-wa:disabled,
.btn-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== BUTTON LOADING STATE ========== */
.btn.loading,
.filter-btn.loading,
.size-filter-btn.loading,
.calculate-btn.loading,
.submit-btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after,
.filter-btn.loading::after,
.size-filter-btn.loading::after,
.calculate-btn.loading::after,
.submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== RESPONSIVE STYLES ========== */

/* Tablet Styles */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Layout Grid */
    .visualizer-container,
    .calculator-grid,
    .map-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    /* Filter Container */
    .filter-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .search-box input:focus {
        width: 100%;
    }

    /* Buttons - Responsive */
    .filter-btn {
        min-width: 110px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .size-filter-btn {
        min-width: calc(50% - 8px);
        padding: 10px 12px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .back-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .btn-wa {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 1rem;
    }

    .product-specs {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .product-size-badge {
        width: 100%;
        justify-content: center;
    }

    /* Map */
    #map {
        height: 350px;
    }
    
    .store-list {
        max-height: 300px;
    }

    /* Modal */
    .modal-content {
        margin: 20px;
        padding: 1rem;
    }

    /* Watermark */
    .watermark {
        font-size: 2rem;
        letter-spacing: 3px;
    }
    
    .watermark-small {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
}

/* Mobile Landscape */
@media (max-width: 600px) {
    .filter-btn {
        min-width: calc(50% - 6px);
        white-space: normal;
        padding: 10px 12px;
    }
    
    .size-filter-btn {
        min-width: calc(50% - 6px);
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .size-filter-btn i {
        font-size: 0.8rem;
    }
    
    .filter-buttons,
    .size-filter-buttons {
        gap: 8px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    /* Grid */
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    /* Buttons */
    .filter-btn {
        min-width: 100%;
        font-size: 0.9rem;
        padding: 12px 16px;
    }
    
    .size-filter-btn {
        min-width: 100%;
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    
    .back-button {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-favorite,
    .btn-detail {
        width: 100%;
    }
    
    .btn-wa {
        width: 100%;
        padding: 12px 20px;
    }

    /* Product Info */
    .product-info {
        padding: 10px;
    }
    
    .product-category {
        font-size: 0.75rem;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-specs {
        font-size: 0.8rem;
    }
    
    .product-size-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
        width: 100%;
        justify-content: center;
    }
    
    .product-finish {
        padding: 2px 8px;
        font-size: 0.7rem;
    }

    .product-description-badge {
        font-size: 0.7rem;
        min-height: 32px;
    }

    /* Watermark */
    .watermark {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .watermark-small {
        font-size: 0.6rem;
        padding: 2px 5px;
        bottom: 5px;
        right: 5px;
    }
}