/* ================================
   ARJ Mall v4 - Kaos Boxy Anak Premium
   Modern & Responsive Design
================================ */

:root {
    /* Colors */
    --primary: #8B2C3B;
    --primary-dark: #6e1f2d;
    --primary-light: #a83e4f;
    --secondary: #111111;
    --white: #ffffff;
    --light: #f8f8f8;
    --gray: #888888;
    --gray-light: #e0e0e0;
    --gray-dark: #333333;
    --orange: #EE4D2D;
    --green: #25D366;
    --gold: #FFD700;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 15px 40px rgba(139, 44, 59, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background: var(--white);
    color: #222;
    overflow-x: hidden;
    line-height: 1.6;
}

section {
    padding: 100px 8%;
    position: relative;
}

.container {
    max-width: 1300px;
    margin: auto;
}

img {
    width: 100%;
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ================================
   PRELOADER
================================ */
#loader {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid var(--gray-light);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================
   TOPBAR
================================ */
.topbar {
    background: linear-gradient(135deg, var(--secondary), #222);
    color: var(--white);
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    overflow: hidden;
    white-space: nowrap;
}

.topbar-slide {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.topbar-slide span {
    margin: 0 8px;
}

.separator {
    opacity: 0.4;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ================================
   NAVBAR
================================ */
#navbar {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1300px;
    margin: auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    height: 45px;
    flex-shrink: 0;
}

.nav-logo img {
    height: 100%;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    padding: 8px 20px;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(139, 44, 59, 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link.active::after {
    width: 20px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 2.5px;
    background: var(--secondary);
    border-radius: 4px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================
   HERO SECTION
================================ */
#hero {
    min-height: 100vh;
    padding: 180px 8% 100px;
    display: flex;
    align-items: center;
    gap: 60px;
    background: linear-gradient(135deg, #fafafa 0%, #f0ece8 100%);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 44, 59, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: rgba(139, 44, 59, 0.15);
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 8px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-desc {
    font-size: 15px;
    color: #666;
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(139, 44, 59, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 44, 59, 0.4);
}

.btn-wa {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

.btn-order {
    background: var(--green);
    color: var(--white);
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-order:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.stat-plus {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-left: 2px;
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Hero Gallery */
.hero-gallery {
    flex: 1;
    min-width: 280px;
    max-width: 520px;
    position: relative;
    z-index: 2;
    animation: fadeInRight 0.8s ease;
}

.hero-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hero-img-main:hover img {
    transform: scale(1.03);
}

.hero-img-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.hero-img-thumbs .thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.hero-img-thumbs .thumb:hover,
.hero-img-thumbs .thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ================================
   SECTION HEADER
================================ */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(139, 44, 59, 0.08);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

/* ================================
   PRODUK SECTION
================================ */
#produk {
    background: var(--white);
}

/* Filter */
.filter-wrapper {
    text-align: center;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-wrapper::-webkit-scrollbar {
    height: 4px;
}

.filter-wrapper::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 4px;
}

.filter-container {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    background: var(--light);
    border-radius: 50px;
}

.filter-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: #666;
    font-family: var(--font-primary);
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(139, 44, 59, 0.3);
}

/* Produk Grid */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: auto;
}

.produk-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.produk-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.produk-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--light);
}

.produk-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.produk-card:hover .produk-img img {
    transform: scale(1.08);
}

.produk-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--orange);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.3);
    z-index: 2;
}

.produk-badge.best {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(139, 44, 59, 0.3);
}

.produk-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
    z-index: 2;
}

.produk-card:hover .produk-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-view,
.btn-wishlist {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.quick-view:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-wishlist:hover {
    background: var(--orange);
    color: var(--white);
}

.btn-wishlist.active {
    color: var(--orange);
}

.produk-info {
    padding: 20px;
}

.produk-category {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.produk-info h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin: 6px 0;
}

.produk-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 10px;
}

.produk-rating i {
    color: var(--gold);
    font-size: 12px;
}

.produk-rating span {
    font-size: 12px;
    color: var(--gray);
    margin-left: 6px;
}

.produk-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.price-current {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
}

/* ================================
   VIDEO SECTION
================================ */
#video {
    background: var(--light);
}

.video-wrapper {
    max-width: 800px;
    margin: auto;
}

.video-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.video-container video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* ================================
   KEUNGGULAN
================================ */
#keunggulan {
    background: var(--white);
}

.keunggulan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: auto;
}

.keunggulan-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.keunggulan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.keunggulan-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(139, 44, 59, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.keunggulan-card:hover .keunggulan-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05) rotate(-5deg);
}

.keunggulan-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.keunggulan-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* ================================
   TESTIMONI
================================ */
#testimoni {
    background: var(--light);
}

.testimoni-wrapper {
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    position: relative;
}

.testimoni-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
}

.testimoni-card {
    min-width: 100%;
    padding: 0 20px;
    text-align: center;
}

.testimoni-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}

.testimoni-stars i {
    color: var(--gold);
    font-size: 20px;
}

.testimoni-card > p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 24px;
}

.testimoni-user {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-info h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    text-align: left;
}

.user-info span {
    font-size: 12px;
    color: var(--gray);
    display: block;
    text-align: left;
}

.testimoni-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.testimoni-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gray-light);
    background: var(--white);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.testimoni-controls button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 44, 59, 0.05);
}

.testimoni-dots {
    display: flex;
    gap: 8px;
}

.testimoni-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
}

.testimoni-dots span.active {
    background: var(--primary);
    width: 28px;
    border-radius: 10px;
}

/* ================================
   FAQ
================================ */
#faq {
    background: var(--white);
}

.faq-container {
    max-width: 700px;
    margin: auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-light);
    padding: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
    gap: 20px;
    user-select: none;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary);
    transition: var(--transition);
}

.faq-question:hover h3 {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 12px;
    color: #666;
}

.faq-item.active .faq-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    padding-right: 20px;
}

/* ================================
   FOOTER
================================ */
footer {
    background: var(--secondary);
    color: var(--white);
    position: relative;
}

.footer-wave {
    margin-top: -2px;
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 80px;
}

.footer-content {
    max-width: 1300px;
    margin: auto;
    padding: 60px 8% 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand img {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.8;
    max-width: 350px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact li {
    font-size: 14px;
    color: #aaa;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-contact i {
    width: 20px;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: auto;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: #888;
}

.footer-bottom strong {
    color: var(--white);
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    color: #666;
}

.footer-payment span {
    font-size: 13px;
}

/* ================================
   MODAL
================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    font-size: 16px;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-gallery {
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 40px;
}

.modal-category {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.modal-info h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
    margin: 8px 0 12px;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.modal-rating i {
    color: var(--gold);
    font-size: 14px;
}

.modal-rating span {
    font-size: 13px;
    color: var(--gray);
    margin-left: 8px;
}

.modal-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-price .price-current {
    font-size: 28px;
}

.modal-price .price-old {
    font-size: 16px;
}

.modal-info > p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 24px;
}

.modal-sizes {
    margin-bottom: 20px;
}

.modal-sizes h4,
.modal-varian h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-tag {
    padding: 8px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: var(--transition);
}

.size-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.modal-varian {
    margin-bottom: 28px;
}

.varian-options {
    display: flex;
    gap: 10px;
}

.varian-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.varian-dot:hover {
    transform: scale(1.15);
}

/* ================================
   SCROLL TOP
================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(139, 44, 59, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 44, 59, 0.4);
}

/* ================================
   SCROLL ANIMATIONS
================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   UTILITY
================================ */
::selection {
    background: var(--primary);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}
