/* ==========================================================================
   AuraGlow Beauty & Personal Care - Custom Luxury Stylesheet
   Built for Bootstrap 5 Integration
   ========================================================================== */

/* 1. Imports & Font Families */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --primary-rose: #d47e8b;
    --primary-rose-dark: #b85c6b;
    --primary-rose-light: #fbebee;
    --bg-nude: #fdf8f5;
    --bg-cream: #faf5ef;
    --dark-burgundy: #30171e;
    --dark-slate: #1e242b;
    --accent-gold: #c89d53;
    --accent-gold-light: #f7eedd;
    --text-body: #3c3437;
    --text-heading: #23191c;
    --text-muted: #7d7276;
    
    /* Layout & Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(212, 126, 139, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(48, 23, 30, 0.06);
    --card-shadow: 0 10px 30px rgba(48, 23, 30, 0.05);
    --hover-shadow: 0 20px 40px rgba(48, 23, 30, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 2. Global Resets & Typography */
body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-nude);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', serif;
    color: var(--text-heading);
    letter-spacing: -0.01em;
}

a {
    color: var(--primary-rose-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--dark-burgundy);
}

/* 3. Reusable Utility Classes */
.bg-cream { background-color: var(--bg-cream) !important; }
.bg-nude { background-color: var(--bg-nude) !important; }
.bg-rose-light { background-color: var(--primary-rose-light) !important; }
.text-rose { color: var(--primary-rose) !important; }
.text-rose-dark { color: var(--primary-rose-dark) !important; }
.text-burgundy { color: var(--dark-burgundy) !important; }
.text-gold { color: var(--accent-gold) !important; }

.btn-rose {
    background-color: var(--primary-rose-dark);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(184, 92, 107, 0.25);
}

.btn-rose:hover {
    background-color: var(--dark-burgundy);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(48, 23, 30, 0.25);
}

.btn-outline-rose {
    background: transparent;
    color: var(--primary-rose-dark);
    border: 1.5px solid var(--primary-rose-dark);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline-rose:hover {
    background-color: var(--primary-rose-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, #c89d53, #e0b468);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(200, 157, 83, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #b38840, #c89d53);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 157, 83, 0.4);
}

/* Section Titles */
.section-tag {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-rose-dark);
    background-color: var(--primary-rose-light);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (min-width: 992px) {
    .section-title {
        font-size: 2.75rem;
    }
}

/* Glassmorphism Container */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
}

/* 4. Navbar & Navigation */
.navbar-custom {
    background: rgba(253, 248, 245, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 126, 139, 0.1);
    transition: var(--transition-smooth);
    padding: 0.85rem 0;
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 25px rgba(48, 23, 30, 0.06);
}

.navbar-brand-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.65rem;
    color: var(--dark-burgundy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand-logo span {
    color: var(--primary-rose);
    font-style: italic;
}

.nav-link {
    font-weight: 500;
    color: var(--text-body);
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-rose-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-rose);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 60%;
}

.badge-wishlist {
    position: absolute;
    top: -4px;
    right: -8px;
    background-color: var(--primary-rose-dark);
    color: white;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Top Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, var(--dark-burgundy), #4a222e);
    color: #fcebeb;
    font-size: 0.82rem;
    font-weight: 400;
    padding: 0.45rem 0;
    letter-spacing: 0.3px;
}

.announcement-bar a {
    color: #f7eedd;
    text-decoration: underline;
    font-weight: 600;
}

/* 5. Hero Section */
.hero-wrapper {
    position: relative;
    padding: 4rem 0 5rem 0;
    background: radial-gradient(circle at 80% 20%, rgba(212, 126, 139, 0.12) 0%, rgba(250, 245, 239, 0) 50%),
                radial-gradient(circle at 10% 80%, rgba(200, 157, 83, 0.1) 0%, rgba(250, 245, 239, 0) 50%);
    border-bottom: 1px solid rgba(212, 126, 139, 0.08);
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3.8rem;
    }
}

.hero-img-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(48, 23, 30, 0.12);
}

