/* CSS khusus untuk halaman product.php */

/* Gunakan header dari mobile-header-core.css */
body {
    padding-top: 0; /* Default untuk desktop */
}

@media (max-width: 768px) {
    body {
        padding-top: var(--body-padding-top);
    }
}
/* Hero Section untuk Product Page */
.hero-product {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1a1a1a;
}

 .hero-bg {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 1;
     background: url('../../admin/images/product.webp') center center/cover no-repeat;
}

.hero-bg .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Arial Narrow', Arial, sans-serif;
    color: #ffffff;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #dadada;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-family: 'Arial', sans-serif;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Responsive untuk tampilan mobile */
@media (max-width: 768px) {
    .hero-product {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
}


@media (max-width: 480px) {
    .hero-product {
        height: 40vh;
        min-height: 250px;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Animasi untuk hero content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Container utama */
.product-catalog {
    background-color: #1a1a1a;
    padding: 60px 0;
    min-height: 100vh;
    margin-bottom:-100px;
}

.product-catalog .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Grid layout yang lebih baik untuk PC */
@media (min-width: 769px) {
    .product-catalog-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        max-width: 1200px;
        margin: 40px auto;
        padding: 0 10px;
    }
    
    .catalog-item {
        border: 1px solid #444;
        border-radius: 25px;
        padding: 20px;
        text-align: center;
        transition: all 0.3s ease;
        position: relative;
        
    }
    
    .catalog-item:hover {
        transform: translateY(-8px);
        border-color: #666;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        background-color: #333;
    }
    
    .catalog-image img {
        width: 200px;
        height: 200px;
        object-fit: cover;
        border-radius: 15px;
        margin: 0 auto 15px;
        display: block;
    }
    
    .catalog-title {
        font-size: 16px;
        color: #dadada;
        margin-bottom: 15px;
        font-family: 'Arial Narrow', Arial, sans-serif;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .catalog-btn {
        background-color: #444;
        color: #dadada;
        border: 1px solid #666;
        padding: 12px 25px;
        border-radius: 25px;
        font-weight: bold;
        font-family: 'Arial Narrow', Arial, sans-serif;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .catalog-btn:hover {
        background-color: #666;
        border-color: #888;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
}

/* Styling untuk Acuan Photo */
.acuan-photo {
    text-align: center;
    margin-top: 40px;
    margin-left:20px;
    padding: 20px;
}

.acuan-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #cacaca;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
}

.acuan-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive untuk Mobile - Font diperkecil */
@media (max-width: 768px) {
    .acuan-photo {
        margin: 20px auto;
        padding: 15px;
    }
    
    .acuan-title {
        font-size: 0.9rem; /* Font diperkecil untuk mobile */
        margin-bottom: 15px;
        letter-spacing: 0.5px;
    }
    
    .acuan-photo img {
        margin: 10px auto;
        max-width: 95%;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .acuan-photo {
        margin: 15px auto;
        padding: 10px;
    }
    
    .acuan-title {
        font-size: 0.8rem; /* Font lebih kecil lagi untuk mobile kecil */
        margin-bottom: 12px;
        letter-spacing: 0.3px;
    }
    
    .acuan-photo img {
        margin: 8px auto;
        max-width: 90%;
        border-radius: 6px;
    }
}

.product-category {
    margin-bottom: 30px;
}

.category-title {
    text-align: center;
    font-size: 1.2rem;
    color: #dadada;
    margin-top: 0;
    margin-bottom: 20px;
    padding-top: 0;
    font-weight: normal;
    font-family: 'Arial Narrow', Arial, sans-serif;
    letter-spacing: 1px;
}

/* Hide category title on desktop */
@media (min-width: 769px) {
    .category-title {
        display: none;
    }
}

.product-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin-bottom: 0px;
    margin-top: 30px;
}

.catalog-item {
    border: 1px solid #444;
    border-radius: 25px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.catalog-item:hover {
    transform: translateY(-5px);
    border-color: #666;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.catalog-image {
    position: relative;
    margin-bottom: 2px;
}

/* Tambahkan di bagian akhir file */
/* Optimasi performa saat scrolling */
.is-scrolling .catalog-item {
    transition: none !important;
}

.is-scrolling .hot-badge {
    animation: none !important;
}

/* Pastikan gambar memiliki dimensi yang ditentukan untuk menghindari layout shift */
.catalog-image img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
}

@media (max-width: 768px) {
    /* Kurangi jumlah item yang dirender pada mobile */
    .product-catalog-grid {
        contain: layout style paint;
    }
}

.catalog-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.8);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.hot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4444;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Ubah animasi pulse agar tidak terlalu berat */
@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Nonaktifkan animasi pulse pada mobile */
@media (max-width: 768px) {
    .hot-badge {
        animation: none;
        background-color: #ff4444;
        color: white;
    }
    
    /* Nonaktifkan transformasi pada hover untuk mobile */
    .catalog-item:hover {
        transform: none;
        box-shadow: none;
        border-color: #666;
        background-color: #333;
    }
    
    .catalog-btn:hover {
        background-color: #666;
        border-color: #888;
        transform: none;
        box-shadow: none;
    }
    
    /* Kurangi kompleksitas rendering - HAPUS PROPERTI YANG MEMBERATKAN */
    @media (max-width: 768px) {
    /* Kode media query yang sudah ada */
    
    .catalog-item {
    /* Hapus properti yang memberatkan */
    will-change: auto; /* HAPUS */
    transform: translateZ(0); /* HAPUS */
    backface-visibility: hidden; /* HAPUS */
    perspective: 1000px; /* HAPUS */
    /* Ganti dengan properti yang lebih ringan */
    transition: background-color 0.3s ease;
    /* Tambahkan properti untuk mencegah scrolling terkunci */
    touch-action: pan-x pan-y;
    }
    
    /* Kode lainnya */
    }
    
    /* Nonaktifkan efek hover pada close button modal */
    .product-modal .close:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.2);
    }
}

.catalog-title {
    font-size: 15px;
    color: #b2b2b2;
    margin-bottom: 10px;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalog-btn {
    background-color: #6969691d;
    color: #dadada;
    border: 1px solid #666;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: normal;
    font-family: 'Arial Narrow', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: manipulation;
}

.catalog-btn:hover {
    background-color: #666;
    border-color: #888;
    transform: translateY(-2px);
}

.catalog-btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.catalog-btn:active {
    transform: translateY(1px);
}

.product-features {
    background-color: #2a2a2a;
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px;
  
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0.8);
}

.feature-item h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-item p {
    color: #dadada;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Acuan Photo Styling */
.product-catalog img[src*="standar_photo.webp"] {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    text-align: center;
}

/* Responsive Product */
@media (max-width: 768px) {
    .hero-product {
        display: none;
    }
    
    .product-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 0 auto;
    }
    
    .catalog-item {
        margin-right: 30px;
    }
    
    .catalog-image img {
        width: 120px;
        height: 120px;
    }
    
    .catalog-title {
        font-size: 0.7rem;
    }
    
    .catalog-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .product-catalog img[src*="standar_photo.webp"] {
        margin: 15px auto;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-product {
        display: none;
    }
    
    .product-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 10px;
    }
    
    .catalog-item {
        margin-right: 2px;
    }
    
    .catalog-image img {
        width: 120px;
        height: 120px;
    }
    
    .catalog-title {
        font-size: 0.7rem;
    }
    
    .catalog-btn {
        padding: 8px 15px;
        font-size: 0.4rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .product-catalog img[src*="standar_photo.webp"] {
        margin: 10px auto;
        max-width: 90%;
    }
}

/* Semua styling header mobile sudah dipindahkan ke mobile-header-core.css */

/* Perbaikan path gambar background */
.hero-bg {
    background-image: url('/admin/images/product.webp');
}