/*
Theme Name: Astra Child - Bikonic
Template: astra
Version: 1.0.0
Author: Bikonic Development
*/

/* Custom Bikonic Design Tokens */
:root {
    --bikonic-primary: #1a1a1a;
    --bikonic-accent: #c9a96e;
    --bikonic-bg: #ffffff;
    --bikonic-bg-secondary: #f5f5f5;
}

/* Typography overrides */
body {
    font-size: 18px;
    line-height: 1.6;
}

h1 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.17;
}

h2 {
    font-size: clamp(26px, 4vw, 32px);
    line-height: 1.25;
}

/* Button styling */
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: var(--bikonic-primary);
    color: #ffffff;
    border-radius: 4px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    transition: opacity 0.2s ease;
}

.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    opacity: 0.85;
    background-color: var(--bikonic-primary);
    color: #ffffff;
}

/* Accent button */
.is-style-outline .wp-block-button__link,
.wp-block-button__link.has-accent-background-color {
    background-color: var(--bikonic-accent);
    color: var(--bikonic-primary);
}

/* Section spacing */
.wp-block-group {
    padding-top: 80px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .wp-block-group {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* Dark section */
.bikonic-dark-section {
    background-color: var(--bikonic-primary);
    color: #ffffff;
}

.bikonic-dark-section h1,
.bikonic-dark-section h2,
.bikonic-dark-section h3,
.bikonic-dark-section p,
.bikonic-dark-section li {
    color: #ffffff;
}

/* Testimonial quote */
.bikonic-testimonial {
    text-align: center;
    font-style: italic;
    font-size: 1.25rem;
}

.bikonic-testimonial cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--bikonic-accent);
}

/* Price display */
.bikonic-price {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    color: var(--bikonic-primary);
}

.bikonic-price-subtext {
    font-size: 18px;
    color: #666;
}

/* Specs table */
.bikonic-specs-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.bikonic-specs-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.bikonic-specs-table td {
    padding: 12px 16px;
}

.bikonic-specs-table td:first-child {
    font-weight: 600;
    width: 40%;
}

/* Hide related products on single product */
.woocommerce .related.products {
    display: none;
}

/* Ensure focus states */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--bikonic-accent);
    outline-offset: 2px;
}

/* ── Header / Transparent Hero Overlay ────────────────────── */

/* Hide the text site-title completely — logo only */
.site-title {
    display: none;
}

/* Constrain logo in header bar */
.site-header .custom-logo-link img.custom-logo,
.site-header .site-logo-img img {
    max-height: 48px;
    width: auto;
    height: auto;
}

/* On homepage: float header over the hero image */
.home .site-header,
.home .ast-primary-header-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Invert logo colours so dark logo reads white on dark hero */
.home .site-header .custom-logo-link img.custom-logo,
.home .site-header .site-logo-img img {
    filter: invert(1);
}

/* White nav links on homepage */
.home .site-header .main-header-menu > .menu-item > a,
.home .site-header .ast-builder-menu a {
    color: #ffffff !important;
}

/* Accent hover on homepage nav */
.home .site-header .main-header-menu > .menu-item:hover > a,
.home .site-header .ast-builder-menu a:hover {
    color: var(--bikonic-accent) !important;
}

/* Better vertical alignment in header row */
.ast-primary-header-bar .ast-builder-grid-row {
    align-items: center;
}

/* Ensure site-title wrapper doesn't collapse */
.ast-site-title-wrap {
    flex-shrink: 0;
}

/* Hide the 'Home' page title on homepage */
.home .entry-header.ast-no-thumbnail,
.home .entry-header {
    display: none;
}

/* Remove gap between header and hero on homepage */
.home .site-main {
    margin-top: 0;
    padding-top: 0;
}

.home #main {
    padding-top: 0;
}

/* Tighten article spacing on homepage */
.home article {
    margin-bottom: 0;
}

