/*
Theme: Astra Child
File: Custom CSS for 10Bid
Date: 2025-07-15
Purpose: All visual tweaks, overrides, and layout fixes
*/
/* יישור טבלת הזמנות בלוח בקרת דוקאן */

.dokan-dashboard .dokan-table {
    direction: rtl;
    text-align: right;
}

.dokan-dashboard .dokan-table th,
.dokan-dashboard .dokan-table td {
    text-align: right;
}

.dokan-dashboard .dokan-table td .button {
    float: left; /* ישאיר את הכפתור בצד שמאל */
}

.dokan-dashboard .dokan-table th:last-child,
.dokan-dashboard .dokan-table td:last-child {
    text-align: center; /* מיישר את כפתור "צפייה" */
}

/* מיושר לימין כמו שצריך רק במצב לא מחובר */
body.woocommerce-account.rtl .woocommerce .u-columns {
    display: flex;
    flex-direction: row-reverse;
    gap: 50px;
    justify-content: space-between;
    text-align: right;
}

body.woocommerce-account.rtl .woocommerce .u-columns .col-1,
body.woocommerce-account.rtl .woocommerce .u-columns .col-2 {
    width: 48%;
}

@media (max-width: 768px) {
    body.woocommerce-account.rtl .woocommerce .u-columns {ג
        flex-direction: column;
    }
    body.woocommerce-account.rtl .woocommerce .u-columns .col-1,
    body.woocommerce-account.rtl .woocommerce .u-columns .col-2 {
        width: 100%;
    }
}

/* מיושר לימין לכל התוכן הפנימי */
body.woocommerce-account.rtl .woocommerce form,
body.woocommerce-account.rtl .woocommerce p,
body.woocommerce-account.rtl .woocommerce label {
    direction: rtl;
    text-align: right;
}

/* כפתורים לימין */
body.woocommerce-account.rtl .woocommerce button {
    float: right;
}

/* מיישר לימין את כפתור Nextend בכל מצב */
.nsl-container {
    text-align: right !important;
}
.nsl-container .nsl-button {
    display: inline-block;
}

/* מסתיר את בחירת 'חשבון מוכר' בטופס הרשמה */
.woocommerce form .user-role,
.woocommerce form .dokan-seller-account-fields,
#dokan-seller-wrap {
    display: none !important;
}

/* הסתרת מוצרים וירטואלים בדף פרסום המכרז */
.dokan-product-type-container {
    display: none !important;
}

/* הסתרת קטגורית חבילות פרסום מדף פרסום המכרז */ 
.dokan-product-category-modal li[data-term-id="79"] {
    display: none !important;
}

/* הסתרת בחירת סוג המכרז  */ 
#_auction_type option[value="reverse"] {
    display: none !important;
}

#_auction_type {
    pointer-events: none;
    background-color: #f9f9f9;
    color: #333;
}

/* הסתרת האלמנט Proxy Bidding מטופס המכרז  */ 
label[for="_auction_proxy"] {
    display: none !important;
}
/* הסתרת כל הסקשן של מאפייני מוצר בדף המכרזים */ 
.dokan-attribute-variation-options {
    display: none !important;
}

/* מהעלים את כל הסקשן של משלוחים ומיסים מדף המכרז */ 
.dokan-product-shipping-tax {
    display: none !important;
}
/* מעלים טת הסקשן של ניהול מלאי בדף המכרזים */
.dokan-product-inventory {
    display: none !important;
}
/* CSS להסתיר את כל סקשן ה-Relist */
.auction_relist_section {
    display: none !important;
}
/* להסתרת Reserved Price */ 
.dokan-auction-reserved-price {
    display: none !important;
}
/* להסתרת Buy it now price*/ 
.dokan-auction-regular-price {
    display: none !important;
}
/* הסתרת "נראות המכרז" (Visibility) */ 
.dokan-auction-product-visibility {
    display: none !important;
}
.dokan-auction-product-status {
    float: right;
    width: 100% !important;
    clear: both;
}
.dokan-auction-product-status label {
    text-align: right;
    display: block;
}

/* עיצוב תמונות קטלוג ותצוגת הזירה  */
/* תמונות מוצרים - פינות עגולות */
.woocommerce ul.products li.product img {
    border-radius: 12px;
    transition: 0.3s;
    object-fit: cover;
}


/* עיגול פינות לתמונת מוצר בכל מקום */
.woocommerce ul.products li.product img,
.woocommerce .widget ul.product_list_widget li img,
.woocommerce div.product div.images img,
ul.wc-block-product-template img {
    border-radius: 12px;
    transition: 0.3s;
    object-fit: cover;
}

