/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Raya Color Palette */
    --primary-green: #1a5f3f;
    --secondary-green: #2d7a4d;
    --accent-gold: #d4af37;
    --light-gold: #f4e6c3;
    --text-dark: #2c3e2f;
    --text-light: #f8f9fa;
    --white: #ffffff;
    --shopee-orange: #ee4d2d;
    --shopee-hover: #d73211;
    --hot-red: #ff4757;
    --trending-purple: #a29bfe;
    --bestseller-gold: #feca57;
    --limited-blue: #48dbfb;

    /* Spacing */
    --section-padding: 3rem 1.5rem;
    --card-gap: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.flash-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
    animation: flashPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
}

@keyframes flashPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 0.95rem;
    opacity: 0.95;
}

.stat-divider {
    opacity: 0.5;
}

.urgency-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.countdown {
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: #c19e2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-shopee {
    background: var(--shopee-orange);
    color: var(--white);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.3);
}

.btn-shopee:hover {
    background: var(--shopee-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(238, 77, 45, 0.4);
}

.shopee-icon {
    width: 20px;
    height: 20px;
}

/* ===================================
   Poster Showcase Section
   =================================== */
.poster-showcase {
    padding: 2rem 0;
    background: #fff;
}

.poster-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.poster-item {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.poster-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 600px;
}

@media (min-width: 768px) {
    .poster-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .poster-item img {
        max-height: 800px;
    }
}

@media (min-width: 1024px) {
    .poster-item img {
        max-height: 1000px;
    }
}

/* ===================================
   Product Section
   =================================== */
.products {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.promo-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-icon {
    font-size: 1.5rem;
}

.promo-text {
    font-weight: 600;
    font-size: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--card-gap);
}

/* ===================================
   Product Cards
   =================================== */
.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--shopee-orange);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.product-badge.hot {
    background: linear-gradient(135deg, var(--hot-red), #ff6348);
    animation: shake 0.5s ease-in-out infinite;
}

.product-badge.trending {
    background: linear-gradient(135deg, var(--trending-purple), #6c5ce7);
}

.product-badge.bestseller {
    background: linear-gradient(135deg, var(--bestseller-gold), #ff9ff3);
}

.product-badge.limited {
    background: linear-gradient(135deg, var(--limited-blue), #0abde3);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.6;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold);
}

.product-description strong {
    color: var(--primary-green);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--shopee-orange);
    margin-bottom: 1.25rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sold-count {
    color: #27ae60;
    font-weight: 600;
}

.stock-warning {
    color: var(--hot-red);
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.price-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.original-price {
    font-size: 1.1rem;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 500;
}

.current-price {
    font-size: 1.8rem;
    color: var(--shopee-orange);
    font-weight: 800;
}

.save-badge {
    background: #27ae60;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pulse {
    animation: buttonPulse 1.5s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
    }
}

/* ===================================
   Why Buy Section
   =================================== */
.why-buy {
    padding: var(--section-padding);
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.feature {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
}

.feature p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary-green);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===================================
   Responsive Design - Tablet
   =================================== */
@media (min-width: 768px) {
    :root {
        --section-padding: 4rem 2rem;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .product-image {
        height: 280px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

/* ===================================
   Responsive Design - Desktop
   =================================== */
@media (min-width: 1024px) {
    :root {
        --section-padding: 5rem 2rem;
    }

    .hero {
        padding: 6rem 0;
    }

    .hero-title {
        font-size: 3.25rem;
    }

    .hero-subtitle {
        font-size: 1.35rem;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .product-image {
        height: 300px;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
