/*
Theme Name: Hello Elementor Child
Description: Black Drop Premium Dark Luxury Theme (Aman / Velocity Black Style)
Author: AI Concierge
Template: hello-elementor
Version: 3.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Inter:wght@300;400;500&display=swap');

:root {
    --bg-color: #050505;
    /* Profound Dark */
    --surface-color: #0A0A0A;
    --border-color: #222222;
    --text-primary: #FFFFFF;
    --text-muted: #A0A0A0;
    --accent-gold: #D4AF37;
    /* Refined Gold */
    --accent-hover: #F3E5AB;
    --font-heading: 'Cinzel', serif;
    --font-base: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-base) !important;
    line-height: 1.8 !important;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.05em;
}

/* Base Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading) !important;
    color: var(--text-primary) !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    margin: 0 0 20px 0;
}

p {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    font-weight: 300;
}

a {
    color: var(--accent-gold) !important;
    text-decoration: none !important;
    transition: color 0.4s ease !important;
}

a:hover {
    color: var(--text-primary) !important;
}

/* General Layout Fixes for Elementor */
.elementor-section-wrap,
.elementor-container,
.page-content {
    background-color: transparent !important;
}

/* NEW LUXURY COMPONENT STRUCTURES */

/* 1. Full Bleed Hero */
.luxury-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Parallax effect */
    z-index: 1;
}

/* Dark overlay for text readability */
.luxury-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -1;
}

.luxury-hero-content {
    max-width: 800px;
    padding: 0 40px;
    animation: fadeIn 2s ease-out forwards;
}

