/* ==========================================================================
   THEME CHẬU RỬA CHÉN - INDUSTRIAL MODERN DESIGN SYSTEM
   Color Palette: #ffd934 (Primary Yellow) | #353535 (Charcoal) | #ffffff (White)
   ========================================================================== */

:root {
    --crc-yellow: #ffd934;
    --crc-yellow-hover: #f0c718;
    --crc-dark: #353535;
    --crc-dark-hover: #222222;
    --crc-white: #ffffff;
    --crc-bg: #f6f7f9;
    --crc-border: #e5e7eb;
    --crc-muted: #6b7280;
    --crc-price: #d32f2f;
}

body.crc-body {
    background-color: var(--crc-white);
    color: var(--crc-dark);
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

a {
    color: var(--crc-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #000000;
}

/* ==========================================================================
   1. HEADER 3 TẦNG (TOPBAR - MAIN HEADER - ACTION BAR)
   ========================================================================== */
.crc-topbar {
    background-color: var(--crc-dark);
    color: var(--crc-white);
    font-size: 12.5px;
    padding: 7px 0;
}

.crc-topbar a {
    color: #e5e7eb;
}

.crc-topbar a:hover {
    color: var(--crc-yellow);
}

.crc-topbar-highlight {
    color: var(--crc-yellow);
    font-weight: 700;
}

.crc-main-header {
    background-color: var(--crc-white);
    padding: 14px 0;
    border-bottom: 1px solid var(--crc-border);
}

.crc-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--crc-dark);
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.crc-logo-badge {
    background-color: var(--crc-yellow);
    color: var(--crc-dark);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
}

.crc-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.crc-nav-links > li > a {
    font-weight: 600;
    font-size: 14px;
    color: var(--crc-dark);
    padding: 6px 0;
    position: relative;
}

.crc-nav-links > li > a:hover,
.crc-nav-links > li > a.active {
    color: #000;
}

.crc-nav-links > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--crc-yellow);
    transition: width 0.25s ease;
}

.crc-nav-links > li > a:hover::after {
    width: 100%;
}

.crc-badge-hot {
    background-color: var(--crc-yellow);
    color: var(--crc-dark);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: top;
}

.crc-header-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.crc-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--crc-dark);
    font-weight: 600;
    font-size: 13px;
    position: relative;
}

.crc-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--crc-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--crc-dark);
    transition: all 0.2s ease;
}

.crc-icon-btn:hover .crc-icon-circle {
    background: var(--crc-yellow);
}

.crc-cart-count {
    position: absolute;
    top: -4px;
    left: 26px;
    background: var(--crc-yellow);
    color: var(--crc-dark);
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1px solid var(--crc-dark);
}

/* Action Bar */
.crc-action-bar {
    background-color: var(--crc-white);
    padding: 10px 0;
    border-bottom: 1px solid var(--crc-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.crc-cat-toggle-btn {
    background-color: var(--crc-yellow);
    color: var(--crc-dark);
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 800;
    font-size: 13.5px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.crc-cat-toggle-btn:hover {
    background-color: var(--crc-yellow-hover);
}

/* Hover Mega Menu & Sub-menu */
.crc-cat-dropdown-wrap {
    position: relative;
}

.crc-mega-menu-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-top: 3px solid var(--crc-yellow);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    padding: 6px 0;
    list-style: none;
    margin: 0;
}

.crc-cat-dropdown-wrap:hover > .crc-mega-menu-panel {
    display: block;
}

.crc-cat-item {
    position: relative;
}

.crc-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--crc-dark);
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.15s ease;
}

.crc-cat-item:last-child > .crc-cat-link {
    border-bottom: none;
}

.crc-cat-item:hover > .crc-cat-link {
    background-color: var(--crc-yellow);
    color: var(--crc-dark);
    font-weight: 700;
}

.crc-sub-panel {
    display: none;
    position: absolute;
    top: -3px;
    left: 100%;
    min-width: 260px;
    max-width: 320px;
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-left: 3px solid var(--crc-yellow);
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    z-index: 1060;
    padding: 8px 0;
    list-style: none;
    margin: 0;
}

.crc-cat-item:hover > .crc-sub-panel {
    display: block;
}

.crc-sub-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--crc-dark);
    border-bottom: 1px solid #f8fafc;
}

.crc-sub-panel a:hover {
    background-color: #fef9c3;
    color: #000;
    font-weight: 600;
}

.crc-search-group {
    display: flex;
    border: 2px solid var(--crc-dark);
    border-radius: 6px;
    overflow: hidden;
    background: var(--crc-white);
}

