body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background: #f7f9fc;
}
/* Header Styles */
.header {
    background: linear-gradient(135deg, #272948 0%, #3a4a6b 100%);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(39, 41, 72, 0.15);
    
}

.header.transparent {
    background: rgba(39, 41, 72, 0.824); 
    box-shadow: none;
    backdrop-filter: blur(5px); 
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #4FC3F7;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4FC3F7;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 25px;
    
}

.nav-icon.transparent {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    box-shadow: none;
}

.nav-icon:hover {
    background: white;
    color: white;
    transform: translateY(-2px);
}

.breadcrumb {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.produk-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  gap: 2rem;
  flex-wrap: wrap;
}

.sidebar {
  flex: 1 1 250px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-height: 600px;
  align-self: flex-start;
}

.filter-section {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.filter-header {
  background: #272948;
  padding: 1rem 1.5rem;
  border-radius: 12px 12px 0 0;
}

.filter-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: white;
  font-weight: 600;
}

.filter-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(600px - 4rem);
  overflow-y: auto;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  flex: 1;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e4eb;
}

.apply-filters {
  flex: 2;
  padding: 10px;
  background: #272948;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.apply-filters:hover {
  background: #323660;
}

.clear-filters {
  flex: 1;
  padding: 10px;
  border: 1px solid #e0e4eb;
  background: transparent;
  border-radius: 8px;
  color: #272948;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-filters:hover {
  background: #f7f9fc;
  border-color: #272948;
}

.filter-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s;
  position: relative;
}

.filter-item:hover {
  background-color: #f7f9fc;
}

.filter-item input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}

.checkmark {
  height: 18px;
  width: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  transition: all 0.2s;
}

.filter-item input[type="checkbox"]:checked + .checkmark {
  background-color: #272948;
  border-color: #272948;
}

.filter-item input[type="checkbox"]:checked + .checkmark:after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.category-name {
  margin-left: 12px;
  font-size: 0.95rem;
  color: #2a314d;
  flex: 1;
}

.category-count {
  font-size: 0.85rem;
  color: #808495;
}

.clear-filters {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e4eb;
  background: transparent;
  border-radius: 8px;
  color: #272948;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-filters:hover {
  background: #f7f9fc;
  border-color: #272948;
}

.produk-area {
  flex: 3 1 600px;
  display: flex;
  flex-direction: column;
  min-height: 650px;
  justify-content: flex-start;
  position: relative;
}

.produk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.produk-toolbar select {
  padding: 6px 10px;
  font-family: inherit;
  border-radius: 6px;
}

.produk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 2rem;
  align-items: stretch;
}

.produk-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(39, 41, 72, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #e8ecf0;
    height: 100%;
    overflow: hidden;
}

.produk-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(39, 41, 72, 0.15);
    border-color: #4FC3F7;
}


.produk-card h2 {
    font-size: 15px;
    font-weight: 500;
    color: #272948;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
}


.produk-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: auto;
}

.produk-buttons .btn,
.produk-buttons .detail-button {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-height: 44px;
}

.produk-buttons .detail-button {
    background: #272948;
    color: white;
    border: 2px solid #272948;
}

.produk-buttons .detail-button:hover {
    background: #1a1d35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 41, 72, 0.3);
}

.produk-buttons .btn {
    background: #25d366;
    color: white;
    border: 2px solid #25d366;
}

.produk-buttons .btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn {
    background: #272948;
    color: white;
    padding: 10px;
    width: 70%;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}


.btn:hover {
  background: #34495e;
}

.pagination {
  margin-top: auto;
  text-align: center;
  position: static;
  left: unset;
  bottom: unset;
  width: 100%;
  background: none;
  box-shadow: none;
  padding: 18px 0 0 0;
  z-index: 1;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.pagination a,
.pagination span {
  display: inline-block;
  min-width: 34px;
  padding: 6px 12px;
  margin: 0 2px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #272948;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  line-height: 1.2;
}

.pagination a.active,
.pagination a.active:visited {
  background: #272948;
  color: #fff;
  font-weight: 700;
  border-color: #272948;
  cursor: default;
}

.pagination .disabled,
.pagination span.disabled {
  background: #f5f5f5;
  color: #bbb;
  border: 1px solid #e0e0e0;
  cursor: not-allowed;
  font-weight: 400;
}

.pagination a:hover:not(.active):not(.disabled) {
  background: #e3eafc;
  color: #272948;
  border-color: #b6c6e3;
}

/* Responsive: pagination lebih kecil di mobile */
@media screen and (max-width: 480px) {
  .pagination {
    font-size: 0.95rem;
    padding: 12px 0 0 0;
  }
  .pagination a,
  .pagination span {
    min-width: 28px;
    padding: 5px 8px;
    font-size: 0.95rem;
  }
}

.product-image {
    flex: 0 0 40%;
}

.product-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.product-details {
    flex: 1;
}

.specifications, .description {
    margin-bottom: 20px;
}

.specifications h3, .description h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25d366;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1fba57;
}



