/*
 Theme Name:   Astra Child
 Theme URI:    http://urbanmood.sg/
 Description:  A custom child theme for Astra to clone urbanmood.sg
 Author:       Antigravity
 Author URI:   https://google.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* =Theme customization starts here
------------------------------------------------------- */

:root {
    --primary-color: #000000;
    --accent-color: #0047BA;
    --bg-light: #F4F4F4;
    --announcement-bg: #5E6E76;
    --text-main: #333333;
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-top: 0;
}

/* 1. Announcement Bar */
.um-announcement-bar {
    background: var(--announcement-bg);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.um-announcement-bar a {
    color: inherit;
    text-decoration: underline;
}

/* 2. Main Header */
.um-main-header {
    background: var(--white);
    border-bottom: 2px solid #000;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.um-header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.um-header-logo {
    flex: 1;
    text-align: center;
}

.um-header-logo .text-logo {
    display: inline-block;
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-decoration: none;
    line-height: 1;
}

.um-header-search, .um-header-actions {
    flex: 1;
    display: flex;
    align-items: center;
}

.um-header-actions {
    justify-content: flex-end;
    gap: 25px;
}

.um-header-search .search-text, .action-item {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--primary-color);
    cursor: pointer;
}

.icon { margin-right: 8px; font-size: 16px; }

/* Nav Row */
.um-header-nav-row {
    background: #fff;
    padding-bottom: 10px;
}

.um-main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.um-main-menu li a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    position: relative;
    padding: 8px 0;
    display: block;
}

.um-main-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.um-main-menu li a:hover::after {
    width: 100%;
}

/* Mega Menu CSS Overlay */
.um-mega-menu-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 2px solid #000;
    z-index: 999;
    padding: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.has-megamenu:hover .um-mega-menu-overlay,
.um-mega-menu-overlay:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* 3. Hero / Banner Sections */
.um-hero-slide {
    height: 85vh;
    background-size: cover;
    background-position: center;
}

.um-hero-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 60px;
    max-width: 500px;
    margin-left: 100px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.um-hero-card .subtitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 20px;
}

.um-hero-card h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 40px; }

.um-hero-card .cta-button {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 18px 40px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.3s;
}
.um-hero-card .cta-button:hover { background: #333; }

/* 4. Product Matrix (Home & Archive) */
.um-product-grid {
    display: grid;
    gap: 40px 30px;
    margin: 60px 0;
}

/* Home 5 columns, Archive 4 columns */
.site-main .um-product-grid { grid-template-columns: repeat(5, 1fr); }
.um-archive-page .um-product-grid { grid-template-columns: repeat(4, 1fr); }

.um-product-card {
    background: #fff;
    transition: transform 0.3s;
}

.um-product-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f4f4f4;
    position: relative;
}

.um-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }

.um-product-card:hover .um-product-image img { transform: scale(1.08); }

/* Category Page Specific Hover Interactions */
.um-product-card.archive-card:hover .um-quick-view-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.um-product-card.archive-card:hover .um-add-cart-overlay {
    transform: translateY(0) !important;
}

.um-product-info h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}

.um-product-info .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-color);
}

/* 5. Hotspots */
.um-hotspot {
    position: absolute;
    width: 28px; height: 28px;
    background: rgba(0,0,0,0.85); color: #fff; border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center; z-index: 10; cursor: pointer;
}

.um-hotspot .icon { font-size: 12px; margin: 0; }

.um-hotspot::after {
    content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.5); animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* 6. Single Product Page Refinements */
.um-single-product-container .price {
    font-family: var(--font-heading);
}

.um-accordion .icon {
    font-size: 18px;
    transition: transform 0.3s;
}

.um-accordion.active .icon {
    transform: rotate(180deg);
}

/* Related Products Grid - Override WooCommerce */
.um-related-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.um-related-products .product .button {
    display: none;
}
.um-related-products .product:hover .button {
    display: block;
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 10px;
    padding: 10px 20px;
    border-radius: 20px;
    opacity: 0.9;
}

/* 7. Utility */
.ast-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Typography refinements */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,700;1,900&display=swap');

/* Webkit scrollbar for premium touch */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #000; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #333; }
