/*
 * WordPress-only bridge styles.
 * Shared navigation/footer styles remain in https://www.duk.gr/css/shared-layout.css.
 */

:root {
    --duk-bg: #0a0a0a;
    --duk-bg-2: #121212;
    --duk-surface: #171717;
    --duk-gold: #d4af37;
    --duk-champagne: #e8d7a5;
    --duk-text: #f5f1e8;
    --duk-muted: #a8a39a;
    --duk-border: rgba(255, 255, 255, 0.09);

    /* Blocksy global palette, aligned with the static DUK website. */
    --theme-palette-color-1: #d4af37;
    --theme-palette-color-2: #e8d7a5;
    --theme-palette-color-3: #f5f1e8;
    --theme-palette-color-4: #a8a39a;
    --theme-palette-color-5: #32302b;
    --theme-palette-color-6: #1b1b1b;
    --theme-palette-color-7: #121212;
    --theme-palette-color-8: #0a0a0a;

    --theme-text-color: #a8a39a;
    --theme-link-initial-color: #d4af37;
    --theme-link-hover-color: #e8d7a5;
    --theme-link-active-color: #e8d7a5;
    --theme-selection-text-color: #0a0a0a;
    --theme-selection-background-color: #e8d7a5;
    --theme-headings-color: #f5f1e8;
    --theme-heading-color: #f5f1e8;
    --theme-heading-1-color: #f5f1e8;
    --theme-heading-2-color: #f5f1e8;
    --theme-heading-3-color: #e8d7a5;
    --theme-heading-4-color: #e8d7a5;
    --theme-heading-5-color: #e8d7a5;
    --theme-heading-6-color: #e8d7a5;
    --theme-border-color: rgba(255, 255, 255, 0.09);
    --theme-table-border-color: rgba(255, 255, 255, 0.09);

    --theme-button-text-initial-color: #0a0a0a;
    --theme-button-text-hover-color: #0a0a0a;
    --theme-button-background-initial-color: #d4af37;
    --theme-button-background-hover-color: #e8d7a5;
    --theme-button-border-hover-color: #e8d7a5;
    --theme-button-border-radius: 0;

    --theme-form-text-initial-color: #f5f1e8;
    --theme-form-text-focus-color: #f5f1e8;
    --theme-form-field-border-initial-color: rgba(232, 215, 165, 0.24);
    --theme-form-field-border-focus-color: #d4af37;
    --theme-form-field-background-initial-color: #121212;
    --theme-form-field-background-focus-color: #171717;
    --theme-form-select-background-initial-color: #121212;
    --theme-form-select-background-active-color: #171717;
    --theme-form-selection-field-initial-color: #121212;
    --theme-form-selection-field-active-color: #d4af37;
}

body {
    position: relative;
    isolation: isolate;
    color: var(--duk-muted);
    font-family: "Outfit", sans-serif;
    background:
        radial-gradient(circle at 12% 16%, rgba(212, 175, 55, 0.045), transparent 28rem),
        var(--duk-bg) !important;
}

body .site-main,
body #main,
body .ct-container-full {
    background-color: transparent !important;
}

/*
 * Breadcrumbs are intentionally disabled across the complete WordPress shop.
 * The PHP hooks prevent their normal output; these selectors also cover
 * shortcode blocks and third-party breadcrumb providers.
 */
[class*="ct-breadcrumbs"],
.woocommerce-breadcrumb,
#breadcrumbs,
.rank-math-breadcrumb,
.seopress-breadcrumbs,
#seopress-breadcrumbs,
.breadcrumb-trail,
.bcn-breadcrumb,
nav.breadcrumbs {
    display: none !important;
}

.duk-shop-starfield {
    position: fixed;
    z-index: -1;
    inset: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    opacity: 0.92;
    pointer-events: none;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    color: var(--duk-text);
    font-family: "Playfair Display", serif;
}

body a:not(#main-nav a):not(#main-footer a):not(.button):not(.wp-element-button) {
    color: var(--duk-gold);
}

body a:not(#main-nav a):not(#main-footer a):not(.button):not(.wp-element-button):hover {
    color: var(--duk-champagne);
}

body input:not([type="checkbox"]):not([type="radio"]),
body select,
body textarea {
    color: var(--duk-text);
    background-color: var(--duk-bg-2);
    border-color: rgba(232, 215, 165, 0.24);
}

