/* ============================================
   GlowBeauty Homepage Styles
   Inspired by cultbeauty.com
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ---- RESET & BASE ---- */
#glowbeauty-homepage {
    font-family: 'Montserrat', sans-serif;
    color: #2D2D2D;
    overflow-x: hidden;
}

/* ---- ANNOUNCEMENT BAR ---- */
.gb-announcement-bar {
    background: #2D2D2D;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.gb-announcement-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.gb-sep {
    opacity: 0.4;
}

/* ---- HERO SLIDER ---- */
.gb-hero-slider {
    background: linear-gradient(135deg, #FFF5F5 0%, #F8E8E8 40%, #EDD5D5 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.gb-hero-slide {
    display: none;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 60px;
    display: flex;
    align-items: center;
    gap: 60px;
}
.gb-hero-slide.active {
    display: flex;
}
.gb-hero-content {
    flex: 1;
    max-width: 520px;
    z-index: 2;
}
.gb-hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #B76E79;
    margin-bottom: 16px;
    position: relative;
    padding-left: 30px;
}
.gb-hero-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 1px;
    background: #B76E79;
}
.gb-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8em, 5vw, 4.5em);
    font-weight: 600;
    line-height: 1.1;
    color: #2D2D2D;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.gb-hero-title em {
    font-style: italic;
    color: #B76E79;
}
.gb-hero-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #6B6B6B;
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 400px;
}
.gb-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- HERO IMAGE GRID ---- */
.gb-hero-image {
    flex: 1;
    max-width: 600px;
}
.gb-hero-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 520px;
}
.gb-hero-img-item {
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.gb-hero-img-item:first-child {
    grid-row: span 2;
}
.gb-hero-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gb-hero-img-item:hover img {
    transform: scale(1.04);
}

/* ---- BUTTONS ---- */
.gb-btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.gb-btn-primary {
    background: #2D2D2D;
    color: #fff;
    border-color: #2D2D2D;
}
.gb-btn-primary:hover {
    background: #B76E79;
    border-color: #B76E79;
    color: #fff;
}
.gb-btn-outline {
    background: transparent;
    color: #2D2D2D;
    border-color: #2D2D2D;
}
.gb-btn-outline:hover {
    background: #2D2D2D;
    color: #fff;
}
.gb-btn-dark {
    background: #2D2D2D;
    color: #fff;
    border-color: #2D2D2D;
}
.gb-btn-dark:hover {
    background: #B76E79;
    border-color: #B76E79;
    color: #fff;
}
.gb-btn-cart {
    background: #2D2D2D;
    color: #fff;
    border-color: #2D2D2D;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 10px;
    letter-spacing: 1.5px;
}
.gb-btn-cart:hover {
    background: #B76E79;
    border-color: #B76E79;
    color: #fff;
}

/* ---- SECTION HEADERS ---- */
.gb-section-header {
    text-align: center;
    padding: 60px 20px 40px;
}
.gb-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2em, 3.5vw, 3em);
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.gb-section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #6B6B6B;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ---- CATEGORY TILES ---- */
.gb-categories-section {
    padding: 0 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.gb-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.gb-cat-tile {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 3/4;
    background: #F8F4F4;
}
.gb-cat-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.gb-cat-tile:hover .gb-cat-img {
    transform: scale(1.06);
}
.gb-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.gb-cat-label {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ---- BRAND SHOWCASE ---- */
.gb-brands-section {
    background: linear-gradient(135deg, #FFF5F5 0%, #F8E8E8 100%);
    padding-bottom: 60px;
}
.gb-brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.gb-brand-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid #F0E0E0;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.gb-brand-card:hover {
    box-shadow: 0 12px 40px rgba(183,110,121,0.15);
    transform: translateY(-4px);
}
.gb-brand-img {
    height: 220px;
    overflow: hidden;
    background: #F8F4F4;
}
.gb-brand-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gb-brand-card:hover .gb-brand-img img {
    transform: scale(1.05);
}
.gb-brand-info {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gb-brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5em;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 6px;
}
.gb-brand-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #6B6B6B;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}
.gb-brand-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #B76E79;
}

/* ---- FEATURED PRODUCTS ---- */
.gb-featured-section {
    padding: 0 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
}
.gb-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 2px solid #F0E0E0;
}
.gb-tab {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6B6B6B;
    background: none;
    border: none;
    padding: 14px 32px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}
.gb-tab.active,
.gb-tab:hover {
    color: #B76E79;
    border-bottom-color: #B76E79;
}
.gb-tab-content {
    display: none;
}
.gb-tab-content.active {
    display: block;
}
.gb-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.gb-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #F0E0E0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.gb-product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.gb-product-img-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #F8F4F4;
}
.gb-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gb-product-card:hover .gb-product-img {
    transform: scale(1.05);
}
.gb-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    text-transform: uppercase;
}
.gb-badge-new {
    background: #2D2D2D;
    color: #fff;
}
.gb-badge-sale {
    background: #B76E79;
    color: #fff;
}
.gb-product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.gb-product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}
.gb-product-title a {
    color: #2D2D2D;
    text-decoration: none;
}
.gb-product-title a:hover {
    color: #B76E79;
}
.gb-product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #2D2D2D;
}
.gb-product-price .woocommerce-Price-amount {
    color: #2D2D2D;
}
.gb-view-all {
    text-align: center;
    margin-top: 10px;
}
.gb-no-products {
    text-align: center;
    padding: 40px;
    color: #6B6B6B;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}
.gb-no-products a {
    color: #B76E79;
}

/* ---- EDITORIAL SECTION ---- */
.gb-editorial-section {
    background: #F8F4F4;
    padding-bottom: 60px;
}
.gb-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
.gb-editorial-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #F0E0E0;
    margin: 0 6px;
    transition: all 0.3s ease;
}
.gb-editorial-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.gb-editorial-img {
    height: 280px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.gb-editorial-card:hover .gb-editorial-img {
    transform: scale(1.03);
}
.gb-editorial-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gb-editorial-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #B76E79;
    margin-bottom: 8px;
}
.gb-editorial-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8em;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 12px;
}
.gb-editorial-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #6B6B6B;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

