/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF6B35;
    --primary-black: #1A1A1A;
    --primary-white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --primary-color: #FF6B35;
    --primary-hover: #E55A2B;
    --primary-active: #CC4A22;
    --bg-color: #f8fafc;
    --bg-hover: #f1f5f9;
    --text-color: #FF6B35;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-active: 0 20px 25px -5px rgba(99, 102, 241, 0.2);
    --transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-white);
    color: var(--primary-black);
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: var(--primary-orange);
    padding: 1rem 0;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    color: var(--primary-white);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.main-nav {
    display: none;
}

.nav-link {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: var(--primary-white);
    text-decoration: none;
    transition: color 0.28s;
}

.nav-link:hover {
    color: var(--primary-black);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-orange);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav-link {
    color: var(--primary-white);
    text-decoration: none;
    padding: 0.5rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    transition: color 0.28s;
}

.mobile-nav-link:hover {
    color: var(--primary-black);
}

/* Hero Banner */
.hero {
    background-color: var(--primary-orange);
    margin-top: 4rem;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: repeating-linear-gradient(
        45deg,
        #000 0,
        #000 2px,
        transparent 2px,
        transparent 10px
    );
}

.hero-content {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-slide h2 {
    font-size: 2.25rem;
    color: var(--primary-white);
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.banner-slide p {
    font-size: 1.125rem;
    color: var(--primary-white);
    margin-bottom: 2rem;
    max-width: 32rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.75rem;
    border-radius: 0.375rem;
    background-color: var(--primary-black);
    color: var(--primary-white);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0 2rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.btn-primary:hover {
    background-color: rgba(26, 26, 26, 0.9);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: scale(0.97);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--primary-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    pointer-events: auto;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.carousel-btn.prev {
    left: 1.5rem;
}

.carousel-btn.next {
    right: 1.5rem;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 3rem;
}

.banner-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 0.25rem;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.banner-dot.active {
    width: 2rem;
    background-color: var(--primary-white);
}

/* Categories */
.categories {
    padding: 5rem 0;
    background-color: var(--primary-white);
}

.section-title {
    font-size: 1.875rem;
    color: var(--primary-black);
    text-align: center;
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.category-card {
    background-color: var(--primary-white);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.category-card:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.category-card:active {
    transform: scale(0.97);
}

.category-icon {
    color: var(--primary-black);
    transition: color 0.28s;
}

.category-card:hover .category-icon {
    color: var(--primary-orange);
}

.category-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary-black);
    transition: color 0.28s;
}

.category-card:hover .category-name {
    color: var(--primary-orange);
}

/* Featured Products */
.featured-products {
    padding: 1rem 0;
    background-color: var(--gray-50);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.product-card {
    background-color: var(--primary-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--transition);
    animation: staggerIn 0.6s ease;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

@keyframes staggerIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-image {
    display: block;
    position: relative;
    aspect-ratio: 4/5;
    background-color: var(--gray-50);
    overflow: hidden;
    padding: 1.25rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
}

.wishlist-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.wishlist-btn:hover {
    background-color: var(--primary-white);
}

.wishlist-btn:active {
    transform: scale(0.9);
}

.discount-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: var(--primary-orange);
    color: var(--primary-white);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

.product-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-info {
    display: block;
    text-decoration: none;
}

.product-info:hover {
    opacity: 0.8;
}

.product-category {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--primary-black);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-price {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-black);
}

.original-price {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    border: 2px solid var(--gray-300);
    background-color: transparent;
    color: var(--primary-black);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-secondary:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-secondary:active {
    transform: scale(0.97);
}

/* Services */
.services {
    padding: 4rem 0;
    background-color: var(--primary-white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.service-icon {
    flex-shrink: 0;
    color: var(--primary-orange);
}

.service-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-black);
    margin-bottom: 0.25rem;
}

.service-description {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Footer */
.footer {
    background-color: var(--primary-orange);
    color: var(--primary-white);
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.28s;
}

.footer-links a:hover {
    color: var(--primary-white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .banner-slide h2 {
        font-size: 3.75rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animation for product cards */
.product-card:nth-child(1) { animation-delay: 0ms; }
.product-card:nth-child(2) { animation-delay: 60ms; }
.product-card:nth-child(3) { animation-delay: 120ms; }
.product-card:nth-child(4) { animation-delay: 180ms; }
.product-card:nth-child(5) { animation-delay: 240ms; }
.product-card:nth-child(6) { animation-delay: 300ms; }
.product-card:nth-child(7) { animation-delay: 360ms; }
.product-card:nth-child(8) { animation-delay: 420ms; }

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

.product-detail-page {
    padding-top: 80px;
    background: white;
    min-height: 100vh;
}

.product-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

@media (min-width: 1024px) {
    .product-detail-layout {
        flex-direction: row;
        gap: 3rem;
    }
}

/* Product Media */
.product-media {
    width: 100%;
}

@media (min-width: 1024px) {
    .product-media {
        width: 65%;
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }
}
.youtube-embed-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 177.78%; /* 9:16 Aspect Ratio */
    overflow: hidden;
}

.youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.product-video-container {
    position: relative;
    aspect-ratio: 9/16;
    background: #f3f4f6;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Product Info */
.product-info {
    width: 100%;
}

@media (min-width: 1024px) {
    .product-info {
        width: 100%;
    }
}

/* Product Tags */
.product-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.product-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
}

.tag-bestseller {
    background: var(--primary-orange);
    color: white;
}

.tag-discount {
    background: #fee2e2;
    color: #dc2626;
}

/* Product Title */
.product-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: var(--primary-black);
    font-size: 1.875rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .product-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .product-title {
        font-size: 2.5rem;
    }
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.star {
    width: 1.25rem;
    height: 1.25rem;
    color: #d1d5db;
}

.star.filled {
    color: #fbbf24;
    fill: #fbbf24;
}

.star.half-filled {
    color: #fbbf24;
    fill: url(#half-gradient);
}

.star.small {
    width: 1rem;
    height: 1rem;
}

.rating-score {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--primary-black);
}

.rating-count {
    font-family: 'Inter', sans-serif;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Price Section */
.product-price-section {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.current-price {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: var(--primary-orange);
    font-size: 1.5rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .current-price {
        font-size: 1.5rem;
    }
}

.original-price {
    font-family: 'Inter', sans-serif;
    color: var(--gray-400);
    font-size: 1.125rem;
    text-decoration: line-through;
    margin-top: 0.25rem;
}

/* Description */
.product-description {
    margin-bottom: 2rem;
}

.product-description h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--primary-black);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.product-description p {
    font-family: 'Inter', sans-serif;
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.875rem;
    white-space: pre-line;
}

@media (min-width: 768px) {
    .product-description p {
        font-size: 1rem;
        white-space: pre-line;
    }
}

/* Features */
.product-features {
    margin-bottom: 2rem;
}

.product-features h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--primary-black);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    color: var(--gray-700);
}

.feature-check {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-orange);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Action Buttons */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}
@media (min-width: 640px) {
    .product-actions {
        flex-direction: row;
    }
    
    .btn-buy-now {
        height: 3.5rem;
        font-size: 1.125rem;
        min-width: 140px; /* Lebar minimum di desktop */
    }
}
@media (max-width: 639px) {
    .product-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .btn-buy-now {
        height: 3.5rem; /* Lebih kecil dari desktop */
        font-size: 1rem; /* Font lebih kecil */
        padding: 0 1rem;
        min-height: 56px; /* Minimum untuk aksesibilitas tap */
    }
}

.btn-buy-now {
    flex: 1;
    height: 3.5rem;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-buy-now:hover {
    background: #e55a2e;
    transform: translateY(-2px);
}

.btn-buy-now:active {
    transform: scale(0.97);
}

.btn-share {
    position: relative;
    height: 3.5rem;
    padding: 0 1.5rem;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 0.5rem;
    color: var(--primary-black);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-share:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-share i {
    width: 1.25rem;
    height: 1.25rem;
}

/* Reviews */
.product-reviews {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.product-reviews h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--primary-black);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: 0.75rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: var(--primary-black);
    font-size: 0.875rem;
}

.review-date {
    font-family: 'Inter', sans-serif;
    color: var(--gray-500);
    font-size: 0.75rem;
}

.review-stars {
    display: flex;
    gap: 0.125rem;
}

.review-comment {
    font-family: 'Inter', sans-serif;
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Related Products */
.related-products {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.related-products h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--primary-black);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-product {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.related-product:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

.related-image {
    aspect-ratio: 1/1;
    background: var(--gray-50);
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product:hover .related-image img {
    transform: scale(1.05);
}

.related-info {
    padding: 1rem;
}

.related-info h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: var(--primary-black);
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

.related-product:hover .related-info h3 {
    color: var(--primary-orange);
}

.related-price {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--primary-orange);
    font-size: 0.875rem;
}

/* SVG for half-filled star */
.star-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.star-defs svg {
    position: absolute;
}
.pagination-animated {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding: 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* Gradient Background Animation */
.pagination-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 53, 0.2), /* opacity 0.2 */
    transparent
);
    animation: shine 5s infinite;
    z-index: 0;
}

@keyframes shine {
    0% { left: -100%; }
    20%, 100% { left: 100%; }
}

/* Base Pagination Item */
.pagination-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    z-index: 1;
    overflow: hidden;
    border: 2px solid transparent;
    color: var(--text-color);
    background: var(--bg-color);
    box-shadow: var(--shadow);
    cursor: pointer;
}

/* Previous/Next Buttons */
.pagination-prev,
.pagination-next {
    min-width: 120px;
    gap: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ====================
   ANIMASI UNTUK SEMUA TOMBOL TIDAK AKTIF
   ==================== */

/* 1. Hover Animation untuk Semua Tombol Tidak Aktif */
.pagination-btn:not(.pagination-current):not(.pagination-disabled):hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-hover);
    background: var(--bg-hover);
    border-color: var(--primary-color);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-4px) scale(1.05); }
    50% { transform: translateY(-6px) scale(1.07); }
}

/* 2. Shimmer Effect on Hover */
.pagination-btn:not(.pagination-current):not(.pagination-disabled)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.7s ease;
    z-index: -1;
}

.pagination-btn:not(.pagination-current):not(.pagination-disabled):hover::before {
    left: 100%;
}

/* 3. Border Animation */
.pagination-btn:not(.pagination-current):not(.pagination-disabled) {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary-color), transparent) border-box;
    border: 2px solid transparent;
    background-clip: padding-box, border-box;
}

/* 4. Icon Animation untuk Previous/Next */
.pagination-prev svg,
.pagination-next svg {
    transition: transform 0.3s ease;
}

.pagination-prev:hover svg {
    transform: translateX(-3px);
    animation: arrowLeft 0.6s ease infinite alternate;
}

.pagination-next:hover svg {
    transform: translateX(3px);
    animation: arrowRight 0.6s ease infinite alternate;
}

@keyframes arrowLeft {
    0% { transform: translateX(-3px); }
    100% { transform: translateX(-6px); }
}

@keyframes arrowRight {
    0% { transform: translateX(3px); }
    100% { transform: translateX(6px); }
}

/* 5. Pulse Ring Effect */
.pagination-btn:not(.pagination-current):not(.pagination-disabled)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.pagination-btn:not(.pagination-current):not(.pagination-disabled):hover::after {
    animation: ringPulse 1s ease-out;
}

@keyframes ringPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* 6. Text Color Animation */
.pagination-btn:not(.pagination-current):not(.pagination-disabled) span {
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--primary-hover),
        var(--primary-color)
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-position 0.5s ease;
}

