html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background: #fdfdfd;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2d3748;
    font-size: 13px;
}

* {
    box-sizing: border-box;
}

a {
    color: #2d3748;
    text-decoration: none;
}

.familyheader {
    background: #8b1e1e;
    border-bottom: 3px solid #6b1212;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.familyheaderinner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.familylogo img {
    max-height: 40px;
    vertical-align: middle;
}

.familynav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.familynav a {
    font-weight: bold;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.familynav a:hover, .familynav .active {
    background: #6b1212;
}

.familywrap {
    max-width: 1200px;
    margin: 15px auto;
    padding: 0 10px;
}

.familycard {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.familycardtitle {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #8b1e1e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6b1212;
}

.familyimg {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    border-radius: 4px;
}

.familygrid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.familygriditem {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
}

.familygriditem:hover {
    transform: translateY(-2px);
    border-color: #8b1e1e;
    box-shadow: 0 4px 12px rgba(139,30,30,0.1);
}

.familygriditemtitle {
    font-size: 12px;
    font-weight: bold;
    margin: 6px 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.familyprice {
    color: #e53e3e;
    font-weight: bold;
}

.familybtn {
    display: inline-block;
    background: #8b1e1e;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.familybtn:hover {
    background: #6b1212;
}

.familypill {
    display: inline-block;
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin: 2px;
}

.familycircleicon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff5f5;
    color: #8b1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: bold;
}

.familyfooter {
    background: #1a202c;
    color: #ffffff;
    padding: 25px 0;
    text-align: center;
    margin-top: 30px;
}

.familyfooternav a {
    margin: 0 10px;
    color: #cbd5e0;
    font-size: 12px;
}

.familycopyright {
    color: #cbd5e0;
    font-size: 12px;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .familygrid3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .familygrid3 { grid-template-columns: repeat(1, 1fr); }
    .familyheaderinner { flex-direction: column; gap: 10px; }
}