.crc-search-select {
    border: none;
    border-right: 1px solid var(--crc-border);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--crc-dark);
    background: var(--crc-bg);
    max-width: 170px;
    outline: none;
}

.crc-search-input {
    border: none;
    flex: 1;
    padding: 8px 14px;
    font-size: 13.5px;
    outline: none;
}

.crc-search-btn {
    background-color: var(--crc-dark);
    color: var(--crc-white);
    border: none;
    padding: 8px 22px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crc-search-btn:hover {
    background-color: var(--crc-yellow);
    color: var(--crc-dark);
}

.crc-shipping-note {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--crc-dark);
}

.crc-shipping-note i {
    color: var(--crc-dark);
    background: var(--crc-yellow);
    padding: 6px;
    border-radius: 50%;
    font-size: 14px;
}

/* ==========================================================================
   2. HERO & VERTICAL CATEGORY MENU
   ========================================================================== */
.crc-hero-section {
    background: var(--crc-bg);
    padding: 20px 0 30px;
}

.crc-vertical-menu {
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: 8px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    height: 100%;
}

.crc-vertical-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--crc-dark);
    border-bottom: 1px solid #f3f4f6;
}

.crc-vertical-menu li:last-child a {
    border-bottom: none;
}

.crc-vertical-menu li a:hover {
    background-color: var(--crc-yellow);
    color: var(--crc-dark);
    font-weight: 700;
}

.crc-hero-banner {
    background: linear-gradient(120deg, #2b2b2b 0%, #353535 60%, #484848 100%);
    border-radius: 10px;
    padding: 48px 44px;
    color: var(--crc-white);
    min-height: 380px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.crc-hero-tag {
    color: var(--crc-yellow);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.crc-hero-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    color: var(--crc-white);
}

.crc-btn-yellow {
    background-color: var(--crc-yellow);
    color: var(--crc-dark);
    font-weight: 800;
    padding: 11px 26px;
    border-radius: 6px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.crc-btn-yellow:hover {
    background-color: var(--crc-yellow-hover);
    color: #000;
    transform: translateY(-1px);
}

.crc-btn-dark {
    background-color: var(--crc-dark);
    color: var(--crc-white);
    font-weight: 700;
    padding: 11px 26px;
    border-radius: 6px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.crc-btn-dark:hover {
    background-color: var(--crc-dark-hover);
    color: var(--crc-yellow);
}

/* ==========================================================================
   3. SECTION TITLES & CATEGORY ICON GRID
   ========================================================================== */
.crc-section {
    padding: 36px 0;
}

.crc-section-header {
    text-align: center;
    margin-bottom: 26px;
}

.crc-section-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--crc-dark);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.crc-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--crc-yellow);
}

.crc-cat-icon-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

@media (max-width: 1199px) {
    .crc-cat-icon-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 575px) {
    .crc-cat-icon-grid { grid-template-columns: repeat(2, 1fr); }
}

.crc-cat-icon-box {
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: 8px;
    padding: 18px 10px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.crc-cat-icon-box:hover {
    border-color: var(--crc-yellow);
    box-shadow: 0 6px 16px rgba(53, 53, 53, 0.08);
    transform: translateY(-2px);
}

.crc-cat-icon-box i {
    font-size: 28px;
    color: var(--crc-dark);
}

.crc-cat-icon-box span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--crc-dark);
    line-height: 1.3;
}

/* ==========================================================================
   4. PRODUCT CARDS (5-COL GRID, 4-COL CATALOG, HORIZONTAL FEATURED, LIST VIEW)
   ========================================================================== */
.crc-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.crc-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1199px) {
    .crc-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .crc-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .crc-grid-5, .crc-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.crc-product-card {
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s ease;
}

.crc-product-card:hover {
    border-color: var(--crc-yellow);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.crc-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--crc-yellow);
    color: var(--crc-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 2;
}

.crc-prod-img-wrap {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    background: #ffffff;
    border-radius: 6px;
}

.crc-prod-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.crc-product-card:hover .crc-prod-img-wrap img {
    transform: scale(1.04);
}

.crc-prod-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--crc-dark);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.crc-prod-rating {
    color: #f59e0b;
    font-size: 12px;
    margin-bottom: 6px;
}