.luxury-title {
    font-size: 4rem !important;
    letter-spacing: 0.4em !important;
    margin-bottom: 10px !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.luxury-subtitle {
    font-family: var(--font-base) !important;
    font-size: 1.1rem !important;
    color: var(--accent-gold) !important;
    letter-spacing: 0.3em !important;
    text-transform: uppercase;
    margin-bottom: 30px !important;
}

.luxury-divider {
    width: 1px;
    height: 60px;
    background-color: var(--accent-gold);
    margin: 0 auto 30px;
}

.luxury-description {
    font-size: 1rem !important;
    color: #DDDDDD !important;
    line-height: 2 !important;
    margin-bottom: 50px !important;
}

/* Hero Actions & Buttons */
.luxury-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.button,
.wpcf7-submit {
    display: inline-block !important;
    padding: 16px 45px !important;
    font-family: var(--font-base) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    transition: all 0.5s ease !important;
    text-align: center !important;
    background: transparent !important;
}

.button-outline {
    border: 1px solid var(--text-primary) !important;
    color: var(--text-primary) !important;
}

.button-outline:hover {
    background: var(--text-primary) !important;
    color: #000 !important;
}

.button-link {
    border: 1px solid var(--accent-gold) !important;
    color: var(--accent-gold) !important;
}

.button-link:hover {
    background: var(--accent-gold) !important;
    color: #000 !important;
}

/* 2. Content Sections */
.luxury-section {
    padding: 120px 20px;
    background-color: var(--surface-color);
    text-align: center;
}

.luxury-container {
    max-width: 900px;
    margin: 0 auto;
}

.luxury-container h2 {
    font-size: 2.2rem !important;
    margin-bottom: 30px !important;
    color: var(--accent-gold) !important;
}

.luxury-container p {
    font-size: 1.1rem !important;
    line-height: 2.2 !important;
    margin-bottom: 50px !important;
}

/* Single Product & My Account */
.product_title {
    font-size: 2.5rem !important;
    margin-bottom: 20px !important;
}

div.product .price {
    font-size: 1.5rem !important;
    color: var(--accent-gold) !important;
    margin-bottom: 20px !important;
}

.woocommerce-tabs {
    border-top: 1px solid var(--border-color) !important;
    margin-top: 50px !important;
    padding-top: 30px !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.woocommerce-MyAccount-navigation ul li a {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    text-transform: uppercase;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    color: var(--accent-gold) !important;
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 15px;
}

.woocommerce-MyAccount-content {
    background: var(--surface-color);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.woocommerce-page .page-title {
    margin-top: 40px;
    font-size: 2rem !important;
    color: var(--accent-gold) !important;
    text-align: center;
}

.woocommerce form.login,
.woocommerce form.register {
    border: 1px solid var(--border-color) !important;
    padding: 40px !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* 3. Subpage Headers (Contact / Concierge) */
.luxury-page-header {
    text-align: center;
    padding: 180px 20px 80px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.luxury-page-header h1 {
    font-size: 3rem !important;
    color: var(--accent-gold) !important;
}

.luxury-page-header p {
    max-width: 600px;
    margin: 30px auto 0;
    font-size: 1rem !important;
}

/* 4. Form Styling (Contact Form 7) */
.contact-form-container {
    padding: 80px 20px;
}

.wpcf7 {
    max-width: 700px;
    margin: 0 auto;
    background: transparent;
}

.wpcf7 p {
    margin-bottom: 30px !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-base) !important;
    font-size: 1rem !important;
    padding: 15px 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    transition: border-color 0.4s ease, box-shadow 0.4s ease !important;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none !important;
    border-bottom: 1px solid var(--accent-gold) !important;
    box-shadow: 0 1px 0 var(--accent-gold) !important;
}

textarea {
    min-height: 150px;
}

.wpcf7-submit {
    border: 1px solid var(--accent-gold) !important;
    color: var(--accent-gold) !important;
    width: 100% !important;
    margin-top: 40px !important;
}

.wpcf7-submit:hover {
    background: var(--accent-gold) !important;
    color: #000 !important;
}

/* 5. Header / Navigation Overrides */
.site-header {
    background-color: var(--bg-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    position: sticky !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 20px 50px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.home .site-header {
    background-color: transparent !important;
    border-bottom: none !important;
    position: absolute !important;
    padding: 30px 50px !important;
}

.site-title a {
    color: var(--text-primary) !important;
    font-family: var(--font-heading) !important;
    font-size: 1.5rem !important;
    letter-spacing: 0.3em !important;
}

.site-navigation ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-navigation ul li a {
    color: var(--text-primary) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide Default WooCommerce wrappers if they interfere */
.woocommerce-breadcrumb,
.storefront-sorting,
.product_meta {
    display: none !important;
}

/* Hide Generic WP Page Headers so they don't duplicate my custom headers */
.page-header {
    display: none !important;
}

/* WooCommerce Auto Update Cart Feature */
button[name="update_cart"] {
    display: none !important;
}

/* Enhanced Add to Cart Buttons */
.add_to_cart_button,
.single_add_to_cart_button,
.wc-block-cart__submit-button,
.checkout-button {
    display: inline-block !important;
    padding: 12px 30px !important;
    border: 1px solid var(--accent-gold) !important;
    background: transparent !important;
    color: var(--accent-gold) !important;
    font-family: var(--font-base) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    transition: all 0.4s ease !important;
    cursor: pointer !important;
    margin-top: 15px !important;
    text-align: center !important;
    line-height: 1.5 !important;
}

.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.wc-block-cart__submit-button:hover,
.checkout-button:hover {
    background: var(--accent-gold) !important;
    color: #000 !important;
}

.added_to_cart,
.woocommerce-message a.button {
    display: inline-block !important;
    margin-top: 15px !important;
    font-size: 0.8rem !important;
    font-family: var(--font-base) !important;
    color: var(--text-primary) !important;
    text-decoration: underline !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    background: transparent !important;
    padding: 5px 10px !important;
}

.cart-contents-count {
    color: var(--accent-gold) !important;
    font-size: 0.9em;
    margin-left: 5px;
    font-weight: 500;
}

/* My Account Form Layout Fixes */
.u-columns.col2-set {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
}

.u-columns.col2-set .col-1,
.u-columns.col2-set .col-2 {
    width: 48%;
    /* Force side-by-side layout on desktop */
    max-width: none;
}

@media (max-width: 768px) {

    .u-columns.col2-set .col-1,
    .u-columns.col2-set .col-2 {
        width: 100%;
        margin-bottom: 40px;
    }
}

.woocommerce form.login,
.woocommerce form.register {
    height: 100%;
}

/* Enhanced Cart Table UI */
table.shop_table {
    border: none !important;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;
}

table.shop_table .product-remove {
    width: 80px;
    /* Prevent Remove button wrapping */
}

table.shop_table .product-name {
    width: 40%;
}

table.shop_table th {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-muted) !important;
    padding: 15px 0 !important;
}

table.shop_table td {
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 25px 0 !important;
    vertical-align: middle;
}

.product-remove a.remove {
    color: var(--accent-gold) !important;
    background: transparent !important;
    font-size: 0 !important;
    /* Hide the generic X */
    border: none !important;
}

.product-remove a.remove::before {
    content: "✖ 削除";
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

table.shop_table .cart-contents-count {
    display: none !important;
    /* Force hide any JS-injected count from the table */
}

.woocommerce-cart-form__contents .product-thumbnail img {
    max-width: 80px;
    border-radius: 4px;
}

/* ==========================================
   CHECKOUT PAGE LUXURY OVERHAUL
   ========================================== */

/* 2-Column Desktop Layout */
@media (min-width: 769px) {
    #customer_details {
        width: 55%;
        float: left;
    }

    #order_review_heading,
    #order_review {
        width: 40%;
        float: right;
    }

    .woocommerce-checkout::after {
        content: "";
        display: table;
        clear: both;
    }
}

/* Clean up the Checkout Forms */
.woocommerce-checkout form {
    margin-top: 40px;
}

.woocommerce form .form-row label {
    font-family: var(--font-base) !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em;
    color: var(--text-muted) !important;
}

/* Order Review Table */
table.shop_table.woocommerce-checkout-review-order-table {
    border: none !important;
    background: transparent !important;
}

table.shop_table.woocommerce-checkout-review-order-table th,
table.shop_table.woocommerce-checkout-review-order-table td {
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 20px 0 !important;
}

table.shop_table.woocommerce-checkout-review-order-table tfoot th {
    color: var(--accent-gold) !important;
}

table.shop_table.woocommerce-checkout-review-order-table .order-total .amount {
    font-size: 1.5rem !important;
    color: var(--accent-gold) !important;
}

/* Payment Gateway Section (Stripe) */
#payment {
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    padding: 30px !important;
}

#payment ul.payment_methods {
    border-bottom: 1px solid var(--border-color) !important;
}

#payment ul.payment_methods li {
    background: transparent !important;
}

#payment div.payment_box {
    background: transparent !important;
    color: var(--text-muted) !important;
}

#payment div.payment_box::before {
    display: none !important;
    /* Hide the little triangle pointer */
}

