:root {
    --lg-primary: #2bb673;
    --lg-primary-dark: #239a60;
    --lg-accent: #ff9f43;
    --lg-accent-dark: #e58e3c;
    --lg-bg: #f7f9fa;
    --lg-card-bg: #ffffff;
    --lg-border: #e8ecf1;
    --lg-text: #222f3e;
    --lg-sub: #8395a7;
    --lg-dark: #222f3e;
    
    --lg-pastel-1: #fef0f0;
    --lg-pastel-2: #fff5eb;
    --lg-pastel-3: #eafaf1;
    --lg-pastel-4: #fdf2e9;
    --lg-pastel-5: #eef2ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--lg-bg); color: var(--lg-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; }

.lg-topbar { background: #ffffff; border-bottom: 1px solid var(--lg-border); font-size: 12px; height: 36px; line-height: 36px; color: var(--lg-sub); }
.lg-topbar-inner { max-width: 1300px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: flex-end; align-items: center; }

.lg-header { background: #ffffff; padding: 18px 0; border-bottom: 1px solid var(--lg-border); }
.lg-header-inner { max-width: 1300px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.lg-logo img { height: 44px; width: auto; max-width: 180px; object-fit: contain; }

.lg-nav-bar { background: #ffffff; border-bottom: 2px solid var(--lg-primary); }
.lg-nav-inner { max-width: 1300px; margin: 0 auto; padding: 0 15px; }
.lg-nav-list { display: flex; list-style: none; flex-wrap: wrap; }
.lg-nav-list li a { display: block; padding: 12px 22px; color: var(--lg-text); font-size: 14px; font-weight: 700; }
.lg-nav-list li a:hover, .lg-nav-list li.active a { color: var(--lg-primary); }

.lg-notice { max-width: 1300px; margin: 15px auto 0; padding: 10px 15px; background: #eafaf1; border-left: 4px solid var(--lg-primary); border-radius: 4px; color: var(--lg-primary-dark); font-size: 13px; }

.lg-container { max-width: 1300px; margin: 25px auto; padding: 0 15px; min-height: 60vh; }

.lg-section-head { display: flex; justify-content: space-between; align-items: center; margin: 35px 0 18px; }
.lg-section-title { font-size: 20px; font-weight: 800; color: var(--lg-text); display: flex; align-items: center; }
.lg-section-title::before { content: ""; width: 4px; height: 18px; background: var(--lg-primary); margin-right: 8px; border-radius: 2px; }

.lg-hero-split { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 30px; }
.lg-hero-left { background: linear-gradient(135deg, #2bb673 0%, #239a60 100%); color: #ffffff; padding: 30px; border-radius: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.lg-hero-right { display: flex; flex-direction: column; gap: 12px; }

.lg-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.lg-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lg-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.lg-category-tile { border-radius: 10px; padding: 18px 10px; text-align: center; border: 1px solid transparent; transition: 0.2s; }
.lg-category-tile:hover { transform: translateY(-3px); border-color: var(--lg-primary); box-shadow: 0 6px 15px rgba(43,182,115,0.12); }

.lg-card-item { background: #ffffff; border: 1px solid var(--lg-border); border-radius: 10px; padding: 16px; text-align: center; transition: 0.2s; position: relative; }
.lg-card-item:hover { border-color: var(--lg-primary); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(43,182,115,0.1); }
.lg-card-img-box { width: 100%; height: 110px; background: #f8fafc; border-radius: 8px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.lg-card-img-box img { max-width: 70px; max-height: 70px; object-fit: contain; }
.lg-card-name { font-size: 13px; font-weight: 700; color: var(--lg-text); height: 36px; overflow: hidden; margin-bottom: 8px; }
.lg-card-price { font-size: 16px; font-weight: 800; color: var(--lg-primary); margin-bottom: 10px; }
.lg-btn-buy { display: block; width: 100%; padding: 7px 0; background: #eafaf1; color: var(--lg-primary); font-size: 12px; font-weight: bold; text-align: center; border-radius: 6px; }
.lg-btn-buy:hover { background: var(--lg-primary); color: #ffffff; }

.lg-flash-card { background: #ffffff; border: 1px solid var(--lg-border); border-radius: 12px; padding: 22px; display: flex; gap: 20px; align-items: center; }
.lg-flash-thumb { width: 120px; height: 120px; background: #f8fafc; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lg-flash-thumb img { max-width: 80px; max-height: 80px; object-fit: contain; }
.lg-timer-box { display: flex; gap: 6px; margin: 10px 0; }
.lg-timer-unit { background: #eafaf1; border: 1px solid #c7f0d8; padding: 3px 8px; border-radius: 4px; text-align: center; font-size: 11px; font-weight: bold; color: var(--lg-primary); }

.lg-box { background: #ffffff; border: 1px solid var(--lg-border); margin-bottom: 25px; padding: 20px; border-radius: 10px; }

.lg-detail-layout { display: flex; gap: 30px; background: #ffffff; border: 1px solid var(--lg-border); padding: 30px; border-radius: 12px; }
.lg-detail-media { flex: 0 0 280px; text-align: center; }
.lg-detail-img-wrap { width: 230px; height: 230px; margin: 0 auto 12px; border: 1px solid var(--lg-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #f8fafc; padding: 12px; }
.lg-detail-img-wrap img { max-width: 190px; max-height: 190px; object-fit: contain; }
.lg-detail-info { flex: 1; }
.lg-detail-name { font-size: 20px; font-weight: bold; color: var(--lg-text); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--lg-border); }
.lg-detail-meta-box { background: #eafaf1; border: 1px solid #c7f0d8; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }

.lg-form-group { margin-bottom: 15px; }
.lg-form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: #475569; }
.lg-input { width: 100%; height: 40px; background: #ffffff; border: 1px solid var(--lg-border); border-radius: 6px; padding: 0 12px; outline: none; font-size: 13px; }
.lg-input:focus { border-color: var(--lg-primary); }
.lg-btn-submit { width: 100%; height: 44px; background: var(--lg-primary); color: #ffffff; font-size: 15px; font-weight: bold; border: none; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.lg-btn-submit:hover { background: var(--lg-primary-dark); }

.lg-footer { background: var(--lg-dark); color: #8395a7; padding: 35px 15px; text-align: center; margin-top: 40px; font-size: 13px; }
.lg-footer-links { margin-bottom: 10px; }
.lg-footer-links a { color: #ffffff; margin: 0 10px; font-weight: 500; }
.lg-footer-links a:hover { color: var(--lg-accent); }

@media (max-width: 1100px) {
    .lg-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .lg-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .lg-hero-split { grid-template-columns: 1fr; }
    .lg-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .lg-grid-2 { grid-template-columns: 1fr; }
    .lg-detail-layout { flex-direction: column; }
    .lg-detail-media { flex: 1; }
}
@media (max-width: 480px) {
    .lg-grid-5, .lg-grid-4, .lg-grid-3 { grid-template-columns: 1fr; }
    .lg-nav-list li a { padding: 9px 12px; font-size: 13px; }
}