body input:not([type="checkbox"]):not([type="radio"]):focus,
body select:focus,
body textarea:focus {
    border-color: var(--duk-gold);
    outline: 0;
}

body select option {
    color: var(--duk-text);
    background: var(--duk-bg-2);
}

body table,
body th,
body td {
    border-color: var(--duk-border);
}

body .woocommerce a.button:not(.restore-item),
body .woocommerce button.button,
body .woocommerce input.button,
body .wp-element-button {
    color: var(--duk-bg);
    background: var(--duk-gold);
    border-color: var(--duk-gold);
    border-radius: 0;
}

body .woocommerce a.button:not(.restore-item):hover,
body .woocommerce button.button:hover,
body .woocommerce input.button:hover,
body .wp-element-button:hover {
    color: var(--duk-bg);
    background: var(--duk-champagne);
    border-color: var(--duk-champagne);
}

/* AJAX product cards replace the add-to-cart action with a wc-forward link. */
body a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward:hover,
body a.added_to_cart.wc-forward:focus {
    color: #0a0a0a !important;
    opacity: 1 !important;
}

/*
 * Subtle motion for product images on the main shop and product-category
 * archives. Keep touch devices static and respect keyboard navigation.
 */
@media (hover: hover) and (pointer: fine) {
    body.post-type-archive-product ul.products li.product .ct-media-container,
    body.tax-product_cat ul.products li.product .ct-media-container {
        overflow: hidden;
    }

    body.post-type-archive-product ul.products li.product .ct-media-container img,
    body.tax-product_cat ul.products li.product .ct-media-container img {
        transition: transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    body.post-type-archive-product ul.products li.product:hover .ct-media-container img,
    body.post-type-archive-product ul.products li.product:focus-within .ct-media-container img,
    body.tax-product_cat ul.products li.product:hover .ct-media-container img,
    body.tax-product_cat ul.products li.product:focus-within .ct-media-container img {
        transform: scale(1.03);
    }
}

::selection {
    color: var(--duk-bg);
    background: var(--duk-champagne);
}

header[uid="id-header"],
#header,
footer#footer {
    display: none !important;
}

/* Neutralize the old global `nav` rule if the saved Blocksy Additional CSS is
   imported into the child theme. */
body nav:not(#main-nav) {
    position: static;
    top: auto;
    width: auto;
    z-index: auto !important;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 0;
    user-select: auto;
    -webkit-user-select: auto;
    transition: none;
}

body {
    padding-top: 89px;
}

body.admin-bar #main-nav {
    top: 32px;
}

#trp-floater-ls,
#cmplz-manage-consent {
    display: none !important;
}

.woocommerce-cart button[name="update_cart"],
.woocommerce-cart input[name="update_cart"] {
    display: none !important;
}

@media (max-width: 782px) {
    body.admin-bar #main-nav {
        top: 46px;
    }
}

@media (max-width: 900px) {
    body {
        padding-top: 73px;
    }
}

/* Preserve the existing centered desktop product summary until the DUK
   single-product template replaces it. */
