.banner-minor img {
    max-width: 100%;
    max-height: 100%;
}

.banner-minor .item {
    margin-bottom: 25px;   
}

/* 2026-06-15 (Nova #marquee) — แถบโปรโมชั่นวิ่ง: ป้ายติดซ้าย + ไล่เฉดสี + ปุ่ม pill */
.marquee-promotion {
    display: flex;
    align-items: stretch;
    background: linear-gradient(90deg, #eaa033 0%, #d88f21 55%, #c87d14 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    overflow: hidden;
}

.marquee-promotion .mq-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    background: rgba(0, 0, 0, .24);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .3px;
    white-space: nowrap;
    box-shadow: 2px 0 8px rgba(0, 0, 0, .15);
    z-index: 2;
}

.marquee-promotion marquee {
    flex: 1 1 auto;
    align-self: center;
    padding: 14px 0;
}

.marquee-promotion .item {
    font-size: 18px;
    margin-right: 70px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.marquee-promotion .item a {
    margin-left: 14px;
    font-size: 13.5px;
    color: #c87d14;
    font-weight: 800;
    text-decoration: none;
    background: #fff;
    padding: 5px 16px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transition: transform .12s ease, box-shadow .12s ease;
}

.marquee-promotion .item a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}

@media (max-width: 767px) {
    .marquee-promotion .mq-badge { padding: 0 14px; font-size: 13px; }
    .marquee-promotion .item { font-size: 15px; margin-right: 48px; }
    .marquee-promotion .item a { font-size: 12px; padding: 4px 12px; margin-left: 10px; }
    .marquee-promotion marquee { padding: 11px 0; }
}

.section-member .promotion-list h2 {
    font-weight: bold;
}

.section-member .promotion-list .attr {
    font-size: 12px;
}

.section-member .promotion-list .price {
    font-size: 11px;
}

.d-history .panel-collapse {
    padding-bottom: 80px !important;
}

.section-cart .promotion-list {
    margin-top: 40px;
}

.section-cart .promotion-list .product-item {
    margin-bottom: 20px;
    min-height: 200px;
}

.section-cart .promotion-list .product-item .text {
    padding-top: 0px;
}

.section-cart .promotion-list .product-item .price {
    font-size: 12px;
}
/* ========================================================================
   2026-06-15 (Nova) — ปรับแถบกรองสินค้า (product list) + ช่อง "เรียงโดย"
   พี่นัด: แถบเอียงซ้ายเกินไป (เหลือที่ว่างขวา) + ช่องเรียงโดยจางมองไม่เห็น
   แก้: กระจายช่องกรองให้เต็มแถบ + ทำช่องเรียงโดยเป็น pill ขาวเด่น (desktop)
   ======================================================================== */
@media (min-width: 768px) {
    /* แถบกรอง: เดิมช่องกองซ้าย (14.25% ต่อช่อง) เหลือพื้นที่ขาวว่างด้านขวา
       → ใช้ flex กระจายทุกช่องให้เต็มความกว้างแถบเท่า ๆ กัน */
    .form-filter { display: flex !important; align-items: stretch; }
    .form-filter > .form-group { float: none !important; width: auto !important; flex: 1 1 0; }
    .form-filter .dropdown,
    .form-filter .dropdown .dropdown-toggle { width: 100% !important; }

    /* ช่อง "เรียงโดย" ให้เด่นขึ้น = pill ขาว ขอบมน เงานุ่ม เห็นชัดบนพื้นเข้ม
       + จัดให้อยู่ระดับเดียวกับแถบกรอง */
    .form-sort { padding-top: 10px !important; text-align: right; }
    .form-sort .select { width: 100%; }
    .form-sort .select select.form-control {
        background: #fff !important;
        color: #333 !important;
        border: 1px solid #E8E8E8 !important;
        border-radius: 60px !important;
        height: auto !important;
        line-height: 1.3 !important;
        padding: 15px 42px 15px 22px !important;
        font-size: 14px !important;
        width: 100% !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
        cursor: pointer;
    }
    .form-sort .select select.form-control:hover {
        border-color: #d88f21 !important;
    }
    .form-sort .select span {
        color: #d88f21 !important;
        right: 20px;
        top: 50%;
        margin-top: -6px;
    }
}

/* ========================================================================
   2026-06-15 (Nova) — แบนเนอร์ย่อยหน้าแรก (banner-minor) เรียงไม่เป็นระเบียบ
   พี่นัด: "มั่วไม่เรียงกัน" — เดิม .item เป็น col-xs-6 (float) รูปสูงต่างกันนิด
   เดียวก็ติด/เหลื่อม → เปลี่ยนเป็น CSS grid (desktop 2 คอลัมน์ / mobile 1)
   + บังคับอัตราส่วนเท่ากัน (รูปทุกใบ ~2.2:1) ให้เรียงเป๊ะทุกแถว
   ======================================================================== */
.banner-minor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.banner-minor .item.col-xs-6 {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.banner-minor .item a {
    display: block;
    width: 100%;
}
.banner-minor .item .img,
.banner-minor .item img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 222 / 100;   /* รูปต้นฉบับ ~2.22:1 ทุกใบ → ครอบเท่ากัน เรียงเป๊ะ */
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
@media (max-width: 767px) {
    .banner-minor {
        grid-template-columns: 1fr;   /* มือถือ: เรียงลงล่างทีละใบ เต็มกว้าง อ่านง่าย */
        gap: 14px;
    }
}

/* Nova 2026-06-16 (พี่นัด) — มือถือ: รูปสินค้าในรายการแสดงไม่เต็ม (height ตายตัว 272px + object-fit:cover → ซูม/ครอป บังโลโก้).
   รูปสินค้าทุกใบอัตราส่วน ~1200:1236 (เกือบ square) → ให้ height:auto โชว์เต็มรูป (ไม่ครอป) เฉพาะจอ ≤767px. เดสก์ท็อปคงเดิม. */
@media (max-width: 767px) {
    .product .item img { height: auto !important; }
}
