/*
Theme Name: Astra Child Thai Cosmetic
Theme URI: https://thaicosmeticswholesale.com/
Description: Custom child theme for Thai Cosmetic Wholesale
Author: Antigravity
Author URI: https://antigravity.google
Template: astra
Version: 1.1.0
Text Domain: astra-child
*/

/* -------------------------------------------------------------------------
   PREMIUM DESIGN SYSTEM
   ------------------------------------------------------------------------- */
:root {
    /* Primary Color Palette */
    --color-primary: #d63384;
    /* Deep Rose */
    --color-primary-hover: #fa52a0;
    --color-secondary: #ff85b3;
    /* Soft Pink */
    --color-accent: #2c3e50;
    /* Midnight Night */
    --color-accent-soft: rgba(44, 62, 80, 0.05);

    /* Backgrounds */
    --bg-gradient: linear-gradient(135deg, #fff5fa 0%, #ffffff 100%);
    --bg-white: #ffffff;
    --bg-soft: #fcfcfc;

    /* Glassmorphism System */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-shadow: 0 8px 32px 0 rgba(214, 51, 132, 0.12);
    --glass-blur: blur(12px);

    /* Shadows & Effects */
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 15px 45px rgba(214, 51, 132, 0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-full: 999px;
}

/* -------------------------------------------------------------------------
   GLOBAL STYLES & LAYOUT
   ------------------------------------------------------------------------- */
body {
    background: var(--bg-soft);
    color: var(--color-accent);
    line-height: 1.7;
}

#page {
    background: var(--bg-gradient);
}

/* -------------------------------------------------------------------------
   HEADER & NAVIGATION (Glassmorphism)
   ------------------------------------------------------------------------- */
.main-header-bar {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border) !important;
    padding: 10px 0;
}

.ast-site-identity .ast-site-title a {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.ast-site-identity .ast-site-title a span {
    color: var(--color-accent);
}

.main-navigation ul li a {
    color: var(--color-accent) !important;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.main-navigation ul li a:hover {
    color: var(--color-primary) !important;
}

/* -------------------------------------------------------------------------
   PRODUCT CARDS & LISTINGS (Premium E-commerce)
   ------------------------------------------------------------------------- */
.astra-shop-summary-wrap {
    background: var(--bg-white) !important;
    border-radius: var(--radius-md) !important;
    padding: 25px !important;
    transition: var(--transition);
    box-shadow: var(--shadow-soft) !important;
    border: 1px solid rgba(214, 51, 132, 0.05) !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.astra-shop-summary-wrap:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium) !important;
    border-color: rgba(214, 51, 132, 0.15) !important;
}

/* Product Titles */
.woocommerce-loop-product__title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--color-accent) !important;
    margin: 12px 0 8px !important;
    transition: var(--transition-smooth);
    line-height: 1.4 !important;
}

.astra-shop-summary-wrap:hover .woocommerce-loop-product__title {
    color: var(--color-primary) !important;
}

/* Shop Loop Price */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    margin-bottom: 10px !important;
}

/* Product Thumbnails */
.woocommerce ul.products li.product img {
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.astra-shop-summary-wrap:hover img {
    transform: scale(1.05);
}

/* -------------------------------------------------------------------------
   BUTTONS (Elevated Luxury)
   ------------------------------------------------------------------------- */
.ast-view-button,
.woocommerce-LoopProduct-link+.ast-view-button {
    display: inline-block !important;
    padding: 14px 28px !important;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff5c9d 100%) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: var(--radius-full) !important;
    margin-top: 20px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    transition: var(--transition) !important;
    box-shadow: 0 10px 20px rgba(214, 51, 132, 0.25) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.ast-view-button:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(214, 51, 132, 0.35) !important;
    background: linear-gradient(135deg, #ff5c9d 0%, var(--color-primary) 100%) !important;
}

/* Add a subtle shine animation */
.ast-view-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: all 0.6s ease-in-out;
}

.ast-view-button:hover::after {
    left: 120%;
}

/* WhatsApp Inquiry Button */
.whatsapp-inquiry-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 18px 36px !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: var(--transition) !important;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3) !important;
    margin-top: 30px !important;
    letter-spacing: 0.5px !important;
}

.whatsapp-inquiry-btn:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4) !important;
}

/* -------------------------------------------------------------------------
   SINGLE PRODUCT PAGE (Luxury Experience)
   ------------------------------------------------------------------------- */