/* Stripe Field High-Contrast Dark Mode */
.wc-stripe-elements-field {
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    padding: 15px !important;
    border-radius: 0 !important;
}

/* Note: The Stripe plugin uses an iframe, but WC-Stripe sets the container background.
   We force the Stripe Element container to match our dark theme with white text. */
.wc-stripe-elements-field,
.wc-stripe-elements-field iframe {
    color: var(--text-primary) !important;
}

/* Place Order Button */
#place_order {
    width: 100% !important;
    padding: 20px !important;
    font-size: 1rem !important;
    background: transparent !important;
    color: var(--accent-gold) !important;
    border: 1px solid var(--accent-gold) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    margin-top: 20px !important;
    transition: all 0.4s ease !important;
}

#place_order:hover {
    background: var(--accent-gold) !important;
    color: #000 !important;
}

/* Fix for overlapping Credit Card Logos in Checkout */
#payment ul.payment_methods li label {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    line-height: 1.5 !important;
}

#payment ul.payment_methods li img {
    margin: 0 !important;
    vertical-align: middle !important;
    display: inline-block !important;
    max-height: 24px !important;
    width: auto !important;
    border-radius: 3px !important;
}

/* Ensure the radio button stays vertically aligned */
#payment ul.payment_methods li input[type="radio"] {
    margin-top: 0 !important;
    margin-right: 10px !important;
}