/*
Theme Name: Shoptimizer Child Theme
Description: Child theme of Shoptimizer
Template: shoptimizer
Version: 1.2.2
*/

/* === Fonts === */

/* Self-hosted Vazirmatn (static weights: Regular 400, SemiBold 600) */
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Vazirmatn'), local('Vazirmatn-Regular'), 
         url('fonts/vazirmatn-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Vazirmatn SemiBold'), local('Vazirmatn-SemiBold'), 
         url('fonts/vazirmatn-semibold.woff2') format('woff2');
}

/* === Persian / RTL === */

/* CommerceKit countdown: keep LTR for numerals */
.commercekit-timer-blocks {
    justify-content: flex-end;
    direction: ltr;
}

/* Smaller timer label text */
#commercekit-timer.product .commercekit-timer-label {
    font-size: 11px;
}

/* === Product === */

/* Tighten gap below stars rating */
div.product .woocommerce-product-rating {
    margin-bottom: 0.5em;
    clear: both;
}

/* Less space above stock status text */
.product p.stock {
    padding-top: 0.5rem;
    margin-top: 0rem;
}

/* Remove extra padding below short description */
.woocommerce-product-details__short-description {
    padding-bottom: 0;
}

/* Card-style tab panels */
.single-product .woocommerce-Tabs-panel.panel {
    background: #fff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Space above first tab panel */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel.panel:first-child {
    margin-top: 20px;
}

/* Accent underline on tab headings */
.single-product .woocommerce-Tabs-panel.panel > h2:first-child,
.single-product .woocommerce-Tabs-panel.panel .yikes-custom-woo-tab-title {
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #0e7c6b;
}

/* Bullet inline padding */
ul {
    list-style: disc;
    padding-inline-start: 1.5em;
}

/* === Hide Quantity === */

/* Hide quantity input */
.single-product .quantity {
    display: none !important;
}

/* Full-width add-to-cart (fills space left by hidden qty input) */
.cart .single_add_to_cart_button {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Match wishlist button height to add-to-cart */
#ckwtl-button2 {
    padding: 12px !important;
}

/* === Medical Reviewer === */

/* -- Top badge (in product summary) -- */
.medical-reviewer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 0.75rem;
    margin-top: 1rem;
    font-size: 13px;
    color: #0f834d;
    border-top: 1px solid #e2e2e2;
}

.medical-reviewer-badge:before {
    position: relative;
    display: inline-flex;
    width: 15px;
    height: 15px;
    content: "";
    background: #0f834d;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7' /%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7' /%3E%3C/svg%3E");
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* -- Medical Reviewer Tab Content -- */

/* Hide the default WooCommerce tab heading so we only see our custom header with the icon */
#tab-medical_reviewer > h2:first-child {
    display: none;
}

.medical-reviewer-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #0e7c6b;
    margin-top: 0;
}

.medical-reviewer-card__body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.medical-reviewer-card__photo,
.medical-reviewer-card__photo-link img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.medical-reviewer-card__credential {
    font-size: 13px;
    color: #64748b;
}

.medical-reviewer-card__name {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
    text-decoration: none;
    display: block;
}

.medical-reviewer-card__name:hover {
    color: #0e7c6b;
}

.medical-reviewer-card__bio {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
}

.medical-reviewer-card__footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.8;
}

/* === Footer === */

.trust-badges-container {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.trust-badge {
  width: 80px;
}

.trust-badge img {
  width: 100%;
  height: auto;
  display: block;
}