.single-product .product .summary {
    padding: 40px !important;
    background: var(--bg-white) !important;
    border-radius: 30px !important;
    box-shadow: var(--shadow-premium) !important;
    border: 1px solid rgba(214, 51, 132, 0.05) !important;
    animation: fadeInUp 0.8s ease-out;
}

.single-product .product .woocommerce-product-gallery {
    animation: fadeIn 1s ease-out;
}

.single-product .product_title {
    font-size: 2.8rem !important;
    font-weight: 900 !important;
    color: var(--color-accent) !important;
    margin-bottom: 20px !important;
    letter-spacing: -1.5px !important;
}

.single-product .price {
    color: var(--color-primary) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
}

.single-product .related.products {
    margin-top: 80px !important;
}

.single-product .related.products h2 {
    text-align: center !important;
    font-weight: 900 !important;
    font-size: 2.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2.5px !important;
    color: var(--color-accent) !important;
    margin-bottom: 50px !important;
    position: relative;
    padding-bottom: 15px;
}

.single-product .related.products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

/* -------------------------------------------------------------------------
   ANIMATIONS & MICRO-INTERACTIONS
   ------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slow reveal for shop items */
.products .product {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.products .product:nth-child(1) {
    animation-delay: 0.1s;
}

.products .product:nth-child(2) {
    animation-delay: 0.2s;
}

.products .product:nth-child(3) {
    animation-delay: 0.3s;
}

.products .product:nth-child(4) {
    animation-delay: 0.4s;
}

/* -------------------------------------------------------------------------
   RESPONSIVE POLISH
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .single-product .product_title {
        font-size: 2rem !important;
        letter-spacing: -1px !important;
    }

    .ast-site-identity .ast-site-title a {
        font-size: 1.4rem;
    }

    .astra-shop-summary-wrap {
        padding: 15px !important;
    }

    .single-product .product .summary {
        padding: 25px !important;
    }
}

/* -------------------------------------------------------------------------
   PRO FOOTER (Midnight Onyx & Glowing Rose)
   ------------------------------------------------------------------------- */

/* Hard Reset & Main Footer Background */
.site-footer,
.site-footer-primary-section-wrap,
.site-footer-below-section-wrap,
.site-primary-footer-wrap,
.site-below-footer-wrap,
.site-above-footer-wrap,
[data-section="section-footer-builder-wrap"],
.ast-footer-overlay,
.footer-adv {
    background-color: #0d1217 !important;
    background-image: linear-gradient(180deg, #161c24 0%, #0d1217 100%) !important;
    color: #ffffff !important;
    border-top: 2px solid var(--color-primary) !important;
}

/* Remove any light/white leaks from nested elements */
.site-footer .ast-container,
.site-footer .ast-footer-copyright,
.site-footer .widget-area,
.site-footer .footer-social-section {
    background: transparent !important;
}

/* Widget Text & Link Colors */
.site-footer p,
.site-footer span,
.site-footer div,
.site-footer .widget,
.site-footer .widget-title {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Footer Headers - Elegant Gold/Rose */
.site-footer .widget-title,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    margin-bottom: 20px !important;
    position: relative;
    padding-bottom: 12px !important;
    display: block;
}

.site-footer .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(214, 51, 132, 0.6);
}

/* Footer Link Interactions */
.site-footer a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    font-weight: 500 !important;
}

.site-footer a:hover {
    color: var(--color-primary) !important;
    text-shadow: 0 0 12px rgba(214, 51, 132, 0.5);
    padding-left: 8px;
}

/* Social Icons Fix & Glow */
.site-footer .ast-social-color-type-custom svg,
.site-footer .footer-social-section i,
.site-footer .ast-builder-social-element i,
.site-footer .ast-builder-social-element svg {
    fill: #ffffff !important;
    color: #ffffff !important;
}

.ast-builder-social-element {
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    transition: var(--transition) !important;
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 8px !important;
}

.ast-builder-social-element:hover {
    transform: translateY(-5px) rotate(5deg);
    background: var(--color-primary) !important;
    box-shadow: 0 0 20px rgba(214, 51, 132, 0.7) !important;
}

/* Copyright Section Detail */
.ast-footer-copyright,
.ast-footer-copyright * {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px;
}

.ast-footer-copyright a {
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
}

.ast-footer-copyright a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(214, 51, 132, 0.8);
    text-decoration: none !important;
}

/* Remove any potential white/gray leaks from Astra's layout */
.ast-separate-container .ast-footer-below-section-wrap,
.ast-page-builder-template .site-footer {
    background-color: transparent !important;
}

/* Fix for the grey bar in the screenshot */
.site-footer-below-section-wrap,
.site-below-footer-wrap {
    padding: 25px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}