/* ============================================
   Maison Elixir - Deep Ocean Luxury
   Complete Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --deep-blue: #0A1F2C;
    --deep-blue-light: #132D3F;
    --deep-blue-dark: #061218;
    --gold: #D4AF37;
    --gold-light: #E8C84A;
    --gold-dark: #B8962E;
    --white: #FFFFFF;
    --mist: #F5F5F5;
    --mist-warm: #FAFAF8;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --text-light: #999999;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

/* ============================================
   Global Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--mist); }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--mist);
    -webkit-font-smoothing: antialiased;
    font-weight: 300;
    line-height: 1.7;
    font-size: 15px;
    margin: 0;
}

/* Section overlap fix */
.wp-site-blocks > * {
    margin-top: -1px !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1;
}

.wp-site-blocks > *:first-child {
    margin-top: 0 !important;
}

.wp-site-blocks > * + * {
    margin-top: -1px !important;
}

.wp-site-blocks .wp-block-group,
.wp-site-blocks .wp-block-cover {
    margin-top: -1px !important;
    margin-bottom: 0 !important;
}

.wp-block-group.alignfull,
.wp-block-cover.alignfull {
    background-clip: padding-box;
}

a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

::selection { background: var(--gold); color: var(--deep-blue); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep-blue-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ============================================
   Buttons Global
   ============================================ */
.wp-block-button__link,
button,
input[type="submit"],
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    font-family: var(--font-body) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
}

/* ============================================
   Header - Deep Ocean Style
   ============================================ */
.maison-header {
    background: linear-gradient(180deg, var(--deep-blue) 0%, rgba(10,31,44,0.95) 100%) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.maison-nav {
    padding: 18px 40px !important;
    align-items: center !important;
}

.maison-nav .wp-block-site-title a {
    font-family: var(--font-heading) !important;
    font-size: 1.4rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--gold) !important;
    font-weight: 400 !important;
}

.maison-nav .wp-block-navigation-item a {
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.7) !important;
    font-weight: 400 !important;
    padding: 8px 16px !important;
    transition: color 0.3s ease !important;
}

.maison-nav .wp-block-navigation-item a:hover {
    color: var(--gold) !important;
}

/* Header text links */
.maison-nav p a {
    color: rgba(255,255,255,0.7) !important;
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

.maison-nav p a:hover {
    color: var(--gold) !important;
}

/* Hide WooCommerce blocks in header */
.maison-header .wp-block-woocommerce-mini-cart,
.maison-header .wp-block-woocommerce-customer-account,
.maison-header [data-block-name="woocommerce/mini-cart"],
.maison-header [data-block-name="woocommerce/customer-account"],
.maison-header .wc-block-mini-cart {
    display: none !important;
}

.maison-header {
    overflow: hidden !important;
}

.maison-nav {
    background: transparent !important;
}

/* ============================================
   Hero Section - Ocean Deep
   ============================================ */
.ocean-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ocean-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--deep-blue-dark) 0%, var(--deep-blue) 50%, var(--deep-blue-light) 100%);
}

.ocean-hero__bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(212,175,55,0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(212,175,55,0.1) 0%, transparent 40%);
}

.ocean-hero__mist {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(245,245,245,0.9) 0%, rgba(245,245,245,0.5) 40%, transparent 100%);
    z-index: 2;
}

.ocean-hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
}

/* ============================================
   Share Buttons
   ============================================ */
.share-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212,175,55,0.1);
    color: var(--gold);
    transition: all 0.3s ease;
    border: 1px solid rgba(212,175,55,0.2);
    cursor: pointer;
}

.share-btn:hover {
    background: var(--gold);
    color: var(--deep-blue);
    transform: translateY(-2px);
}

/* ============================================
   Product Page - Ocean Style
   ============================================ */
.woocommerce div.product {
    background: var(--mist) !important;
    padding: 50px 0 60px !important;
}

.woocommerce div.product .product_title {
    font-family: var(--font-heading) !important;
    font-size: 2.2rem !important;
    font-weight: 400 !important;
    color: var(--deep-blue) !important;
    margin-bottom: 6px !important;
}

