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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    padding-top: 0;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1673b8 0%, #4fc3e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 30px;
    animation: logoFadeIn 1s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 16px;
    opacity: 0.9;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1673b8 0%, #4fc3e5 100%);
    color: white;
    padding: 40px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-title span {
    font-size: 36px;
    font-weight: 800;
    display: block;
    margin-top: 5px;
    letter-spacing: 3px;
}

.hero-image {
    margin: 30px 0;
    animation: fadeInUp 0.8s ease;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    max-width: 400px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cta svg {
    width: 24px;
    height: 24px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.btn-shopee {
    background: #EE4D2D;
    color: white;
}

.btn-shopee:hover {
    background: #D73211;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(238, 77, 45, 0.3);
}

.btn-cta:active {
    transform: translateY(0);
}

/* Product Section */
.product {
    background: white;
    margin: 20px 0;
    padding: 30px 0;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.product-title {
    font-size: 24px;
    font-weight: 700;
    color: #1673b8;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Gallery */
.product-gallery {
    margin-bottom: 25px;
}

.gallery-main {
    position: relative;
    width: 100%;
    min-height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    position: absolute;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gallery-main img.active {
    opacity: 1;
}

.gallery-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.thumb-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #1673b8;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-btn.active {
    background: #1673b8;
    transform: scale(1.2);
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.price-original {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.price-discount {
    font-size: 32px;
    color: #1673b8;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.price-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(238, 90, 111, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

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

/* Product Description */
.product-description {
    font-size: 22px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    text-align: center;
}

/* Product Features */
.product-features {
    background: #e8f4f8;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.product-features h4 {
    font-size: 20px;
    color: #1673b8;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    font-size: 20px;
    line-height: 1.8;
    color: #555;
    padding: 8px 0 8px 25px;
    position: relative;
}

.product-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1673b8;
    font-weight: bold;
    font-size: 16px;
}

/* Order Button */
.btn-order {
    width: 100%;
    background: linear-gradient(135deg, #1673b8 0%, #4fc3e5 100%);
    color: white;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 15px rgba(22, 115, 184, 0.4);
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 115, 184, 0.5);
}

.btn-order:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(22, 115, 184, 0.3);
}

.btn-order.is-pressed {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(22, 115, 184, 0.3);
}


/* FAQ Section */
.faq {
    background: white;
    margin: 20px 0;
    padding: 30px 0;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1673b8;
    text-align: center;
    margin-bottom: 25px;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.faq-icon {
    font-size: 24px;
}

.faq-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #1673b8;
    font-size: 14px;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0 0 48px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

/* Footer */
.footer {
    background: #2d3436;
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
}

.cta-buttons-footer {
    margin-bottom: 0;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: floatPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    color: white;
}

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

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

@keyframes floatPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .gallery-main {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-title span {
        font-size: 42px;
    }
    
    .cta-buttons {
        flex-direction: row;
        max-width: 500px;
    }
    
    .btn-cta {
        flex: 1;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Selection */
::selection {
    background: #1673b8;
    color: white;
}


/* === Smart Promo Bar === */
.promo-smartbar {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 820px;
  z-index: 9998;
  background: #ffb703;
  color: #111;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  padding-bottom: 8px;
}

.promo-smartbar--show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.promo-smartbar__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  align-items: flex-start;
}

.promo-badge {
  background: #111;
  color: #ffb703;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 8px;
  letter-spacing: .5px;
  flex-shrink: 0;
  font-size: 13px;
  text-transform: uppercase;
  animation: blink 1.5s ease-in-out infinite;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 85px;
}

@keyframes blink {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.7;
    transform: scale(1.02);
  }
}

.promo-text {
  line-height: 1.45;
  font-size: 14px;
  width: 100%;
}

.promo-text strong {
  font-weight: 800;
  text-decoration: underline;
  display: inline-block;
  font-size: 20px;
  margin-top: 2px;
}

/* Container untuk buttons */
.promo-buttons {
  display: flex;
  gap: 8px;
  width: 100%;
}

.promo-btn {
  border: 0;
  outline: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 8px;
  padding: 11px 16px;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
  flex: 1;
  text-align: center;
  font-size: 13px;
}

.promo-copy {
  background: #fff;
  color: #111;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.promo-copy:active { 
  transform: translateY(1px); 
}

.promo-cta {
  background: #111;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-cta:active { 
  transform: translateY(1px); 
}

/* Close button di pojok kanan bawah */
.promo-close {
  position: absolute;
  bottom: -10px;
  right: -2px;
  background: #fff;
  color: #111;
  font-size: 16px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  border: 2px solid #ffb703;
  transition: background .15s ease, transform .15s ease;
  cursor: pointer;
}

.promo-close:hover { 
  background: #f5f5f5;
  transform: scale(1.05);
}

.promo-close:active {
  transform: scale(0.95);
}

#promo-code {
  font-size: 20px;
  letter-spacing: 0.5px;
  font-weight: 800;
}

/* Tablet & Desktop */
@media (min-width: 521px) {
  .promo-smartbar__inner {
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
  }
  
  .promo-badge {
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 999px;
    min-width: 90px;
    align-self: center;
  }
  
  .promo-text {
    flex: 1;
    font-size: 14px;
  }
  
  .promo-text strong {
    font-size: 22px;
  }
  
  .promo-buttons {
    width: auto;
    flex-shrink: 0;
  }
  
  .promo-btn {
    flex: 0 0 auto;
    min-width: 100px;
  }
  
  #promo-code {
    font-size: 24px;
  }
}

/* Mobile optimization */
@media (max-width: 520px) {
  .promo-smartbar {
    top: 8px;
    width: calc(100% - 20px);
  }
  
  .promo-smartbar__inner {
    padding: 12px 14px;
    gap: 9px;
  }
  
  .promo-badge {
    font-size: 12px;
    padding: 10px 14px;
    min-width: 80px;
    border-radius: 7px;
  }
  
  .promo-text {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .promo-text strong {
    font-size: 18px;
  }
  
  .promo-btn {
    padding: 10px 14px;
    font-size: 12.5px;
    border-radius: 7px;
  }
  
  #promo-code {
    font-size: 18px;
  }
  
  .promo-close {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .promo-smartbar__inner {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .promo-badge {
    font-size: 11px;
    padding: 9px 12px;
    min-width: 75px;
  }
  
  .promo-text {
    font-size: 12px;
  }
  
  .promo-text strong {
    font-size: 16px;
  }
  
  .promo-btn {
    padding: 9px 12px;
    font-size: 12px;
  }
  
  #promo-code {
    font-size: 16px;
  }
}

/* Prefer-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .promo-smartbar,
  .promo-btn,
  .promo-close,
  .promo-badge { 
    animation: none;
    transition: none; 
  }
}

.cod-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1673b8;
}

.cod-badge img {
    width: 38px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

.product {
    position: relative;
}


.btn-order {
    position: relative; /* supaya anak absolute-nya nempel ke tombol */
    overflow: visible;
}

.btn-order .cod-stamp {
    position: absolute;
    top: -10px;
    right: 14px;
    padding: 4px 10px;
    background: rgba(184, 22, 22, 0.95);
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    border: 2px solid #981212;
    border-radius: 6px;
    transform: rotate(12deg);
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;  /* biar klik tetap ke tombol */
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    background-image: none; /* sementara tanpa gambar dulu */
}


@media (max-width: 400px) {
    .btn-order .cod-stamp {
        font-size: 11px;
        top: -6px;
        right: 10px;
        padding: 3px 8px;
    }
}

/* Mobile typography tuning */
@media (max-width: 480px) {
    .product-description {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 4px;
    }

    .product-features h4 {
        font-size: 16px;
    }

    .product-features li {
        font-size: 14px;
        line-height: 1.6;
    }

    .price-discount {
        font-size: 24px;
    }

    .product {
        padding: 22px 0;
        border-radius: 16px;
    }
}



