/* /css/style.css (ฉบับแก้ไข) */

/* --- 1. Import Fonts & Define Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #D81B60; /* สีชมพูเชอร์รี่ (หลัก) */
    --primary-dark: #a01447;   /* สีชมพูเข้ม */
    --secondary-color: #333;  /* สีเทาเข้มสำหรับตัวอักษร */
    --light-gray: #f8f9fa;    /* สีเทาอ่อนสำหรับพื้นหลังส่วนต่างๆ */
    --body-bg-start: #fff5f7; /* สีชมพูอ่อนมากๆ (Misty Rose) */
    --body-bg-end: #ffffff;   /* สีขาว */
}

/* --- 2. General Body & Typography Styles --- */
body {
    font-family: 'Kanit', sans-serif;
    color: var(--secondary-color);
    line-height: 1.6;
    /* --- ส่วนที่แก้ไข: เพิ่มพื้นหลังสีชมพู --- */
    background-color: var(--body-bg-start);
    background-image: linear-gradient(180deg, var(--body-bg-start) 0%, var(--body-bg-end) 100%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-dark);
}

/* --- 3. Component Styles --- */

/* Navigation Bar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}
.navbar .nav-link.active {
    font-weight: 500;
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Product Cards */
.card {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}
.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(216, 27, 96, 0.25);
}

/* --- 4. Product Status Styles --- */
.product-card {
    position: relative;
}
.product-unavailable-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 10px;
}
.product-unavailable-overlay .badge {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
}

.image-container {
    position: relative;
    overflow: hidden;
}
.status-banner {
    position: absolute;
    top: 20px;
    right: -40px;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 50px;
    transform: rotate(45deg);
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
}