/* ==========================================================================
   FragranceFiesta - Component Styles
   ========================================================================== */

/* Announcement Bar — Scrolling Marquee */
.announcement-bar-scrolling {
    padding: 0.8rem 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}
.announcement-bar__marquee { display: flex; }
.marquee-inner {
    display: flex;
    animation: marquee-scroll 30s linear infinite;
}
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 3rem;
    flex-shrink: 0;
}
.marquee-icon { width: 16px; height: 16px; flex-shrink: 0; }

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
.header-wrapper {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(var(--color-foreground), 0.08);
    background-color: rgb(var(--color-background));
}
.header-wrapper--border-bottom { border-bottom: 1px solid rgba(var(--color-foreground), 0.08); }

.header-wrapper.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.3s ease forwards;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header-wrapper.header-hidden { transform: translateY(-100%); }

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header {
    display: flex;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 1.5rem;
}

@media screen and (min-width: 990px) {
    .header { padding-top: 16px; padding-bottom: 16px; }
}

.header__heading { margin: 0; }
.header__heading-link { display: flex; align-items: center; }
.header__heading-logo { display: block; max-width: 90px; height: auto; }

/* Header Icons */
.header__icons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
}

.header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    padding: 0;
    color: rgb(var(--color-foreground));
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.header__icon svg { width: 22px; height: 22px; }

.cart-count-bubble {
    position: absolute;
    top: 4px;
    right: 2px;
    background: rgb(var(--color-base-accent-1));
    color: rgb(var(--color-base-solid-button-labels));
    font-size: 1rem;
    min-width: 1.6rem;
    height: 1.6rem;
    line-height: 1.6rem;
    border-radius: 50%;
    text-align: center;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.header__icon--menu { display: flex; }
@media screen and (min-width: 990px) { .header__icon--menu { display: none; } }

/* Desktop Navigation */
.header__inline-menu { display: none; }
@media screen and (min-width: 990px) {
    .header__inline-menu { display: flex; flex-grow: 1; }
}

.list-menu { list-style: none; padding: 0; margin: 0; }
.list-menu--inline { display: inline-flex; flex-wrap: wrap; }

.list-menu__item {
    display: flex;
    align-items: center;
    line-height: calc(1 + 0.3 / var(--font-body-scale));
}

.header__menu-item {
    padding: 1rem 1.5rem;
    font-size: 1.4rem;
    letter-spacing: 0.06rem;
    color: rgb(var(--color-foreground));
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.header__menu-item .icon-caret {
    width: 10px;
    height: 6px;
    margin-left: 5px;
    transition: transform 0.2s;
}

/* Mega Menu */
.mega-menu { position: static; }
.mega-menu[open] > .mega-menu__content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-menu__content {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgb(var(--color-background));
    border-top: 1px solid rgba(var(--color-foreground), 0.08);
    border-bottom: 1px solid rgba(var(--color-foreground), 0.08);
    padding: 3rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 99;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

.mega-menu__list {
    display: flex;
    gap: 4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu__link {
    display: block;
    padding: 0.3rem 0;
    color: rgba(var(--color-foreground), 0.75);
    font-size: 1.4rem;
    text-decoration: none;
    transition: color 0.2s;
}
.mega-menu__link:hover { color: rgb(var(--color-foreground)); }
.mega-menu__link--level-2 {
    font-weight: 600;
    color: rgb(var(--color-foreground));
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

/* Mobile Menu Drawer */
.menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: rgb(var(--color-background));
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.08);
}
.menu-drawer[aria-hidden="false"] { transform: translateX(0); }

.menu-drawer__inner-container { padding: 2rem; }
.menu-drawer__menu { list-style: none; margin: 0; padding: 0; }
.menu-drawer__menu li { border-bottom: 1px solid rgba(var(--color-foreground), 0.08); }
.menu-drawer__menu a,
.menu-drawer__menu-item {
    display: block;
    padding: 1.2rem 0;
    color: rgb(var(--color-foreground));
    font-size: 1.6rem;
    text-decoration: none;
}

/* Cards (Product / Collection) */
.card {
    position: relative;
    border-radius: var(--card-corner-radius);
    overflow: hidden;
}

.card__media {
    position: relative;
    overflow: hidden;
    padding-top: 125%; /* portrait ratio */
}
.card__media.card__media--square { padding-top: 100%; }
.card__media.card__media--adapt { padding-top: 0; }
.card__media.card__media--adapt img { position: relative; }

.card__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card__media img { transform: scale(1.05); }

.card__media .secondary-image {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card:hover .card__media .secondary-image { opacity: 1; }

.card__content {
    padding: 1.2rem 0.5rem;
}

.card__heading {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}
.card__heading a { color: rgb(var(--color-foreground)); text-decoration: none; }
.card__heading a:hover { color: rgba(var(--color-foreground), 0.75); }

.card__vendor {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: rgba(var(--color-foreground), 0.55);
    margin-bottom: 0.3rem;
}

/* Price */
.price { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.price__regular { font-weight: 600; font-size: 1.5rem; color: rgb(var(--color-foreground)); }
.price__sale {
    font-weight: 600; font-size: 1.5rem;
    color: rgb(var(--color-base-accent-1));
}
.price__compare {
    text-decoration: line-through;
    color: rgba(var(--color-foreground), 0.5);
    font-size: 1.3rem;
}

/* Badges */
.badge {
    position: absolute;
    z-index: 2;
    padding: 0.4rem 1rem;
    font-size: 1rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: var(--badge-corner-radius);
}
.badge--top-left { top: 1rem; left: 1rem; }
.badge--sale {
    background-color: rgb(var(--color-base-accent-2));
    color: rgb(var(--color-base-solid-button-labels));
}
.badge--sold-out {
    background-color: rgb(var(--color-base-text));
    color: rgb(var(--color-base-background-1));
}

/* Quick Add */
.quick-add-btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    z-index: 3;
}
.card:hover .quick-add-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Slider */
.slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.slider__slide {
    scroll-snap-align: start;
    flex-shrink: 0;
}

.slider-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 50%;
    cursor: pointer;
    color: rgb(var(--color-foreground));
    transition: all 0.3s ease;
    z-index: 3;
}
.slider-button:hover {
    background: rgb(var(--color-foreground));
    color: rgb(var(--color-background));
}
.slider-button svg { width: 12px; height: 12px; }

/* Search Modal */
.search-modal { 
    position: fixed; inset: 0; z-index: 300;
    display: none; 
}
.search-modal[aria-hidden="false"] { display: block; }
.search-modal .modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.4);
}
.search-modal__content {
    position: relative;
    max-width: 60rem;
    margin: 10vh auto 0;
    background: rgb(var(--color-background));
    padding: 2rem;
    border-radius: var(--inputs-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1;
}
.search-modal__close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    cursor: pointer;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    inset: 0; z-index: 250;
    display: none;
}
.cart-drawer[aria-hidden="false"] { display: block; }

.cart-drawer__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.4);
    cursor: pointer;
}

