:root {
    --estm-primary: #4f46e5;
    --estm-primary-dark: #4338ca;
    --estm-accent: #ec4899;
    --estm-accent-dark: #db2777;
    --estm-blue: #3b82f6;
    --estm-bg: #f8fafc;
    --estm-card-bg: #ffffff;
    --estm-border: #e2e8f0;
    --estm-text: #1e293b;
    --estm-sub: #64748b;
    --estm-dark: #0f172a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--estm-bg); color: var(--estm-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 13px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: 0.2s; }

.estm-topbar { background: #ffffff; border-bottom: 1px solid var(--estm-border); font-size: 12px; height: 36px; line-height: 36px; color: var(--estm-sub); }
.estm-topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: flex-end; align-items: center; }

.estm-header { background: #ffffff; padding: 15px 0; border-bottom: 1px solid var(--estm-border); }
.estm-header-inner { max-width: 1280px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.estm-logo img { height: 42px; width: auto; max-width: 180px; object-fit: contain; }

.estm-nav-bar { background: #ffffff; border-bottom: 1px solid var(--estm-border); }
.estm-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 15px; }
.estm-nav-list { display: flex; list-style: none; flex-wrap: wrap; }
.estm-nav-list li a { display: block; padding: 12px 22px; color: #475569; font-size: 14px; font-weight: 700; }
.estm-nav-list li a:hover, .estm-nav-list li.active a { color: var(--estm-primary); }

.estm-notice { max-width: 1280px; margin: 15px auto 0; padding: 10px 15px; background: #eef2ff; border-left: 4px solid var(--estm-primary); border-radius: 4px; color: var(--estm-primary-dark); font-size: 13px; }

.estm-container { max-width: 1280px; margin: 25px auto; padding: 0 15px; min-height: 60vh; }

.estm-hero-banner { background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%); color: #ffffff; padding: 40px 20px; text-align: center; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 10px 25px rgba(79,70,229,0.15); }
.estm-hero-banner h1 { font-size: 28px; font-weight: 800; letter-spacing: 1px; margin-bottom: 6px; }
.estm-hero-banner p { font-size: 14px; opacity: 0.9; }

.estm-section-head { text-align: center; margin: 35px 0 20px; }
.estm-section-title { font-size: 22px; font-weight: 800; color: #0f172a; }
.estm-section-sub { font-size: 13px; color: var(--estm-sub); margin-top: 4px; }

.estm-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.estm-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.estm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.estm-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.estm-card-item { background: #ffffff; border: 1px solid var(--estm-border); border-radius: 12px; padding: 18px; text-align: center; transition: 0.2s; position: relative; }
.estm-card-item:hover { border-color: var(--estm-primary); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(79,70,229,0.1); }
.estm-badge-discount { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; line-height: 36px; background: var(--estm-accent); color: #ffffff; border-radius: 50%; font-size: 11px; font-weight: bold; }

.estm-card-img-box { width: 100%; height: 110px; background: #f8fafc; border-radius: 8px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.estm-card-img-box img { max-width: 70px; max-height: 70px; object-fit: contain; }
.estm-card-name { font-size: 14px; font-weight: 700; color: var(--estm-text); height: 38px; overflow: hidden; margin-bottom: 8px; }
.estm-card-price { font-size: 18px; font-weight: 800; color: var(--estm-primary); margin-bottom: 12px; }
.estm-btn-buy { display: block; width: 100%; padding: 8px 0; background: var(--estm-primary); color: #ffffff; font-size: 13px; font-weight: bold; text-align: center; border-radius: 6px; }
.estm-btn-buy:hover { background: var(--estm-primary-dark); }

.estm-flash-card { background: #ffffff; border: 1px solid var(--estm-border); border-radius: 12px; padding: 22px; display: flex; gap: 20px; align-items: center; }
.estm-flash-thumb { width: 120px; height: 120px; background: #f8fafc; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.estm-flash-thumb img { max-width: 80px; max-height: 80px; object-fit: contain; }
.estm-timer-box { display: flex; gap: 8px; margin: 12px 0; }
.estm-timer-unit { background: #fdf2f8; border: 1px solid #fbcfe8; padding: 4px 8px; border-radius: 4px; text-align: center; font-size: 11px; font-weight: bold; color: var(--estm-accent); }

.estm-box { background: #ffffff; border: 1px solid var(--estm-border); margin-bottom: 25px; padding: 20px; border-radius: 12px; }
.estm-row-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px; border-bottom: 1px dashed var(--estm-border); font-size: 13px; }
.estm-row-item:last-child { border-bottom: none; }

.estm-detail-layout { display: flex; gap: 30px; background: #ffffff; border: 1px solid var(--estm-border); padding: 30px; border-radius: 12px; }
.estm-detail-media { flex: 0 0 280px; text-align: center; }
.estm-detail-img-wrap { width: 230px; height: 230px; margin: 0 auto 12px; border: 1px solid var(--estm-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #f8fafc; padding: 12px; }
.estm-detail-img-wrap img { max-width: 190px; max-height: 190px; object-fit: contain; }
.estm-detail-info { flex: 1; }
.estm-detail-name { font-size: 20px; font-weight: bold; color: var(--estm-text); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--estm-border); }
.estm-detail-meta-box { background: #eef2ff; border: 1px solid #e0e7ff; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }

.estm-form-group { margin-bottom: 15px; }
.estm-form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: #475569; }
.estm-input { width: 100%; height: 40px; background: #ffffff; border: 1px solid var(--estm-border); border-radius: 6px; padding: 0 12px; outline: none; font-size: 13px; }
.estm-input:focus { border-color: var(--estm-primary); }
.estm-btn-submit { width: 100%; height: 44px; background: var(--estm-accent); color: #ffffff; font-size: 15px; font-weight: bold; border: none; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.estm-btn-submit:hover { background: var(--estm-accent-dark); }

.estm-footer { background: var(--estm-dark); color: #94a3b8; padding: 35px 15px; text-align: center; margin-top: 40px; font-size: 13px; }
.estm-footer-links { margin-bottom: 10px; }
.estm-footer-links a { color: #ffffff; margin: 0 10px; font-weight: 500; }
.estm-footer-links a:hover { color: var(--estm-accent); }

@media (max-width: 992px) {
    .estm-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .estm-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .estm-grid-2 { grid-template-columns: 1fr; }
    .estm-detail-layout { flex-direction: column; }
    .estm-detail-media { flex: 1; }
}
@media (max-width: 640px) {
    .estm-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .estm-grid-4 { grid-template-columns: 1fr; }
    .estm-nav-list li a { padding: 9px 12px; font-size: 13px; }
}