/* מסגרת עדינה לכל כרטיס מוצר בקטלוג */
.woocommerce ul.products li.product {
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 10px;
    transition: 0.3s;
    background-color: #ffffff;
}

/* מסגרת ועדינות גם לבלוק של מוצרים (גוטנברג / Spectra) */
ul.wc-block-product-template li {
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 10px;
    transition: 0.3s;
    background-color: #ffffff;
}

/* אפקט מעבר עכבר - צל קל */
.woocommerce ul.products li.product:hover,
ul.wc-block-product-template li:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

/* יישור טקסט */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
ul.wc-block-product-template .wc-block-grid__product-title,
ul.wc-block-product-template .wc-block-grid__product-price {
    text-align: center;
}

/* הסרה של אייקון ברירת מחדל של ווקומרס על תמונות והודעה בדף הזמנות */ 
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important;
}


/* תיקון תצוגת תמונות בוידגט של סל הקניות */ 
/* עיגול פינות ומסגרת לכל תמונה של מוצר - כולל בווידג'טים */
.woocommerce ul.products li.product img,
.woocommerce .product img,
.woocommerce .widget img,
.woocommerce-page .widget img,
.wc-block-grid__product img,
.wc-block-components-product-image img {
    border-radius: 12px !important;
    border: 1px solid #e0e0e0 !important;
    object-fit: cover;
}

/* תיקון תצוגת מוצרים נוספים מאותו המוכר בדף מכרז בגרסת מובייל */
@media (max-width: 768px) {
  /* בסיס משותף לשתי רשימות המוצרים */
  .related.products ul.products,
  #tab-more_seller_product ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 16px;
    padding: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .related.products ul.products li.product,
  #tab-more_seller_product ul.products li.product {
    flex: 0 0 80%;
    max-width: 80%;
    min-width: 250px;
    scroll-snap-align: start;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .related.products ul.products li.product img,
  #tab-more_seller_product ul.products li.product img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
}

/* עיצוב דף אזור ניהול המכרזים למוכר בגרסת מובייל בלבד 
#mobile-auction-dashboard {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 600px;
  margin: auto;
  font-family: 'Heebo', sans-serif;
}

.dashboard-section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.dashboard-section h2 {
  margin-top: 0;
  font-size: 20px;
} 

.dash-btn {
  display: inline-block;
  margin-top: 12px;
  background: #fbbc34;
  color: #000;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
}

.dash-btn.secondary {
  background: #eee;
  margin-right: 10px;
}

@media (min-width: 769px) {
  #mobile-auction-dashboard {
    display: none;
  }
} */

/* סידור תצוגת החשבון שלי בגרסת מובייל */ 
@media (max-width: 768px) {

  /* ריווח פנימי מסביב לתוכן */
  .woocommerce form.login,
  .woocommerce form.register {
    width: 100% !important;
    padding: 0 24px !important;
    box-sizing: border-box;
  }

  /* יישור לימין אבל עם ריווח */
  .woocommerce form .form-row label {
    text-align: right;
    display: block;
    margin-right: 4px;
    margin-bottom: 6px;
    font-size: 15px;
  }

  /* שדות טקסט עם ריווח פנימי */
  .woocommerce form .input-text {
    padding: 12px 14px !important;
    font-size: 16px !important;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
  }

  /* טאב התחברות/הרשמה */
  .u-columns.col2-set {
    flex-direction: column !important;
    gap: 40px;
  }

  .u-column1, .u-column2 {
    width: 100% !important;
  }

  /* לחצן התחברות */
  .woocommerce button.button {
    width: 100% !important;
    font-size: 16px;
    padding: 12px;
    background-color: #83b735 !important;
  }

  /* כפתור סושיאל */
  .nx-social-login-button {
    width: 100% !important;
    justify-content: center;
  }

  .nx-social-login-button img {
    margin-left: 8px;
  }

  /* אייקון עין */
  .woocommerce form .show-password-input {
    top: 38px !important;
    right: 12px !important;
    transform: scale(1.5);
  }
}
@media (max-width: 768px) {

  /* יישור כותרות התחברות/הרשמה לימין */
  .woocommerce h2 {
    text-align: right !important;
    padding-right: 35px;
    font-size: 20px;
    margin-bottom: 16px;
  }
}

/* עיצוב דף החשבון שלי למשתמש מחובר - - - לא חשבון מוכר */