@media (min-width: 992px) {
    .single-product .summary.entry-summary {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .single-product .summary.entry-summary .cart {
        justify-content: center;
    }
}

/* Match the static site's back-to-top control and replace Blocksy's variant. */
body .ct-back-to-top {
    display: none !important;
}

body .back-to-top {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    color: #e8d7a5;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid #d4af37;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

body .back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body .back-to-top:hover {
    color: #0a0a0a;
    background: #d4af37;
    border-color: #d4af37;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}

body .back-to-top:active {
    transform: translateY(-1px);
}

body .back-to-top:focus-visible {
    outline: 2px solid #e8d7a5;
    outline-offset: 4px;
}

body .back-to-top svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

body .back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    body .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 44px;
        height: 44px;
    }
}

/* Checkout form controls. */
.woocommerce-checkout input[type="checkbox"] {
    display: inline-grid;
    place-content: center;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    padding: 0;
    color: #0a0a0a;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    background: #121212 !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.woocommerce-checkout input[type="checkbox"]:checked {
    background: #d4af37 !important;
    border-color: #d4af37 !important;
}

.woocommerce-checkout input[type="checkbox"]:checked::before {
    content: "";
    width: 8px;
    height: 4px;
    border-bottom: 2px solid #0a0a0a;
    border-left: 2px solid #0a0a0a;
    transform: rotate(-45deg) translate(1px, -1px);
}

/* WooCommerce notices and undo action. */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    color: #f4f7f6 !important;
    font-family: "Outfit", sans-serif !important;
    letter-spacing: 0.05em;
    background: #0a1128 !important;
    border-top-color: #d4af37 !important;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.woocommerce-info a,
.woocommerce-message a,
.woocommerce-error a {
    color: #d4af37 !important;
    font-size: 0.85em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.woocommerce-info a:hover,
.woocommerce-message a:hover,
.woocommerce-error a:hover {
    opacity: 0.8;
}

.woocommerce-info a.button,
.woocommerce-message a.button,
.woocommerce-error a.button {
    color: #0a0a0a !important;
    background: #d4af37 !important;
    border-color: #d4af37 !important;
    text-decoration: none !important;
    opacity: 1;
}

.woocommerce-info a.button:hover,
.woocommerce-message a.button:hover,
.woocommerce-error a.button:hover {
    color: #0a0a0a !important;
    background: #e8d7a5 !important;
    border-color: #e8d7a5 !important;
    opacity: 1;
}

.woocommerce-info::before,
.woocommerce-message::before {
    color: #d4af37 !important;
}

.woocommerce-message .restore-item {
    position: relative;
    z-index: 0;
    display: inline-block;
    margin-left: 12px;
    padding: 12px 24px;
    overflow: hidden;
    color: #e8d7a5 !important;
    font-family: "Outfit", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-decoration: none !important;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid #d4af37;
    transition: color 0.35s ease, box-shadow 0.35s ease;
}

.woocommerce-message .restore-item::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: #d4af37;
    transform: translateX(-101%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.woocommerce-message .restore-item:hover {
    color: #0a0a0a !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.woocommerce-message .restore-item:hover::before {
    transform: translateX(0);
}

/* WooCommerce account area. */
.woocommerce-account,
.woocommerce-account p,
.woocommerce-account span,
.woocommerce-account label,
.woocommerce-account legend {
    color: #f5f1e8 !important;
    font-family: "Outfit", sans-serif !important;
}

.woocommerce-account p:not([class]),
.woocommerce-account .woocommerce-MyAccount-content p {
    color: #a8a39a !important;
}

.woocommerce-account [class*="header"],
.woocommerce-account [class*="title-bar"],
.woocommerce-account .account-page-title,
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account [style*="background-color"] {
    margin-bottom: 30px !important;
    color: #e8d7a5 !important;
    font-family: "Playfair Display", serif !important;
    letter-spacing: 0.1em !important;
    text-align: center !important;
    background: transparent !important;
    border: 0 !important;
}

.woocommerce-account input.input-text,
.woocommerce-account select,
.woocommerce-account textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    color: #f5f1e8 !important;
    font-family: "Outfit", sans-serif !important;
    font-size: 0.85rem !important;
    background: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    transition: border-color 0.3s ease !important;
}

.woocommerce-account input.input-text:focus {
    border-color: #d4af37 !important;
    outline: 0 !important;
}

.woocommerce-account .button,
.woocommerce-account button[type="submit"] {
    padding: 14px 28px !important;
    color: #e8d7a5 !important;
    font-family: "Outfit", sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase;
    background: transparent !important;
    border: 1px solid #d4af37 !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.woocommerce-account .button:hover,
.woocommerce-account button[type="submit"]:hover {
    color: #0a0a0a !important;
    background: #d4af37 !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2) !important;
}

body.woocommerce-account {
    padding-top: 120px !important;
    background:
        radial-gradient(circle at 12% 16%, rgba(212, 175, 55, 0.045), transparent 28rem),
        #0a0a0a !important;
}

body.woocommerce-account #main-nav .duk-cart-count {
    color: #0a0a0a !important;
}

body.woocommerce-account .ct-container {
    margin-top: 40px !important;
}

.woocommerce-MyAccount-navigation {
    position: relative;
    z-index: 10;
    float: none !important;
    width: 100% !important;
    margin-top: 100px !important;
    margin-bottom: 40px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: inline-block !important;
    padding: 10px 20px !important;
    color: #a8a39a !important;
    font-family: "Outfit", sans-serif !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.15em !important;
    text-decoration: none !important;
    text-transform: uppercase;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 2px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.woocommerce-MyAccount-navigation ul li:hover a,
.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #e8d7a5 !important;
    background: #121212 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.woocommerce-MyAccount-navigation ul li a::before,
.woocommerce-MyAccount-navigation ul li a svg {
    color: #d4af37 !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    color: #f5f1e8 !important;
}
