/* ======= Tổng thể ======= */
.container {
    max-width: 1250px;
    margin: auto;
    padding: 20px;
    display: flex;
}

.breadcrumb {
    margin: 20px 0;
    font-size: 14px;
    animation: fadeIn 1s ease-in-out;
}

.breadcrumb a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

/* ======= Banner ======= */
.banner img {
    width: 100%;
    border-radius: 10px;
    animation: slideIn 1.2s ease;
}
/* Filters */
.product-filters {
    display: flex;
    gap: 20px;
}

.filter {
    position: relative;
    cursor: pointer;
}

.filter > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.filter-dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 10;
}

.filter.active .filter-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.color-swatch {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 4px;
    border: 1px solid #ccc;
    transition: all 0.3s;
}

.color-swatch:hover {
    transform: scale(1.2);
    border-color: #000;
}

.filter-dropdown a:hover {
    background: #f5b400;
    color: #000;
}

/* ======= Sidebar ======= */
.sidebar {
    flex: 0 0 220px;
    animation: fadeInLeft 1.2s ease;
}

.sidebar__title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.sidebar__menu li {
    list-style: none;
    margin: 8px 0;
}

.sidebar__menu a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar__menu a:hover {
    color: #f5b400;
}

/* ======= Product content ======= */
.product-content {
    flex: 1;
    animation: fadeInUp 1s ease;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.product-header__title {
    font-weight: bold;
    font-size: 22px;
}

/* ======= Filters ======= */
/* ======= Filters ======= */
.product-filter {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
}

.filter {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.filter > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.filter > span:hover {
    background: #f5b400;
    color: #000;
}

.filter-dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 10;
}

/* Khi filter được mở bằng class "active" */
.filter.active .filter-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Màu sắc */
.filter-color {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 4px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

.filter-color:hover {
    transform: scale(1.2);
    border-color: #000;
}

/* Dropdown giá */
.filter-dropdown li {
    list-style: none;
    margin: 5px 0;
}

.filter-dropdown a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 6px 8px;
    border-radius: 5px;
    transition: all 0.25s ease;
}

.filter-dropdown a:hover {
    background: #f5b400;
    color: #000;
}
/* ======= Product grid ======= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
    animation: fadeInUp 1.5s ease;
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
    animation: popUp 0.8s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-card__img img {
    width: 100%;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card__sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f00;
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 6px;
    animation: pulse 1.5s infinite;
}

/* ======= Product info ======= */
.product-card__title {
    display: block;
    color: #333;
    font-weight: 600;
    margin: 12px 0 6px;
    text-decoration: none;
}

.product-card__title:hover {
    color: #f5b400;
}

.product-card__price .old {
    color: #aaa;
    text-decoration: line-through;
    margin-right: 8px;
}

.product-card__price .new {
    color: #222;
    font-weight: bold;
}

/* ======= Product actions ======= */
.product-card__actions {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-consult {
    background: #000;
    color: #fff;
}

.btn-view {
    background: #f5b400;
    color: #000;
}

.btn:hover {
    transform: scale(1.05);
}

/* ======= Newsletter ======= */
.newsletter {
    display: flex;
    background: #f7f7f7;
    margin-top: 60px;
    border-radius: 10px;
    overflow: hidden;
    animation: fadeInUp 1.2s ease;
}

.newsletter__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.newsletter__content {
    padding: 40px;
}

.newsletter__form {
    margin: 15px 0;
    display: flex;
}

.newsletter__form input {
    flex: 1;
    padding: 10px;
    border-radius: 6px 0 0 6px;
    border: 1px solid #ccc;
}

.newsletter__form button {
    padding: 10px 20px;
    border: none;
    border-radius: 0 6px 6px 0;
    background: #000;
    color: #fff;
    transition: background 0.3s;
}

.newsletter__form button:hover {
    background: #f5b400;
    color: #000;
}

.social {
    margin-right: 10px;
    font-size: 22px;
    color: #000;
    transition: color 0.3s, transform 0.3s;
}

.social:hover {
    color: #f5b400;
    transform: rotate(10deg) scale(1.2);
}

/* ======= Keyframes ======= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
