/*
Theme Name:  Astra Child
Theme URI:   https://wpastra.com/
Description: Child theme for Astra
Author:      Akshanta Tech
Author URI:  https://akshanta.com
Template:    astra
Version:     1.0.0
*/

/* Add your custom styles below this line */
/* =========================================
   AKSHANTA HOMEPAGE STYLES
   ========================================= */
/* --- FIX HEADER & DROPDOWN LAYERING --- */
.site-header, .ast-main-header-wrap {
    z-index: 999 !important; /* Force Header to be on top of EVERYTHING */
    position: relative;
}

/* Make Dropdowns Visible */
.main-header-menu .sub-menu {
    background-color: #ffffff !important; /* Solid White Background */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Soft Premium Shadow */
    border-top: 2px solid #d4a373; /* Gold Accent Bar */
    padding: 15px 0;
}

.main-header-menu .sub-menu .menu-item a {
    color: #333 !important; /* Dark Grey Text */
    font-family: 'Lato', sans-serif;
    padding-left: 20px !important;
}

.main-header-menu .sub-menu .menu-item a:hover {
    color: #d4a373 !important; /* Gold on Hover */
    background: #f9f9f9;
}
/* --- 1. FORCE LOAD LUXURY FONTS (Backup Method) --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* --- 2. GLOBAL TYPOGRAPHY RESET --- */
body, p, li, span, a {
    font-family: 'Lato', sans-serif !important;
    letter-spacing: 0.5px;
}

h1, h2, h3, h4, h5, .entry-title, .product_title {
    font-family: 'Playfair Display', serif !important;
}

/* --- 3. REMOVE "CHEAP" BORDERS FROM PRODUCTS --- */
ul.products li.product {
    border: none !important; /* Luxury brands don't use box borders */
    background: transparent !important;
    text-align: center; /* Center align everything */
}

ul.products li.product:hover {
    box-shadow: none !important; /* Remove box shadow */
    transform: translateY(-5px); /* Just a subtle lift */
}

/* Product Title - Clean & Minimal */
.woocommerce-loop-product__title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin-top: 15px !important;
}

/* Price - Elegant */
.price {
    color: #666 !important;
    font-weight: 400 !important;
    font-size: 0.95rem !important;
}

/* --- 4. HIDE THE DUPLICATE BLUE HEADER --- */
/* This removes the "Authentic Indian Handloom..." text appearing twice */
.ast-archive-description, 
.entry-header {
    display: none !important;
}
/* --- FIX 1: HIDE DEFAULT WORDPRESS TITLES --- */
.home .entry-header, 
.home .page-header {
    display: none !important;
}

/* --- FIX 2: FORCE HERO LAYOUT --- */
.hero-section {
    position: relative;
    height: 100vh; /* 85% of screen height */
    width: 100%;
    display: flex;
    align-items: center;     /* Vertically Center Text */
    justify-content: center; /* Horizontally Center Text */
    overflow: hidden;
    z-index: 1; /* Base Layer */
    background-color: #000; /* Fallback color */
}

/* Force the image to stay behind text */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers area without stretching */
    z-index: 0;        /* Sits at the bottom */
    opacity: 0.6;      /* Darkens image for text readability */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1; /* On top of image */
}