.cart-drawer__inner {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 100%; max-width: 420px;
    background: rgb(var(--color-background));
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}
.cart-drawer[aria-hidden="false"] .cart-drawer__inner { transform: translateX(0); }

.cart-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid rgba(var(--color-foreground), 0.08);
}
.cart-drawer__close {
    padding: 0.5rem; cursor: pointer; background: none; border: none;
    color: rgb(var(--color-foreground));
}

.cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; }

.cart-drawer__item {
    display: flex; gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(var(--color-foreground), 0.06);
}
.cart-drawer__item-image { width: 80px; flex-shrink: 0; }
.cart-drawer__item-image img { width: 100%; height: auto; border-radius: 4px; }
.cart-drawer__item-info { flex: 1; }
.cart-drawer__item-title { font-size: 1.4rem; font-weight: 500; margin-bottom: 0.3rem; }
.cart-drawer__item-price { font-size: 1.3rem; color: rgba(var(--color-foreground), 0.65); margin-bottom: 0.5rem; }

.cart-drawer__item-qty {
    display: inline-flex; align-items: center; gap: 0;
    border: 1px solid rgba(var(--color-foreground), 0.15);
    border-radius: var(--buttons-radius);
}
.qty-btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    font-size: 1.6rem; color: rgb(var(--color-foreground));
}
.qty-value { padding: 0 0.8rem; font-size: 1.3rem; }

.cart-drawer__item-remove {
    align-self: flex-start; padding: 0.5rem; cursor: pointer;
    background: none; border: none; color: rgba(var(--color-foreground), 0.4);
}
.cart-drawer__item-remove:hover { color: rgb(var(--color-foreground)); }

.cart-drawer__empty { text-align: center; padding: 4rem 0; color: rgba(var(--color-foreground), 0.5); }

.cart-drawer__footer {
    padding: 2rem;
    border-top: 1px solid rgba(var(--color-foreground), 0.08);
}
.cart-drawer__subtotal {
    display: flex; justify-content: space-between;
    font-weight: 600; font-size: 1.6rem;
    margin-bottom: 1.5rem;
}
.cart-drawer__footer .button { margin-bottom: 0.8rem; }

