/* ===== iDaPro — Screen Protector Store Styles ===== */

/* ---- CSS Variables ---- */
:root {
  --primary: #FF9900;
  --primary-hover: #E68A00;
  --accent-yellow: #FFD814;
  --accent-yellow-hover: #F7CA00;
  --star: #FFA41C;
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --success: #16A34A;
  --danger: #DC2626;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text-primary); line-height: 1.5; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::selection { background: rgba(255,153,0,0.2); }

/* ---- Layout ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---- Navbar ---- */
.navbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; }
.navbar-brand .logo-icon { width: 32px; height: 32px; background: var(--primary); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.navbar-brand .logo-icon svg { width: 18px; height: 18px; color: #fff; }
.navbar-links { display: flex; align-items: center; gap: 2rem; }
.navbar-links a { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; display: flex; align-items: center; gap: 0.25rem; }
.navbar-links a:hover, .navbar-links a.active { color: var(--primary); }
.navbar-links .admin-link { color: var(--text-muted); }
.navbar-links .admin-link:hover { color: var(--text-secondary); }
.navbar-mobile-btn { display: none; padding: 0.5rem; }

@media (max-width: 767px) {
  .navbar-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 0.75rem 1rem; flex-direction: column; gap: 0.5rem; }
  .navbar-links.open { display: flex; }
  .navbar-mobile-btn { display: block; }
}

/* ---- Hero ---- */
.hero { background: linear-gradient(135deg, #111827 0%, #374151 100%); color: #fff; padding: 4rem 0; }
@media (min-width: 768px) { .hero { padding: 6rem 0; } }
.hero h1 { font-size: clamp(1.875rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.125rem; color: #D1D5DB; margin-bottom: 2rem; max-width: 600px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1.5rem; font-size: 0.875rem; font-weight: 500; border-radius: var(--radius-xl); transition: all 0.2s; border: none; cursor: pointer; line-height: 1.5; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-accent { background: var(--accent-yellow); color: var(--text-primary); border: 1px solid #FCD200; }
.btn-accent:hover { background: var(--accent-yellow-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: #F3F4F6; }
.btn-danger { background: #FEE2E2; color: var(--danger); }
.btn-danger:hover { background: #FECACA; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---- Product Card ---- */
.product-card { background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card-img { aspect-ratio: 1; background: #F9FAFB; padding: 1.5rem; display: flex; align-items: center; justify-content: center; }
.product-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.2s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 1rem; }
.product-card-title { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.product-card-title:hover { color: var(--primary); }
.product-card-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.75rem; }
.product-card-stars { display: flex; gap: 1px; }
.product-card-star { width: 14px; height: 14px; }
.product-card-star.filled { color: var(--star); fill: var(--star); }
.product-card-star.empty { color: #D1D5DB; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.75rem; }
.product-card-price { font-size: 1.125rem; font-weight: 700; }

/* ---- Product Grid ---- */
.product-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- Section ---- */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title { font-size: 1.5rem; font-weight: 700; }
@media (max-width: 767px) { .section-title { font-size: 1.25rem; } }

/* ---- Category Header ---- */
.cat-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.cat-icon { width: 36px; height: 36px; background: rgba(255,153,0,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.cat-icon svg { width: 20px; height: 20px; color: var(--primary); }
.cat-desc { font-size: 0.875rem; color: var(--text-muted); margin-left: 3rem; margin-bottom: 1.5rem; }

/* ---- Brand Header ---- */
.brand-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.brand-header h3 { font-size: 1.125rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.brand-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; display: inline-block; }
.brand-count { font-size: 0.75rem; color: var(--text-muted); }

/* ---- Product Detail ---- */
.detail-layout { display: grid; gap: 2rem; padding: 1.5rem 0; }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.detail-image { background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border); padding: 2rem; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; }
.detail-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.detail-info { display: flex; flex-direction: column; gap: 1.5rem; }
.detail-title { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; line-height: 1.3; }
.detail-rating { display: flex; align-items: center; gap: 0.75rem; }
.detail-price { font-size: 1.875rem; font-weight: 700; }
.detail-price-note { font-size: 0.875rem; color: var(--text-muted); }
.detail-features { list-style: none; }
.detail-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); padding: 0.25rem 0; }
.detail-features li svg { width: 16px; height: 16px; color: var(--success); }
.detail-desc { background: #F9FAFB; border-radius: var(--radius-lg); padding: 1.25rem; }
.detail-desc h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.detail-desc p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; white-space: pre-line; }

/* ---- Reviews ---- */
.reviews-section { margin-top: 3rem; }
.reviews-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .reviews-layout { grid-template-columns: 300px 1fr; } }
.reviews-summary { background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border); padding: 1.5rem; }
.reviews-summary-score { text-align: center; margin-bottom: 1rem; }
.reviews-summary-score .score { font-size: 3rem; font-weight: 700; }
.reviews-summary-score .stars { display: flex; justify-content: center; gap: 2px; margin: 0.25rem 0; }
.reviews-summary-score .count { font-size: 0.875rem; color: var(--text-muted); }
.rating-bar { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.rating-bar-label { font-size: 0.75rem; color: var(--text-muted); width: 50px; }
.rating-bar-track { flex: 1; height: 6px; background: #F3F4F6; border-radius: 3px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--star); border-radius: 3px; transition: width 0.3s; }
.rating-bar-count { font-size: 0.75rem; color: var(--text-muted); width: 24px; text-align: right; }
.review-card { background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border); padding: 1.25rem; margin-bottom: 0.75rem; }
.review-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.review-avatar { width: 32px; height: 32px; background: #F3F4F6; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.review-author { font-size: 0.875rem; font-weight: 500; }
.review-stars { display: flex; gap: 1px; }
.review-stars svg { width: 12px; height: 12px; }
.review-date { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }
.review-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ---- Contact Page ---- */
.contact-layout { display: grid; gap: 2rem; padding: 2rem 0; }
@media (min-width: 768px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.contact-info h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.contact-info p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.6; }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.contact-item-icon { width: 40px; height: 40px; background: rgba(255,153,0,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 18px; height: 18px; color: var(--primary); }
.contact-item-label { font-size: 0.875rem; font-weight: 500; }
.contact-item-value { font-size: 0.875rem; color: var(--text-secondary); }

/* ---- Form ---- */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.form-input, .form-textarea, .form-select { width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 0.875rem; background: var(--surface); color: var(--text-primary); transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,153,0,0.15); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-checkbox { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; color: var(--text-secondary); }
.form-checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-error { color: var(--danger); font-size: 0.875rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.25rem; }
.form-success { text-align: center; padding: 2rem; }
.form-success-icon { width: 60px; height: 60px; background: #D1FAE5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.form-success-icon svg { width: 28px; height: 28px; color: var(--success); }
.form-card { background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border); padding: 1.5rem; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-summary { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; cursor: pointer; font-size: 0.875rem; font-weight: 500; }
.faq-summary::-webkit-details-marker { display: none; }
.faq-content { font-size: 0.875rem; color: var(--text-secondary); padding-bottom: 0.75rem; line-height: 1.6; }

/* ---- Footer ---- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: auto; }
.footer-layout { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-layout { grid-template-columns: 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.footer-links h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.footer-links a { display: block; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--text-muted); transition: color 0.2s; }
.footer-social a:hover { color: var(--primary); }
.footer-copy { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: var(--text-muted); padding: 1rem 0; }
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--text-primary); }

/* ---- Loading / Skeleton ---- */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; border-radius: var(--radius-md); }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Star SVG Utility ---- */
.star-svg { display: inline-block; }

/* ---- Page Structure ---- */
.page { display: flex; flex-direction: column; min-height: 100vh; }
.page main { flex: 1; }

/* ---- Not Found ---- */
.not-found { text-align: center; padding: 5rem 1rem; }
.not-found h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.not-found p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ---- Utilities ---- */
.hidden { display: none !important; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.gap-2 { gap: 0.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
