/* Components: Cards, Modals, etc. */

/* Brand Scroller Item (Universal) */
.brand-slide,
.brand-scroll-item {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-slide:hover,
.brand-scroll-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(27, 38, 59, 0.15);
}

/* Product Card */
.product-card {
    background: var(--white);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

/* Foundation Card */
.foundation-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
}

.foundation-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 30px 70px rgba(27, 38, 59, 0.15);
    border-color: var(--accent-color);
}

/* Modal Universals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease forwards;
    border: 1px solid var(--glass-border);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
}

/* ==========================================
   Shopify Store Coming Soon Banner
   ========================================== */
.shopify-launch-banner {
    background: linear-gradient(-45deg, #0D1520, #1B263B, #16243d, #0D1520);
    background-size: 400% 400%;
    animation: gradient-shift 12s ease infinite, border-glow 3s infinite alternate;
    border-top: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding: 22px 0;
    position: relative;
    z-index: 10;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes border-glow {
    0% {
        border-color: rgba(212, 175, 55, 0.4);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.05);
    }
    100% {
        border-color: rgba(212, 175, 55, 1);
        box-shadow: 0 0 35px rgba(212, 175, 55, 0.25);
    }
}

.shopify-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.shopify-banner-text-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.shopify-banner-badge {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
    animation: badge-float 2s ease-in-out infinite alternate;
}

@keyframes badge-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

.shopify-banner-text {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.05rem;
    margin: 0;
}

.shopify-banner-text strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Form Styling */
.shopify-banner-form-group {
    min-width: 340px;
}

.shopify-banner-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.shopify-input-wrapper {
    display: flex;
    position: relative;
    width: 100%;
}

.shopify-banner-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--white);
    padding: 10px 110px 10px 20px; /* Leave space for button on the right */
    border-radius: 50px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    width: 100%;
    transition: var(--transition);
}

.shopify-banner-input::placeholder {
    color: rgba(244, 247, 250, 0.4);
}

.shopify-banner-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.shopify-banner-btn {
    position: absolute;
    right: 3px;
    top: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #B8860B 100%);
    color: #0D1520;
    border: none;
    border-radius: 50px;
    padding: 0 20px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.shopify-banner-btn:hover {
    transform: scale(1.02);
    box-shadow: -5px 0 15px rgba(212, 175, 55, 0.2);
}

.shopify-banner-msg {
    margin-top: 6px;
    font-size: 0.8rem;
    text-align: center;
    border-radius: 6px;
    padding: 6px;
    display: none;
    line-height: 1.3;
}

.shopify-banner-msg.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    display: block;
}

.shopify-banner-msg.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    display: block;
}

/* Responsiveness */
@media (max-width: 991px) {
    .shopify-banner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .shopify-banner-text-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* ==========================================
   Celebration Modal (Balloons & Confetti Popup)
   ========================================== */
.celebration-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(13, 21, 32, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.celebration-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

#celebrationCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.celebration-card {
    background: linear-gradient(135deg, #1B263B 0%, #0D1520 100%);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.35);
    border-radius: 28px;
    padding: 50px 40px;
    text-align: center;
    width: 90%;
    max-width: 520px;
    position: relative;
    z-index: 2;
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.celebration-overlay.active .celebration-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.celebration-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce-icon 1s infinite alternate;
}

@keyframes bounce-icon {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-8px) scale(1.1); }
}

.celebration-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 12px;
    font-weight: 700;
}

.celebration-subtitle {
    font-size: 1rem;
    color: rgba(244, 247, 250, 0.8);
    margin-bottom: 30px;
    line-height: 1.5;
}

.promo-code-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--accent-color);
    padding: 16px 24px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.05);
}

.promo-code-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.copy-promo-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #B8860B 100%);
    color: #0D1520;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.copy-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.copy-promo-btn.copied {
    background: #2ecc71;
    color: white;
}

.promo-details {
    font-size: 0.85rem;
    color: rgba(244, 247, 250, 0.55);
    margin-bottom: 35px;
    line-height: 1.4;
}

.btn-celebration-close {
    background: transparent;
    color: rgba(244, 247, 250, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-celebration-close:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}