.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 20px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.search-container input {
    width: 70%;
    height: 45px;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 10px 0 0 10px;
}

.search-container input:focus {
    outline: 2px solid var(--main-color);
}

.search-container button {
    padding: 10px 20px;
    border-radius: 0 10px 10px 0;
}

.categories-wrapper {
    margin-bottom: 20px;
    text-align: center;
    margin-top: 40px;
}

.categories-wrapper button {
    font-size: 15px;
    width: fit-content;
    padding: 7px 20px;
    border: 1px solid var(--main-color);
    margin: 5px;
    background-image: var(--background-image);
}

.categories-wrapper button:not(.active) {
    background-image: none;
    color: var(--main-color);
    background-color: transparent;
}

.categories-wrapper button:hover {
    background-color: var(--main-color);
    color: var(--ternary-color);
}

.products .products-box {
    gap: 20px;
}

.products .products-box .box {
    position: relative;
    flex: 1 1 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease-in-out;
    max-width: 350px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(218, 182, 120, 0.2);
}

.image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.cat-label {
    background-color: var(--body-color);
    color: var(--main-color);
    border: 1px solid var(--main-color);
    padding: 5px;
    position: absolute;
    bottom: 5px;
    font-size: 12px;
    left: 5px;
    border-radius: 25px;
}

.products .products-box .box .off,
.products .products-box .quick-view-icon {
    position: absolute;
    width: 60px;
    height: 40px;
    font-size: 20px;
    text-align: center;
    top: 15px;
    left: 0px;
    background: rgba(64, 46, 37, 0.7);
    color: var(--body-color);
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 25px 25px 0;
}

.products .products-box .quick-view-icon {
    left: auto;
    right: 0;
    border-radius: 25px 0 0 25px;
    transition: 0.3s;
    cursor: pointer;
}

.products .products-box .quick-view-icon:hover {
    background: var(--main-color);
}

.products .products-box .box:hover {
    box-shadow: 0 0 20px rgba(218, 182, 120, 0.5);
}

.products .products-box .box img {
    width: 100%;
    height: 100%;
    display: inline-block;
    border-radius: 15px;
    object-fit: cover;
}

.products .products-box .box .name-price {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 22px;
    padding: 10px 1px;
    text-align: center;
}

.products .products-box .box .description {
    width: 100%;
    text-align: center;
    font-size: 15px;
}

.products .products-box .box .qty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.text .name {
    font-size: 18px;
    font-weight: 600;
    color: var(--ternary-color);
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-color);
}

.qtycart span:hover {
    background-color: #f1f1f1;
}

.products .products-box .box .qty span {
    margin: 15px 0;
    display: inline-block;
    height: 35px;
    width: 45px;
    line-height: 31px;
    font-size: 20px;
    border: 2px solid var(--main-color);
    text-align: center;
    transition: 0.3s;
}

.products .products-box .box .qty .increase,
.decrease {
    cursor: pointer !important;
    user-select: none;
}

.products .products-box .box .qty .pcs {
    cursor: default;
}

.products .products-box .box .qty span:first-of-type:hover,
.products .products-box .box .qty span:last-of-type:hover {
    background-color: var(--main-color);
    color: var(--ternary-color);
}

.products .products-box .box .qty span:first-of-type {
    border-radius: 25px 0 0 25px;
    border-right-width: 0;
}

.products .products-box .box .qty span:last-of-type {
    border-radius: 0 25px 25px 0;
    border-left-width: 0;
}

.products-box button {
    width: 100%;
}

.no-product-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.no-product-heading {
    color: var(--main-color);
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    margin: 0;
    font-size: 2rem;
}

.no-product-image {
    width: 50%;
    max-width: 12rem;
    height: auto;
    margin: 1rem 0;
}

.no-product-text {
    font-size: 1.125rem;
    margin-top: 1.25rem;
    color: var(--ternary-color);
    line-height: 1.5;
}

.image-wrapper {
    position: relative;
}

.image-wrapper:hover .quick-view-icon {
    opacity: 1;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(64, 46, 37, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.quick-view-popup {
    background: var(--body-color);
    padding: 20px;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 30px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
    padding: 2px;
    color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--main-color);
    transition: 0.3s;
}

.close-btn:hover {
    transform: scale(1);
    color: var(--body-color);
    background-color: var(--main-color);
}

.popup-content {
    display: flex;
    gap: 20px;
}

.left-section {
    flex: 1;
}

.quick-view-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--ternary-color);
}

.right-section p {
    font-size: 16px;
    color: #6b4c5e;
    margin-bottom: 20px;
}

.right-section .price {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-color);
}

.products-hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    background: linear-gradient(rgba(64, 46, 37, 0.45), rgba(64, 46, 37, 0.5)), url('../images/product-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    overflow: hidden;
}

.hero-floating {
    position: absolute;
    font-size: 100px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    color: var(--main-color);
}

.float1 {
    top: 15%;
    left: 5%;
    animation: floatHero 10s infinite;
}

.float2 {
    bottom: 20%;
    right: 8%;
    animation: floatHero 12s infinite reverse;
}

.float3 {
    top: 40%;
    right: 15%;
    animation: floatHero 14s infinite;
}

.float4 {
    bottom: 30%;
    left: 10%;
    animation: floatHero 11s infinite;
}

@keyframes floatHero {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(6deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: white;
    text-shadow: 0 5px 20px rgba(64, 46, 37, 0.4);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 236, 214, 0.95);
    max-width: 650px;
    margin: 1.5rem auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--main-color);
    text-shadow: 0 2px 8px rgba(64, 46, 37, 0.3);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: rgba(255, 236, 214, 0.9);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--ternary-color), var(--main-color));
    padding: 14px 38px;
    border-radius: 50px;
    border: none;
    color: var(--body-color);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.hero-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(218, 182, 120, 0.5);
    background: linear-gradient(135deg, var(--main-color), var(--ternary-color));
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 2px solid white;
    padding: 12px 34px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.hero-btn-secondary:hover {
    background: rgba(218, 182, 120, 0.35);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat .number {
        font-size: 1.5rem;
    }
}

.order-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.popup-box h2 {
    color: #28a745;
    margin-bottom: 15px;
}

.popup-box button {
    margin-top: 15px;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}