/**********************
   RESET BASE
**********************/
.woocommerce * {
    box-sizing: border-box;
    font-family: inherit;
    box-sizing: border-box;
    font-family: inherit;   
}

.woocommerce a {
    text-decoration: none;
    color: inherit;
}

.woocommerce ul,
.woocommerce li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/**********************
   SHOP GRID (archive-product)
**********************/
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin: 40px 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding-bottom: 15px;
    border-radius: 4px;
    text-align: left;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/**********************
   PRODUCT TITLE + TEXT
**********************/
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 600;
    padding: 0 5px;
}

.woocommerce ul.products li.product .price {
    margin-top: 12px;
    padding: 0 5px;
    font-size: 18px;
    font-weight: 500;
}

/**********************
   BULLET LIST LIKE MOCKUP
**********************/
.woocommerce ul.products li.product .product-details {
    margin-top: 15px;
    padding: 0 5px;
}

.woocommerce ul.products li.product .product-details ul {
    margin-top: 10px;
    padding-left: 20px;
}

.woocommerce ul.products li.product .product-details li {
    list-style: disc;
    margin-bottom: 6px;
    font-size: 16px;
}

/**********************
   SINGLE PRODUCT PAGE
**********************/
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .woocommerce div.product {
        grid-template-columns: 1fr;
    }
}

/******** IMAGE ********/
.woocommerce div.product div.images img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/******** SUMMARY (right side) ********/
.woocommerce div.product .summary {
    padding-top: 10px;
}

