﻿/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes pageSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-60px) rotateY(10deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes elementSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes elementFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes cardPopIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes imageSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pageSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

body {
    background-color: #010101;
    color: #D4AE8A;
    font-family: 'poppins', sans-serif;
    animation: pageSlideLeft 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a {
    text-decoration: none;
}

/* ================= ELEMENT ANIMATIONS ================= */
/* Cards animation */
.card-item {
    animation: cardPopIn 0.6s ease-out forwards;
    opacity: 0;
}

    .card-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .card-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .card-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .card-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .card-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .card-item:nth-child(6) {
        animation-delay: 0.6s;
    }

    .card-item:nth-child(7) {
        animation-delay: 0.7s;
    }

    .card-item:nth-child(8) {
        animation-delay: 0.8s;
    }

    .card-item:nth-child(n+9) {
        animation-delay: 0.9s;
    }

/* Images animation */
img {
    animation: imageSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

/* Text elements animation */
h1, h2, h3, h4, h5, h6 {
    animation: elementSlideUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

p {
    animation: elementSlideUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

/* Navbar items */
.navbar a {
    animation: elementFadeIn 0.6s ease-in-out forwards;
    opacity: 0;
}

    .navbar a:nth-child(1) {
        animation-delay: 0.1s;
    }

    .navbar a:nth-child(2) {
        animation-delay: 0.15s;
    }

    .navbar a:nth-child(3) {
        animation-delay: 0.2s;
    }

    .navbar a:nth-child(4) {
        animation-delay: 0.25s;
    }

/* ========== NAVBAR ========== */
.navbar {
    background-color: #010101;
    box-shadow: 0 15px 40px rgba(212, 174, 138, 0.25);
    padding: 5px 20px;
    z-index: 1050;
    min-height: auto;
}

    .navbar .container-fluid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .navbar li,
    .navbar a {
        background: linear-gradient(to bottom, #E6D7A3 35%, #C9A24D 77%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0px 10px 40px #C9A24D;
    }

.logo {
    height: 50px;
    max-width: 100%;
    margin: 0;
    margin-right: 10px;
}

/* Search Container */
.search-container {
    display: flex;
    flex: 1 1 auto;
    min-width: 150px;
    max-width: 430px;
    margin-left: 0;
    gap: 5px;
}

    .search-container input {
        width: 100%;
        height: 35px;
        font-size: 14px;
    }

.search-button {
    width: 35px;
    height: 35px;
    background-color: #8A6A2F;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .search-button span .material-symbols-outlined {
        color: #C9A24D !important;
        font-size: 18px;
    }

/* Cart and Menu Icons */
.top-nav .material-symbols-outlined {
    color: #C9A24D !important;
    font-size: 24px;
    transition: 0.3s ease;
    cursor: pointer;
}

    .top-nav .material-symbols-outlined:hover {
        color: #C9A24D !important;
        transform: scale(1.1);
    }

.nav-link,
.nav-text {
    color: #D4AE8A;
    font-size: 18px;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
}

    .nav-link:hover {
        color: white;
    }

/* Hover underline */
.hover-underline {
    position: relative;
}

    .hover-underline::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -2px;
        width: 0;
        height: 2px;
        background: white;
        transform: translateX(-50%);
        transition: 0.3s;
    }

    .hover-underline:hover::after {
        width: 100%;
    }

/* ================= MOBILE DROPDOWN ================= */
#mobileMenu {
    background-color: #010101;
    border: 1px solid #D4AE8A;
    padding: 12px;
    border-radius: 8px;
    /* ❌ REMOVE THESE */
    /* position: absolute; */
    /* top: 100%; */
    /* right: 20px; */

    width: 100%;
}


    #mobileMenu .nav-link {
        color: #D4AE8A;
        font-size: 16px;
    }

        #mobileMenu .nav-link:hover {
            color: white;
        }

/* ================= HERO SECTION ================= */
.hero-section {
    min-height: 50vh;
    background: url('wallpaper.png') no-repeat center 30%;
    background-size: contain;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.head-body {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25%;
    max-width: 1100px;
    margin: auto;
    flex-wrap: wrap;
}

/* Images */
.img-section {
    position: relative;
    margin-bottom: -100px;
}

.image-back {
    width: 300px;
    height: 300px;
    background: #8A6A2F;
    padding: 5px;
    overflow: hidden;
}

.image-front {
    width: 120px;
    height: 120px;
    background: #8A6A2F;
    padding: 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateX(-10%) rotate(-5deg);
    overflow: hidden;
}

.big,
.small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text */
.text-section {
    font-family: 'playfair display',serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    color: #F5F5F5;
    text-shadow: 0px 15px 40px #C8A24A;
    margin-bottom: -180px;
    z-index: 100;
}

.mid-text {
    border: 3px solid #C8A24A;
    padding: 0 15px;
    height: 60px;
    display: flex;
    align-items: center;
}

/* Underline */
.underline-container {
    display: inline-block;
    height: 15px;
    background: linear-gradient(90deg, #AE8C69 0%, #D4AE8A 10%, #5D4839 80%);
    max-width: 1300px;
    width: 100%;
    margin: 10px auto 0;
}

/* ================= CARDS SECTION ================= */
.cards-section {
    position: relative;
    padding: 0px 0;
    margin-top: 80px;
    z-index: 1;
}

.decorative-img {
    position: absolute;
    top: 0;
    left: 63%;
    width: 25%;
    max-width: 393px;
    height: auto;
    transform: translateX(-50%) rotate(180deg);
    pointer-events: none;
    z-index: 0;
}

.golden-img {
    position: absolute;
    top: 40%;
    left: 21%;
    width: 20%;
    max-width: 303px;
    height: auto;
    transform: rotate(273deg);
    pointer-events: none;
}

/* Cards Wrapper */
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-bottom: 40px
}

/* Card */
.card-item {
    width: 250px;
    background: #F5F5F5;
    border: 4px solid #C8A24A;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: 0.3s;
}

    .card-item img {
        width: 100%;
        border-radius: 10px;
    }

.card-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin: 10px 0;
}

.price {
    color: #C8A24A;
    font-weight: bold;
}

.discount {
    background-color: #C9A24D;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 8px;
    font-size: 11px;
    display: inline-block;
}

/* Buttons */
.card-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.buy-btn {
    background: #8A6A2F;
    color: #E6D7A3;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
}

.cart-btn {
    background: #010101;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
}

.card-item:hover {
    transform: translateY(-6px);
}

/* ================= BRAND SECTION ================= */
.brand-section {
    position: relative;
    color: #D4AE8A;
    text-align: center;
    margin: 70px auto;
    width: 90%;
    max-width: 1100px;
    padding: 40px 20px;
    overflow: hidden;
    z-index: 2;
}

    .brand-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url(image/bg-brand.png);
        background-size: cover;
        background-position: center;
        opacity: 0.46;
        z-index: -1;
    }

    .brand-section h1 {
        margin-bottom: 30px;
        font-size: 32px;
    }

.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

    .brand-grid img {
        width: 100%;
        height: 100%;
        max-width: none; /* remove size restriction */
        object-fit: contain; /* keeps logo aspect ratio */
    }

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
    .cards-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .card-item {
        width: 100%;
    }

    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================= RESPONSIVE CART LIST ITEMS ================= */
.list-group-item {
    flex-wrap: wrap;
    gap: 1rem;
    animation: elementSlideUp 0.6s ease-out forwards;
    opacity: 0;
}

    .list-group-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .list-group-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .list-group-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .list-group-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .list-group-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .list-group-item:nth-child(n+6) {
        animation-delay: 0.6s;
    }

    .list-group-item > div:first-child {
        flex: 1 1 100%;
        display: flex;
        align-items: center;
        gap: 1rem;
        min-width: 200px;
    }

        .list-group-item > div:first-child img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            flex-shrink: 0;
        }

    .list-group-item > div:last-child {
        flex: 1 1 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        justify-content: flex-start;
    }