.pagination-btn:not(.pagination-current):not(.pagination-disabled):hover span {
    background-position: 100% 0;
}

/* 7. Floating Animation */
.pagination-btn:not(.pagination-current):not(.pagination-disabled) {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 8. Scale Animation on Click */
.pagination-btn:not(.pagination-current):not(.pagination-disabled):active {
    animation: clickScale 0.3s ease;
}

@keyframes clickScale {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* 9. Glow Effect */
.pagination-btn:not(.pagination-current):not(.pagination-disabled) {
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.1));
}

.pagination-btn:not(.pagination-current):not(.pagination-disabled):hover {
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

/* ====================
   ANIMASI KHUSUS UNTUK PAGE NUMBERS
   ==================== */

/* Number Rotation on Hover */
.pagination-number:not(.pagination-current):not(.pagination-disabled):hover {
    animation: numberRotate 0.6s ease;
}

@keyframes numberRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1.05); }
}

/* Number Counter Animation */
.pagination-number:not(.pagination-current):not(.pagination-disabled)::before {
    content: attr(data-number);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.pagination-number:not(.pagination-current):not(.pagination-disabled):hover::before {
    transform: translateY(0);
    opacity: 1;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ====================
   ANIMASI UNTUK TOMBOL CURRENT (AKTIF)
   ==================== */

.pagination-current {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-active)
    );
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: var(--shadow-active);
    animation: 
        pulse 2s infinite,
        floatCurrent 3s ease-in-out infinite,
        glow 2s infinite alternate;
    position: relative;
}

