/* =========================================
   CATEGORY CARDS (Luxury Style - Front End)
   Desktop & Default Styles
   ========================================= */
.ls-2 { letter-spacing: 2px; }

.category-card {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border-radius: 4px;
}

.category-img-wrapper {
    position: relative;
    padding-top: 130%; /* อัตราส่วนแนวตั้ง */
    overflow: hidden;
    background-color: #f0f0f0;
}

.category-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Effect (Desktop Only) */
.category-card:hover .category-img {
    transform: scale(1.12);
}

/* Overlay */
.category-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* Typography */
.category-title {
    color: #fff;
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease;
}

.category-btn {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 2px;
    border: 1px solid #fff;
    padding: 10px 25px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease 0.1s;
}

.category-btn:hover {
    background: #fff;
    color: #000;
}

/* Animation State (Desktop) */
.category-card:hover .category-title,
.category-card:hover .category-btn {
    transform: translateY(0);
    opacity: 1;
}

/* Section Title Decoration */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 10px;
    color: #1a1a1a;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #D4AF37; /* สีทอง */
}

/* =========================================
   MOBILE RESPONSIVENESS (เพิ่มใหม่)
   Horizontal Scroll & Always Visible Text
   ========================================= */
@media (max-width: 767.98px) {
    
    /* 1. ตั้งค่า Container ให้เลื่อนแนวนอน (Swipe) */
    #collection-section .row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* ลื่นๆ บน iOS */
        padding-bottom: 20px;
        scroll-padding-left: 15px;
        
        /* ซ่อน Scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    #collection-section .row::-webkit-scrollbar { display: none; }

    /* 2. กำหนดขนาดการ์ด (70% ของจอ) */
    #collection-section .col-6,
    #collection-section .col-md-4,
    #collection-section .col-lg-4 {
        flex: 0 0 70%;
        max-width: 70%;
        margin-right: 15px;
        padding: 0;
    }
    
    /* เว้นระยะซ้ายตัวแรก */
    #collection-section .row > div:first-child {
        margin-left: 15px;
    }

    /* 3. บังคับโชว์ข้อความตลอดเวลา (ไม่ต้องรอ Hover) */
    .category-overlay {
        background: rgba(0, 0, 0, 0.35) !important; /* พื้นหลังเข้มขึ้นนิดนึงให้อ่านง่าย */
    }

    .category-title {
        opacity: 1 !important;           /* เห็นเลย */
        transform: translateY(0) !important; /* อยู่ตำแหน่งปกติ */
        font-size: 1.4rem;               /* ปรับฟอนต์ให้เหมาะกับมือถือ */
        margin-bottom: 8px;
    }

    .category-btn {
        opacity: 1 !important;           /* เห็นเลย */
        transform: translateY(0) !important;
        font-size: 0.7rem;
        padding: 6px 15px;
        background: rgba(255,255,255,0.2); /* พื้นหลังจางๆ ให้ปุ่มเด่น */
        backdrop-filter: blur(2px);
    }
    
    /* ปิด Effect ซูมภาพตอนแตะ (เพื่อ Performance) */
    .category-card:hover .category-img {
        transform: none; 
    }
}