@media (max-width: 768px) {

  /* שובר את המבנה לשני טורים מוערמים */
  .woocommerce-MyAccount-content .dokan-w8.left-content,
  .woocommerce-MyAccount-content .dokan-w4.right-content {
    width: 100% !important;
    float: none !important;
    box-sizing: border-box;
    text-align: right;
  }

  /* מסגרת יפה לבלוק ההצעה */
  .woocommerce-MyAccount-content .dokan-account-migration-lists {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px 16px;
    margin-top: 32px;
    background-color: #f9f9f9;
  }

  /* טקסטים בבלוק – ריווח ונראות */
  .woocommerce-MyAccount-content .dokan-w8.left-content p {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .woocommerce-MyAccount-content .dokan-w8.left-content p:first-of-type {
    font-weight: 600;
    font-size: 17px;
    color: #222;
  }

  /* כפתור "שדרוג חשבון" */
  .woocommerce-MyAccount-content .dokan-w4.right-content .btn.btn-primary {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background-color: #4caf50 !important;
    color: #fff !important;
    font-size: 15px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    line-height: 1.4;
  }

  .woocommerce-MyAccount-content .dokan-w4.right-content .btn.btn-primary:hover {
    background-color: #45a047 !important;
  }
}
.woocommerce-MyAccount-content .dokan-w4.right-content .btn.btn-primary {
    background-color: #4caf50 !important;
    color: #fff !important;
    border: none !important;
}

/* שינוי תצוגת לוח בקרה של משתמש בגרסת מובייל */ 
@media (max-width: 768px) {
  .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0;
    margin-bottom: 24px;
  }

  .woocommerce-MyAccount-navigation li {
    list-style: none;
  }

  .woocommerce-MyAccount-navigation li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #f7f7f7;
    padding: 14px 6px;
    border-radius: 12px;
    font-size: 13px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 80px;
  }

  .woocommerce-MyAccount-navigation li a:hover {
    background-color: #eaeaea;
    transform: scale(1.02);
  }

  /* אייקונים – FontAwesome classes */
  .woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: "\f015"; /* Home */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
  }

  .woocommerce-MyAccount-navigation-link--orders a::before {
    content: "\f291"; /* Box */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
  }

  .woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: "\f3c5"; /* Map Pin */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
  }

  .woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: "\f007"; /* User */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
  }

  .woocommerce-MyAccount-navigation-link--auctions-endpoint a::before {
    content: "\f6e3"; /* Hammer */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
  }

  .woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: "\f2f5"; /* Sign-out */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
  }

  /* עיצוב אחיד לכל האייקונים */
  .woocommerce-MyAccount-navigation a::before {
    font-size: 20px;
    margin-bottom: 4px;
    display: block;
  }
}
@media (max-width: 768px) {
  .woocommerce-MyAccount-navigation-link--downloads {
    display: none !important;
  }
}
@media (max-width: 768px) {
 
/* סידור אייקון של הסתרת הסיסמא בגרסת מובייל */
.woocommerce form .show-password-input {
  position: absolute;
  top: 50%;
  left: 0.75rem; /* שמאל של שדה הסיסמה */
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  z-index: 2;
  cursor: pointer;
}

/* מנקה הוראות מדיה-קוויריז או ברירת מחדל שדורשות right */
@media (max-width: 768px) {
  .woocommerce form .show-password-input {
    right: auto !important;
    left: 0.75rem !important;
    transform: translateY(-50%) !important;
  }
}

/* יישור הוידגט של מוצרים מובילים בגרסת המובייל */ 
@media (max-width: 768px) {
  ul.wc-block-product-template {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    justify-content: center !important;
  }

  ul.wc-block-product-template > li {
    margin: 10px auto !important;
  }
}
/* עטיפת שדות דף החשבון שלי במסגרת עדינה לנראות טובה יותר */ 
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 12px !important;
    box-shadow: none !important;
    background-color: #fff !important;
    transition: border-color 0.2s ease-in-out;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #a3a3a3 !important;
    outline: none !important;
}
/* שדה הצעת מחיר - רוחב מדויק ל־5 ספרות */
.auction_form .input-text.qty.bid {
    width: 90px !important;
    font-size: 16px;
    text-align: center;
    padding: 5px 8px;
}

/* ריווח נקי בין השדה לכפתורים */
.auction_form .quantity.buttons_added {
    gap: 6px;
    justify-content: center;
    align-items: center;
}

/* יישור כפתור הגש הצעה למרכז התצוגה */
@media (max-width: 768px) {
  .woocommerce ul.products li.product {
    text-align: center !important;
  }

  .woocommerce ul.products li.product a.button {
    display: inline-block !important;
    margin: 0 auto !important;
    width: auto !important;
  }
}
@media (min-width: 768px) {
  .auction-history-table thead th {
    text-align: right !important;
  }
}

/* הסתרת שדה יצרן בטופס פרסום מכרז */
.dokan-form-group:has(#product_brand) {
    display: none !important;
}

