/*
Theme Name: Maxcare Child
Theme URI: https://maxcare.casethemes.net/
Description: A child theme for Maxcare, a Premium WordPress theme. Use this theme to safely customize the Maxcare parent theme without affecting future updates.
Author: Your Name
Author URI: https://example.com/
Template: maxcare
Version: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maxcare-child
Domain Path: /languages/
*/

/* =Theme Customizations
-------------------------------------------------------------- */

/* CUSTOM PRODUCT ARCHIVE - Simple Clean Grid */

/* Wrapper */
.td-products-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Grid Container */
.td-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Product Card */
.td-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.td-product-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Product Content */
.td-product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    gap: 12px;
}

/* Product Title */
.td-product-title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
}

.td-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.td-product-title a:hover {
    color: #0073aa;
}

/* Short Description */
.td-product-short-desc {
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.td-product-short-desc p {
    margin: 0;
    padding: 0;
}

/* Custom Product Info */
/* Info List */
.td-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.td-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    border-top: none;
    border-right: none;
    border-bottom: none;
}

.td-info-list span {
    margin: 0;
    padding: 0;
    flex: 1;
}

/* Icons */
.td-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    text-align: center;
    font-style: normal;
    font-weight: 700;
    color: #0073aa;
    line-height: 16px;
    font-size: 14px;
}

/* Icon: Exams (Download icon - arrow down) */
.td-icon-exams::before {
    content: "↓";
    color: #0073aa;
}

/* Icon: Sample (Droplet icon - filled circle) */
.td-icon-sample::before {
    content: "●";
    color: #0073aa;
    font-size: 12px;
}

/* Icon: Time (Clock icon - circle with dot) */
.td-icon-time::before {
    content: "⏱";
    color: #0073aa;
    font-size: 13px;
}

/* Price */
.td-product-price {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
}

/* Action Buttons */
.td-product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

/* Button */
.td-btn {
    padding: 12px 14px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    width: 100%;
}

.td-btn-primary {
    background: #0073aa;
    color: #ffffff;
    border: 1px solid #0073aa;
}

.td-btn-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.td-btn-secondary {
    background: #0073aa;
    color: #ffffff;
    border: 1px solid #0073aa;
}

.td-btn-secondary:hover {
    background: #005a87;
    border-color: #005a87;
}

/* Responsive */
@media (max-width: 1200px) {
    .td-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .td-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .td-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}





.elementor-grid-4 .woocommerce.columns-4 .products.elementor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0;
    list-style: none;
}