/* Full-viewport hero on homepage */
.home .wp-block-cover.alignfull {
    min-height: 100vh !important;
}

/* Scrolled header background on homepage (after scrolling past hero) */
.home .site-header.bikonic-header-scrolled,
.home .site-header.bikonic-header-scrolled .ast-primary-header-bar {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(8px);
}

/* ── Product Page ─────────────────────────────────────────── */

/* View Cart button next to Add to Cart */
.bikonic-view-cart-btn {
    display: inline-block;
    margin-left: 12px;
    padding: 14px 28px;
    background-color: #ffffff;
    color: var(--bikonic-primary);
    border: 2px solid var(--bikonic-primary);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bikonic-view-cart-btn:hover {
    background-color: var(--bikonic-primary);
    color: #ffffff;
}

@media (max-width: 768px) {
    .bikonic-view-cart-btn {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ── Video poster overlay ─────────────────────────────────── */
.bikonic-video-poster {
    position: relative;
    cursor: pointer;
}

.bikonic-video-poster .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.bikonic-video-poster:hover .play-button {
    background: var(--bikonic-accent);
}

.bikonic-video-poster .play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 24px solid #fff;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}

/* ════════════════════════════════════════════════════════════
   DARK THEME OVERRIDES — Store, Product, Cart, Checkout,
   About, Contact, News, Testimonials, Terms
   Matches React design tokens: #111111 bg, #ECECEC text
   ════════════════════════════════════════════════════════════ */

/* Apply dark theme to WooCommerce pages and selected content pages */
.woocommerce-shop,
.woocommerce.single-product,
.woocommerce-cart,
.woocommerce-checkout,
.woocommerce-account,
.page-id-22,  /* About */
.page-id-23,  /* Contact */
.page-id-24,  /* Testimonials */
.page-id-25,  /* News */
.page-id-26   /* Terms */ {
    background-color: #111111;
    color: #ECECEC;
}

/* Main content area backgrounds */
.woocommerce-shop .site-content,
.woocommerce.single-product .site-content,
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content,
.woocommerce-account .site-content,
.page-id-22 .site-content,
.page-id-23 .site-content,
.page-id-24 .site-content,
.page-id-25 .site-content,
.page-id-26 .site-content {
    background-color: #111111;
}

/* Main wrapper */
.woocommerce-shop #main,
.woocommerce.single-product #main,
.woocommerce-cart #main,
.woocommerce-checkout #main,
.woocommerce-account #main,
.page-id-22 #main,
.page-id-23 #main,
.page-id-24 #main,
.page-id-25 #main,
.page-id-26 #main {
    background-color: #111111;
}

/* Article / entry backgrounds */
.woocommerce-shop article,
.woocommerce.single-product article,
.woocommerce-cart article,
.woocommerce-checkout article,
.page-id-22 article,
.page-id-23 article,
.page-id-24 article,
.page-id-25 article,
.page-id-26 article {
    background-color: #111111;
}

/* Headings */
.woocommerce-shop h1,
.woocommerce-shop h2,
.woocommerce-shop h3,
.woocommerce-shop h4,
.woocommerce.single-product h1,
.woocommerce.single-product h2,
.woocommerce.single-product h3,
.woocommerce.single-product h4,
.woocommerce-cart h1,
.woocommerce-cart h2,
.woocommerce-cart h3,
.woocommerce-checkout h1,
.woocommerce-checkout h2,
.woocommerce-checkout h3,
.woocommerce-account h1,
.woocommerce-account h2,
.woocommerce-account h3,
.page-id-22 h1,
.page-id-22 h2,
.page-id-22 h3,
.page-id-23 h1,
.page-id-23 h2,
.page-id-23 h3,
.page-id-24 h1,
.page-id-24 h2,
.page-id-24 h3,
.page-id-25 h1,
.page-id-25 h2,
.page-id-25 h3,
.page-id-26 h1,
.page-id-26 h2,
.page-id-26 h3 {
    color: #ECECEC;
}

/* Paragraphs and general text */
.woocommerce-shop p,
.woocommerce-shop li,
.woocommerce-shop td,
.woocommerce-shop th,
.woocommerce-shop label,
.woocommerce-shop span,
.woocommerce.single-product p,
.woocommerce.single-product li,
.woocommerce.single-product td,
.woocommerce.single-product th,
.woocommerce.single-product label,
.woocommerce.single-product span,
.woocommerce-cart p,
.woocommerce-cart li,
.woocommerce-cart td,
.woocommerce-cart th,
.woocommerce-cart label,
.woocommerce-cart span,
.woocommerce-checkout p,
.woocommerce-checkout li,
.woocommerce-checkout td,
.woocommerce-checkout th,
.woocommerce-checkout label,
.woocommerce-checkout span,
.page-id-22 p,
.page-id-22 li,
.page-id-22 td,
.page-id-22 th,
.page-id-23 p,
.page-id-23 li,
.page-id-23 td,
.page-id-23 th,
.page-id-24 p,
.page-id-24 li,
.page-id-25 p,
.page-id-25 li,
.page-id-26 p,
.page-id-26 li {
    color: #cccccc;
}

/* Links */
.woocommerce-shop a,
.woocommerce.single-product a,
.woocommerce-cart a,
.woocommerce-checkout a,
.page-id-22 a,
.page-id-23 a,
.page-id-24 a,
.page-id-25 a,
.page-id-26 a {
    color: #E8833A;
}

.woocommerce-shop a:hover,
.woocommerce.single-product a:hover,
.woocommerce-cart a:hover,
.woocommerce-checkout a:hover,
.page-id-22 a:hover,
.page-id-23 a:hover,
.page-id-24 a:hover,
.page-id-25 a:hover,
.page-id-26 a:hover {
    color: #D2691E;
}

/* ── WooCommerce Shop / Archive ───────────────────────────── */

.woocommerce-shop .woocommerce-products-header__title,
.woocommerce-shop .woocommerce-result-count,
.woocommerce-shop .woocommerce-ordering select {
    color: #ECECEC;
}

.woocommerce-shop .woocommerce-ordering select {
    background-color: #161616;
    border: 1px solid #222222;
    color: #ECECEC;
}

.woocommerce-shop ul.products li.product {
    background-color: #161616;
    border: 1px solid #222222;
    border-radius: 4px;
    padding: 16px;
}

.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
.woocommerce-shop ul.products li.product .price {
    color: #ECECEC;
}

.woocommerce-shop ul.products li.product .price del {
    color: #999999;
}

.woocommerce-shop ul.products li.product .price ins {
    color: #E8833A;
}

.woocommerce-shop ul.products li.product .button {
    background-color: #D2691E;
    color: #111111;
    border: none;
}

.woocommerce-shop ul.products li.product .button:hover {
    background-color: #E8833A;
    color: #111111;
}

/* ── Single Product ──────────────────────────────────────── */

.woocommerce.single-product .product .product_title {
    color: #ECECEC;
}

.woocommerce.single-product .product .price {
    color: #E8833A;
    font-size: 24px;
    font-weight: 700;
}

.woocommerce.single-product .product .woocommerce-product-details__short-description {
    color: #cccccc;
}

.woocommerce.single-product .product .woocommerce-tabs .panel {
    background-color: #161616;
    border: 1px solid #222222;
    border-radius: 4px;
    padding: 24px;
}

.woocommerce.single-product .product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #222222;
}

.woocommerce.single-product .product .woocommerce-tabs ul.tabs li a {
    color: #999999;
}

.woocommerce.single-product .product .woocommerce-tabs ul.tabs li.active a {
    color: #ECECEC;
    border-bottom: 2px solid #D2691E;
}

.woocommerce.single-product table.shop_attributes {
    border: 1px solid #222222;
}

.woocommerce.single-product table.shop_attributes th,
.woocommerce.single-product table.shop_attributes td {
    background-color: #161616;
    color: #cccccc;
    border-bottom: 1px solid #222222;
}

.woocommerce.single-product .wc-sku {
    color: #999999 !important;
}

.woocommerce.single-product .quantity .qty {
    background-color: #161616;
    border: 1px solid #222222;
    color: #ECECEC;
}

.woocommerce.single-product .single_add_to_cart_button {
    background-color: #D2691E !important;
    color: #111111 !important;
}

.woocommerce.single-product .single_add_to_cart_button:hover {
    background-color: #E8833A !important;
}

.woocommerce.single-product .bikonic-view-cart-btn {
    background-color: transparent;
    color: #ECECEC;
    border-color: #ECECEC;
}

.woocommerce.single-product .bikonic-view-cart-btn:hover {
    background-color: #ECECEC;
    color: #111111;
}

/* Product gallery thumbnails */
.woocommerce.single-product .flex-control-thumbs li img {
    border: 1px solid #222222;
}

/* ── Cart ────────────────────────────────────────────────── */

.woocommerce-cart .woocommerce-cart-form {
    background-color: #161616;
    border: 1px solid #222222;
    border-radius: 4px;
    padding: 24px;
}

.woocommerce-cart table.shop_table {
    background-color: transparent;
    border: none;
}

.woocommerce-cart table.shop_table th {
    background-color: transparent;
    color: #999999;
    border-bottom: 1px solid #222222;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.woocommerce-cart table.shop_table td {
    background-color: transparent;
    color: #cccccc;
    border-bottom: 1px solid #222222;
}

.woocommerce-cart table.shop_table .product-name a {
    color: #ECECEC;
    font-weight: 600;
}

.woocommerce-cart table.shop_table .product-price,
.woocommerce-cart table.shop_table .product-subtotal {
    color: #E8833A;
}

.woocommerce-cart .quantity .qty {
    background-color: #111111;
    border: 1px solid #222222;
    color: #ECECEC;
}

.woocommerce-cart button.button {
    background-color: #D2691E !important;
    color: #111111 !important;
}

.woocommerce-cart button.button:hover {
    background-color: #E8833A !important;
}

.woocommerce-cart button.button[name="update_cart"] {
    background-color: #222222 !important;
    color: #ECECEC !important;
}

.woocommerce-cart button.button[name="update_cart"]:hover {
    background-color: #333333 !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    background-color: #161616;
    border: 1px solid #222222;
    border-radius: 4px;
    padding: 24px;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
    color: #ECECEC;
}

.woocommerce-cart .cart-collaterals .cart_totals table th,
.woocommerce-cart .cart-collaterals .cart_totals table td {
    background-color: transparent;
    color: #cccccc;
    border-bottom: 1px solid #222222;
}

.woocommerce-cart .cart-collaterals .cart_totals .order-total th,
.woocommerce-cart .cart-collaterals .cart_totals .order-total td {
    color: #E8833A;
    font-weight: 700;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    background-color: #D2691E !important;
    color: #111111 !important;
    font-weight: 600;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    background-color: #E8833A !important;
}

/* ── Checkout ────────────────────────────────────────────── */

.woocommerce-checkout .woocommerce-checkout {
    background-color: #161616;
    border: 1px solid #222222;
    border-radius: 4px;
    padding: 24px;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #order_review_heading {
    color: #ECECEC;
}

.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper textarea,
.woocommerce-checkout .woocommerce-input-wrapper select,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    background-color: #111111;
    border: 1px solid #222222;
    color: #ECECEC;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ECECEC;
}