.hero-img-container img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.hero-badge-floating {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 280px;
    border: 1px solid rgba(255,255,255,0.8);
    animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Trust Badges Bar */
.trust-bar {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    box-shadow: var(--card-shadow);
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-rose-light);
    color: var(--primary-rose-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* 6. Product Cards & Grid */
.product-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 126, 139, 0.1);
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(212, 126, 139, 0.3);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #fbf8f6;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

.badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-bestseller { background-color: var(--dark-burgundy); color: #ffffff; }
.badge-clean { background-color: #3b7a57; color: #ffffff; }
.badge-luxury { background-color: var(--accent-gold); color: #ffffff; }
.badge-deal { background-color: var(--primary-rose-dark); color: #ffffff; }

.btn-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.btn-wishlist:hover, .btn-wishlist.active {
    background-color: #ffffff;
    color: var(--primary-rose-dark);
    transform: scale(1.1);
}

.product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-title a {
    color: inherit;
}

.product-title a:hover {
    color: var(--primary-rose-dark);
}

.rating-stars {
    color: var(--accent-gold);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-left: 0.3rem;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(212, 126, 139, 0.08);
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-burgundy);
}

.product-price-original {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--text-muted);
    margin-left: 0.25rem;
    font-weight: 400;
}

/* 7. Category Showcase Cards */
.category-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 220px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    display: block;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 20, 24, 0.1) 0%, rgba(30, 20, 24, 0.75) 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    transition: var(--transition-smooth);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card:hover .category-overlay {
    background: linear-gradient(180deg, rgba(30, 20, 24, 0.2) 0%, rgba(30, 20, 24, 0.88) 100%);
}

.category-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #ffffff;
}

.category-count {
    font-size: 0.8rem;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

/* 8. Product Details Page Styling */
.detail-main-img-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(212, 126, 139, 0.12);
    height: 420px;
}

.detail-main-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumb-grid {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.detail-thumb-item {
    width: 75px;
    height: 75px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.detail-thumb-item.active, .detail-thumb-item:hover {
    border-color: var(--primary-rose-dark);
}

.detail-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-pill {
    background-color: var(--primary-rose-light);
    color: var(--primary-rose-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pro-con-box {
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.pro-box {
    background-color: #f0f9f4;
    border: 1px solid #c3e6cb;
}

.con-box {
    background-color: #fff8f8;
    border: 1px solid #f5c6cb;
}

.pro-con-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pro-box .pro-con-title { color: #155724; }
.con-box .pro-con-title { color: #721c24; }

.pro-con-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    font-size: 0.88rem;
}

.pro-con-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.4rem;
}

.pro-box .pro-con-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
}

.con-box .pro-con-list li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: 700;
}

/* 9. Blog / Tips Cards */
.blog-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.blog-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.07);
}

.blog-body {
    padding: 1.35rem;
}

.blog-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

/* 10. Newsletter Section */
.newsletter-card {
    background: linear-gradient(135deg, var(--dark-burgundy) 0%, #4a1f2c 100%);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(212, 126, 139, 0.15);
    pointer-events: none;
}

/* 11. Footer */
.footer-custom {
    background-color: var(--dark-burgundy);
    color: #f7eedd;
    padding-top: 4.5rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-link-group h5 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-rose-light);
    padding-left: 4px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    margin-right: 0.5rem;
}

.social-icon-btn:hover {
    background-color: var(--primary-rose-dark);
    color: #ffffff;
    transform: translateY(-3px);
}

.affiliate-disclaimer-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.15rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    border-left: 3px solid var(--accent-gold);
}

/* 12. Toast & Animations */
.toast-custom {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1080;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-left: 4px solid var(--primary-rose-dark);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.toast-custom.show {
    transform: translateY(0);
    opacity: 1;
}

/* Offcanvas Wishlist */
.offcanvas-wishlist {
    background-color: var(--bg-nude);
}

.wishlist-item-card {
    background-color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.wishlist-item-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
    .trust-bar {
        padding: 1rem;
    }
    .trust-item {
        margin-bottom: 1rem;
    }
    .detail-main-img-box {
        height: 300px;
    }
}
