:root {
    --primary-color: #ee4d2d;
    /* Shopee orange color */
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
    --gradient: linear-gradient(135deg, #ee4d2d 0%, #ff6b6b 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background elements */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: var(--secondary-color);
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background-color: var(--accent-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.link-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    position: relative;
    z-index: 1;
}

/* Profile section */
.profile-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 22px 20px 18px;
    margin-bottom: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
}

.profile-pic-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background-color: #4caf50;
    border-radius: 50%;
    border: 3px solid white;
}

.store-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.store-description {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    color: var(--dark-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

/* ======================================= */
/* PLATFORM BANNERS (MULTI-PLATFORM)       */
/* ======================================= */

/* Badge kecil untuk detail page */
.shopee-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

/* Banner platform di homepage */
.platform-banners {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 16px 0 8px;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 140px;
}

.platform-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 22px;
    transition: opacity 0.15s, transform 0.15s;
    white-space: nowrap;
}

.platform-shop-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.platform-affiliate-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    color: black;
    transition: background 0.15s;
    white-space: nowrap;
}

.platform-affiliate-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.platform-logo-img {
    max-width: 24px;
    max-height: 24px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 576px) {
    .platform-banners { gap: 8px; }
    .platform-card    { min-width: 120px; }
}
/* Search and filter section */
.search-filter-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-container {
    position: relative;
    margin-bottom: 12px;
}

