/* ========== Produk Page ========== */

.nav-links a.active {
    color: var(--blue-600) !important;
}

body {
    padding-top: 70px;
}

/* Hero */
.produk-hero {
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 40%, #1a2744 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.produk-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.produk-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.produk-hero .container {
    position: relative;
    z-index: 1;
}

.produk-hero .hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.produk-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.produk-hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Filter */
.produk-filter-section {
    background: #fff;
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 70px;
    z-index: 90;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.produk-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--gray-200);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-chip:hover {
    border-color: var(--blue-400);
    color: var(--blue-600);
    background: var(--blue-50);
}

.filter-chip.active {
    background: var(--blue-600);
    color: #fff;
    border-color: var(--blue-600);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Products Grid */
.produk-section {
    padding: 50px 0;
    background: var(--gray-50);
    min-height: 50vh;
}

.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.produk-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--blue-500);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.produk-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.produk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.produk-card-badge {
    padding: 10px 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.badge-network, .badge-home_network { background: #eff6ff; color: var(--blue-600); }
.badge-business_network { background: #dbeafe; color: var(--blue-700); }

/* Dynamic category colors */
.cat-preview.blue { background: #eff6ff; color: #2563eb; }
.cat-preview.blue-dark { background: #dbeafe; color: #1e40af; }
.cat-preview.orange { background: #fff7ed; color: #ea580c; }
.cat-preview.purple { background: #faf5ff; color: #a855f7; }
.cat-preview.green { background: #f0fdf4; color: #16a34a; }
.cat-preview.red { background: #fef2f2; color: #dc2626; }
.cat-preview.yellow { background: #fefce8; color: #ca8a04; }
.cat-preview.pink { background: #fdf2f8; color: #db2777; }
.cat-preview.teal { background: #f0fdfa; color: #0d9488; }
.cat-preview.cyan { background: #ecfeff; color: #0891b2; }
.cat-preview.gray { background: #f3f4f6; color: #6b7280; }
.badge-server { background: #fff7ed; color: var(--orange-600); }
.badge-virtualization { background: #faf5ff; color: #a855f7; }
.badge-addon { background: #f0fdf4; color: #16a34a; }

.produk-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.produk-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-900);
    line-height: 1.3;
}

.produk-desc {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 18px;
}

.produk-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gray-100);
}

.produk-price .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.produk-price .period {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.produk-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    list-style: none;
    padding: 0;
    flex: 1;
}

.produk-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.produk-features svg {
    color: var(--blue-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.produk-card .btn {
    margin-top: auto;
}

/* CTA Section */
.produk-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--blue-50), #fff7ed);
    text-align: center;
}

.produk-cta h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.produk-cta p {
    color: var(--gray-600);
    max-width: 500px;
    margin: 0 auto 24px;
    font-size: 1rem;
}

/* Login Prompt Modal */
.login-prompt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.login-prompt-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-prompt-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.login-prompt-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.login-prompt-close:hover {
    color: var(--gray-700);
}

.login-prompt-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--blue-500), var(--orange-500));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-prompt-box h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.login-prompt-box > p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 20px;
}

.login-prompt-product {
    background: var(--gray-50);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    text-align: left;
}

.prompt-product-info .prompt-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.prompt-product-info strong {
    font-size: 0.95rem;
    color: var(--gray-900);
}

.login-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--blue-600);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px;
    text-align: center;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .produk-hero { padding: 60px 0 40px; }
    .produk-hero h1 { font-size: 1.6rem; }
    .produk-grid { grid-template-columns: 1fr; }
    .produk-filter-section { position: relative; top: auto; }
    .login-prompt-box { padding: 30px 24px; }
}