/* The Text Container */
.hero-content {
    position: relative;
    z-index: 10; /* Sits ON TOP of image */
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

/* Typography Fixes */
.hero-content h1 {
    color: #ffffff !important; /* Force White Text */
    font-size: 3rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* Shadow for readability */
    margin-bottom: 20px;
}

.hero-content p {
    color: #f0f0f0 !important;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* CTA Buttons */
.cta-group .btn {
    display: inline-block;
    padding: 15px 35px;
    margin: 10px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0; /* Sharp edges for luxury feel */
    transition: all 0.3s ease;
}

.btn-primary { background: #c5a059; color: #fff; border: 2px solid #c5a059; } /* Gold */
.btn-primary:hover { background: transparent; color: #c5a059; }

.btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-secondary:hover { background: #fff; color: #000; }

/* 2. TRUST BAR */
.trust-bar {
    background: #f9f9f9;
    padding: 40px 0;
    border-bottom: 1px solid #e1e1e1;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.trust-item h4 { font-size: 1rem; margin: 0; font-weight: bold; text-transform: uppercase; }
.trust-item p { font-size: 0.9rem; margin: 0; color: #666; }

/* 3. SILO GRID (The Mosaic) */
.category-silo { padding: 80px 20px; }
.section-title { 
    text-align: center; 
    font-size: 2.5rem; 
    margin-bottom: 50px; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.silo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Left is twice as wide as right */
    grid-template-rows: 300px 300px;
    gap: 15px;
}

.silo-box {
    position: relative;
    display: block;
    overflow: hidden;
}

.silo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.silo-box:hover .silo-img { transform: scale(1.05); }

.silo-text {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.silo-text h3 { color: #fff; margin: 0; font-size: 1.5rem; }
.silo-text span { font-size: 0.9rem; opacity: 0.9; }

/* Grid Positioning */
.big-box { grid-row: 1 / 3; grid-column: 1; } /* Tall Left Box */
.medium-box { grid-row: 1; grid-column: 2; } /* Top Right */
.small-box { position: relative; } /* Bottom Right boxes automatically flow */

/* 4. SEO FOOTER */
.seo-footer-content {
    background: #ffffff;
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid #ddd;
}
.seo-text-columns {
    column-count: 2; /* Newspaper style columns */
    column-gap: 40px;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .grid-4 { grid-template-columns: 1fr 1fr; } /* 2x2 grid on mobile */
    .silo-grid { display: flex; flex-direction: column; } /* Stack vertically */
    .silo-box { height: 250px; width: 100%; }
    .seo-text-columns { column-count: 1; }
}

/* =========================================
   AKSHANTA PREMIUM UI KIT
   ========================================= */

/* 1. TYPOGRAPHY SYSTEM */
body, p, a, span, li {
    font-family: 'Lato', sans-serif;
    color: #333;
    line-height: 1.7; /* More breathing room */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* The "Vogue" look */
    color: #111;
    letter-spacing: 0.5px;
}

/* 2. HEADER CLEANUP */
.main-header-bar {
    border-bottom: 1px solid #f2f2f2;
    padding: 15px 0;
}

.main-header-menu > .menu-item > a {
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000 !important;
}

/* 3. PRODUCT CARD STYLING (The "Shopify" Look) */
ul.products li.product {
    border: 1px solid #eee;
    padding: 15px;
    transition: all 0.3s ease;
    background: #fff;
    border-radius: 4px; /* Soft edges */
}

ul.products li.product:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08); /* Soft shadow lift */
    transform: translateY(-5px); /* Moves up slightly */
    border-color: #d4a373; /* Gold accent on hover */
}

ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    padding-top: 10px;
    color: #000;
}

ul.products li.product .price {
    font-family: 'Lato', sans-serif;
    color: #d4a373; /* Gold Price */
    font-weight: 700;
    font-size: 1rem;
}

/* Button Refinement */
ul.products li.product .button {
    background: #111 !important;
    color: #fff !important;
    border-radius: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    width: 100%; /* Full width button */
}

ul.products li.product .button:hover {
    background: #d4a373 !important; /* Gold on hover */
}

/* 4. FOOTER POLISH */
.site-footer {
    background-color: #ffffff; /* Dark Luxury Grey */
    color: #ccc;
    padding-top: 40px;
}

.site-footer h4, .site-footer .widget-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.site-footer a { color: #aaa; }
.site-footer a:hover { color: #d4a373; }

/* Hide "Powered by Astra" */
.ast-footer-copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.8rem;
}
.ast-footer-copyright p { margin-bottom: 0; }
/* FORCE GOLD ACCENTS */
.ast-scroll-top {
    background-color: #d4a373 !important; /* Gold Scroll Button */
    border-radius: 50%; /* Make it round/modern */
}
.ast-scroll-top:hover {
    background-color: #000 !important; /* Black on hover */
}

/* SEARCH ICON & CART ICON */
.ast-header-search .ast-icon, 
.ast-site-header-cart .ast-icon {
    color: #ffffff !important; /* Force icons white on transparent header */
}
/* CLEAN FOOTER */
.ast-footer-copyright {
    display: none !important; /* Hides default footer text */
}

.site-footer {
    background-color: #000 !important; /* Pitch Black */
    color: #999;
}

/* Custom Footer Text (We will inject this below) */
.custom-footer-credit {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #666;
    border-top: 1px solid #222;
}
/* PRODUCT GRID LUXURY SPACING */
ul.products {
    display: grid !important;
    grid-gap: 30px !important; /* Bigger gap between items */
}

.woocommerce ul.products li.product {
    margin: 0 !important; /* Reset default margins */
    width: 100% !important;
}

/* Remove "Add to Cart" button on grid (Cleaner look) */
ul.products li.product .button {
    display: none; /* Hide button initially */
}

/* Show button ONLY on hover (Interactive) */
ul.products li.product:hover .button {
    display: block;
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MOBILE MENU ICON FIX */
.ast-mobile-menu-trigger-fill {
    fill: #ffffff !important; /* White icon for Transparent Header */
}
.ast-builder-menu-mobile .main-header-menu {
    background-color: #000 !important; /* Black background when menu opens */
}

/* =========================================
   SINGLE PRODUCT PAGE POLISH
   ========================================= */

/* 1. Hide the "Meta" Clutter (SKU, Category links) */
.product_meta {
    display: none !important;
}

/* 2. Product Title - Make it Elegant */
.product_title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem !important;
    margin-bottom: 10px !important;
    color: #111;
}

/* 3. Price - Large and Clear */
p.price {
    font-size: 1.5rem !important;
    color: #d4a373 !important; /* Gold */
    font-weight: 700;
    margin-bottom: 20px !important;
}

/* 4. "Add to Cart" Button - The "Buy Now" look */
.single_add_to_cart_button {
    background-color: #000 !important; /* Black initially */
    color: #fff !important;
    width: 100%; /* Full Width */
    padding: 15px 0 !important;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 0 !important; /* Sharp corners */
    margin-top: 10px;
}

.single_add_to_cart_button:hover {
    background-color: #d4a373 !important; /* Gold on Hover */
    transform: translateY(-2px); /* Slight lift */
}

/* 5. Clean up the "Tabs" (Description/Reviews) */
.woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #ddd !important;
    background: transparent !important;
    padding: 0 !important;
}

.woocommerce-tabs ul.tabs li {
    border: none !important;
    background: transparent !important;
}

.woocommerce-tabs ul.tabs li a {
    font-family: 'Playfair Display', serif;
    font-weight: 700 !important;
    color: #999 !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #000 !important;
    border-bottom: 2px solid #d4a373 !important; /* Gold underline for active tab */
}

/* =========================================
   CHECKOUT & CART POLISH
   ========================================= */

/* 1. CART PAGE - Modern Look */
.woocommerce-cart-form {
    background: #fdfdfd;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Update Cart Button */
button[name="update_cart"] {
    background: #333 !important;
    color: #fff !important;
    border-radius: 0 !important;
}

/* 2. CHECKOUT - "Your Order" Box */
#order_review {
    background-color: #f9f9f9;
    padding: 30px;
    border: 1px solid #e5e5e5;
}

#order_review_heading {
    font-family: 'Playfair Display', serif;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* 3. PAYMENT BOX - Clean up */
#payment {
    background: #fff !important;
    border-radius: 4px;
}

.wc_payment_method label {
    font-weight: 700 !important;
    color: #333;
}

/* 4. THE FINAL BUTTON (Conversion Critical) */
#place_order {
    background-color: #d4a373 !important; /* Akshanta Gold */
    color: #fff !important;
    font-size: 1.2rem !important;
    padding: 20px !important;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    border-radius: 0 !important;
    transition: all 0.3s ease;
}

#place_order:hover {
    background-color: #000 !important; /* Black on Hover */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =========================================
   LUXURY FOOTER STYLING
   ========================================= */

/* 1. The Container */
.site-footer {
    background-color: #0b0b0b !important; /* Premium Off-Black */
    padding-top: 60px;
    padding-bottom: 30px;
    border-top: 4px solid #d4a373; /* Gold Top Border */
}

/* 2. Widget Titles (The Headers) */
.footer-widget-area h2, 
.footer-widget-area h3, 
.footer-widget-area .widget-title {
    font-family: 'Playfair Display', serif; /* Luxury Font */
    color: #ffffff !important;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

/* 3. Links */
.footer-widget-area ul li a {
    color: #999 !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    line-height: 2.2; /* Spacing for readability */
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-widget-area ul li a:hover {
    color: #d4a373 !important; /* Gold on Hover */
    padding-left: 5px; /* Subtle movement effect */
}

/* 4. Remove Bullet Points */
.footer-widget-area ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/* --- COLLECTION CAPTIONS (The Fix) --- */
.silo-box {
    position: relative; /* Needed to trap the text inside */
    display: block;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0 !important; /* Removes huge space */
}

.silo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); /* Dark fade */
    text-align: center;
    transition: all 0.3s ease;
}

.silo-caption h3 {
    color: #fff !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
}

.silo-caption p {
    color: #d4a373 !important; /* Gold text */
    font-size: 0.8rem !important;
    margin: 5px 0 0 0 !important;
    font-weight: 700;
}

/* Hover Effect: Text moves up slightly */
.silo-box:hover .silo-caption {
    padding-bottom: 30px;
}

/* --- COLLECTION CAPTION FIX --- */
.silo-box {
    position: relative; /* Traps the text inside the image box */
    display: block;
    overflow: hidden;
    margin-bottom: 0 !important; /* Removes the Huge Gap */
    border-radius: 4px;
}

.silo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Removes tiny bottom gap */
    transition: transform 0.5s ease;
}

.silo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 10px 15px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); /* Dark Fade */
    text-align: center;
    z-index: 2;
}

.silo-caption h3 {
    color: #fff !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.silo-caption p {
    color: #d4a373 !important; /* Gold */
    font-size: 0.85rem;
    margin: 5px 0 0 0;
    font-weight: bold;
}

/* Hover Zoom Effect */
.silo-box:hover img {
    transform: scale(1.05);
}