.react-styled-product {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111827;
}

.main-container {
    width: 60%;
    margin: 0 auto;
}

#sidebar {
    display: none !important;
}

.woocommerce-breadcrumb {
    display: none !important;
}

.custom-breadcrumb-wrapper {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.custom-breadcrumb-wrapper .woocommerce-breadcrumb {
    display: block !important;
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.custom-breadcrumb-wrapper .woocommerce-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-breadcrumb-wrapper .woocommerce-breadcrumb a:hover {
    color: #16a34a;
}

.product-main-section {
    padding: 3rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.product-left-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-image-card .woocommerce-product-gallery {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image-card .woocommerce-product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}

.product-image-card .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.product-image-card .woocommerce-product-gallery .woocommerce-product-gallery__image {
    width: 100%;
    height: 100%;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.trust-badge {
    background-color: #f0fdf4;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-icon {
    width: 2rem;
    height: 2rem;
    color: #16a34a;
    margin-bottom: 0.5rem;
}

.trust-badge p {
    font-size: 0.75rem;
    color: #111827;
    font-weight: 500;
    margin: 0;
}

.product-right-col.summary {
    display: flex;
    flex-direction: column;
}

.product-right-col .product_meta {
    display: none !important;
}

.product-right-col .product_title {
    order: 1;
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.product-right-col .woocommerce-product-rating,
.custom-rating-wrapper {
    display: none;
}

.product-right-col .woocommerce-product-details__short-description {
    order: 3;
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.custom-quick-info {
    order: 4;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.quick-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .quick-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.25rem 0;
}

.info-val {
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.info-price {
    font-weight: 600;
    color: #16a34a;
    margin: 0;
}

.product-right-col .price {
    order: 5;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.product-right-col form.cart {
    display: none;
}

.product-right-col form.cart .quantity {
    display: flex;
    margin-bottom: 1rem;
}

.product-right-col form.cart .quantity input.qty,
.product-right-col .single_add_to_cart_button {
    display: none;
}

.product-right-col .single_add_to_cart_button:hover {
    background-color: #374151;
}

.custom-action-buttons {
    order: 7;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn-request-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background-color: #16a34a;
    color: #ffffff;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-request-quote:hover {
    background-color: #15803d;
}

.btn-contact-sales {
    display: block;
    width: 100%;
    background-color: #ffffff;
    color: #16a34a;
    border: 2px solid #16a34a;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-contact-sales:hover {
    background-color: #f0fdf4;
}

.product-bottom-section {
    padding-bottom: 4rem;
}

.custom-detailed-info-wrapper {
    margin-bottom: 4rem;
}

.info-grid-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .info-grid-row {
        grid-template-columns: 1fr 1fr;
    }
}

.section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
}

.text-content {
    color: #4b5563;
    line-height: 1.6;
}

ul.custom-key-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.custom-key-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

ul.custom-key-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #16a34a;
    color: #ffffff;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

.specs-section {
    margin-bottom: 3rem;
}

.specs-box {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: #4b5563;
}

.spec-value {
    color: #111827;
}

.custom-usage-box,
.custom-warning-box,
.custom-warranty-box {
    border-radius: 0.5rem;
    padding: 1.5rem;
    border-width: 2px;
    border-style: solid;
    margin-top: 0;
    height: 100%;
}

.custom-usage-box {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

.custom-warning-box {
    background-color: #fffbeb;
    border-color: #fde68a;
}

.custom-warranty-box {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.custom-usage-box h4,
.custom-warning-box h4,
.custom-warranty-box h4 {
    color: #111827;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-usage-box p,
.custom-warning-box p,
.custom-warranty-box p {
    color: #374151;
    margin: 0;
    line-height: 1.5;
}

.dynamic-info-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .dynamic-info-boxes {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.woocommerce-tabs {
    display: none !important;
}

.relater-products-container{
    background-color: #fafafa;
    padding: 1rem;
    margin-bottom: 0;
}

.related.products {
    padding: 0;
    border: none;
    width: 60%;
    margin: 0 auto;
}

.related.products h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
}

.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related.products ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* THE CARD */
.related.products li.product {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

.related.products li.product:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* LINK WRAPPER (Acts as the flex container to push price to bottom) */
.related.products li.product .woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
}

/* IMAGE */
.related.products li.product .product-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: linear-gradient(to bottom right, #f0fdf4, #f9fafb);
    margin: 0;
    border-radius: 0;
}

/* TITLE & BRAND WRAPPER */
.related.products li.product .title-brand-wrapper {
    padding: 1rem 1rem 0 1rem;
    display: flex;
    flex-direction: column-reverse; /* Flips the brand badge to sit above the title */
}

/* BRAND TAG */
.related.products li.product .product-brand {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #dcfce7;
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

/* TITLE */
.related.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

/* HIDE RATING */
.related.products li.product .custom-rating-wrapper {
    display: none;
}

/* PRICE */
.related.products li.product .price {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin: 0;
    padding: 0 1rem 1rem 1rem;
    margin-top: auto; /* Pushes the price to the very bottom of the card */
}

/* HIDE ADD TO CART BUTTON */
.related.products li.product .button.add_to_cart_button {
    display: none !important;
}

.product-main-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-button-gallery-container {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
    margin: 0;
    padding: 0;
}

.product-gallery-button {
    background-color: #e5e7eb;
    border: 2px solid #ffffff;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-gallery-button:hover {
    background-color: #9ca3af;
}

.product-gallery-button.active {
    background-color: #16a34a;
    transform: scale(1.2);
}

/* --- PRODUCT VARIANTS SECTION --- */
.custom-variants-section {
    order: 6;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.variants-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.variants-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.variant-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variant-badge {
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
}