/*
Theme Name: underscore Child
Theme URI: http://underscores.me/
Template: underscore
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Tags: custom-background,custom-logo,custom-menu,featured-images,threaded-comments,translation-ready
Version: 1.0.0.1775035598
Updated: 2026-04-01 09:26:38

*/

:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --primary-gold: #B88E2F;
    --gold-gradient: linear-gradient(135deg, #CFAF5B 0%, #F5E6A3 50%, #CFAF5B 100%);
    --brand-navy: #0F2A44;
    --success-green: #27A745;
    --section-padding: 60px 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-navy);
}

/* Fallback for H2 on dark overlays to ensure readability */
[class*="overlay"] h2, 
.hero-overlay h2, 
.featured-main h2,
.bottom-gold-cta h2 {
    color: #fff !important;
}

section {
    padding: var(--section-padding);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Remove default gap from parent theme */
.post, .page {
    margin: 0;
}

/* Responsive Font Sizes */
@media (max-width: 1024px) {
    body {
        font-size: 14px !important;
    }

    h1, .entry-title, .page-title, .shop-page-header h1, .blog-hero h1, .collections-hero h1 { font-size: 32px !important; }
    h2, .column-title { font-size: 24px !important; }
    h3 { font-size: 22px !important; }
    h4 { font-size: 20px !important; }
    h5 { font-size: 18px !important; }
    h6 { font-size: 16px !important; }

    /* Adjust specific boutique elements if needed */
    .promo-title { font-size: 24px !important; }

    section {
        padding: 40px 0 !important;
    }

    .container {
        padding: 0 20px !important;
    }
}

/* Star Rating Fix - Replace 'S' with Gold Stars */
.star-rating {
    overflow: hidden !important;
    position: relative !important;
    height: 1em !important;
    line-height: 1 !important;
    font-size: 14px !important;
    width: 5.4em !important;
    font-family: serif !important;
    letter-spacing: 0.1em !important;
    display: inline-block !important;
}

.star-rating::before {
    content: "\2605\2605\2605\2605\2605" !important;
    color: #e0e0e0 !important;
    float: left !important;
    top: 0 !important;
    left: 0 !important;
    position: absolute !important;
    text-indent: 0 !important;
}

.star-rating span {
    overflow: hidden !important;
    float: left !important;
    top: 0 !important;
    left: 0 !important;
    position: absolute !important;
    padding-top: 1.5em !important;
}

.star-rating span::before {
    content: "\2605\2605\2605\2605\2605" !important;
    top: 0 !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--primary-gold, #B88E2F) !important;
    text-indent: 0 !important;
}

.woocommerce-product-rating .star-rating {
    margin: 0 !important;
    float: none !important;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 10px;
    width: 48px;
    height: 48px;
    background: var(--brand-navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(15, 42, 68, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--primary-gold);
    color: #fff;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(184, 142, 47, 0.3);
}

#back-to-top i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

#back-to-top:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 10px;
        width: 44px;
        height: 44px;
    }
    #back-to-top i {
        font-size: 20px;
    }
}
