/**********************
   RESET BASE
**********************/
.woocommerce * {
    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;
    }
}

/* Step 11 — evita bordo rosso nativo sui campi password non ancora compilati */
body.woocommerce-account input[type="password"]:invalid,
body.woocommerce-account input[type="password"]:-moz-ui-invalid {
    border-color: rgba(17, 24, 39, 0.18);
    box-shadow: none;
}

body.woocommerce-account input[type="password"]:focus:invalid,
body.woocommerce-account input[type="password"]:focus:-moz-ui-invalid {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.10);
}

/* =========================================================
   STEP 13 — WooCommerce show-password cleanup
   Rimuove il residuo rosso/debug sull'icona "mostra password"
   senza usare selettori globali aggressivi.
========================================================= */
.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 20px;
    min-height: 20px;
    color: #111111 !important;
    filter: none !important;
}

.woocommerce form .show-password-input::before,
.woocommerce form .show-password-input::after,
.woocommerce-page form .show-password-input::before,
.woocommerce-page form .show-password-input::after {
    color: #111111 !important;
    background: transparent !important;
}