.search-input {
    width: 100%;
    padding: 10px 18px 10px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    background-color: white;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.filter-tag {
    padding: 5px 12px;
    background-color: #f0f0f0;
    border-radius: 50px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-tag:hover {
    background-color: #e0e0e0;
}

.filter-tag.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Product section */
.product-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-option {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 8px;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-option:hover {
    background-color: #e0e0e0;
}

.view-option.active {
    background-color: var(--primary-color);
    color: white;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -8px;
}

.product-col {
    padding: 8px;
}

/* Product card styles */
.product-link-item {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
}

.product-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}

.product-img-container {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.platform-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-card:hover .platform-overlay {
    opacity: 1;
}

.product-content {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 10px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark-color);
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-description {
    color: #6c757d;
    font-size: 0.75rem;
    margin-bottom: 10px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #ffc107;
    font-size: 12px;
}

.product-actions {
    /* Container untuk tombol Share dan Shopee */
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
    border-top: 1px solid #f0f0f0;
    /* Tambahkan garis tipis pemisah */
    padding-top: 12px;
}

/* --- TOMBOL SHARE (PENGGANTI BOOKMARK) --- */
.share-btn {
    /* Mengambil Style Minimalis dan Bulat */
    width: 36px;
    height: 36px;
    background-color: #f0f0f0;
    color: var(--dark-color);
    border: none;
    border-radius: 50%;
    /* Bulat */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    /* Ukuran ikon Share */
    flex-shrink: 0;
    /* Pastikan ukurannya tidak berubah */
}

.share-btn:hover {
    background-color: var(--primary-color);
    /* Warna primary saat hover */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

/* Background set via inline style per-product */
.buy-on-shopee-btn {
    flex: 1;
    padding: 7px 10px;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-on-shopee-btn:hover {
    opacity: 0.85;
}


/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    color: #6c757d;
    font-size: 13px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 12px;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Loading animation */
.loading-container {
    display: none;
    justify-content: center;
    align-items: center;
    height: 150px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Toast notification */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.toast {
    background-color: white;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    min-width: 220px;
    transform: translateX(-400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.toast-success .toast-icon {
    background-color: #4caf50;
}

.toast-info .toast-icon {
    background-color: #2196f3;
}

.toast-message {
    flex-grow: 1;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .link-container {
        max-width: 100%;
    }
}

/* Responsive grid adjustments */

/* Tablet landscape */
@media (max-width: 992px) {
    .product-col {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .product-img-container {
        height: 160px;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .product-col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .product-img-container {
        height: 180px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .profile-section {
        padding: 20px;
    }

    .store-name {
        font-size: 1.3rem;
    }

    .product-section,
    .search-filter-section {
        padding: 15px;
    }
}

/* Smartphone */
@media (max-width: 576px) {
    .product-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .product-img-container {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .product-card {
        flex-direction: column;
    }

    .product-actions {
        flex-direction: row;
        gap: 8px;
        padding: 10px;
    }

    .save-link-btn {
        width: 36px;
        height: 36px;
    }

    .buy-on-shopee-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .profile-pic {
        width: 80px;
        height: 80px;
    }

    .store-description {
        font-size: 0.8rem;
    }

    .toast-container {
        left: 10px;
        right: 10px;
    }
}

/* Extra small phones */
@media (max-width: 400px) {
    .link-container {
        padding: 10px;
    }

    .product-img-container {
        aspect-ratio: 1 / 1;
    }

    .product-title {
        font-size: 0.85rem;
    }

    .product-description {
        font-size: 0.75rem;
    }

}


a {
    text-decoration: none !important;
}



   .pagination-container {
       background: rgba(255, 255, 255, 0.95);
       padding: 30px;
       border-radius: 20px;
       box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
       backdrop-filter: blur(10px);
   }

   /* Custom Pagination Styles */
   .custom-pagination {
       display: flex;
       align-items: center;
       justify-content: center;
       gap: 8px;
       flex-wrap: wrap;
       padding: 20px 0;
   }

   .pagination-btn {
       min-width: 45px;
       height: 45px;
       display: flex;
       align-items: center;
       justify-content: center;
       border: 2px solid #e0e0e0;
       background: white;
       color: #666;
       font-size: 15px;
       font-weight: 600;
       border-radius: 12px;
       cursor: pointer;
       transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
       position: relative;
       overflow: hidden;
       text-decoration: none;
   }

   .pagination-btn::before {
       content: '';
       position: absolute;
       top: 50%;
       left: 50%;
       width: 0;
       height: 0;
       border-radius: 50%;
       background: linear-gradient(135deg, #ff6b6b 0%, #fa411c 100%);
       transform: translate(-50%, -50%);
       transition: width 0.4s ease, height 0.4s ease;
       z-index: 0;
   }

   .pagination-btn span {
       position: relative;
       z-index: 1;
   }

   .pagination-btn:hover {
       border-color: #ff6b6b;
       transform: translateY(-3px);
       box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
   }

   .pagination-btn:hover::before {
       width: 150%;
       height: 150%;
   }

   .pagination-btn:hover span {
       color: white;
   }

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

   /* Active State */
   .pagination-btn.active {
       background: linear-gradient(135deg, #ff6b6b 0%, #ee4d2d 100%);
       color: white;
       border-color: transparent;
       box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
       transform: scale(1.05);
   }

   .pagination-btn.active::before {
       width: 100%;
       height: 100%;
   }

   /* Disabled State */
   .pagination-btn.disabled {
       opacity: 0.4;
       cursor: not-allowed;
       pointer-events: none;
   }

   /* Arrow Buttons */
   .pagination-btn.arrow {
       font-size: 18px;
       min-width: 45px;
   }

   .pagination-btn.arrow:hover {
       background: linear-gradient(135deg, #ff6b6b 0%, #f98181 100%);
   }

   .pagination-btn.arrow:hover span {
       color: white;
   }

   /* Dots Indicator */
   .pagination-dots {
       min-width: 45px;
       height: 45px;
       display: flex;
       align-items: center;
       justify-content: center;
       color: #999;
       font-weight: 600;
       font-size: 18px;
       letter-spacing: 2px;
   }

   /* Info Text */
   .pagination-info {
       text-align: center;
       color: #666;
       font-size: 14px;
       margin-top: 15px;
       font-weight: 500;
   }

   .pagination-info strong {
       color: #667eea;
       font-weight: 700;
   }

   /* Responsive */
   @media (max-width: 768px) {
       .pagination-btn {
           min-width: 40px;
           height: 40px;
           font-size: 14px;
       }

       .custom-pagination {
           gap: 6px;
       }
   }

   @media (max-width: 480px) {
       .pagination-btn {
           min-width: 35px;
           height: 35px;
           font-size: 13px;
       }

       .custom-pagination {
           gap: 4px;
       }

       .pagination-btn.arrow {
           font-size: 16px;
       }
   }

   /* Animation */
   @keyframes slideIn {
       from {
           opacity: 0;
           transform: translateY(20px);
       }

       to {
           opacity: 1;
           transform: translateY(0);
       }
   }

   .pagination-btn {
       animation: slideIn 0.5s ease backwards;
   }

   .pagination-btn:nth-child(1) {
       animation-delay: 0.05s;
   }

   .pagination-btn:nth-child(2) {
       animation-delay: 0.1s;
   }

   .pagination-btn:nth-child(3) {
       animation-delay: 0.15s;
   }

   .pagination-btn:nth-child(4) {
       animation-delay: 0.2s;
   }

   .pagination-btn:nth-child(5) {
       animation-delay: 0.25s;
   }

   .pagination-btn:nth-child(6) {
       animation-delay: 0.3s;
   }

   .pagination-btn:nth-child(7) {
       animation-delay: 0.35s;
   }

/* ============================================
   RECOMMENDATION SECTION
   ============================================ */
.recommendation-section {
    margin: 0 0 1.5rem 0;
}

/* Header: title kiri + tabs kanan */
.rec-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.recommendation-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.recommendation-title i {
    color: #f5a623;
}

/* Tab navigation */
.rec-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    flex-shrink: 1;
}

.rec-tabs::-webkit-scrollbar { display: none; }

.rec-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.rec-tab:hover {
    border-color: #f5a623;
    color: #f5a623;
    background: #fff8e1;
}

.rec-tab.active {
    background: #f5a623;
    border-color: #f5a623;
    color: #fff;
}

.rec-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
}

.rec-tab.active .rec-tab-count {
    background: rgba(255,255,255,0.3);
}

.rec-tab:not(.active) .rec-tab-count {
    background: #f0f0f0;
    color: #888;
}

/* Wrapper agar shadow tidak terpotong */
.recommendation-scroll-wrapper {
    overflow: hidden;
    padding-bottom: 4px;
}

/* Horizontal scroll container */
.recommendation-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

/* Card rekomendasi */
.rec-card {
    flex: 0 0 145px;
    width: 145px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.rec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.14);
    border-color: #f5a623;
}

.rec-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f8f8;
}

.rec-card-img-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-platform-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 0.3px;
}

.rec-star-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #f5a623;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.rec-card-body {
    padding: 7px 8px 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rec-category {
    font-size: 9px;
    color: #aaa;
    margin: 0 0 2px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.rec-name {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px;
    line-height: 1.35;
    flex: 1;
}

.rec-price {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color, #ee4d2d);
    margin: 0 0 2px;
}

.rec-buy-btn {
    display: block;
    text-align: center;
    padding: 7px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: opacity 0.15s;
}

.rec-buy-btn:hover {
    opacity: 0.88;
    color: #fff !important;
}

/* Desktop: wider cards & grid wrap */
@media (min-width: 768px) {
    .rec-card {
        flex: 0 0 170px;
        width: 170px;
    }

    .rec-section-header {
        flex-wrap: nowrap;
    }
}

@media (min-width: 992px) {
    .recommendation-scroll {
        flex-wrap: wrap;
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .rec-card {
        flex: 0 0 calc(16.666% - 11px);
        width: calc(16.666% - 11px);
    }
}

/* ============================================
   SIMILAR PRODUCTS GRID (detail page)
   Inline styles in detail.blade.php take priority.
   These are base/fallback styles only.
   ============================================ */
.similar-section { margin-top: 1.25rem; }

.similar-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.similar-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.similar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.similar-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f8f8;
}

.similar-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-platform-dot {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.similar-body { padding: 8px; }

.similar-name {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}

.similar-price {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color, #ee4d2d);
}

/* ============================================
   HERO CTA + TRUST BADGE + PLATFORM PILLS
   ============================================ */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient, linear-gradient(135deg, #ee4d2d 0%, #ff6b6b 100%));
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 32px;
    border-radius: 30px;
    box-shadow: 0 4px 18px rgba(238, 77, 45, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    letter-spacing: 0.2px;
    margin-top: 16px;
    margin-bottom: 12px;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(238, 77, 45, 0.45);
    opacity: 0.93;
}

.hero-cta-btn i { font-size: 14px; }

/* Baris kecil: trust badge + platform pills */
.hero-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #d4edda;
    color: #28a745;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    white-space: nowrap;
}

.trust-badge i { font-size: 12px; }

/* Platform pill kecil di hero */
.hero-platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--pc, #ee4d2d);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    opacity: 0.92;
    transition: opacity 0.15s, transform 0.15s;
    white-space: nowrap;
}

.hero-platform-pill:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.hero-platform-pill .platform-logo-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    border-radius: 2px;
}

/* ============================================
   KENAPA PILIH KAMI
   ============================================ */
.why-section {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.why-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: transform 0.15s;
}

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

.why-icon {
    font-size: 20px;
    color: var(--primary-color, #ee4d2d);
    margin-bottom: 6px;
}

.why-title {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
}

.why-text {
    font-size: 10px;
    color: #777;
    line-height: 1.4;
}

@media (max-width: 400px) {
    .why-section { gap: 7px; }
    .why-card { padding: 10px 7px; }
    .why-icon { font-size: 17px; }
    .why-title { font-size: 11px; }
}

/* ============================================
   PRODUCT LABEL BADGE + TAGLINE + URGENCY
   ============================================ */

/* Row: kategori + label badge sejajar */
.product-category-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

/* Label badge inline (di dalam konten, tidak overlay gambar) */
.label-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f5a623 0%, #f7b733 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.6;
    flex-shrink: 0;
}

.product-tagline {
    font-size: 11px;
    color: #555;
    font-style: italic;
    margin: 2px 0 4px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.urgency-text {
    display: block;
    font-size: 10px;
    color: #f5a623;
    font-weight: 600;
    margin-top: 4px;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonial-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.testimonial-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonial-heading i { color: #f5a623; }

.testimonial-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.testimonial-card {
    background: #fff8f0;
    border-left: 3px solid #f5a623;
    border-radius: 0 10px 10px 0;
    padding: 10px 14px;
}

.testimonial-text {
    font-size: 13px;
    color: #444;
    line-height: 1.55;
    font-style: italic;
    margin-bottom: 5px;
}

.testimonial-author {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-align: right;
}

@media (min-width: 640px) {
    .testimonial-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .testimonial-card {
        flex: 1 1 calc(33% - 10px);
        min-width: 180px;
    }
}

/* ============================================
   STICKY CTA MOBILE (detail page)
   ============================================ */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 -3px 16px rgba(0,0,0,0.12);
    z-index: 500;
    backdrop-filter: blur(6px);
}

.sticky-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s;
}

.sticky-cta-btn:active { opacity: 0.85; }

/* ============================================
   PROMO POPUP OVERLAY
   ============================================ */
.promo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.promo-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.promo-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateY(24px) scale(0.95);
    transition: transform 0.3s ease;
}

.promo-overlay.visible .promo-modal {
    transform: translateY(0) scale(1);
}

.promo-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    z-index: 1;
    transition: background 0.2s;
}

.promo-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.promo-modal-header {
    background: var(--gradient, linear-gradient(135deg, #ee4d2d 0%, #ff6b6b 100%));
    padding: 32px 24px 24px;
    text-align: center;
    color: #fff;
}

.promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.promo-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
}

.promo-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

.promo-modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient, linear-gradient(135deg, #ee4d2d 0%, #ff6b6b 100%));
    color: #fff !important;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.2s, transform 0.15s;
}

.promo-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff !important;
}

.promo-arrow {
    margin-left: auto;
}

.promo-modal-footer {
    padding: 0 24px 20px;
    text-align: center;
}

.promo-dismiss-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
    transition: color 0.2s;
}

.promo-dismiss-btn:hover {
    color: #555;
}

@media (max-width: 480px) {
    .promo-modal {
        border-radius: 16px;
    }

    .promo-title {
        font-size: 18px;
    }

    .promo-modal-header {
        padding: 24px 18px 18px;
    }

    .promo-modal-body {
        padding: 16px 18px;
    }
}

/* ============================================
   BRAND / TOKO AFILIASI SECTION
   ============================================ */

.brand-section {
    margin: 18px 0 16px;
}

.brand-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-section-title i {
    color: var(--primary-color, #ee4d2d);
}

.brand-see-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color, #ee4d2d);
    text-decoration: none;
    white-space: nowrap;
}

.brand-see-all:hover {
    text-decoration: underline;
    color: var(--primary-color, #ee4d2d);
}

.brand-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.brand-scroll::-webkit-scrollbar {
    height: 4px;
}

.brand-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.brand-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 12px 10px;
    width: 90px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #f0f0f0;
}

.brand-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #bbb;
}

.brand-name {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}

.brand-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.brand-badge--star-seller {
    background: #fff3cd;
    color: #856404;
}

.brand-badge--mall {
    background: #cff4fc;
    color: #055160;
}

.brand-commission {
    font-size: 9px;
    font-weight: 700;
    color: var(--primary-color, #ee4d2d);
    background: #fff0ed;
    padding: 2px 6px;
    border-radius: 20px;
    text-align: center;
}
