/* ===== General ===== */
body {
    font-family: 'Segoe UI', sans-serif;
}

/* ===== Header ===== */
header .nav-link:hover {
    color: #000 !important;
}

/* ===== Category Cards ===== */
.category-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== Product Cards ===== */
.product-card {
    transition: transform 0.2s;
    border-radius: 8px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* ===== Footer ===== */
footer a:hover {
    color: #fff !important;
}

.footer-logo-wrap {
    overflow: hidden;
}

.footer-logo {
    display: block;
    transform: translateY(-35px);
}


.product-img-wrapper {
    overflow: hidden;
    border-radius: 12px;
}
.product-img-wrapper img {
    transition: transform 0.3s ease;
}
.product-img-wrapper:hover img {
    transform: scale(1.05);
}

/* ===== Product Detail Page ===== */
.product-page {
    max-width: 1100px;
}

.product-card-simple {
    border-radius: 16px;
}

.product-page .product-img-wrapper {
    min-height: 380px;
}

.product-page .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
}

@media (max-width: 767.98px) {
    .product-page .product-img-wrapper {
        min-height: 260px;
    }
}

/* ===== Search bar ===== */

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #f1f1f1;
    align-items: flex-start;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
    color: #000;
}

.search-result-image-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.search-result-name {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-result-price {
    font-weight: 600;
    color: #d32f2f;
    font-size: 13px;
}

.search-result-empty {
    padding: 10px 12px;
    color: #666;
}


/* Breadcrumb */

.breadcrumb a {
    text-decoration: none;   /* bỏ gạch chân */
    color: inherit;          /* giữ nguyên màu chữ như cha */
}

/* View Store */
.store-view-results {
    position: absolute;
    top: 0;              /* canh ngang với nút */
    left: 100%;          /* đẩy sang phải */

    width: 400px;        /* tùy bạn */
    max-height: 400px;   /* giới hạn chiều cao */
    overflow-y: auto;    /* scroll khi dài */

    background: #ffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    z-index: 1000;

    padding: 10px;
}

.store-item:hover {
    background: #f8f9fa;
}

.store-view-results {
    display: none;   /* 👈 quan trọng */
}

.store-view-results.show {
    display: block;
}
.store-view-btn {
    cursor: pointer;
}

/* Toast notification */
.toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1050;
}

.toast-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111;
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-size: 14px;
    font-weight: 500;
}

.toast-notice i {
    font-size: 16px;
}

.toast-notice.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 575.98px) {
    .toast-stack {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast-notice {
        width: 100%;
        justify-content: center;
    }
}