@keyframes pulse {
    0% {
        box-shadow: 
            0 4px 15px rgba(99, 102, 241, 0.4),
            0 0 0 3px rgba(99, 102, 241, 0.1);
    }
    50% {
        box-shadow: 
            0 4px 25px rgba(99, 102, 241, 0.6),
            0 0 0 3px rgba(99, 102, 241, 0.2);
    }
    100% {
        box-shadow: 
            0 4px 15px rgba(99, 102, 241, 0.4),
            0 0 0 3px rgba(99, 102, 241, 0.1);
    }
}

@keyframes floatCurrent {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes glow {
    from {
        box-shadow: 
            0 4px 15px rgba(99, 102, 241, 0.4),
            0 0 0 3px rgba(99, 102, 241, 0.1),
            0 0 20px rgba(99, 102, 241, 0.2);
    }
    to {
        box-shadow: 
            0 4px 25px rgba(99, 102, 241, 0.6),
            0 0 0 3px rgba(99, 102, 241, 0.2),
            0 0 30px rgba(99, 102, 241, 0.4);
    }
}

/* ====================
   DISABLED STATE
   ==================== */

.pagination-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    animation: none !important;
    transform: none !important;
}

/* ====================
   DOTS SEPARATOR
   ==================== */

.pagination-dots {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--text-light);
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 3px;
    animation: dotsBlink 2s infinite;
}