.woocommerce div.product .price {
    font-family: var(--font-body) !important;
    font-size: 1.15rem !important;
    color: var(--gold) !important;
    font-weight: 500 !important;
    margin-bottom: 12px !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    color: var(--text-gray) !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
    font-style: italic !important;
}

.woocommerce div.product .stock {
    font-size: 0.78rem !important;
    color: var(--gold) !important;
    margin-bottom: 12px !important;
}

/* Cart form */
.woocommerce div.product form.cart {
    display: flex !important;
    align-items: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 16px !important;
}

.woocommerce div.product form.cart .quantity {
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid rgba(212,175,55,0.3) !important;
    background: #fff !important;
    height: 46px !important;
}

.woocommerce div.product form.cart .quantity input.qty {
    width: 56px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    line-height: 46px !important;
}

.woocommerce div.product form.cart .quantity .minus,
.woocommerce div.product form.cart .quantity .plus {
    height: 46px !important;
    line-height: 46px !important;
    width: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    color: var(--deep-blue) !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    padding: 12px 24px !important;
    background: var(--gold) !important;
    color: var(--deep-blue) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.12em !important;
    height: 46px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: var(--gold-dark) !important;
    color: var(--white) !important;
}

/* Wishlist */
.woocommerce div.product .tinv-wraper.tinv-wishlist {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    float: none !important;
    position: relative !important;
    vertical-align: bottom !important;
}

.woocommerce div.product .tinvwl_add_to_wishlist_button {
    background: transparent !important;
    color: var(--deep-blue) !important;
    border: 1px solid rgba(10,31,44,0.25) !important;
    padding: 12px 18px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    white-space: nowrap !important;
    vertical-align: bottom !important;
}

.woocommerce div.product .tinvwl_add_to_wishlist_button:hover {
    background: var(--gold) !important;
    color: var(--deep-blue) !important;
    border-color: var(--gold) !important;
}

.woocommerce div.product .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text {
    font-family: var(--font-body) !important;
}

.woocommerce div.product .tinvwl-tooltip { display: none !important; }

/* Product meta */
.woocommerce div.product .product_meta {
    border-top: 1px solid rgba(212,175,55,0.2) !important;
    padding-top: 16px !important;
    margin-top: 20px !important;
    font-family: var(--font-body) !important;
    font-size: 0.78rem !important;
    color: var(--text-light) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 20px !important;
}

.woocommerce div.product .product_meta span {
    display: inline-flex !important;
    white-space: nowrap !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

.woocommerce div.product .product_meta span strong {
    font-weight: 500 !important;
    color: var(--text-gray) !important;
    margin-right: 4px !important;
}

.woocommerce div.product .product_meta a {
    color: var(--gold) !important;
}

/* Product image with white bg and soft shadow */
.woocommerce div.product .woocommerce-product-gallery {
    background: var(--white) !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(10,31,44,0.15) !important;
    position: relative !important;
}

.woocommerce div.product .woocommerce-product-gallery::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10%;
    right: 10%;
    height: 60px;
    background: radial-gradient(ellipse, rgba(10,31,44,0.1) 0%, transparent 70%);
    filter: blur(20px);
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs {
    border: none !important;
    margin-top: 30px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    border-bottom: 1px solid rgba(212,175,55,0.2) !important;
    background: transparent !important;
    display: flex !important;
    gap: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    margin: 0 !important;
    padding: 10px 20px !important;
    color: var(--text-light) !important;
    font-family: var(--font-body) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
    border-radius: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: transparent !important;
    border-bottom: 2px solid var(--gold) !important;
    color: var(--deep-blue) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--deep-blue) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
    border: none !important;
}

