*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
:root {
    --primary-bg: #121212;
    --secondary-bg: #1E1E1E;
    --text-color-light: #FFFFFF;
    --text-color-dark: #1F1F1F;
    --accent-gold: #FFD700;
}
body {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-bg);
    color: var(--text-color-light);
    line-height: 1.6;
}

/* popup */
.popup-container {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.popup-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 1; 
}
.empty-cart {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 200px;
}
.empty-cart img{
    width: 100%;
    height: 100%;
}
.popup-content {
    width: clamp(300px, 90%, 600px);
    max-height: 500px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    color: #000;
    background-color: var(--secondary-bg);
    color: var(--text-color-light);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 2; 
}
.popup-content h1{
    width: 14rem;
    font-size: 1.8rem;
    border-bottom: solid 2px var(--accent-gold);
}
.popup-btn{
    margin-left: auto;
}
.popup-btn button{
    width: 100px;
    height: 40px;
    background-color: var(--accent-gold);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    font-weight: 800;
}
.popup-list{
    overflow-y: auto;
    padding: 15px;
}
.popup-list::-webkit-scrollbar{
    display: none;
}
.popup-list .popup-item{
    display: flex;
    box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.8), -5px -5px 8px rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    background-color: red;
    border-radius: 8px;
    overflow: hidden;
}
.popup-list .popup-img{
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-gold);
    overflow: hidden;
}
.popup-list .popup-img img{
    width: 100%;
}
.popup-list .popup-desc{
    padding: 10px 14px;
    text-align: left;
    height: 150px;
    width: 400px;
    background-color: var(--secondary-bg);
}
.popup-list .popup-desc button{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-left: auto;
    width: 40px;
    height: 40px;
    background-color: red;
    border: none;
    padding: 5px;
    border-radius: 50%;
}
.popup-item .popup-desc h4 {
    font-size: 1.2rem;
}
.popup-item .popup-desc p {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 20px;
}

/* nav */
.nav {
    left: 0;
    right: 0;
    top: 0;
    position: fixed;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    z-index: 99;
    background-color: #000;
}
nav .icon .notif {
    display: none;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    margin-top: -25px;
    font-size: 10px;
    line-height: 1;
}
.nav h2{
    font-family: 'playfair display', serif;
    position: absolute;
    left: 70px;
    cursor: default;
}
.nav .hamburger {
    display: none;
    cursor: pointer;
}
.nav .close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
    list-style: none;
    display: none;
}
.nav ul {
    display: flex;
    justify-items: center;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}