@media (max-width: 992px) {
    .search-container {
        width: 100%;
        margin-top: 10px;
    }

    .top-nav {
        margin-top: 10px;
        gap: 10px;
    }

    .cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .card-item {
        width: 100%;
    }

    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .underline-container {
        margin: 20px auto 0;
        height: 10px;
    }

    .hero-section {
        padding-bottom: 40px;
    }

    .list-group-item {
        flex-direction: column;
        align-items: flex-start;
    }

        .list-group-item > div:first-child {
            flex: 1 1 100%;
        }

        .list-group-item > div:last-child {
            flex: 1 1 100%;
            justify-content: space-between;
        }

        .list-group-item > div:first-child img {
            width: 60px;
            height: 60px;
        }

    .cards-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 10px;
    }

    .card-item {
        width: 100%;
    }

    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.hamburger-icon {
    margin-top: 1rem;
    font-weight: bold;
}

@media (max-width: 576px) {
    .hamburger-icon {
        margin-top: -1.5rem;
    }

    .list-group-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

        .list-group-item > div:first-child {
            width: 100%;
        }

            .list-group-item > div:first-child img {
                width: 50px;
                height: 50px;
            }

            .list-group-item > div:first-child h6 {
                font-size: 14px;
            }

        .list-group-item > div:last-child {
            width: 100%;
            justify-content: space-between;
            font-size: 12px;
        }

    .cards-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
        padding: 0 8px;
    }

    .card-item {
        width: 100%;
        padding: 10px;
        max-width: 150px;
    }

        .card-item img {
            height: 120px;
            object-fit: cover;
        }

    .card-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .buy-btn,
    .cart-btn {
        width: 100%;
        padding: 8px;
        font-size: 11px;
    }

    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }

    .brand-section {
        width: 95%;
        padding: 30px 15px;
    }

        .brand-section h1 {
            font-size: 24px;
            margin-bottom: 20px;
        }
}




