* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--vFontBase);
    color: var(--vColorText);
    background: var(--vColorBackground);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.dvPage {
    display: flex;
    flex-direction: column;
    min-height: var(--vLayoutMinHeight);
}

.dvHeader,
.dvFooter {
    flex: 0 0 auto;
}

.dvMain {
    flex: 1 1 auto;
}

.dvSection {
    max-width: var(--vLayoutMaxWidth);
    margin: 0 auto;
    padding: var(--vSpacingSection) var(--vSpacingMd);
}

.dvSectionHeader {
    margin: 0 0 var(--vSpacingSectionTitle);
}

.dvContent {
    width: 100%;
}

#dvHeader {
    border-bottom: 1px solid var(--vColorBorder);
}

.dvHeaderLine1 {
    background: var(--vColorBackground);
    border-bottom: 1px solid var(--vColorBorder);
}

.dvHeaderLine1Inner {
    max-width: var(--vLayoutMaxWidth);
    margin: 0 auto;
    padding: var(--vSpacingMd);
    display: flex;
    align-items: center;
    gap: var(--vSpacingMd);
}

.dvLogo {
    flex: 0 0 auto;
}

.lnLogo {
    font-size: var(--vFontLogo);
    font-weight: 700;
    color: var(--vColorPrimary);
    letter-spacing: 0.5px;
}

.dvSearch {
    flex: 1 1 auto;
}

.fmSearch {
    display: flex;
    align-items: center;
    gap: var(--vSpacingSm);
}

.txSearch {
    flex: 1 1 auto;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--vColorBorder);
    border-radius: 4px;
    font-family: var(--vFontBase);
    font-size: 14px;
}

.btSearch {
    padding: 10px 14px;
    border: 1px solid var(--vColorBorder);
    border-radius: 4px;
    background: var(--vColorSurface);
    cursor: pointer;
}

.dvSearchBox {
    width: 100%;
}

.dvSearchBox .fmSearch {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.dvSearchBox .dvSearchField {
    display: flex;
    align-items: center;
    gap: var(--vSpacingSm);
}

.dvSearchBox .txSearch {
    flex: 1 1 auto;
    width: 100%;
    height: var(--vSearchHeight);
    padding: 0 14px;
    border: 1px solid var(--vColorBorder);
    border-radius: var(--vSearchRadius);
    background: var(--vColorBackground);
    font-family: var(--vFontBase);
    font-size: 14px;
    color: var(--vColorText);
}

.dvSearchBox .txSearch::placeholder {
    color: var(--vColorTextLight);
}

.dvSearchBox .btSearch {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: var(--vSearchHeight);
    height: var(--vSearchHeight);
    padding: 0;
    border: 1px solid var(--vColorBorder);
    border-radius: var(--vSearchRadius);
    background: var(--vColorSurface);
    color: var(--vColorPrimary);
    font-size: 16px;
    cursor: pointer;
}

.dvSearchBox .btSearch i {
    line-height: 1;
}

.dvSearchBox .dvSearchPanel {
    display: none;
}

.dvLogin,
.dvCart {
    flex: 0 0 auto;
}

.dvCart {
    margin-left: 16px;
}

.lnLogin,
.lnCart {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.dvHeaderLine2 {
    background: var(--vColorPrimary);
}

.dvNav {
    max-width: var(--vLayoutMaxWidth);
    margin: 0 auto;
    padding: 0 var(--vSpacingMd);
    display: flex;
    align-items: center;
    gap: var(--vSpacingLg);
    overflow-x: auto;
}

.lnNav {
    display: block;
    padding: 8px 0;
    color: #ffffff;
    font-size: 14px;
    white-space: nowrap;
}

#dvMain {
    min-height: 400px;
}

#dvMain.dvMain {
    min-height: 0;
}

.dvFeatured {
    max-width: var(--vLayoutMaxWidth);
    margin: 0 auto;
    padding: var(--vSpacingSection) var(--vSpacingMd);
}

.lbSectionTitle {
    margin: 0 0 var(--vSpacingSectionTitle);
    font-size: var(--vFontSectionTitle);
    font-weight: 700;
    color: var(--vColorPrimary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dvProductsGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: stretch;
}

.dvProductCard {
    display: flex;
    flex-direction: column;
    min-height: var(--vProductCardHeight);
    height: 100%;
    border: 1px solid #e8edf2;
    border-radius: 6px;
    overflow: hidden;
    background: var(--vColorBackground);
}

.dvProductCard .dvProductMedia {
    position: relative;
    flex: 0 0 auto;
    border-bottom: 1px solid #eef1f4;
}

.dvProductCard .imProduct {
    width: 100%;
    height: var(--vProductImageHeight);
    object-fit: cover;
    border-radius: 0;
    background: var(--vColorSurface);
}

.dvProductCard .dvLabels {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.dvProductCard .lbLabel {
    display: inline-block;
    min-width: 72px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.dvProductCard .lbLabelOffer {
    background: #e74c3c;
    color: #ffffff;
}

.dvProductCard .lbLabelNew {
    background: #2c3e50;
    color: #ffffff;
}

.dvProductCard .lbLabelSold {
    background: #636e72;
    color: #ffffff;
}

.dvProductCard .lbLabelPlaceholder {
    min-height: 22px;
    border: 1px dashed #cfd8dc;
    background: rgba(255, 255, 255, 0.85);
    color: transparent;
}

.dvProductCard .dvProductBody {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 12px;
}

.dvProductCard .lbBrand {
    margin: 0;
    font-size: var(--vFontBrand);
    font-weight: 600;
    color: #7f8c8d;
}

.dvProductCard .lbProductName {
    margin: 0;
    min-height: var(--vProductNameHeight);
    max-height: var(--vProductNameHeight);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--vColorPrimary);
}

.dvProductCard .dvPriceBlock {
    margin-top: auto;
    padding-top: 6px;
}

.dvProductCard .dvProductFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dvProductCard .lbProductPrice {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--vColorPrimary);
    line-height: 1;
}

.dvProductCard .btProduct,
.dvProductCard span.btProduct {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: var(--vColorPrimary);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
}

.dvProductCard .btProduct i,
.dvProductCard span.btProduct i {
    line-height: 1;
}

.dvProductCard .dvPriceList {
    min-height: var(--vProductPriceListHeight);
}

.lnProductCard {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.lnCategory.dvCategory {
    color: inherit;
    text-decoration: none;
}

.lnBrand {
    flex: 0 0 auto;
    text-decoration: none;
}

.lnPromoBanner {
    color: inherit;
    text-decoration: none;
}

#dvFooter {
    background: var(--vColorFooter);
    color: #ffffff;
}

.dvFooterTopInner {
    max-width: var(--vLayoutMaxWidth);
    margin: 0 auto;
    padding: var(--vSpacingXl) var(--vSpacingMd);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--vSpacingLg);
}

.lbFooterTitle {
    margin: 0 0 var(--vSpacingMd);
    font-size: 16px;
}

.lbFooterText {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #bdc3c7;
}

.lnFooter {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ecf0f1;
}

.dvFooterBottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lbCopyright {
    max-width: var(--vLayoutMaxWidth);
    margin: 0 auto;
    padding: var(--vSpacingMd);
    font-size: 13px;
    text-align: center;
    color: #bdc3c7;
}
