:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #ffd000;
    --dark: #24272c;
    --light: #f8fafc;
    --gray: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.5;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo span {
    color: var(--secondary);
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 100%;
  vertical-align: middle;
  margin-right: 10px;
}

  .logo {
    font-size: 1.3rem;
  }

    .logo img {
    height: 35px;
  }




.contact-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.contact-btn:hover {
    background-color: var(--primary-hover);
}

/* Hero */
.hero {
    background-color: var(--primary);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}

/* Search & Filter */
.search-filter {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.filter-select {
    min-width: 200px;
}

.filter-select select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

/* Products Grid */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: var(--danger);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 1rem;
    background-color: #f8fafc;
}

.product-info {
    padding: 1rem;
}

.product-category {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3em;
    min-height: 42px; /* pastikan cukup untuk 2 baris */
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--success);
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.detail-btn {
    background-color: var(--light);
    color: var(--dark);
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: background-color 0.2s;
}

.detail-btn:hover {
    background-color: #e2e8f0;
}

.buy-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: background-color 0.2s;
}

.buy-btn:hover {
    background-color: var(--primary-hover);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-body {
    padding: 1.5rem;
}

.product-description {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-description ul {
    list-style: none;
}

.product-description li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.product-description li::before {
    content: "•";
    color: var(--secondary);
    font-size: 1.5rem;
    margin-right: 0.5rem;
    line-height: 1;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.option-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.option-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.option-item:hover {
    border-color: var(--primary);
}

.option-item.selected {
    border-color: var(--primary);
    background-color: #eff6ff;
}

.option-radio {
    margin-right: 1rem;
}

.option-label {
    flex: 1;
}

.option-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.option-price {
    font-weight: 700;
    color: var(--primary);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e2e8f0;
    background-color: white;
    border-radius: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-display {
    width: 3rem;
    text-align: center;
    font-weight: 600;
}

.subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.subtotal-label {
    font-weight: 500;
}

.subtotal-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.payment-option:hover {
    border-color: var(--primary);
}

.payment-option.selected {
    border-color: var(--primary);
    background-color: #eff6ff;
}

.payment-icon {
    width: 30px;
    height: 30px;
    margin-right: 0.75rem;
    object-fit: contain;
}

.payment-name {
    flex: 1;
    font-weight: 500;
}

.payment-price {
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.secondary-btn {
    background-color: #e2e8f0;
    color: var(--dark);
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.secondary-btn:hover {
    background-color: #cbd5e1;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-text {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .payment-options {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Updated styles for animated notification */
.notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    pointer-events: none; /* Allow clicks to pass through container */
}

.notification {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
    width: 280px;
    display: flex;
    flex-direction: column;
    transform: translateX(-300px);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    pointer-events: auto; /* Make notifications clickable */
}

.notification {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
    width: 280px;
    display: flex;
    flex-direction: column;
    transform: translateX(-300px);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.notification-icon {
    font-size: 20px;
    margin-right: 10px;
    color: #2563eb;
}

.notification-customer {
    font-size: 13px;
    color: #6b7280;
}

.notification-customer span {
    background-color: #e5e7eb;
    padding: 2px 4px;
    border-radius: 4px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #111827;
}

.notification-message {
    font-size: 13px;
    color: #4b5563;
    display: flex;
    justify-content: space-between;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: #2563eb;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 5s linear;
}

.notification.show .notification-progress {
    transform: scaleX(1);
}

.notification-tag {
    background-color: #2563eb;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    align-self: flex-start;
}

.contact-method {
    transition: all 0.3s ease;
    height: 100%;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.whatsapp-btn {
    display: inline-block;
    background-color: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

/* Floating Customer Support Button - Moved to Top */
.support-float {
    position: fixed !important;
    bottom: 20px !important;
    right: 0px !important; /* Mengurangi jarak dari kanan untuk mengisi ruang kosong */
    left: auto !important;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    position: relative;
    pointer-events: none; /* Allow clicks to pass through */
}

.support-float a {
    pointer-events: auto; /* Make the link clickable */
}

.support-float a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.support-icon {
    height: 150px;
    width: auto;
    transition: transform 0.6s ease;
    order: 1; /* Memindahkan ikon ke paling kanan */
}

.support-text {
    background-color: #b3d4fc; /* Warna biru lebih terang seperti di gambar */
    color: #1e3a8a; /* Warna teks biru tua untuk kontras */
    padding: 8px 16px; /* Sedikit lebih lebar untuk tampilan lebih halus */
    border-radius: 20px; /* Membuat bubble lebih bulat */
    margin-bottom: -5px; /* Posisi tetap di atas ikon */
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow);
    position: relative;
    top: -110px; /* Posisi di atas kepala ikon */
    order: 0;
    left: 80%; /* Posisi horizontal */
    transform: translateX(-65%); /* Memusatkan teks */
    width: max-content;
}

/* Menambahkan ekor bubble */
.support-text::after {
    content: "";
    position: absolute;
    bottom: -10px; /* Posisi ekor di bawah bubble */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent; /* Membuat segitiga */
    border-right: 10px solid transparent;
    border-top: 10px solid #b3d4fc; /* Warna ekor sama dengan bubble */
}

.support-float a:hover .support-icon {
    transform: translateY(-5px);
}

.support-float a:hover .support-text {
    background-color: #3b82f6;
}