/* עיצוב כרטיסי מכרזים בעמוד "המכרזים שלי" בהתאם ל-endedactions */
body.page-id-30433 ul.products {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

body.page-id-30433 ul.products li.product {
  width: 100%;
  max-width: 250px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease;
  background: #fff;
}

body.page-id-30433 ul.products li.product:hover {
  transform: translateY(-4px);
}

body.page-id-30433 ul.products li.product img {
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
}
/* יישור כרטיסי מכרזים לימין בעמוד myaucitons */
body.page-id-30433 ul.products {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start !important; /* הצמד לימין */
  gap: 30px;
  direction: rtl;
}

body.page-id-30433 ul.products li.product {
  text-align: right;
}

/* יישור כותרת לטבלה בדף פעילות המכרזים שלי*/
body.page-id-30433 .wp-block-heading {
  text-align: right;
  margin-right: 0;
}

body.page-id-30433 table.my_auctions_activity {
  margin-right: 0 !important;
  margin-left: auto !important;
  direction: rtl;
  text-align: right;
}
/* הסרת האייקון פרצוץ בסל הקניות שמצורף דרך המחלקה with-empty-cart-icon */
.with-empty-cart-icon::before,
.with-empty-cart-icon::after,
.with-empty-cart-icon {
  background: none !important;
  content: none !important;
  display: block;
}
/* סידור תצוגת סל קניות בגרסת מובייל */ 
@media (max-width: 768px) {
  .wc-block-cart {
    padding: 0 15px !important;
  }

  .wc-block-cart__submit-button {
    width: 100% !important;
  }
}

/* תוספת אייקון למוכרים מועדפים בדף החשבון */ 
@media (max-width: 768px) {
  .woocommerce-MyAccount-navigation-link--following a::before {
    content: "\f005"; /* כוכב */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 4px;
    display: block;
  }
}
/* גריד: 5 מוצרים בשורה */
body.search ul.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  padding: 0;
  list-style: none;
  direction: rtl;
}

/* כל כרטיס מוצר */
body.search ul.products li.product {
  width: calc(20% - 16px); /* 5 בשורה עם מרווח */
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
  box-sizing: border-box;
  text-align: center;
  padding-bottom: 10px;
  transition: transform 0.3s ease;
}

body.search ul.products li.product:hover {
  transform: translateY(-5px);
}

/* תמונת המוצר */
body.search ul.products li.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
}

/* כותרת המוצר */
body.search ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 16px;
  margin: 10px 0 5px;
  color: #111;
  line-height: 1.3;
  min-height: 40px;
}

/* קטגוריה */
body.search .ast-woo-product-category {
  font-size: 13px;
  color: #888;
  display: block;
  margin-top: 8px;
}

/* מחיר */
body.search .price {
  font-size: 15px;
  font-weight: bold;
  color: #111;
  margin: 6px 0;
}

/* כפתור סיום מכרז */
body.search a.button.product_type_auction {
  background-color: #4CAF50;
  color: white !important;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 14px;
  display: inline-block;
  margin-top: 5px;
  transition: background 0.3s;
}

body.search a.button.product_type_auction:hover {
  background-color: #388E3C;
}

/* מובייל – 1 מוצר בשורה */
@media (max-width: 768px) {
  body.search ul.products li.product {
    width: 100% !important;
  }
}

/* טאבלט – 3 מוצרים בשורה */
@media (max-width: 1024px) {
  body.search ul.products li.product {
    width: calc(33.333% - 16px);
  }
}

.dokan-info {
  background-color: #83b735; /* צבע רקע בהיר - אפשר לשנות לפי הטעם */
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ffeeba;
}

@media (max-width: 768px) {
    /* כל הכפתורים במובייל */
    .woocommerce-MyAccount-navigation-link a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        border: 1px solid #ddd;
        border-radius: 12px;
        background-color: #fff;
        height: 100%;
    }

    /* רק לכפתור המכרזים שלי נזריק אייקון */
    .woocommerce-MyAccount-navigation-link--auctions_activity a::before {
        content: '\f0e3'; /* Gavel */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 22px;
        color: #000;
        margin-bottom: 5px;
        display: block;
    }

    /* שאר האייקונים שכבר קיימים (לא נוגעים בהם יותר) */
    .woocommerce-MyAccount-navigation-link i {
        font-size: 22px;
        color: #000;
        margin-bottom: 5px;
    }

    /* טקסט */
    .woocommerce-MyAccount-navigation-link span,
    .woocommerce-MyAccount-navigation-link a {
        font-size: 12px;
        color: #000;
        text-align: center;
    }

    /* כפתור פעיל */
    .woocommerce-MyAccount-navigation-link.is-active a {
        border-color: #fbbc34;
        box-shadow: 0 0 10px rgba(251, 188, 52, 0.5);
    }
}