.woocommerce div.product .woocommerce-Tabs-panel {
    padding: 24px 0 !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce div.product .woocommerce-Tabs-panel h2 {
    font-family: var(--font-heading) !important;
    font-size: 1.3rem !important;
    font-weight: 400 !important;
    color: var(--deep-blue) !important;
}

/* Related products */
.woocommerce .related.products {
    border-top: 1px solid rgba(212,175,55,0.15) !important;
    padding-top: 30px !important;
    margin-top: 40px !important;
}

.woocommerce .related.products h2 {
    font-family: var(--font-heading) !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    font-style: italic !important;
    color: var(--deep-blue) !important;
}

/* Breadcrumbs */
.woocommerce nav.woocommerce-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.woocommerce nav.woocommerce-breadcrumb a {
    color: var(--gold);
}

/* ============================================
   Shop Page Product Cards
   ============================================ */
.product-card-wrapper {
    background: var(--white);
    border: 1px solid rgba(212,175,55,0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.product-card-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 30px;
    background: radial-gradient(ellipse, rgba(10,31,44,0.08) 0%, transparent 70%);
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card-wrapper:hover {
    border-color: rgba(212,175,55,0.3);
    box-shadow: 0 12px 40px rgba(10,31,44,0.12);
    transform: translateY(-4px);
}

.product-card-wrapper:hover::after {
    opacity: 1;
}

.product-card-image {
    overflow: hidden;
    background: var(--white);
    aspect-ratio: 1/1;
    position: relative;
}

.product-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212,175,55,0.05) 0%, transparent 70%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card-wrapper:hover .product-card-image::before {
    opacity: 1;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-wrapper:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-info {
    text-align: center;
    padding: 20px 16px 24px;
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--deep-blue);
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-tagline {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-price {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
    margin: 0 0 14px;
}

.product-card-button {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--deep-blue);
    border: 1px solid var(--deep-blue);
    padding: 10px 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.product-card-button:hover {
    background: var(--gold);
    color: var(--deep-blue);
    border-color: var(--gold);
}

/* ============================================
   Cart & Checkout
   ============================================ */
.woocommerce table.shop_table {
    border: 1px solid rgba(212,175,55,0.15) !important;
}

.woocommerce a.remove {
    color: var(--text-light) !important;
    font-size: 1.2rem !important;
}

.woocommerce a.remove:hover {
    color: var(--deep-blue) !important;
    background: transparent !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .checkout-button {
    background: var(--gold) !important;
    color: var(--deep-blue) !important;
    border: none !important;
    border-radius: 0 !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce .checkout-button:hover {
    background: var(--gold-dark) !important;
    color: var(--white) !important;
}

/* ============================================
   Forms
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
textarea,
select {
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    border: 1px solid rgba(212,175,55,0.25) !important;
    border-radius: 0 !important;
    background: #fff !important;
    padding: 12px 14px !important;
    transition: border-color 0.3s ease !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--gold) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(212,175,55,0.1) !important;
}

/* ============================================
   My Account
   ============================================ */
.woocommerce-account .woocommerce-MyAccount-navigation {
    border-right: 1px solid rgba(212,175,55,0.15);
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============================================
   Review Form
   ============================================ */
.woocommerce #review_form #respond {
    border-top: 1px solid rgba(212,175,55,0.15);
    padding-top: 24px;
}

.woocommerce #review_form #respond h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--deep-blue);
}

.woocommerce #review_form #respond input[type="submit"] {
    background: var(--gold) !important;
    color: var(--deep-blue) !important;
}

.woocommerce #review_form #respond input[type="submit"]:hover {
    background: var(--gold-dark) !important;
    color: var(--white) !important;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .maison-nav {
        padding: 14px 16px !important;
    }

    .maison-nav .wp-block-site-title a {
        font-size: 1rem !important;
    }

    .woocommerce div.product .product_title {
        font-size: 1.6rem !important;
    }

    .woocommerce div.product form.cart {
        flex-direction: column !important;
    }

    .woocommerce div.product form.cart .single_add_to_cart_button {
        width: 100% !important;
    }

    .product-card-wrapper {
        margin-bottom: 16px;
    }

    #maison-float-cart {
        bottom: 20px !important;
        right: 20px !important;
    }

    #maison-float-panel {
        width: calc(100vw - 40px) !important;
        right: 0 !important;
    }
}