@keyframes dotsBlink {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.9);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ====================
   RESPONSIVE DESIGN
   ==================== */

@media (max-width: 768px) {
    .pagination-animated {
        padding: 15px;
        gap: 8px;
        border-radius: 12px;
    }
    
    .pagination-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 14px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .pagination-prev,
    .pagination-next {
        min-width: 100px;
        font-size: 13px;
    }
    
    /* Animation adjustments for mobile */
    .pagination-btn:not(.pagination-current):not(.pagination-disabled):hover {
        transform: translateY(-2px) scale(1.03);
    }
    
    @keyframes bounce {
        0%, 100% { transform: translateY(-2px) scale(1.03); }
        50% { transform: translateY(-4px) scale(1.05); }
    }
}

@media (max-width: 480px) {
    .pagination-animated {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .pagination-prev,
    .pagination-next {
        order: -1;
        width: calc(50% - 3px);
        min-width: auto;
    }
    
    .pagination-number:not(.pagination-current) {
        display: none;
    }
    
    .pagination-number.pagination-current,
    .pagination-dots {
        display: inline-flex;
    }
}

/* ====================
   LOADING ANIMATION
   ==================== */

.pagination-loading {
    position: relative;
    pointer-events: none;
}

.pagination-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====================
   STAGGERED ENTRANCE ANIMATION
   ==================== */

.pagination-btn {
    animation: slideIn 0.5s ease-out backwards;
}

.pagination-btn:nth-child(1) { animation-delay: 0.1s; }
.pagination-btn:nth-child(2) { animation-delay: 0.2s; }
.pagination-btn:nth-child(3) { animation-delay: 0.3s; }
.pagination-btn:nth-child(4) { animation-delay: 0.4s; }
.pagination-btn:nth-child(5) { animation-delay: 0.5s; }
.pagination-btn:nth-child(6) { animation-delay: 0.6s; }
.pagination-btn:nth-child(7) { animation-delay: 0.7s; }
.pagination-btn:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.product-image-container.vertical-image {
    position: relative;
    background: var(--gray-50);
    overflow: hidden;
    padding-bottom: 177.78%; /* 9:16 Aspect Ratio */
    height: 0;
}

.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image.vertical-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Potong gambar agar pas dengan container 9:16 */
    object-position: center; /* Fokus ke tengah gambar */
}

/* Placeholder untuk vertikal */
.no-media-placeholder.vertical-placeholder {
    position: relative;
    padding-bottom: 177.78%; /* 9:16 Aspect Ratio */
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    color: var(--gray-500);
}

.no-media-placeholder.vertical-placeholder i {
    font-size: 3rem;
    color: var(--gray-400);
}

.no-media-placeholder.vertical-placeholder p {
    font-size: 1.125rem;
    font-weight: 500;
    position: absolute;
    bottom: 20%;
    width: 100%;
    text-align: center;
}

/* Efek hover untuk gambar */
.product-image.vertical-img:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

/* Kontrol ukuran responsif */
@media (max-width: 480px) {
    .product-media {
        max-width: 100%;
        border-radius: var(--radius);
    }
    
    .product-video-container.vertical-video,
    .product-image-container.vertical-image,
    .no-media-placeholder.vertical-placeholder {
        padding-bottom: 177.78%; /* Tetap 9:16 di mobile */
    }
}

/* Untuk desktop, bisa dibatasi maksimal tinggi */
@media (min-width: 1024px) {
    .product-media {
        max-height: 80vh; /* Maksimal 80% dari viewport height */
    }
}