.nav ul .close-btn:hover {
    background: none;
}
.nav ul li {
    padding: 0.4em 1em;
    border-radius: 12px;
    display: flex;
    justify-items: center;
    align-items: center;
}
.nav ul li a {
   font-weight: bold;
   text-decoration: none;
   color: var(--font-light);
   background: none;
   transition: all 0.3s ease;
}
.nav .logo {
    mask-image: url(img/logo.png);
    -webkit-mask-image: url(img/logo.png);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    background-color: var(--accent-gold);
    height: 1.8rem;
    width: 2rem;
}
.nav .logo img {
    height: 100%;
}
.nav ul li:hover {
    cursor: pointer;
    transition: all 0.3s ease;
}
.nav ul li:hover a {
    color: var(--accent-gold);
}
nav .icon a{
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
nav .icon a svg{
    transition: all 0.3s ease;
}
nav .icon a:hover svg{
    fill:var(--accent-gold);
}
nav .icon .notif{
    display: none;
    position: absolute;
    height: 16px;
    width: 16px;
    background-color: red;
    border-radius: 50%;
    margin-left: 24px;
    margin-top: -23px;
    border: 2px solid var(--primary-bg);
    color: var(--text-color-light);
    font-size: 8px;
    text-align: center;
}

/* main */
main {
    width: 100%;
    flex-grow: 1;
}
main .container.hero{
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('img/herobg.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
main .container.hero::before{
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
}
main .container .contentIMG{
    position: relative;
    height: 420px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
main .container .contentIMG .content{
    margin-left: 90px;
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    width: 350px;
    animation: enterenceText 1s ease forwards;
}
main .container .contentIMG .content h3{
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1;
}
main .container .contentIMG .content p{
    font-size: 1rem;
    color: var(--primary-bg);
    margin-right: auto;
    background-color: var(--accent-gold);
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 700;
    margin-right: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}
main .container .contentIMG img{
    position: absolute;
    margin-left: -330px;
    bottom: -60px;
    rotate: 20deg;
    width: 40em;
    animation: enterence 1s ease forwards, heroimg 3s ease-in-out infinite;
}
@keyframes heroimg{
    0%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(-20px);
    }
    100%{
        transform: translateY(0px);
    }
}
@keyframes enterence{
    0%{
        margin-left: -200%;
    }
    45%{
        rotate: 0deg;
    }
    100%{
        margin-left: -330px;
    }
}
@keyframes enterenceText{
    0%{
        opacity: 0;
        transform: translate(-10%, -50%);
    }
    100%{
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* product list */
main .container.product{
    text-align: center;
    padding-bottom: 20px;
    width: 100%;
}
main .container.product h1{
    padding: 10px 0;
    margin-bottom: 2.5rem;
    font-size: 2.2rem; 
    position: relative;
    display: inline-block;
}
main .container.product h1::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2px;
    height: 3px;
    width: 80px;
    background-color: var(--accent-gold);
    border-radius: 2px;
}
main .container.product .item-container{
    display: flex;
    gap: 20px;
    padding: 0 20px;
    overflow-y: auto;
}
main .container.product .item-container::-webkit-scrollbar{
    display: none;
}
.item{
    border-radius: 16px;
    padding: 10px;
    height: 340px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ffffff;
    gap: 8px;
}
.item .itemIMG{
    background-color: var(--accent-gold);
    height: 200px;
    width: 200px;
    border-radius: 12px;
}
.item .itemIMG img{
    width: 200px;
}
.item .info{
    height: 20%;
}
.item button{
    width: 90px;
    height: 40px;
    background-color: var(--accent-gold);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
}

/* product card */
.product-card {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 620px;
    background-image: radial-gradient(circle, #424242, var(--primary-bg));
}
.product-card .banner {
    height: 100%;
    width: 100%;
    position: relative;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.product-card .banner .slider {
    position: absolute;
    width: 120px;
    height: 200px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(-15deg);
    animation: autoRun 25s linear infinite;
    z-index: 1;
    transition: z-index 0.3s ease;
}
@keyframes autoRun {
    from {
        transform: perspective(1000px) rotateX(-15deg) rotateY(0deg);
    }to {
        transform: perspective(1000px) rotateX(-15deg) rotateY(360deg);
    }
}
.product-card .banner .slider .itemcard{
    background-color: var(--accent-gold);
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    inset: 0 0 0 0;
    transform: 
        rotateY(calc( (var(--position) - 1) * (360/var(--quantity)) * 1deg ))
        translateZ(920px);
    transition: all 0.5s ease;
    
    filter: blur(2px) grayscale(50%);
    opacity: 0.6;
    padding: 5px;
    overflow: hidden;
}
.product-card .banner .slider .itemcard.animate {
    transform: 
        rotateY(calc( (var(--position) - 1) * (360/var(--quantity)) * 1deg ))
        translateZ(320px);
    
    filter: blur(0) grayscale(0);
    opacity: 1;
}
.product-card .banner .slider .itemcard.animate:hover{
    background-color: var(--accent-gold);
    transform: 
        rotateY(calc( (var(--position) - 1) * (360/var(--quantity)) * 1deg ))
        translateZ(350px)
        scale(1.1);
    z-index: 5;
    filter: blur(0) grayscale(0);
    opacity: 1;
}
.product-card .banner .slider:hover{
    cursor: pointer;
    animation-play-state: paused;
}
.slider:has(.itemcard.animate:hover) .itemcard.animate:not(:hover){
    filter: blur(2px) grayscale(50%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.product-card .banner .slider .itemcard img {
    aspect-ratio: contain;
    width: 12rem;
}
.banner .content{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.banner .content h1{
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--text-color-light);
    z-index: 2;
    width: 100%;
    margin-bottom: -100px;
    text-align: left;
    width: 300px;
    line-height: 70px;
    margin-left: 30px;
    padding-bottom: 20px;
}
.banner .content h1::after {
    content: '';
    position: absolute;
    left: 70px;
    transform: translateX(-50%);
    bottom: 16px;
    height: 3px;
    width: 80px;
    background-color: var(--accent-gold);
    border-radius: 2px;
}
.banner .content .model{
    background-image: url(img/model.png);
    width: 100%;
    height: 78vh;
    position: absolute;
    bottom: 0;
    left: -30px;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 2; 
}
.product-card .banner:hover .slider {
    z-index: 3;
}

/* Footer */
.footer {
    background-color: var(--primary-bg);
    color: var(--text-color-dark);
    padding: 40px 20px;
    border-top: 1px solid var(--secondary-bg);
    font-size: 0.9rem;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
}
.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}
.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-color-light);
    position: relative;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 40px;
    background-color: var(--accent-gold);
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: var(--text-color-light);
    display: block;
    transition: color 0.3s ease;
    text-decoration: none;
}
.footer-col ul li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}
.footer-col .social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.footer-col .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: var(--text-color-dark);
    transition: all 0.3s ease;
}
.footer-col .social-links a svg{
    color: white;
}
.footer-col .social-links a:hover svg{
    color: var(--primary-bg);
}
.footer-col .social-links a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-bg);
    padding-left: 0;
}
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-bg);
    color: var(--text-color-light);
}
@media (max-width: 768px) {
    /* popup */
    .popup-list .popup-item{
        flex-direction: column;
        width: 200px;
        background-color: red;
    }
    .popup-list .popup-desc{
        width: 100%;
    }
    .popup-list .popup-img{
        width: 100%;
        height: auto;
    }
    .empty-cart {
        height: 90px;
    }

    /* nav */
    .nav{
        justify-content: start;
        align-items: center;
    }
    .nav h2{
        position: relative;
        margin-right: auto;
        left: 10px;
        font-size: 1.2rem;
        text-align: center;
    }
    .nav .hamburger {
        display: flex;
        z-index: 1;
        justify-content: center;
        align-items: center;
    }
    .nav .hamburger svg path{
        transition: stroke 0.3s ease;
    }
    .nav .hamburger:hover svg path{
        stroke: var(--accent-gold);
    }
    .nav-links {
        position: fixed; 
        top: 0;
        left: 100%; 
        width: 50%; 
        height: 100vh;
        background: var(--secondary-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem; 
        transition: left 0.3s ease-in-out; 
        z-index: 99;
    }
    .nav .nav-home {
        margin-top: 100px;
    }
    .nav-links.active {
        left: 50%;
    }
    .nav .nav-links .close-btn {
        display: list-item;
        position: absolute;
        top: 1.5rem;
        right: 0.5rem;
        cursor: pointer;
        list-style: none;
    }
    .nav-links li a {
       font-size: 1.5rem;
    }
    nav .icon{
        display: block;
        margin-right: 5px;
    }

    /* main */
    main .container .contentIMG {
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
    }
    main .container .contentIMG img {
        display: block;
        position: relative;
        margin: 0;
        bottom: auto;
        rotate: 0deg;
        animation: heroimg 3s ease-in-out infinite;
        width: 90%;
        max-width: 350px;
    }
    main .container .contentIMG .content{
        margin-left: 0;
        transform: none;
        position: static;
        translate: none;
        animation: none;
        width: 100%;
    }
    main .container .contentIMG .content h3{
        font-size: 2.5rem;
        text-align: center;
    }
    main .container .contentIMG .content p {
        margin-right: auto;
        margin-left: auto;
    }

    /* product card */
    .product-card .banner .slider {
        left: 140px;
        width: 100px;
        height: 150px;
        top: 15%;
    }
    .banner .content .model{
        height: 60vh;
    }
    .product-card .banner .slider .itemcard {
         transform: 
            rotateY(calc( (var(--position) - 1) * (360/var(--quantity)) * 1deg ))
            translateZ(700px);
    }
    .product-card .banner .slider .itemcard.animate {
         transform: 
            rotateY(calc( (var(--position) - 1) * (360/var(--quantity)) * 1deg ))
            translateZ(180px);
    }
    .product-card .banner .slider .itemcard.animate:hover {
        transform: 
            rotateY(calc( (var(--position) - 1) * (360/var(--quantity)) * 1deg ))
            translateZ(210px)
            scale(1.1);
    }
    .product-card .banner .slider .itemcard img {
        width: 8rem;
    }
    .banner .content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-left: -65px;
        width: auto;
        margin-bottom: -20px;
        rotate: -90deg;
    }
    .banner .content h1::after {
        left: 45px;
        bottom: 10px;
        width: 60px;
    }

    /* footer */
    .footer .container {
        display: flex;
    }

    .footer-col {
        text-align: center;
        margin-bottom: 30px;
    }
    .footer-col:nth-child(1),
    .footer-col:nth-child(2){
        flex-basis: 50%;
        min-width: 0;
        padding: 0 5px;
    }
    .footer-col:nth-child(3),
    .footer-col:nth-child(4){
        flex-basis: 100%;
        min-width: 100%
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col .social-links {
        justify-content: center;
    }

    .footer-col ul li a:hover {
        padding-left: 0;
    }

    .footer-col:last-child {
        margin-bottom: 0;
    }
}