/**
 * Shop Page with Sidebar Styles
 * Custom styles matching betadinestg.wpenginepowered.com/all-products/ design
 */

/* Shop Page Section */
.shop-page {
    padding: 3rem 0;
    background-color: #ffffff;
    font-family: 'Arial', 'Helvetica', sans-serif;

    .woosingle__boughtwith {
        display: none; /* Hide "You may also like" section */
    }

    .woosingle__related {
        display: none; /* Hide related products section */
    }

    a.button.product_type_simple {
        display: none;
    }

    .wpc-filters-widget-wrapper, .wpc-filters-main-wrap ul.wpc-filters-ul-list {
        padding-inline: 10px;
    }

    @media (min-width: 992px) {
        .wpc-filters-main-wrap li.wpc-term-item a {
        font-size: smaller;
        }
    }
    
}

.shop-sidebar {
    .wpc-posts-found {
    display: none;
    }

    .wpc-wrap-icons .wpc-filter-selected-values {
    display: none;
    }
}

/* Shop Page Container */
.shop-page .container {
    max-width: 1200px;
}

/* Shop Sidebar Styles - Clean professional design */
.shop-sidebar {
    background-color: #ffffff;
    padding: 0;
    border: none;
    border-radius: 0;
    margin-bottom: 2rem;
    box-shadow: none;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.shop-sidebar .sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.shop-sidebar .widget {
    background-color: #ffffff;
    padding: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: none;
}

.shop-sidebar .widget:last-child {
    border-bottom: none;
}

.shop-sidebar .widget-title {
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #bcbcbc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-sidebar .no-widgets-message {
    text-align: left;
    padding: 1.5rem 0;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.shop-sidebar .no-widgets-message h4 {
    color: #0066cc;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.shop-sidebar .no-widgets-message p {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Shop Content Area */
.shop-content {
    padding-left: 2rem;
}

/* WooCommerce specific adjustments - Professional header */
.shop-content .woocommerce-products-header {
    margin-bottom: 3rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #bcbcbc;
    text-align: center;
}

.shop-content .woocommerce-products-header__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-content .term-description {
    color: #666666;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Product grid - Clean professional layout matching reference */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products li.product {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    border-color: #0066cc;
}

/* Product image styling */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    text-decoration: none;
    color: inherit;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product price */
.woocommerce ul.products li.product .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 1rem;
}

.woocommerce ul.products li.product .price del {
    color: #999999;
    font-weight: 400;
    margin-right: 0.5rem;
}

/* Add to cart button */
.woocommerce ul.products li.product .button {
    background-color: #0066cc;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Pagination - Professional styling */
.woocommerce-pagination {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.woocommerce-pagination .page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    color: #333333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.woocommerce-pagination .page-numbers:hover {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #ffffff;
    transform: translateY(-2px);
}

.woocommerce-pagination .page-numbers.current {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Sale badges and special elements */
.woocommerce span.onsale {
    background-color: #ff4444;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Star ratings */
.woocommerce .star-rating {
    margin-bottom: 0.5rem;
}

.woocommerce .star-rating span {
    color: #ffc107;
}

/* Responsive Design - Professional breakpoints */
@media (max-width: 991.98px) {
    .shop-sidebar {
        position: static;
        max-height: none;
    }
    
    .shop-content {
        padding-left: 0;
    }
    
    /* 2 columns on tablets */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .shop-page {
        padding: 2rem 0;
    }
    
    .shop-sidebar .widget-title {
        font-size: 1.1rem;
    }
    
    /* 2 columns on small tablets */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .woocommerce ul.products li.product {
        padding: 1rem;
    }
    
    .woocommerce ul.products li.product img {
        height: 150px;
    }
    
    .shop-content .woocommerce-products-header__title {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .shop-page {
        padding: 1.5rem 0;
    }
    
    /* 1 column on mobile */
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .woocommerce ul.products li.product {
        padding: 1rem;
    }
    
    .shop-content .woocommerce-products-header__title {
        font-size: 1.8rem;
    }
    
    .shop-sidebar .widget-title {
        font-size: 1rem;
    }
}

/* Focus accessibility - Professional styling */
.shop-sidebar a:focus,
.woocommerce-pagination .page-numbers:focus,
.shop-sidebar .btn:focus,
.woocommerce ul.products li.product .button:focus {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

/* Loading states and animations */
.woocommerce ul.products li.product {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .shop-sidebar {
        display: none;
    }
    
    .shop-content {
        padding-left: 0;
    }
    
    .shop-page .col-lg-9 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .woocommerce ul.products li.product .button {
        display: none;
    }
}


/* radio button mods */
/* Hide the actual radio button */
.wpc-radio-item input[type="radio"] {
  display: none;
}

/* Label styling */
.wpc-radio-item label {
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  display: inline-block;
  line-height: 20px;

  a {
    padding-left: 17px;
    margin-top: 4px;
  }
}

/* Custom square box */
.wpc-radio-item label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 19.5px;
  height: 19.5px;
  border: 1.5px solid #838383;
  border-radius: 3px;
  background-color: #fff;
  box-sizing: border-box;
  margin-left: -2px;
}

/* Show check mark if selected */
.wpc-radio-item input[type="radio"]:checked + label::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 7px;
  height: 13px;
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}

/* checkbox */
.wpc-radio-item input[type="radio"]:checked + label::before {
  background-color: #2e70ff; /* or any highlight color */
  border-color: #2e70ff;
}