.woocommerce-checkout .select2-dropdown {
    background-color: #161616;
    border: 1px solid #222222;
}

.woocommerce-checkout .select2-results__option {
    color: #cccccc;
}

.woocommerce-checkout .select2-results__option--highlighted {
    background-color: #222222;
    color: #ECECEC;
}

.woocommerce-checkout table.shop_table {
    background-color: transparent;
    border: 1px solid #222222;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    background-color: transparent;
    color: #cccccc;
    border-bottom: 1px solid #222222;
}

.woocommerce-checkout table.shop_table .cart-subtotal td,
.woocommerce-checkout table.shop_table .order-total td {
    color: #E8833A;
}

.woocommerce-checkout #payment {
    background-color: #111111;
    border: 1px solid #222222;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: #161616;
    color: #cccccc;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #161616;
}

.woocommerce-checkout #place_order {
    background-color: #D2691E !important;
    color: #111111 !important;
    font-weight: 600;
}

.woocommerce-checkout #place_order:hover {
    background-color: #E8833A !important;
}

/* ── My Account ──────────────────────────────────────────── */

.woocommerce-account .woocommerce-MyAccount-navigation {
    background-color: #161616;
    border: 1px solid #222222;
    border-radius: 4px;
    padding: 16px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #222222;
    padding: 8px 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    color: #cccccc;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    color: #E8833A;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    color: #ECECEC;
    font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content {
    background-color: #161616;
    border: 1px solid #222222;
    border-radius: 4px;
    padding: 24px;
}

.woocommerce-account .woocommerce-MyAccount-content p,
.woocommerce-account .woocommerce-MyAccount-content td,
.woocommerce-account .woocommerce-MyAccount-content th {
    color: #cccccc;
}

.woocommerce-account .woocommerce-orders-table {
    border: 1px solid #222222;
}

.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td {
    background-color: transparent;
    border-bottom: 1px solid #222222;
}

/* ── General WooCommerce Notices ─────────────────────────── */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background-color: #161616;
    border: 1px solid #222222;
    color: #cccccc;
}

