/* ======================================
   MRIGNAINI — ANNOUNCEMENT BAR
   Premium coupon/offer marquee bar
   ====================================== */

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
    background: #0a1f18; /* Elegant deep green */
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    z-index: 1002;
    border-bottom: 1px solid rgba(193, 161, 115, 0.1);
}

.announcement-track {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 0;
    animation: marquee 45s linear infinite;
    height: 38px;
}

.announcement-content:hover {
    animation-play-state: paused;
}

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

.ann-item {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: rgba(253, 248, 240, 0.8);
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding: 0 16px;
    font-weight: 300;
}

.ann-item strong {
    color: #B8945A;
    font-weight: 500;
}

.ann-sep {
    color: rgba(184, 148, 90, 0.3);
    font-size: 0.5rem;
    flex-shrink: 0;
}

.ann-code {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(184, 148, 90, 0.25);
    color: #B8945A;
    font-weight: 500;
    font-size: 0.68rem;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 4px;
}

.ann-code:hover {
    background: rgba(184, 148, 90, 0.1);
    border-color: rgba(184, 148, 90, 0.5);
    color: #C6A56B;
}

.ann-code::after {
    content: 'Copy';
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #B8945A;
    color: #0a1f18;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ann-code:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.ann-code.copied::after {
    content: 'Copied!';
    opacity: 1;
    transform: translateX(-50%) scale(1);
    background: #2d6a4f;
    color: #fff;
}

/* --- COPY TOAST --- */
.copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a4a3a;
    color: #FDF8F0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- OFFERS HELPER TEXT (product page) --- */
.offers-hint {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: #888;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.offers-hint svg {
    flex-shrink: 0;
    color: #C8A96E;
}
.offers-hint a {
    color: #1a4a3a;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- COUPON INPUT (cart & checkout) --- */
.coupon-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(200, 169, 110, 0.15);
}
.coupon-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1a4a3a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.coupon-input-row {
    display: flex;
    gap: 8px;
}
.coupon-input {
    flex: 1;
    padding: 10px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    color: #333;
    border: 1.5px solid #d4ccc0;
    border-radius: 8px;
    background: #faf8f5;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: border-color 0.3s;
}
.coupon-input:focus {
    border-color: #1a4a3a;
}
.coupon-apply-btn {
    padding: 10px 20px;
    background: #1a4a3a;
    color: #FDF8F0;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.coupon-apply-btn:hover {
    background: #2d6a4f;
}
.coupon-message {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    margin-top: 6px;
    display: none;
}
.coupon-message.show { display: block; }
.coupon-message.success {
    color: #2d6a4f;
}
.coupon-message.error {
    color: #A82039;
}

/* Applied coupon display */
.coupon-applied {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(45, 106, 79, 0.06);
    border: 1px solid rgba(45, 106, 79, 0.2);
    border-radius: 8px;
    margin-top: 8px;
}
.coupon-applied.show {
    display: flex;
}
.coupon-applied-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    color: #2d6a4f;
    font-weight: 500;
}
.coupon-applied-code {
    font-weight: 700;
    letter-spacing: 0.05em;
}
.coupon-remove-btn {
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    color: #A82039;
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
}

/* Summary coupon discount row */
.summary-row.coupon-row {
    color: #2d6a4f;
    font-weight: 500;
}

/* --- CODES AVAILABLE DROPDOWN --- */
.codes-available {
    margin-top: 8px;
}

.codes-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: #B8945A;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.3s;
}
.codes-toggle:hover { color: #1a4a3a; }
.codes-toggle svg {
    transition: transform 0.3s;
    flex-shrink: 0;
}
.codes-toggle.open svg {
    transform: rotate(90deg);
}

.codes-list {
    margin-top: 6px;
    border: 1px solid rgba(200, 169, 110, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: #faf8f5;
}

.code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(200, 169, 110, 0.12);
}
.code-item:last-child { border-bottom: none; }
.code-item:hover { background: rgba(200, 169, 110, 0.08); }

.code-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a4a3a;
    letter-spacing: 0.06em;
}
.code-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    color: #888;
}

/* --- ONE-TIME COUPON POPUP --- */
.coupon-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 24, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: popupFadeIn 0.4s ease forwards;
}

@keyframes popupFadeIn {
    to { opacity: 1; }
}

.coupon-popup {
    background: #FDF8F0;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border: 1px solid rgba(200, 169, 110, 0.3);
    transform: translateY(20px) scale(0.95);
    animation: popupSlideUp 0.4s 0.1s ease forwards;
}

@keyframes popupSlideUp {
    to { transform: translateY(0) scale(1); }
}

.coupon-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}
.coupon-popup-close:hover { color: #A82039; }

.coupon-popup-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.coupon-popup h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #1a4a3a;
    margin-bottom: 0.5rem;
}
.coupon-popup p {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.coupon-popup-code {
    display: inline-block;
    background: rgba(26, 74, 58, 0.08);
    border: 2px dashed rgba(26, 74, 58, 0.3);
    border-radius: 8px;
    padding: 10px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a4a3a;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.coupon-popup-hint {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    color: #999;
}