.man-woman {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    color: #D4AE8A;
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    margin-top: 30px;
}

/* Use same cards-wrapper & card-item styles from main cards section */
/* ---------- shared card styles ---------- */


.card-item {
    width: 100%;
    max-width: 250px;
    background: white;
    border: 4px solid #C8A24A;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}
    /* This targets ONLY h5 tags inside a .card-item */
    .card-item h5 {
        font-weight: 700;
        color: #C8A24A;
        font-size: 15px;
        margin-left: -87px;
        margin-top: 5px;
    }

@media (min-width: 150px) and (max-width: 350px) {

    .card-item h5 {
        font-size: 10px;
        margin-left: -48px;
        margin-top: 3px;
    }
}

@media (min-width: 350px) and (max-width: 496px) {
    .card-item h5 {
        font-size: 12px;
        margin-left: -70px;
        margin-top: 3px;
    }
}

@media (min-width: 496px) and (max-width: 500px) {
    .card-item h5 {
        font-size: 12px;
        margin-left: -108px;
        margin-top: 3px;
    }
}


.card-item img {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin: 10px 0;
}

    .card-info span {
        color: rgba(1, 1, 1, 0.6); /* 60% opacity */
    }

.price {
    color: #C8A24A;
    font-weight: bold;
}

.card-buttons {
    display: flex;
    gap: 8px;
}

.buy-btn,
.cart-btn {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.buy-btn {
    background: #8A6A2F;
    color: #E6D7A3;
}

.cart-btn {
    background: #010101;
    color: white;
}

.card-item:hover {
    transform: translateY(-6px);
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
    .cards-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cards-wrapper {
        gap: 12px;
        padding: 0 8px;
    }

    .card-item {
        padding: 10px;
        border-width: 3px;
    }

        .card-item img {
            height: 120px;
        }

    .card-info {
        font-size: 11px;
        margin: 8px 0;
    }

    .card-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .buy-btn,
    .cart-btn {
        width: 100%;
        padding: 8px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .list-group-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem;
    }

        .list-group-item > div:first-child img {
            width: 40px;
            height: 40px;
        }

        .list-group-item > div:first-child h6 {
            font-size: 12px;
        }

        .list-group-item > div:first-child small {
            font-size: 10px;
        }

        .list-group-item > div:last-child {
            width: 100%;
            font-size: 10px;
            gap: 0.25rem;
        }

            .list-group-item > div:last-child .btn {
                padding: 4px 6px;
                font-size: 9px;
            }

    .cards-wrapper {
        gap: 8px;
        padding: 0 4px;
    }

    .card-item {
        padding: 8px;
        border-width: 2px;
        border-radius: 8px;
    }

        .card-item img {
            height: 90px;
        }

    .card-info {
        font-size: 10px;
    }

    .buy-btn,
    .cart-btn {
        font-size: 10px;
        padding: 6px;
    }
}

/* ---------- footer logo ---------- */
.bottom-logo {
    width: 100px;
    height: auto;
    padding-right: 20px;
}



footer {
    font-family: 'poppins', sans-serif;
}

    footer li {
        font-size: 10px;
        color: #E3E3E3;
    }

h4 {
    font-size: 15px;
    background: linear-gradient(to bottom, #E6D7A3 35%, #C9A24D 77%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.story-text {
    background: linear-gradient(to bottom, #E6D7A3 35%, #C9A24D 77%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.logo-text {
    background: linear-gradient(to bottom, #E6D7A3 35%, #C9A24D 77%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.story-text {
    font-size: 16px;
    font-family: 'Allura',cursive;
}

.straight-line {
    display: block;
    background: linear-gradient(90deg, #AE8C69 0%, #D4AE8A 10%, #5D4839 80%);
    width: 100%;
    height: 5px;
    border-radius: 3px;
}

footer .row a:hover {
    text-decoration: underline !important;
}

.material-symbols-outlined {
    display: flex;
    color: #C8A24A;
    align-items: center;
    justify-content: center;
    z-index: 0;
}


@media (max-width: 983px) {
    .text-section {
        margin-bottom: -362px;
    }

    .display-4 {
        margin-top: 70px !important;
        margin-bottom: -10px !important;
    }
}

/* ================= PRODUCT MODAL ================= */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.product-modal-content {
    background: black;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUpModal 0.3s ease;
}

@keyframes slideUpModal {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

    .modal-close-btn:hover {
        color: #333;
    }

.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.modal-price {
    font-size: 18px;
    color: #C9A24D;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.modal-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-option-btn {
    padding: 10px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    min-width: 70px;
    text-align: center;
}

    .modal-option-btn:hover {
        border-color: #C9A24D;
        background-color: #fef8f0;
    }

    .modal-option-btn.active {
        background-color: #C9A24D;
        color: white;
        border-color: #C9A24D;
    }

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-cancel {
    background-color: #f5f5f5;
    color: #333;
}

    .modal-btn-cancel:hover {
        background-color: #e0e0e0;
    }

.modal-btn-add-cart {
    background-color: #C9A24D;
    color: white;
}

    .modal-btn-add-cart:hover {
        background-color: #b89137;
    }

@media (max-width: 600px) {
    .product-modal-content {
        padding: 20px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-option-btn {
        min-width: 60px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

.hero-section {
    background-image: url(uff.jpg);
    background-repeat: no-repeat;
}

.display-4 {
    display: flex;
    margin-bottom: -28px;
}

.text-section p {
    font-family: 'Allura',cursive;
    font-weight: lighter;
}
.cards-section {
    position: relative;
    background-image: url(roots.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

.man-woman {
    background-image: url(woman-man.jpg);
    background-repeat: no-repeat;
}

@media(max-width: 982px) {
    .cards-section {
        padding: 120px 0;
    }
}