.woocommerce-message {
    border-left: 4px solid #D2691E;
}

.woocommerce-info {
    border-left: 4px solid #4a90d9;
}

.woocommerce-error {
    border-left: 4px solid #e74c3c;
}

/* ── Breadcrumbs ─────────────────────────────────────────── */

.woocommerce .woocommerce-breadcrumb {
    color: #999999;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #E8833A;
}

/* ── Pagination ──────────────────────────────────────────── */

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background-color: #161616;
    border: 1px solid #222222;
    color: #cccccc;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: #D2691E;
    color: #111111;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: #222222;
    color: #ECECEC;
}

/* ── WooCommerce Shop Page Title Cleanup ─────────────────── */

/* Hide the default WooCommerce "Shop" title, keep the centered "Store" heading */
.woocommerce-shop .woocommerce-products-header__title.page-title {
    display: none !important;
}

/* Hide breadcrumbs on shop page */
.woocommerce-shop .woocommerce-breadcrumb {
    display: none !important;
}

/* Product short description on shop loop */
.bikonic-shop-item-description {
    font-size: 14px;
    color: #999999;
    margin-top: 8px;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Hide breadcrumbs on shop page */
.woocommerce-shop .woocommerce-breadcrumb {
    display: none !important;
}

/* ── Cart Icon in Astra Header Navigation ────────────────── */

.bikonic-nav-cart > a {
    display: flex !important;
    align-items: center;
    gap: 4px;
    position: relative;
}

.bikonic-nav-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    background-color: #D2691E;
    color: #111111;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    padding: 0 4px;
    line-height: 1;
}

/* Hide cart icon on homepage (React app has its own) */
.home .bikonic-nav-cart {
    display: none !important;
}

/* Pre-order button in Astra nav */
.bikonic-nav-preorder > a {
    display: inline-block !important;
    background-color: transparent;
    color: #E8833A !important;
    border: 1px solid #E8833A;
    border-radius: 25px;
    padding: 8px 24px !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.bikonic-nav-preorder > a:hover {
    background-color: #E8833A !important;
    color: #111111 !important;
}
