:root {
    --primary-color: #e83e8c; /* Boutique Pink */
    --secondary-color: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fcfcfc;
}

.navbar-brand {
    color: var(--primary-color) !important;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #d63384;
    border-color: #d63384;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card {
    border-radius: 10px;
}

.badge {
    font-weight: 500;
}

/* Home Hero Carousel */
.hero-carousel {

    background: #111;
    border-radius: 0;
    margin-bottom: 0;
}

.hero-fullwidth {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -1.5rem;
    padding-top: 0;
}

.hero-slide {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.35), rgba(0,0,0,0.25));
}

.hero-caption {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 56px 20px;
    max-width: 780px;
}

.hero-kicker {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.hero-title {
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 10px;
}

.hero-text {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0 0 18px;
}

/* Caption animations */
.carousel-item .hero-kicker,
.carousel-item .hero-title,
.carousel-item .hero-text,
.carousel-item .btn {
    opacity: 0;
    transform: translateY(14px);
}

.carousel-item.active .hero-kicker {
    animation: heroIn 700ms ease-out 100ms forwards;
}
.carousel-item.active .hero-title {
    animation: heroIn 750ms ease-out 180ms forwards;
}
.carousel-item.active .hero-text {
    animation: heroIn 800ms ease-out 260ms forwards;
}
.carousel-item.active .btn {
    animation: heroIn 850ms ease-out 340ms forwards;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-slide { min-height: 360px; }
    .hero-title { font-size: 1.75rem; }
    .hero-text { font-size: 1rem; }
}

/* Admin Styles override */
.admin-card {
    border-left: 4px solid var(--primary-color);
}

/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    right: 18px !important;
    left: auto !important;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    z-index: 99999; /* always on top */
    /* Rollback: always visible */
    transition: transform 120ms ease, opacity 120ms ease;
    opacity: 0.95;
    transform: translateY(0);
    cursor: pointer;
    pointer-events: auto;
}

.scroll-top-btn.is-visible {
    opacity: 0.95;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.scroll-top-btn:active {
    transform: translateY(0);
}

.scroll-top-btn:focus {
    outline: 3px solid rgba(232, 62, 140, 0.25);
    outline-offset: 2px;
}

.thumbnail-btn {
    border: none;
    background: transparent;
    padding: 0;
    transition: transform 180ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.thumbnail-btn img {
    transition: transform 300ms ease, box-shadow 300ms ease;
    border-radius: 8px;
}

.thumbnail-btn:hover {
    transform: translateY(-3px);
}

.thumbnail-btn:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.main-product-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 12px;
}

.main-product-image-wrapper img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.thumbnail-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
}

.admin-thumbnail-row {
    gap: 6px;
}

.admin-thumbnail-thumb {
    width: 48px;
    height: 48px;
}

.admin-thumbnail-row .thumbnail-btn {
    border-radius: 8px;
}

.full-width-footer {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.admin-product-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 10px;
}

.admin-product-image-wrapper img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.chatbot-button {
    position: fixed;
    bottom: 88px;
    right: 18px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    border: none;
    cursor: pointer;
    z-index: 100000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.35);
}

.chatbot-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 100000;
}

.chatbot-modal.is-visible {
    display: flex;
}

.chatbot-panel {
    width: min(360px, 90%);
    max-height: 80vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-panel header {
    background: var(--primary-color);
    color: #fff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-login-callout {
    color: var(--primary-color);
}

.chatbot-panel .messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chatbot-panel .input-row {
    display: flex;
    border-top: 1px solid #e9ecef;
}

.chatbot-panel .input-row input {
    flex: 1;
    border: none;
    padding: 12px;
    outline: none;
    font-size: 0.95rem;
}

.chatbot-panel .input-row button {
    border: none;
    background: var(--primary-color);
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
}