/* Responsive grid */
@media (max-width: 1024px) {
    .elementor-grid-tablet-3 .woocommerce.columns-4 .products.elementor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .elementor-grid-mobile-2 .woocommerce.columns-4 .products.elementor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Individual category item */
.product-category.product {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: auto;
    aspect-ratio: 300 / 358;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-end;
}

/* Category link */
.product-category.product a {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

/* Image styling */
.product-category.product img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover zoom effect */
.product-category.product:hover img {
    transform: scale(1.15);
}

/* Dark overlay - always visible */
.woocommerce-loop-category__title {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 30px 25px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
    color: white;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

/* Hover overlay enhancement */
.product-category.product:hover .woocommerce-loop-category__title {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    padding: 25px;
}

/* Product count styling */
.woocommerce-loop-category__title .count {
    display: block;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 8px;
}

/* Adjust for first/last items */
.product-category.product.first {
    /* No specific styling needed */
}

.product-category.product.last {
    /* No specific styling needed */
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .elementor-grid-4 .woocommerce.columns-4 .products.elementor-grid {
        gap: 15px;
    }

    .product-category.product {
        aspect-ratio: 1;
    }

    .woocommerce-loop-category__title {
        padding: 20px 15px;
        font-size: 16px;
    }

    .woocommerce-loop-category__title .count {
        font-size: 12px;
        margin-top: 6px;
    }
}

/* Custom WooCommerce Product Archive Styling */

/* Products Grid Container */
.td-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.td-products-grid li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Product Card - Main Container */
.td-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.td-product-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Product Body - Flex container inside card */
.td-product-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

/* Product Image Container - HIDDEN */
.td-product-image {
    display: none;
}

.td-product-image .td-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.td-product-image:hover .td-product-img {
    transform: scale(1.08);
}

/* Sale Badge */
.td-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

/* Product Content */
.td-product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    gap: 12px;
    min-width: 0;
}

/* Product Title */
.td-product-title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.td-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.td-product-title a:hover {
    color: #0073aa;
}

/* Short Description */
.td-product-short-desc {
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.td-product-short-desc p {
    margin: 0;
    padding: 0;
}

/* Custom Product Info Box */
/* Price */
.td-product-price {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
    flex-shrink: 0;
}

.td-product-price .woocommerce-Price-amount {
    color: #0073aa;
    font-weight: 700;
}

.td-product-price .price {
    color: #0073aa;
}

/* Action Buttons Container */
.td-product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

/* Button Styling */
.td-btn {
    flex: 1;
    padding: 12px 14px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1;
    width: 100%;
}

.td-btn-icon {
    display: inline-block;
    font-size: 14px;
}

/* Primary Button (View Product) */
.td-btn-primary {
    background: #0073aa;
    color: #ffffff;
    border: 1px solid #0073aa;
}

.td-btn-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

/* Secondary Button (Add to Cart) */
.td-btn-secondary {
    background: #0073aa;
    color: #ffffff;
    border: 1px solid #0073aa;
}

.td-btn-secondary:hover {
    background: #005a87;
    border-color: #005a87;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .td-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .td-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .td-product-content {
        padding: 16px;
        gap: 10px;
    }
    
    .td-product-title {
        font-size: 14px;
    }
    
    .td-product-price {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .td-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .td-product-card {
        flex-direction: row;
        min-height: 150px;
    }
    
    .td-product-image {
        width: 120px;
        min-width: 120px;
        aspect-ratio: 1;
        flex-shrink: 0;
    }
    
    .td-product-content {
        padding: 12px;
        gap: 6px;
    }
    
    .td-product-title {
        font-size: 13px;
    }
    
    .td-product-short-desc {
        display: none;
    }
    
    .td-product-price {
        font-size: 16px;
    }
    
    .td-product-actions {
        gap: 8px;
        padding-top: 8px;
    }
    
    .td-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
}


/* Product FAQ accordion */
.product-faq-accordion .elementor-tab-title {
  cursor: pointer;
}

/* hide all answers by default */
.product-faq-accordion .elementor-tab-content {
  display: none;
}

/* icon logic */
.product-faq-accordion .elementor-accordion-icon-open {
  display: none;
}
.product-faq-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon-open {
  display: inline-block;
}
.product-faq-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon-closed {
  display: none;
}

/* === Product FAQ Accordion – modern styling === */

.product-faq-accordion {
  border-radius: 12px;
  border: 1px solid #e3e6ee;
  background: #ffffff;
  overflow: hidden;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* each FAQ item */
.product-faq-accordion .elementor-accordion-item {
  border-bottom: 1px solid #e3e6ee;
}

.product-faq-accordion .elementor-accordion-item:last-child {
  border-bottom: none;
}

/* question row */
.product-faq-accordion .elementor-tab-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #143058;               /* dark blue text */
  background: #ffffff;
  border-left: 3px solid transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* hover state */
.product-faq-accordion .elementor-tab-title:hover {
  background: #f5f7fc;
  box-shadow: inset 0 0 0 1px #e0e5f2;
}

/* active/open question */
.product-faq-accordion .elementor-tab-title.elementor-active {
  background: #e9f1ff;
  border-left-color: #1e4c9a;
  color: #10213f;
}

/* icon circle on the left (+ / −) */
.product-faq-accordion .elementor-accordion-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #1e4c9a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  background: #ffffff;
}

/* ICONS: show + normally, show − only when active */
.product-faq-accordion .elementor-accordion-icon-closed {
  display: inline-block !important; /* + */
}

.product-faq-accordion .elementor-accordion-icon-open {
  display: none !important; /* − hidden initially */
}

.product-faq-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon-closed {
  display: none !important; /* hide + when active */
}

.product-faq-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon-open {
  display: inline-block !important; /* show − when active */
}


/* already handle which icon is visible via previous CSS:
   .elementor-accordion-icon-open shown only when .elementor-active */

/* answer panel */
.product-faq-accordion .elementor-tab-content {
  padding: 0 18px 16px 48px;  /* extra left padding to align with text after icon */
  font-size: 14px;
  line-height: 1.65;
  color: #333333;
  background: #ffffff;
}

/* paragraphs inside answer */
.product-faq-accordion .elementor-tab-content p {
  margin: 6px 0;
}

/* small screens */
@media (max-width: 768px) {
  .product-faq-accordion .elementor-tab-title {
    padding: 12px 14px;
    font-size: 14px;
  }
  .product-faq-accordion .elementor-tab-content {
    padding: 0 14px 14px 44px;
    font-size: 13px;
  }
}

/* === Product Top Info Bar === */

.product-top-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 10px 0 12px;
  border-top: 1px solid #e2e7f1;
  border-bottom: 1px solid #e2e7f1;
  font-size: 14px;
}

/* κάθε στοιχείο (icon + text) */
.product-top-info-bar .ptib-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #15437c; /* μπλε σαν τη σελίδα σου */
  font-weight: 500;
}

/* βασικό icon styling */
.product-top-info-bar .ptib-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e6f1ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #15437c;
}