.crc-prod-price-row {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.crc-price-now {
    font-size: 15px;
    font-weight: 800;
    color: var(--crc-price);
}

.crc-price-old {
    font-size: 12.5px;
    color: var(--crc-muted);
    text-decoration: line-through;
}

.crc-btn-add-cart {
    margin-top: auto;
    width: 100%;
    background-color: #f3f4f6;
    color: var(--crc-dark);
    border: 1px solid var(--crc-border);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crc-btn-add-cart:hover {
    background-color: var(--crc-yellow);
    border-color: var(--crc-yellow);
    color: var(--crc-dark);
}

/* Horizontal Card (Featured Products) */
.crc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .crc-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .crc-grid-3 { grid-template-columns: 1fr; }
}

.crc-prod-card-horiz {
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}

.crc-prod-card-horiz:hover {
    border-color: var(--crc-yellow);
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.crc-prod-card-horiz .crc-horiz-img {
    width: 105px;
    height: 105px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crc-prod-card-horiz .crc-horiz-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* List View Card (Catalog Dual Mode) */
.crc-list-view .crc-product-card {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 20px;
}

.crc-list-view .crc-prod-img-wrap {
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.crc-list-view .crc-prod-info {
    flex: 1;
}

.crc-list-view .crc-prod-title {
    font-size: 16px;
    font-weight: 700;
    min-height: auto;
}

.crc-list-view .crc-btn-add-cart {
    width: auto;
    padding: 9px 24px;
    background-color: var(--crc-yellow);
    border-color: var(--crc-yellow);
}

@media (max-width: 767px) {
    .crc-list-view .crc-product-card {
        flex-direction: column;
        align-items: stretch;
    }
    .crc-list-view .crc-prod-img-wrap {
        width: 100%;
        height: 180px;
    }
}

/* Tabs */
.crc-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.crc-tab-btn {
    background: #f3f4f6;
    color: var(--crc-dark);
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crc-tab-btn.active,
.crc-tab-btn:hover {
    background: var(--crc-yellow);
    color: var(--crc-dark);
}

/* ==========================================================================
   5. CATALOG SIDEBAR & TOOLBAR
   ========================================================================== */
.crc-sidebar-box {
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
}

.crc-sidebar-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--crc-dark);
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--crc-yellow);
}

.crc-toolbar {
    background: var(--crc-bg);
    border: 1px solid var(--crc-border);
    border-radius: 6px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.crc-view-btn {
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    color: var(--crc-dark);
    width: 34px;
    height: 34px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.crc-view-btn.active {
    background: var(--crc-yellow);
    border-color: var(--crc-yellow);
    font-weight: 700;
}

/* ==========================================================================
   6. PRODUCT DETAIL PAGE (VERTICAL THUMBS & DUAL CTA)
   ========================================================================== */
.crc-gallery-wrap {
    display: flex;
    gap: 14px;
}

.crc-thumbs-col {
    width: 82px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.crc-thumb-item {
    width: 82px;
    height: 82px;
    border: 2px solid var(--crc-border);
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crc-white);
}

.crc-thumb-item.active,
.crc-thumb-item:hover {
    border-color: var(--crc-yellow);
}

.crc-thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.crc-main-img-box {
    flex: 1;
    border: 1px solid var(--crc-border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crc-white);
    min-height: 400px;
}

.crc-main-img-box img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

@media (max-width: 575px) {
    .crc-gallery-wrap { flex-direction: column-reverse; }
    .crc-thumbs-col { width: 100%; flex-direction: row; overflow-x: auto; }
}

.crc-detail-tabs .nav-link {
    font-weight: 700;
    color: var(--crc-muted);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 22px;
}

.crc-detail-tabs .nav-link.active {
    color: var(--crc-dark);
    border-bottom: 3px solid var(--crc-yellow);
    background: transparent;
}

/* ==========================================================================
   7. FOOTER 5 CỘT NỀN #353535
   ========================================================================== */
.crc-footer {
    background-color: var(--crc-dark);
    color: #d1d5db;
    padding: 48px 0 24px;
    margin-top: 40px;
    border-top: 4px solid var(--crc-yellow);
}

.crc-footer h6 {
    color: var(--crc-white);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.crc-footer h6::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--crc-yellow);
}

.crc-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crc-footer ul li {
    margin-bottom: 8px;
    font-size: 13px;
}

.crc-footer ul li a {
    color: #d1d5db;
}

.crc-footer ul li a:hover {
    color: var(--crc-yellow);
}

.crc-footer-bottom {
    border-top: 1px solid #4b5563;
    margin-top: 32px;
    padding-top: 20px;
    font-size: 12.5px;
    color: #9ca3af;
}
