:root {
    --est-primary: #3b82f6;
    --est-primary-dark: #2563eb;
    --est-accent: #ef4444;
    --est-accent-dark: #dc2626;
    --est-bg: #f8fafc;
    --est-card-bg: #ffffff;
    --est-border: #e2e8f0;
    --est-text: #1e293b;
    --est-sub: #64748b;
    
    --est-pastel-blue: #eff6ff;
    --est-pastel-red: #fef2f2;
    --est-pastel-green: #f0fdf4;
    --est-pastel-yellow: #fefce8;
    --est-pastel-purple: #faf5ff;
    --est-pastel-cyan: #ecfeff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--est-bg); color: var(--est-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; }

.est-topbar { background: #ffffff; border-bottom: 1px solid var(--est-border); font-size: 12px; height: 36px; line-height: 36px; color: var(--est-sub); }
.est-topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: flex-end; align-items: center; }

.est-header { background: #ffffff; padding: 15px 0; border-bottom: 1px solid var(--est-border); }
.est-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.est-logo img { height: 42px; width: auto; max-width: 180px; object-fit: contain; }

.est-nav-bar { background: #ffffff; border-bottom: 1px solid var(--est-border); }
.est-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.est-nav-list { display: flex; list-style: none; flex-wrap: wrap; }
.est-nav-list li a { display: block; padding: 12px 20px; color: var(--est-sub); font-size: 14px; font-weight: 600; }
.est-nav-list li a:hover, .est-nav-list li.active a { color: var(--est-primary); }

.est-notice { max-width: 1200px; margin: 15px auto 0; padding: 10px 15px; background: var(--est-pastel-blue); border-left: 4px solid var(--est-primary); border-radius: 4px; color: var(--est-primary-dark); font-size: 13px; }

.est-container { max-width: 1200px; margin: 25px auto; padding: 0 15px; min-height: 60vh; }

.est-hero-search { text-align: center; margin: 20px 0 35px; }
.est-hero-search h1 { font-size: 28px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.est-hero-search p { font-size: 13px; color: var(--est-sub); }

.est-box { background: var(--est-card-bg); border: 1px solid var(--est-border); margin-bottom: 25px; padding: 20px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.est-box-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 15px; border-bottom: 1px solid var(--est-border); }
.est-box-title { font-size: 16px; font-weight: bold; color: #0f172a; display: flex; align-items: center; }
.est-box-title::before { content: ""; width: 4px; height: 14px; background: var(--est-primary); margin-right: 8px; border-radius: 2px; }

.est-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.est-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.est-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.est-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.est-hero-card { border-radius: 12px; padding: 22px; color: #ffffff; transition: 0.2s; }
.est-hero-card.blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.est-hero-card.red { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.est-hero-head { font-size: 16px; font-weight: bold; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }

.est-pastel-tile { padding: 18px 12px; border-radius: 10px; text-align: center; transition: 0.2s; border: 1px solid transparent; }
.est-pastel-tile:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.04); }

.est-card-item { border: 1px solid var(--est-border); padding: 15px; text-align: center; background: #ffffff; border-radius: 8px; transition: 0.2s; }
.est-card-item:hover { border-color: var(--est-primary); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(59,130,246,0.08); }
.est-card-img-box { width: 50px; height: 50px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-radius: 8px; border: 1px solid var(--est-border); }
.est-card-img-box img { max-width: 38px; max-height: 38px; object-fit: contain; }
.est-card-name { font-size: 13px; font-weight: 600; height: 36px; overflow: hidden; margin-bottom: 6px; color: var(--est-text); }
.est-card-price { font-size: 16px; font-weight: bold; color: var(--est-accent); margin-bottom: 8px; }
.est-btn-buy { display: block; width: 100%; padding: 6px 0; background: var(--est-primary); color: #ffffff; font-size: 12px; font-weight: bold; text-align: center; border-radius: 6px; }
.est-btn-buy:hover { background: var(--est-primary-dark); }

.est-row-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px; border-bottom: 1px dashed var(--est-border); font-size: 13px; }
.est-row-item:last-child { border-bottom: none; }

.est-detail-layout { display: flex; gap: 30px; background: #ffffff; border: 1px solid var(--est-border); padding: 30px; border-radius: 12px; }
.est-detail-media { flex: 0 0 260px; text-align: center; }
.est-detail-img-wrap { width: 220px; height: 220px; margin: 0 auto 12px; border: 1px solid var(--est-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #f8fafc; padding: 10px; }
.est-detail-img-wrap img { max-width: 180px; max-height: 180px; object-fit: contain; }
.est-detail-info { flex: 1; }
.est-detail-name { font-size: 20px; font-weight: bold; color: var(--est-text); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--est-border); }
.est-detail-meta-box { background: var(--est-pastel-blue); border: 1px solid #dbeafe; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }

.est-form-group { margin-bottom: 15px; }
.est-form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: #475569; }
.est-input { width: 100%; height: 40px; background: #ffffff; border: 1px solid var(--est-border); border-radius: 6px; padding: 0 12px; outline: none; font-size: 13px; }
.est-input:focus { border-color: var(--est-primary); }
.est-btn-submit { width: 100%; height: 44px; background: var(--est-accent); color: #ffffff; font-size: 15px; font-weight: bold; border: none; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.est-btn-submit:hover { background: var(--est-accent-dark); }

.est-footer { background: #ffffff; border-top: 1px solid var(--est-border); color: var(--est-sub); padding: 35px 15px; text-align: center; margin-top: 40px; font-size: 13px; }
.est-footer-links { margin-bottom: 10px; }
.est-footer-links a { color: var(--est-text); margin: 0 10px; font-weight: 500; }
.est-footer-links a:hover { color: var(--est-primary); }

@media (max-width: 992px) {
    .est-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .est-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .est-grid-3 { grid-template-columns: 1fr; }
    .est-grid-2 { grid-template-columns: 1fr; }
    .est-detail-layout { flex-direction: column; }
    .est-detail-media { flex: 1; }
}
@media (max-width: 640px) {
    .est-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .est-grid-4 { grid-template-columns: 1fr; }
    .est-nav-list li a { padding: 9px 12px; font-size: 13px; }
}
