.product-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.product-card {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    background-color: white;
    margin-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-left {
    display: flex;
    align-items: center;
}

.filter-button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    margin-right: 20px;
}

.filter-button:hover {
    background-color: #e9e9e9;
}

.filter-button i {
    margin-right: 5px;
}

.sale-filter {
    display: flex;
    align-items: center;
}

.sale-filter input {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.sale-filter label {
    cursor: pointer;
    font-size: 0.9rem;
}

.sorting-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
    cursor: pointer;
    min-width: 200px;
}

.filter-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.select-wrapper .dropdown-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 12px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.select-wrapper select:focus+.dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.product-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-img-container {
    position: relative;
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.product-item:hover .product-img {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e53935;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
}

.product-info {
    padding: 15px;
}

.product-category {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    min-height: 40px;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: center;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 0.9rem;
}

.discounted-price {
    color: #e53935;
    font-weight: 700;
    font-size: 1.1rem;
}

.regular-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.image-zoom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

.image-zoom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-modal-content {
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease-in-out;
}

.zoom-modal-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.zoom-close-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 0;
    width: auto;
    height: auto;
    display: block;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10001;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.zoom-close-button:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.product-main-image {
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.product-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.product-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-details-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.product-details-list li i {
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.product-details-list li:last-child {
    border-bottom: none;
}

.custom-product-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.custom-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-badge i {
    margin-right: 8px;
    font-size: 14px;
}

.custom-badge span {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
}

.custom-price-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    opacity: 0.9;
}

.collection-price.custom-text {
    color: #667eea;
    font-style: italic;
    font-weight: 600;
}

.drilldown-trail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    font-size: 0.875rem;
}
 
.trail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-weight: 500;
}
 
.trail-link {
    color: #495057;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
}
 
.trail-link:hover {
    color: #212529;
    background: #e9ecef;
    text-decoration: none;
}
 
.trail-active {
    color: #212529;
    font-weight: 700;
}
 
.trail-sep {
    color: #ced4da;
    font-size: 0.7rem;
}
 
/* ── Card action hint (overlay saat hover) ───────────────── */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}
 
.card-action-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transform: translateY(100%);
    transition: transform 0.22s ease;
}
 
.card-action-hint i {
    font-size: 0.8rem;
}
 
/* Drilldown: warna biru muda untuk "Lihat Koleksi" */
.is-drilldown .card-action-hint {
    background: rgba(30, 90, 180, 0.75);
}
 
.modern-product-card:hover .card-action-hint {
    transform: translateY(0);
}
 
.cat-sep {
    margin: 0 2px;
    color: #bbb;
}


@media (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .product-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-left {
        margin-bottom: 15px;
    }

    .filter-button {
        margin-bottom: 10px;
    }

    .zoom-modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .zoom-close-button {
        top: 15px;
        right: 15px;
        font-size: 2.5rem;
    }
}

@media (max-width: 575px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .filter-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .sale-filter {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .filter-sections-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filter-section {
        margin-bottom: 15px;
    }

    .sort-wrapper .select-wrapper {
        min-width: 180px;
    }

    .modern-sort-dropdown {
        min-width: 180px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .filter-header {
        flex-direction: column;
        gap: 15px;
    }

    .filter-left-section,
    .filter-right-section {
        width: 100%;
    }

    .quick-filters {
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-sections-grid {
        gap: 10px;
    }

    .select-wrapper select {
        padding: 8px 35px 8px 12px;
        font-size: 13px;
    }
}