/* Product Card and Button Styles */
.produk-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    transition: transform 0.3s ease;
}

.produk-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 6px;
}



.produk-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.produk-buttons .btn,
.produk-buttons .detail-button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.produk-buttons .detail-button {
    background-color: #272948;
    color: white;
}

.produk-buttons .detail-button:hover {
    background-color: #323660;
}

.produk-buttons .btn {
    background-color: #25d366;
    color: white;
}

.produk-buttons .btn:hover {
    background-color: #1fba57;
    transform: translateY(-1px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}
.modal[style*="display: block"] {
    display: flex !important;
}
.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 95vw;
    margin: auto;
    padding: 32px 32px 24px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
    animation: modalFadeIn 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal .close {
    color: #222;
    position: absolute;
    right: 24px;
    top: 18px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}
.modal .close:hover,
.modal .close:focus {
    color: #d32f2f;
}
.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}
.modal-body {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: flex-start;
    width: 100%;
    justify-content: center;
}
.product-image {
    flex: 0 0 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img {
    width: 100%;
    max-width: 260px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 220px;
}
.specifications h3, .description h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.specifications ul {
    margin: 0 0 1rem 0;
    padding-left: 1.2rem;
}
.description p {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}
.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 16px;
    justify-content: center;
}
.btn-whatsapp:hover {
    background: #1ebe5d;
}
@media (max-width: 900px) {
    .modal-content {
        padding: 18px 6px 18px 6px;
    }
    .modal-body {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .product-image {
        max-width: 220px;
    }
}

@media (max-width: 600px) {
    .modal-content {
        padding: 8px 2px 8px 2px;
        max-width: 99vw;
    }
    .modal-header h2 {
        font-size: 1.2rem;
    }
    .modal-body {
        flex-direction: column;
        gap: 1rem;
    }
    .product-image img {
        max-width: 160px;
    }
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .produk-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .produk-wrapper {
        padding: 0 1rem;
    }
}

@media screen and (max-width: 768px) {
  .nav-container {
    padding: 0.5rem;
  }
  .nav-menu {
    display: none;
  }
  .produk-wrapper {
    flex-direction: column;
    padding: 0 1rem;
    gap: 1rem;
    max-width: 100vw;
  }
  .sidebar {
    width: 100%;
    max-height: none;
    margin-bottom: 1.5rem;
    min-width: 0;
  }
  .filter-content {
    max-height: none;
    padding: 1rem;
  }
  .produk-area {
    min-height: unset;
    padding-bottom: 1.5rem;
  }
  .produk-toolbar {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
  }
  .produk-toolbar select,
  .produk-toolbar input[type="text"] {
    width: 100%;
    box-sizing: border-box;
  }
  .modal-content {
    width: 95vw;
    margin: 10% auto;
  }
  .modal-body {
    flex-direction: column;
  }
  .product-image {
    flex: none;
  }
  .product-details {
    padding-top: 1rem;
  }
  .footer {
    position: relative;
    margin-top: 2rem;
  }
}

@media screen and (max-width: 600px) {
  .produk-wrapper {
    padding: 0 0.5rem;
    gap: 0.5rem;
  }
  .produk-area {
    padding-bottom: 1rem;
  }
  .produk-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .produk-card {
    padding: 0.7rem;
  }
  .produk-card img {
    height: 150px;
  }
  .produk-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  .produk-buttons .btn,
  .produk-buttons .detail-button {
    width: 100%;
  }
  .filter-content {
    padding: 0.7rem;
  }
  .sidebar {
    max-height: none;
    min-width: 0;
  }
  .pagination {
    font-size: 0.95rem;
    padding: 10px 0 0 0;
  }
  .pagination a,
  .pagination span {
    min-width: 24px;
    padding: 5px 6px;
    font-size: 0.95rem;
  }
  .footer {
    margin-top: 2rem;
    padding: 1.2rem 0 0 0;
  }
}

/* Fix for very small screens */
@media screen and (max-width: 320px) {
    .produk-card h2 {
        font-size: 14px;
    }

    .produk-card img {
        height: 150px;
    }
}


/* Responsive: 2 kolom di tablet, 1 kolom di mobile */
@media screen and (max-width: 1024px) {
  .produk-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .produk-card.compact {
    max-width: 95vw;
  }
}
@media screen and (max-width: 600px) {
  .produk-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .produk-card.compact {
    max-width: 99vw;
    padding: 12px 6px 14px 6px;
  }
  .produk-card.compact img {
    max-width: 98vw;
    height: 110px;
  }
}