/* exams icon: download-style arrow */
.product-top-info-bar .ptib-icon-exams::before {
  content: "\2193"; /* ↓ */
}

/* sample icon: drop / sample */
.product-top-info-bar .ptib-icon-sample::before {
  content: "\1F4A7"; /* 💧 */
}

/* time icon: clock */
.product-top-info-bar .ptib-icon-time::before {
  content: "\23F0"; /* ⏰ */
}

/* text */
.product-top-info-bar .ptib-text {
  white-space: nowrap;
}

/* μικρές οθόνες */
@media (max-width: 768px) {
  .product-top-info-bar {
    gap: 10px;
    font-size: 13px;
  }

  .product-top-info-bar .ptib-item {
    flex: 1 1 100%; /* κάθε bullet σε ξεχωριστή γραμμή αν δεν χωράνε */
  }
}

/* === Wrapper: info bullets + price + button in one row === */

/* === TOP BAR: layout like the example screenshot === */

.product-top-bar-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 14px 24px;
  margin: 10px 0 25px;
  background: #f4f5f7;          /* light grey bar */
  border-radius: 4px;
  max-width: 1350px;
  margin: auto;
}

/* LEFT SIDE – bullets with icons */
.product-top-bar-wrap .product-top-info-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.product-top-bar-wrap .ptib-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0b4f8c;               /* blue text */
  font-weight: 500;
  font-size: 18px;
}

/* small rounded icons, flat – like the example */
.product-top-bar-wrap .ptib-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #0b4f8c;
}

/* make sure emojis are centered */
.product-top-bar-wrap .ptib-icon::before {
  line-height: 1;
}

/* RIGHT SIDE – price + button */
.product-top-bar-wrap .product-top-price-cart {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

/* price styling */
.product-top-bar-wrap .ptpc-price .price {
  font-size: 26px;
  font-weight: 700;
  color: #0b4f8c;
  white-space: nowrap;
}

/* sale price layout */
.product-top-bar-wrap .ptpc-price del {
  display: block;
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 2px;
}
.product-top-bar-wrap .ptpc-price ins {
  text-decoration: none;
}

/* hide stock text inside the bar */
.product-top-bar-wrap .stock {
  display: none;
}

/* hide quantity (to look like your reference bar) */
.product-top-bar-wrap .quantity {
  display: none;
}

/* Add-to-cart button full-height, bold, blue */
.product-top-bar-wrap .ptpc-cart form.cart {
  margin: 0; /* remove extra top margin some themes add */
}

.product-top-bar-wrap .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 3px;
  border: none;
  background: #06a6e3;
  color: #ffffff;
  text-transform: none;
}

/* hover state similar but slightly darker */
.product-top-bar-wrap .single_add_to_cart_button:hover {
  background: #0593c8;
  color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .product-top-bar-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-top-bar-wrap .product-top-price-cart {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .product-top-bar-wrap {
    padding: 12px 16px;
    gap: 16px;
  }

  .product-top-bar-wrap .product-top-price-cart {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .product-top-bar-wrap .single_add_to_cart_button {
    width: 100%;
    justify-content: center;
  }
}