.woocommerce div.product .product_title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.woocommerce div.product .price {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.woocommerce div.product form.cart {
    margin-bottom: 25px;
}

.woocommerce div.product .single_add_to_cart_button {
    background: #4c2eff;
    color: #fff;
    padding: 14px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.woocommerce div.product .single_add_to_cart_button:hover {
    background: #371ae6;
}

/**********************
   RELATED PRODUCTS
**********************/
.woocommerce .related.products h2 {
    font-size: 24px;
    margin-top: 60px;
    margin-bottom: 20px;
    font-weight: 700;
}

.woocommerce .related ul.products {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/**********************
   SALE BADGE
**********************/
.woocommerce span.onsale {
    background: #c6b501;
    color: #fff;
    padding: 7px 10px;
    font-size: 14px;
    border-radius: 50%;
    top: 10px;
    left: 10px;
}

/**********************
   Apple Pay / Stripe button
**********************/
.wc-stripe-product-pay-button,
.apple-pay-button {
    margin-top: 25px;
    width: 100% !important;
}

.apple-pay-button {
    border-radius: 6px;
}

/**********************
   SEARCH BAR (categorie)
**********************/
.woocommerce-product-search input.search-field {
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
}

.woocommerce-product-search button {
    background: #000;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.woocommerce-product-search {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none !important;
}

/* Step 8 - Lightweight seller box on single product page */
.tt-light-seller-box {
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    background: #ffffff;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tt-light-seller-box__label {
    font-size: 13px;
    opacity: 0.7;
}

.tt-light-seller-box__name {
    font-size: 15px;
}

.tt-light-seller-box__link {
    margin-left: auto;
    font-size: 13px;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 640px) {
    .tt-light-seller-box {
        display: block;
    }

    .tt-light-seller-box__label,
    .tt-light-seller-box__name,
    .tt-light-seller-box__link {
        display: block;
        margin: 4px 0;
    }
}

/**********************
   STEP 9 — WooCommerce Account scoped layout
   Moved out from global style.css to avoid touching Dokan/dashboard/plugin internals.
**********************/
body.woocommerce-account {
    background: var(--bg, #000000);
    color: var(--text, #ffffff);
}

body.woocommerce-account .woocommerce {
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px;
    margin: 48px auto 80px;
    padding: 0;
    color: #111827;
}

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

body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .acct-card,
body.woocommerce-account form.login,
body.woocommerce-account form.register,
body.woocommerce-account form.woocommerce-EditAccountForm {
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 280px;
    float: left;
    padding: 16px;
    margin-right: 28px;
}

body.woocommerce-account .woocommerce-MyAccount-content {
    width: calc(100% - 308px);
    float: right;
    min-height: 420px;
    padding: 32px;
}

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

body.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
    padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 13px 15px;
    border-radius: 14px;
    color: #111827;
    font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background: #111827;
    color: #ffffff;
}

body.woocommerce-account .woocommerce-MyAccount-content h1,
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3,
body.woocommerce-account .woocommerce-MyAccount-content p,
body.woocommerce-account .woocommerce-MyAccount-content label,
body.woocommerce-account .woocommerce-MyAccount-content li,
body.woocommerce-account .woocommerce-MyAccount-content td,
body.woocommerce-account .woocommerce-MyAccount-content th,
body.woocommerce-account .woocommerce-MyAccount-content span {
    color: #111827;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
    color: #111827;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.woocommerce-account input[type="text"],
body.woocommerce-account input[type="email"],
body.woocommerce-account input[type="password"],
body.woocommerce-account input[type="tel"],
body.woocommerce-account input[type="url"],
body.woocommerce-account textarea,
body.woocommerce-account select {
    width: 100%;
    min-height: 44px;
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-radius: 14px;
    padding: 10px 13px;
    box-shadow: none;
}

body.woocommerce-account input:focus,
body.woocommerce-account textarea:focus,
body.woocommerce-account select:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.10);
}

body.woocommerce-account .button,
body.woocommerce-account button,
body.woocommerce-account input[type="submit"] {
    background: #111827;
    color: #ffffff;
    border: 1px solid #111827;
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 800;
    box-shadow: none;
}

body.woocommerce-account .button:hover,
body.woocommerce-account button:hover,
body.woocommerce-account input[type="submit"]:hover {
    background: #ffffff;
    color: #111827;
}

body.woocommerce-account table.shop_table,
body.woocommerce-account table.woocommerce-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 18px;
    overflow: hidden;
}

body.woocommerce-account table.shop_table th,
body.woocommerce-account table.woocommerce-orders-table th {
    background: #f8fafc;
    color: #111827;
    font-weight: 800;
}

body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td,
body.woocommerce-account table.woocommerce-orders-table th,
body.woocommerce-account table.woocommerce-orders-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    color: #111827;
}

@media (max-width: 900px) {
    body.woocommerce-account .woocommerce {
        width: min(100% - 24px, 100%);
        margin-top: 28px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation,
    body.woocommerce-account .woocommerce-MyAccount-content {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 18px;
    }
}

@media (max-width: 640px) {
    body.woocommerce-account .woocommerce-MyAccount-content,
    body.woocommerce-account .woocommerce-MyAccount-navigation {
        border-radius: 18px;
        padding: 18px;
    }

    body.woocommerce-account table.shop_table,
    body.woocommerce-account table.woocommerce-orders-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ============================================================
   FIX DESCRIZIONI PRODOTTO — TESTO SU SFONDO SCURO
   Le descrizioni incollate da Word/Pages possono contenere
   style="color:#000000". Queste regole garantiscono il contrasto
   nelle tab della scheda prodotto senza toccare My Account.
   ============================================================ */
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel p,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel span,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel li,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel ul,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel ol,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel strong,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel b,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel em,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h1,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h3,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h4,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h5,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h6 {
    color: #ffffff !important;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel a:not(.button) {
    color: #ffffff !important;
}

/* Override mirato anche per markup con colori inline. */
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel [style*="color"] {
    color: #ffffff !important;
}

/* ============================================================
   [TT-FIX popup account 2026-09-07]
   Rende leggibili Login/Registrazione WooCommerce anche quando
   il form viene mostrato fuori dalla pagina My Account, ad esempio
   in popup/modal o contenitori personalizzati.
============================================================ */
body:not(.woocommerce-account) #customer_login {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 980px;
    margin: 0;
    padding: 0;
}

body:not(.woocommerce-account) #customer_login .u-column1,
body:not(.woocommerce-account) #customer_login .u-column2,
body:not(.woocommerce-account) #customer_login .col-1,
body:not(.woocommerce-account) #customer_login .col-2 {
    background: #0f1017 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 24px !important;
    padding: 28px !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28) !important;
    color: #ffffff !important;
}

body:not(.woocommerce-account) #customer_login h2,
body:not(.woocommerce-account) #customer_login h3,
body:not(.woocommerce-account) #customer_login p,
body:not(.woocommerce-account) #customer_login label,
body:not(.woocommerce-account) #customer_login span,
body:not(.woocommerce-account) #customer_login small,
body:not(.woocommerce-account) #customer_login strong {
    color: #ffffff !important;
}

