*, html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: #2b2727;
    --text-secondary: #f9f9f9;
    --christmas-bg: #b50404;
    --christmas-theme-1: rgb(4, 85, 4);
    --bg-url: url('Assets/Images/merry christmas.png')
}

body {
    background-color: var(--christmas-bg);
    font-family: 'Poppins';
}

.present {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 10px;
    color: #fff;
}

.present h3 {
    color: var(--text-secondary);
    font-size: 4rem;
    margin: 0 0 8px 0;
    font-family: 'Pinyon Script', cursive;
    font-style: normal;
}

.pinyon-script-regular {
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  font-style: normal;
}

.present p {
    color: rgb(234, 239, 234);
}

/* DROPDOWN SECTION */
.dropdown {
    display: flex;
    margin-top: 10px;
}

.dropdown-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #333;
    margin-right: 25px;
    justify-content: right;
}

.dropdown-container {
    position: relative;
    min-width: 120px;
    width: max-content;
    margin: 10px;
}

.btn-all-product {
    width: 80px;
    margin: 10px;
    padding: 8px 30px 8px 12px;
    background: #fff;
    color: #212121;
    font-size: 15px;
    border: 1.2px solid #e0e0e0;
    outline: none;
    appearance: none;
    box-shadow: 0 1px 4px rgba(60, 60, 60, 0.06);
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow .18s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    position: relative;
}

.dropdown-btn {
    width: 100%;
    min-width: 120px;
    max-width: 220px;
    padding: 8px 30px 8px 12px;
    background: #fff;
    color: #212121;
    font-size: 15px;
    border: 1.2px solid #e0e0e0;
    outline: none;
    appearance: none;
    box-shadow: 0 1px 4px rgba(60, 60, 60, 0.06);
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow .18s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    position: relative;
}

.dropdown-btn.active {
    border: 1.8px solid #ffffff;
}

.dropdown-arrow {
   margin-left: 10px;
   font-size: 16px;
   pointer-events: none;
   color: #888;
   transition: transform .18s;
}

.dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
    color: #212121;
}

.dropdown-menu {
    position: absolute;
    left: 0;
    top: 110%;
    z-index: 10;
    background: #fff;
    min-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(60, 60, 60, 0.07);
    border: 1.5px solid #212121;
    display: none;
    margin-top: 4px;
    padding: 3px 0;
    font-size: 15px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu button {
    width: 100%;
    padding: 8px 18px;
    background: none;
    border: none;
    color: #212121;
    text-align: left;
    font-size: inherit;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}

.dropdown-menu button:hover,
.dropdown-menu button:focus {
    background: #f4f4f4;
}

.filter-container {
    display: flex;
    flex: 1;
    justify-content: center;
}

.filter-content {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.filter-content::-webkit-scrollbar {
    display: none;
}

li {
    display: flex;
    font-size: 18px;
    gap: 30px;
    color: var(--text-primary);
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 8px 16px;
    border: 1px solid #333;
    border-radius: 20px;
    background-color: #f2f2f2;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
    flex: 0 0 auto;
    background: #f2f2f2;
}

li:hover {
    background-color: #e0e0e0;
}

li.active {
    background-color: #333;
    color: #fff;
}

.product-container {
    display: grid;
    gap: 10px;
    margin: 10px;
    padding: 20px 20px;
    padding-left: 20px;
    grid-template-columns: repeat(4, 1fr);
    background-color: #006400;
    border-radius: 10px;
    outline: 2px solid #ffff;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

.product-layout {
    flex: 100%;
    display: flex;
    flex-wrap: wrap;
}

.product-card {
    display: flex;
    flex-direction: column;
    width: 300px;
    flex-shrink: 0;
}

.product-img {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-img .hover-img {
    position: absolute;
    left: 0;
    top: 0;
    object-fit: cover;
    transition: opacity .5s ease;
    display: none;
}

.image-inner, .hover-img {
  transition: opacity 0.3s ease;
  position: absolute; /* stack layer */
  top: 0; left: 0;
}

.image-inner { opacity: 1; z-index: 2; }
.hover-img { opacity: 0; z-index: 1; }
.product-img:hover .image-inner { opacity: 0; }
.product-img:hover .hover-img { opacity: 1; }

.product-img .hover-img, 
.product-image .deafult-img {
    transition: smooth .3s ease;
}

.product-img:hover .hover-img {
    display: block;
}

.product-img img {
    width: 95%;
    height: auto;
    cursor: pointer;
}

.color-btn {
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 1rem;
    transition: transform .2s ease;
}

.color-btn:hover {
    transform: scale(1.2);
}

.color-btn.active {
    outline: 2px solid #333;
    border-radius: 4px;
    transform: scale(1.3);
}

.rate {
    display: flex;
    gap: 10px;
    color: var(--text-secondary);
}

.shopee-icon {
    max-width: 25px;
}

.number {
    font-weight: bold;
    color: var(--text-secondary);
}

.product-price {
    color: var(--text-secondary);
}

.list-product {
    color: var(--text-secondary);
}

#pagination {
    margin-top: 20px;
    text-align: center;
}

.page-btn {
    padding: 5px 10px;
    margin: 0 5px;
    border: none;
    background-color: #eee;
    cursor: pointer;
}


.footer-section {
    justify-content: center;
    padding: 10px 1px;
    font-family: 'Poppins';
    color: var(--text-secondary);
    align-items: center;
    background-color: rgb(35, 33, 33);
}

.footer-list {
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.footer-list, .credit {
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
}