/* --- 1. RESET & VARIABLES (Trích xuất từ pui.css) --- */
:root {
    --primary-red: #ff0038; /* Màu đỏ chuẩn 11st */
    --text-black: #111;
    --text-gray: #666;
    --border-color: #eee;
    --bg-light: #f4f4f4;
    --container-width: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-black);
    font-size: 14px;
    background-color: #fff;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Container chuẩn 1240px của 11st */
.inner, .l-carrier {
    width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

/* --- 2. HEADER STYLES --- */
.l_header {
    border-bottom: 1px solid var(--border-color);
}

/* Top Utility Bar */
.header_util {
    background: #fff;
    border-bottom: 1px solid #f4f4f4;
    height: 34px;
}

.util_links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 34px;
}

.util_links a {
    font-size: 12px;
    color: #888;
    margin-left: 15px;
}

/* Main Header Area */
.header_main {
    padding: 25px 0;
}

.header_flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 40px;
    font-weight: 900;
    color: var(--primary-red);
    letter-spacing: -2px;
}

/* Search Box - Style giống pui.css .c_gnb_search */
.search_area {
    flex-grow: 1;
    margin: 0 60px;
}

.search_form {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: 46px;
    border: 2px solid var(--primary-red);
    border-radius: 23px; /* Bo tròn kiểu 11st */
    overflow: hidden;
    display: flex;
}

.search_input {
    flex-grow: 1;
    border: none;
    padding: 0 20px;
    font-size: 15px;
    outline: none;
}

.btn_search {
    width: 50px;
    background: #fff;
    border: none;
    color: var(--primary-red);
    font-size: 20px;
    cursor: pointer;
}

/* My Menu Icons */
.my_menu {
    display: flex;
    gap: 20px;
}

.menu_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #333;
    position: relative;
}

.menu_item i {
    font-size: 24px;
    margin-bottom: 4px;
    color: #333;
}

.menu_item .count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-red);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-style: normal;
}

/* Navigation Bar */
.header_gnb {
    border-top: 1px solid #ddd;
}

.gnb_list {
    display: flex;
    height: 50px;
    align-items: center;
}

.gnb_list li {
    margin-right: 30px;
}

.gnb_list a {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    transition: color 0.2s;
}

.gnb_list li:hover a, .gnb_list li.active a {
    color: var(--primary-red);
}

/* --- 3. BANNER --- */
.main_banner_wrap {
    background: linear-gradient(135deg, #ff0038 0%, #ff5a2e 100%); /* Gradient đỏ cam */
    height: 300px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.banner_text h2 { font-size: 48px; margin-bottom: 10px; }
.banner_text p { font-size: 18px; opacity: 0.9; }

/* --- 4. PRODUCT GRID (Quan trọng) --- */
/* Title Section */
.c_myhistory_title {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    border-bottom: 2px solid #111;
    padding-bottom: 15px;
}

.c_myhistory_title .title {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-right: 10px;
}

.c_myhistory_title .text {
    font-size: 14px;
    color: #888;
}

/* Grid Layout */
.c_list_card {
    display: grid;
    /* Chia 4 cột tự động, khoảng cách 20px */
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px;
    margin-bottom: 60px;
}

/* Product Card Style */
.c-card-item {
    border: 1px solid #eee;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.c-card-item:hover {
    border-color: #aaa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.c-card-item__thumb {
    width: 100%;
    aspect-ratio: 1/1; /* Ảnh vuông */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f4f4f4;
}

.c-card-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-card-item__info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.c-card-item__name {
    height: 44px; /* Giới hạn chiều cao 2 dòng */
    overflow: hidden;
    margin-bottom: 10px;
}

.c-card-item__name a {
    font-size: 14px;
    line-height: 1.5;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Price Section */
.c-card-item__price-info {
    margin-bottom: 10px;
}

.discount {
    color: var(--primary-red);
    font-size: 18px;
    font-weight: bold;
    float: left;
    margin-right: 8px;
}

.price {
    font-size: 18px;
    color: #111;
    font-weight: bold;
}

.original_price {
    display: block;
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-top: 4px;
    clear: both;
}

/* Delivery Badge */
.c-card-item__delivery {
    margin-top: auto; /* Đẩy xuống đáy */
    padding-top: 10px;
    border-top: 1px solid #f9f9f9;
}

.badge_free {
    background: #f4f4f4;
    color: #666;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* --- 5. FOOTER --- */
.footer_wrap3 {
    background: #fafafa;
    padding: 40px 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
}