/* ---- WHY SECTION ---- */
.gb-why-section {
    background: #2D2D2D;
    padding: 60px 40px;
}
.gb-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.gb-why-item {
    color: #fff;
}
.gb-why-icon {
    font-size: 24px;
    color: #E8C4C4;
    margin-bottom: 16px;
    display: block;
}
.gb-why-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
.gb-why-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #B0B0B0;
    line-height: 1.6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
    .gb-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gb-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .gb-hero-slide {
        flex-direction: column;
        padding: 40px 30px;
        min-height: auto;
    }
    .gb-hero-img-grid {
        height: 320px;
    }
    .gb-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gb-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
    .gb-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gb-editorial-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .gb-editorial-card {
        margin: 0 0 20px;
    }
    .gb-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gb-hero-slide {
        padding: 30px 20px;
    }
    .gb-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
    .gb-brands-grid {
        grid-template-columns: 1fr;
    }
    .gb-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .gb-featured-section {
        padding: 0 20px 40px;
    }
    .gb-why-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .gb-announcement-inner {
        flex-direction: column;
        gap: 4px;
    }
    .gb-sep {
        display: none;
    }
}

/* ---- HIDE STOREFRONT DEFAULT HOMEPAGE CONTENT ---- */
.storefront-homepage .site-main > .page,
.storefront-homepage .hentry,
.storefront-homepage .entry-header,
.storefront-homepage .entry-content,
.storefront-homepage .entry-footer {
    display: none !important;
}

/* Override storefront header for cleaner look */
.site-header .col-full {
    padding: 0 40px;
}

/* Style the navigation */
.main-navigation ul li a {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #2D2D2D !important;
    padding: 8px 14px !important;
}
.main-navigation ul li a:hover {
    color: #B76E79 !important;
}

/* Cart icon styling */
.site-header-cart .cart-contents {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    color: #2D2D2D !important;
}

/* Search bar */
.site-search input[type="search"] {
    border: 1px solid #E8C4C4 !important;
    border-radius: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
}

/* ---- FIX DUPLICATE NAV & SIDEBAR ON FRONT PAGE ---- */
/* Hide the secondary nav (widget-area header) on front page */
.gb-front-page .secondary-navigation,
.gb-front-page .storefront-handheld-footer-bar,
.gb-front-page #secondary {
    display: none !important;
}

/* Hide sidebar on front page */
.gb-front-page #primary {
    width: 100% !important;
    float: none !important;
}

/* Remove extra padding/margin from content area on front page */
.gb-front-page #content .col-full {
    padding: 0 !important;
    max-width: 100% !important;
}

.gb-front-page .site-content {
    padding: 0 !important;
}

.gb-front-page #primary {
    padding: 0 !important;
}

/* ---- STOREFRONT HEADER IMPROVEMENTS ---- */
/* Make header cleaner and more like cultbeauty */
.site-header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
}

/* Improve site title / logo */
.site-branding {
    display: flex;
    align-items: center;
}

/* Navigation improvements */
.main-navigation ul.nav-menu > li > a,
.main-navigation ul.menu > li > a {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #2D2D2D !important;
    padding: 10px 16px !important;
    transition: color 0.2s ease !important;
}
.main-navigation ul.nav-menu > li > a:hover,
.main-navigation ul.menu > li > a:hover {
    color: #B76E79 !important;
}
.main-navigation ul.nav-menu > li.current-menu-item > a,
.main-navigation ul.menu > li.current-menu-item > a {
    color: #B76E79 !important;
}

/* Cart icon */
.site-header-cart .cart-contents {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #2D2D2D !important;
}
.site-header-cart .cart-contents:hover {
    color: #B76E79 !important;
}

/* Product search */
.site-search .search-field {
    border: 1px solid #E8C4C4 !important;
    border-radius: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
}

/* ---- SHOP PAGE IMPROVEMENTS ---- */
/* Product loop cards on shop page */
.woocommerce ul.products li.product {
    border: 1px solid #F0E0E0 !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px) !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 12px 16px 4px !important;
}
.woocommerce ul.products li.product .price {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 16px 12px !important;
    color: #2D2D2D !important;
}
.woocommerce ul.products li.product .button {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    background: #2D2D2D !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    margin: 0 16px 16px !important;
    width: calc(100% - 32px) !important;
    transition: background 0.3s ease !important;
}
.woocommerce ul.products li.product .button:hover {
    background: #B76E79 !important;
}
.woocommerce ul.products li.product img {
    margin: 0 !important;
}