body:not(.woocommerce-account) #customer_login h2 {
    margin: 0 0 18px !important;
    font-size: 30px !important;
    line-height: 1.1 !important;
}

body:not(.woocommerce-account) #customer_login .form-row {
    margin-bottom: 18px !important;
}

body:not(.woocommerce-account) #customer_login label {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.92) !important;
}

body:not(.woocommerce-account) #customer_login input[type="text"],
body:not(.woocommerce-account) #customer_login input[type="email"],
body:not(.woocommerce-account) #customer_login input[type="password"],
body:not(.woocommerce-account) #customer_login input[type="tel"],
body:not(.woocommerce-account) #customer_login input[type="url"] {
    width: 100% !important;
    min-height: 56px !important;
    padding: 14px 18px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    background: #08090d !important;
    color: #ffffff !important;
    font-size: 16px !important;
    outline: none !important;
    box-shadow: none !important;
}

body:not(.woocommerce-account) #customer_login input::placeholder {
    color: rgba(255,255,255,0.45) !important;
    opacity: 1 !important;
}

body:not(.woocommerce-account) #customer_login input:focus {
    border-color: #5c4bff !important;
    box-shadow: 0 0 0 3px rgba(92,75,255,0.22) !important;
}

body:not(.woocommerce-account) #customer_login .required {
    color: #8f7dff !important;
}

body:not(.woocommerce-account) #customer_login .button,
body:not(.woocommerce-account) #customer_login button,
body:not(.woocommerce-account) #customer_login input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    padding: 0 22px !important;
    border: none !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #5b3df5 0%, #7b5cff 100%) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 10px 24px rgba(92,75,255,0.28) !important;
}

body:not(.woocommerce-account) #customer_login .button:hover,
body:not(.woocommerce-account) #customer_login button:hover,
body:not(.woocommerce-account) #customer_login input[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 14px 28px rgba(92,75,255,0.32) !important;
}

body:not(.woocommerce-account) #customer_login .lost_password {
    margin-top: 14px !important;
}

body:not(.woocommerce-account) #customer_login .lost_password a,
body:not(.woocommerce-account) #customer_login a {
    color: #b7adff !important;
}

body:not(.woocommerce-account) #customer_login .lost_password a:hover,
body:not(.woocommerce-account) #customer_login a:hover {
    color: #ffffff !important;
}

body:not(.woocommerce-account) #customer_login .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body:not(.woocommerce-account) #customer_login .woocommerce-form-login__rememberme input,
body:not(.woocommerce-account) #customer_login input[type="checkbox"],
body:not(.woocommerce-account) #customer_login input[type="radio"] {
    width: auto !important;
    min-height: auto !important;
    accent-color: #5c4bff !important;
}

@media (max-width: 768px) {
    body:not(.woocommerce-account) #customer_login {
        grid-template-columns: 1fr !important;
    }

    body:not(.woocommerce-account) #customer_login .u-column1,
    body:not(.woocommerce-account) #customer_login .u-column2,
    body:not(.woocommerce-account) #customer_login .col-1,
    body:not(.woocommerce-account) #customer_login .col-2 {
        padding: 22px 18px !important;
        border-radius: 20px !important;
    }

    body:not(.woocommerce-account) #customer_login h2 {
        font-size: 24px !important;
    }
}

/* Popup login richiesto su cart/checkout: contrasto e ingombri coerenti */
.tt-login-popup-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: rgba(0,0,0,0.72) !important;
    backdrop-filter: blur(6px);
}

.tt-login-popup-box {
    position: relative !important;
    width: min(560px, 100%) !important;
    padding: 34px 32px 30px !important;
    border-radius: 24px !important;
    background: #0f1017 !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    box-shadow: 0 28px 90px rgba(0,0,0,0.55) !important;
    color: #ffffff !important;
}

.tt-login-popup-box h3,
.tt-login-popup-box p {
    color: #ffffff !important;
}

.tt-login-popup-box h3 {
    margin: 0 44px 12px 0 !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
}

.tt-login-popup-box p {
    margin: 0 0 22px !important;
    line-height: 1.6 !important;
    color: rgba(255,255,255,0.82) !important;
}

.tt-login-popup-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 12px !important;
    background: #181a22 !important;
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.tt-login-popup-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 50px !important;
    padding: 0 22px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #5b3df5 0%, #7b5cff 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.tt-login-popup-btn:hover {
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(92,75,255,0.30) !important;
}
