@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Montserrat:wght@300;400;600&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
}

.font-cinzel {
    font-family: 'Cinzel', serif;
}

.hero-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url('http://static.photos/black/1200x630/42');
    background-size: cover;
    background-position: center;
}


.perfume-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}


.perfume-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.7) 80%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
}


.perfume-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.perfume-card:hover::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.8) 80%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}


html {
    scroll-behavior: smooth;
}


.product-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}


@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.perfume-card.entrance {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease-out forwards;
}


.perfume-card.entrance:nth-child(1) { animation-delay: 0.1s; }
.perfume-card.entrance:nth-child(2) { animation-delay: 0.2s; }
.perfume-card.entrance:nth-child(3) { animation-delay: 0.3s; }
.perfume-card.entrance:nth-child(4) { animation-delay: 0.4s; }
.perfume-card.entrance:nth-child(5) { animation-delay: 0.5s; }
.perfume-card.entrance:nth-child(6) { animation-delay: 0.6s; }


.perf-col {
    position: absolute;
    object-fit: cover;
    filter: blur(6px) saturate(1.02);
    opacity: 0.45;
    transform-origin: center;
    will-change: transform, opacity;
}
.perf-col.img-1 { left: 4%; top: 6%; width: 46%; animation: moveAroundA 18s ease-in-out infinite; }
.perf-col.img-2 { right: 2%; top: 18%; width: 40%; animation: moveAroundB 22s ease-in-out infinite; }
.perf-col.img-3 { left: 18%; bottom: 4%; width: 36%; animation: moveAroundC 20s ease-in-out infinite; }

@keyframes moveAroundA {
    0% { transform: translate3d(0,0,0) scale(1) rotate(-1deg); }
    25% { transform: translate3d(8px,-14px,0) scale(1.02) rotate(0.5deg); }
    50% { transform: translate3d(0,-8px,0) scale(1) rotate(1deg); }
    75% { transform: translate3d(-6px,10px,0) scale(0.98) rotate(-0.5deg); }
    100% { transform: translate3d(0,0,0) scale(1) rotate(-1deg); }
}

@keyframes moveAroundB {
    0% { transform: translate3d(0,0,0) scale(1) rotate(1deg); }
    30% { transform: translate3d(-12px,-8px,0) scale(1.01) rotate(0deg); }
    60% { transform: translate3d(6px,12px,0) scale(0.99) rotate(-1deg); }
    100% { transform: translate3d(0,0,0) scale(1) rotate(1deg); }
}

@keyframes moveAroundC {
    0% { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
    40% { transform: translate3d(12px,-6px,0) scale(1.03) rotate(1deg); }
    80% { transform: translate3d(-8px,8px,0) scale(0.98) rotate(-0.5deg); }
    100% { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
}

@media (max-width: 768px) {
    .perf-col { filter: blur(8px); opacity: 0.35; }
    .perf-col.img-1, .perf-col.img-2, .perf-col.img-3 { width: 52%; }
}


#cart-list img {
    transform-origin: center bottom;
    transition: transform 0.25s ease;
}


#announcement-bar {
    background: linear-gradient(270deg, #d7c4a8, #a07a5f, #d7c4a8);
    background-size: 200% 200%;
    animation: shimmer 8s ease-in-out infinite;
    color: #4a2e2a;
    padding: 0.5rem 0;
    overflow: hidden;
    height: 36px; 
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.announcement-text-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.announcement-text-1,
.announcement-text-2,
.announcement-text-3 {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.announcement-text-1 {
    animation-name: text-fade-1;
}

.announcement-text-2 {
    animation-name: text-fade-2;
}

.announcement-text-3 {
    animation-name: text-fade-3;
}

body {
    padding-top: 36px; 
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes text-fade-1 {
    0%, 50% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes text-fade-2 {
    0%, 50% { opacity: 0; }
    50%, 100% { opacity: 1; }
}


.error-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.error-message:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    display: block;
}


.form-input-error {
    border-color: rgb(248 113 113) !important;
    box-shadow: 0 0 0 1px rgb(248 113 113) !important;
    background-color: rgba(248, 113, 113, 0.05) !important;
}


.form-input-error:focus {
    border-color: rgb(248 113 113) !important;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2) !important;
}


#cart-notification {
    position: fixed;
    top: 50px; 
    right: 1rem;
    z-index: 2000; 
    max-width: 300px;
}

#cart-notification > div {
    background: white;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
    border-left: 4px solid #a07a5f;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
}


#cart-notification > div {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#cart-notification > div:not(.removing) {
    transform: translateX(0);
    opacity: 1;
}

#cart-notification > div.removing {
    transform: translateX(100%);
    opacity: 0;
}


@media (max-width: 768px) {
    #cart-notification {
        top: 50px;
        right: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }

    #cart-notification > div {
        font-size: 0.8125rem;
        padding: 0.625rem 0.875rem;
    }
}


@media (max-width: 768px) {
    #announcement-bar {
        height: 40px; 
        padding: 0.625rem 0;
        font-size: 0.875rem; 
    }

    body {
        padding-top: 40px; 
    }

    .announcement-text-1,
    .announcement-text-2 {
        font-size: 0.875rem; 
        padding: 0 1rem; 
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    #announcement-bar {
        height: 44px; 
        font-size: 0.8125rem;
    }

    body {
        padding-top: 44px; 
    }

    .announcement-text-1,
    .announcement-text-2 {
        font-size: 0.8125rem; 
        padding: 0 0.75rem; 
    }
}