/* Wishlist Drawer */
.wishlist-drawer {
    position: fixed;
    inset: 0; z-index: 250;
    display: none;
}
.wishlist-drawer[aria-hidden="false"] { display: block; }
.wishlist-drawer__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.4); cursor: pointer;
}
.wishlist-drawer__inner {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 100%; max-width: 420px;
    background: rgb(var(--color-background));
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}
.wishlist-drawer[aria-hidden="false"] .wishlist-drawer__inner { transform: translateX(0); }
.wishlist-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid rgba(var(--color-foreground), 0.08);
}
.wishlist-drawer__close {
    padding: 0.5rem; cursor: pointer; background: none; border: none;
    color: rgb(var(--color-foreground));
}
.wishlist-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; }
.wishlist-drawer__empty { text-align: center; padding: 4rem 0; color: rgba(var(--color-foreground), 0.5); }

/* Accordion / Collapsible */
.accordion-item { border-bottom: 1px solid rgba(var(--color-foreground), 0.1); }
.accordion-heading {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 0;
    cursor: pointer; width: 100%;
    background: transparent; border: none;
    font-family: var(--font-heading-family);
    font-size: 1.6rem; font-weight: 500;
    color: rgb(var(--color-foreground));
    text-align: left;
}
.accordion-heading .icon-caret {
    transition: transform 0.3s;
    width: 12px; height: 12px;
}
.accordion-item.active .accordion-heading .icon-caret { transform: rotate(180deg); }
.accordion-content {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0;
}
.accordion-item.active .accordion-content { max-height: 500px; padding-bottom: 1.5rem; }
.accordion-content p { color: rgba(var(--color-foreground), 0.65); line-height: 1.7; }

/* Pagination */
.pagination {
    display: flex; justify-content: center; gap: 0.5rem;
    margin: 3rem 0; list-style: none; padding: 0;
}
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 3.6rem; min-height: 3.6rem;
    padding: 0 0.8rem; border-radius: var(--buttons-radius);
    border: 1px solid rgba(var(--color-foreground), 0.15);
    color: rgb(var(--color-foreground));
    text-decoration: none; font-size: 1.4rem;
}
.pagination .current {
    background: rgb(var(--color-base-accent-1));
    color: rgb(var(--color-base-solid-button-labels));
    border-color: rgb(var(--color-base-accent-1));
}

/* Footer */
.footer {
    color: rgba(var(--color-foreground), 0.75);
    background-color: rgb(var(--color-background));
}
.section-footer-padding { padding-top: 27px; padding-bottom: 3px; }
@media screen and (min-width: 750px) { .section-footer-padding { padding-top: 36px; padding-bottom: 4px; } }

.footer__content-top { margin-bottom: 3rem; }

.footer-block__heading {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: rgb(var(--color-foreground));
}

.footer-block__details-content { font-size: 1.4rem; line-height: 1.8; }
.footer-block__details-content a {
    display: block; padding: 0.3rem 0;
    color: rgba(var(--color-foreground), 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__content-bottom {
    border-top: 1px solid rgba(var(--color-foreground), 0.1);
    padding: 2rem 0;
}
.footer__content-bottom-wrapper {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    gap: 1rem;
}
.footer__copyright { font-size: 1.2rem; color: rgba(var(--color-foreground), 0.5); }
.copyright__content { margin-right: 0.5rem; }
.copyright__content a { color: rgba(var(--color-foreground), 0.5); text-decoration: none; }

/* Social */
.list-social { display: flex; gap: 1.2rem; list-style: none; padding: 0; margin: 1.5rem 0 0; flex-wrap: wrap; }
.list-social__link {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%; transition: opacity 0.2s;
}
.list-social__link:hover { opacity: 0.7; }

/* Footer Top Bar */
.footer-top-bar { padding: 1.5rem 0; }
.footer-top-bar__inner {
    display: flex; align-items: center; justify-content: center;
    gap: 2rem; flex-wrap: wrap; text-align: center;
}
.footer-top-bar__text { font-size: 1.4rem; font-weight: 500; }
.footer-top-bar__btn {
    display: inline-flex; padding: 0.6rem 2rem;
    border: 1px solid; font-size: 1.2rem;
    text-transform: uppercase; letter-spacing: 0.15rem;
    text-decoration: none; font-weight: 600;
    transition: all 0.3s ease;
}
.footer-top-bar__btn:hover { background: currentColor; }
