@font-face {
    font-family: 'SF Pro';
    src: url('../../asset-font/SFPRODISPLAYREGULAR.OTF') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'SF Pro';
    src: url('../../asset-font/SFPRODISPLAYMEDIUM.OTF') format('opentype');
    font-weight: 500;
}

@font-face {
    font-family: 'SF Pro';
    src: url('../../asset-font/SFPRODISPLAYBOLD.OTF') format('opentype');
    font-weight: bold;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: #12182e;
    color: #333;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    background: #12182e;
}

.container2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    background: orange;
}

/* Header */
.header {
    background: transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 15px;
}

.logo img {
    height: 35px;
    width: auto;
}

.search-bar {
    display: flex;
    flex: 1;
    max-width: 400px;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px 0 0 25px;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    background: orange;
    color: #12182e;
    border: none;
    padding: 10px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.btn-login {
    border: 1px solid #ffffff;
    color: #ffffff;
}

.btn-register {
    background: #007bff;
    color: white;
}

/* Banner Hero */
.banner-hero {
    background: linear-gradient(135deg, #12182e 0%, #12182e 100%);
    color: white;
    padding: 100px 0 50px;
    margin-top: 70px;
    text-align: center;
}

.banner-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-primary {
    background: #fff;
    color: #667eea;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

/* Sections */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

/* Categories */
.categories-section {
    padding: 70px 0px 0px 0px;
    background: #12182e;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 15px;
}

.category-item {
    text-align: center;
    cursor: pointer;
    padding: 10px 5px;
    color: white;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.category-icon i {
    font-size: 1.2rem;
    color: #12182e;
}

.category-item span {
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
}

/* Flash Sale */
.flash-sale-section {
    padding: 30px 0;
    background: #fff8f8;
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.countdown {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Products Scroll */
.products-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-scroll::-webkit-scrollbar {
    display: none;
}

/* Product Card */
.product-card {
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0.3,0.3,0.3,0.5);
    padding: 12px;
    min-width: 160px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    margin-bottom: 8px;
}

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

.no-image {
    width: 100%;
    height: 100px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
}

.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
}

.product-info h3 {
    font-size: 0.9rem;
    margin-bottom: 6px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #ffffff;
}

.price {
    margin-bottom: 8px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8rem;
    display: block;
}

.discount-price {
    color: orange;
    font-weight: bold;
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

.btn-buy {
    background: orange;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    width: 100%;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background 0.2s;
}

.btn-buy:hover {
    background: orange;
}

/* Subcategory Section - New Style like 6457.jpg */
.subcategory-section {
    padding: 10px 0;
    background: #12182e;
}

.subcategory-card {
    background: #252f47;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 0;
}

.subcategory-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.subcategory-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.subcategory-info {
    flex: 1;
}

.subcategory-title {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ffffff;
}

.subcategory-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating {
    color: #ffc107;
    font-weight: 500;
    font-size: 0.9rem;
}

.category-name {
    color: #666;
    font-size: 0.9rem;
}

/* Articles */
.articles-section {
    padding: 20px 0;
    background: #12182e;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background: #252f47;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.article-content {
    padding: 15px;
}

.article-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: bold;
    line-height: 1.3;
    color: #ffffff;
}

.article-content p {
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read {
    color: orange;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #12182e;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.7rem;
    flex: 1;
    padding: 5px 0;
}

.nav-item i {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.nav-item.active {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        padding: 10px 0;
    }
    
    .logo {
        order: 1;
    }
    
    .header-actions {
        order: 2;
    }
    
    .search-bar {
        order: 3;
        margin: 10px 0 0;
        max-width: 100%;
    }
    
    .banner-hero {
        padding: 90px 0 40px;
        margin-top: 60px;
    }
    
    .banner-content h1 {
        font-size: 1.6rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .category-item {
        padding: 8px 3px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
    }
    
    .category-icon i {
        font-size: 1rem;
    }
    
    .category-item span {
        font-size: 0.75rem;
    }
    
    .flash-sale-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .subcategory-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .subcategory-image {
        width: 80px;
        height: 80px;
    }
    
    .subcategory-title {
        font-size: 1.2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        min-width: 140px;
        padding: 10px;
    }
    
    .product-image img {
        height: 90px;
    }
    
    .product-info h3 {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-actions {
        gap: 5px;
    }
    
    .btn-login, .btn-register {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .banner-content h1 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .product-card {
        min-width: 130px;
    }
    
    .bottom-nav {
        padding: 10px 0;
    }
    
    .nav-item {
        font-size: 0.65rem;
    }
    
    .nav-item i {
        font-size: 1rem;
    }
}

/* Touch improvements for mobile */
@media (hover: none) {
    .product-card:hover {
        transform: none;
    }
    
    .btn-buy:active {
        background: #0056b3;
    }
}

/* ========== GLOBAL NO SELECT & NO TAP HIGHLIGHT ========== */
/* Disable text selection untuk seluruh website */
body {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    -webkit-tap-highlight-color: transparent; /* Hilangkan highlight biru saat tap di mobile */
    -webkit-touch-callout: none; /* Disable callout di iOS */
}

/* Hilangkan efek biru saat tap di semua elemen */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Khusus untuk teks yang perlu bisa di-select (opsional) */
.allow-select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Hilangkan outline biru saat focus, tapi tetap accessible */
*:focus {
    outline: none;
}

/* Untuk button dan interactive elements, berikan feedback yang lebih baik */
button, a, .btn-buy, .nav-item, .category-item, .subcategory-card-overlay2 {
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
}

/* Hilangkan efek biru khusus untuk images */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Untuk elemen yang perlu interaksi, gunakan ini */
.interactive-element {
    -webkit-tap-highlight-color: rgba(0,0,0,0.1); /* Feedback subtle */
    cursor: pointer;
}