/* SKU Wrapper single products */

.sku_wrapper {
  display: inline-flex!important;
  align-items: baseline!important;
  gap: 0.25rem; /* space between “SKU:” and the number */
}

.sku_wrapper b {
  margin: 0!important; /* remove any default margins */
}




/* Variable products Add to Cart button */
.product-actions .variations_button {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.woocommerce-variation-price {
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 1rem;
    color: var(--wp--preset--color--price)!important; /* Filled */
}


/* Price for single product page */
.product-summary .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wp--preset--color--price)!important; /* Filled */
}

/* Price for all product cards */
.price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wp--preset--color--price)!important; /* Filled */
}

.woocommerce table.shop_attributes td p {
    margin: 0;
    padding: 8px 5px;
}

.product_meta span {
    display: block;
    margin-bottom: 4px;
}

/* .product_meta {
    color:grey!important;
    font-size:12px;
} */

/* .product_meta a {
    color:grey!important;
} */


.product-extra-info p {
    color:grey!important;
    font-size:12px;
}

.product-extra-info ul {
    color:grey!important;
    font-size:12px;
}

/* Related products in single-product */
.related-products-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
}

.related-products-grid ul.products li.product {
    all: unset;
    display: flex;
    flex-direction: column;
    list-style: none !important;
    margin: 0 !important;
}

.related-products-grid ul.products li.product.first,
.related-products-grid ul.products li.product.last {
    clear: none !important;
}

.related-products-grid ul.products::before,
.related-products-grid ul.products::after {
    content: none !important;
    display: block !important;
}


/* Related detail tabs */
ul {
    margin:0px!important;
}

.woocommerce div.product .woocommerce-tabs {
    margin-top: 2rem;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    /* border-bottom: 2px solid #eee; */
    list-style: none;
    padding-left: 0;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 10px 10px;
    text-decoration: none;
    font-weight: 600;
    color: #909090;
    border-bottom: none;
    transition: all 0.2s ease;
    border-radius: 5px 5px 0px 0px;
}





/* Main Description Tabs */
.woocommerce-tabs ul.tabs li.active a {
    color: var(--wp--preset--color--secondary)!important;
    background-color: #909090!important;
}

.woocommerce-tabs ul.tabs li a:hover {
    color: var(--wp--preset--color--secondary)!important;
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    border-top: none;
}








/* Product thumnbail and gallery */

/* Custom Product Gallery */
.custom-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background: #f8f9fa; */
    border-radius: 12px;
    padding: 1rem;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
}

.main-image {
    /* background: #ededed; */
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.thumbnails {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thumb-img {
    background: #f0f0f0;
    border-radius: 10px;
    height: 60px;
    width: 60px;
    object-fit: contain;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumb-img:hover,
.thumb-img:focus {
    border-color: #007bff;
    background-color: #ffffff;
}

/* Variation Styling */
.custom-variation-form .variations {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.custom-variation-form .variations td.label {
    font-weight: 600;
    padding-bottom: 0.25rem;
    color: #444;
}

.custom-variation-form .variations select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: border-color 0.2s;
    color: var(--wp--preset--color--text)!important;
}

.custom-variation-form .variations select:focus {
    border-color: var(--wp--preset--color--secondary);
    outline: none;
}

.custom-variation-form .single_variation_wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Remove borders and spacing from variation table */
.variations,
.variations th,
.variations td,
.variations tr {
    border: none !important;
    border-collapse: collapse !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Make the variation row display inline */
.variations tr {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 0.5rem !important;
}

/* Ensure label and dropdown are aligned horizontally */
.variations th.label,
.variations td.value {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Optional: minimum width for labels */
.variations th.label {
    width: auto !important;
    min-width: 60px !important;
    text-align: left !important;
}

/* Optional: style the "Clear" button */
.reset_variations {
    display: inline-block !important;
    margin-left: 0.75rem !important;
    color: #c00 !important;
    font-weight: 500 !important;
}
/* Variation Styling */

/* Grouped Product Styling */
.custom-grouped-form .woocommerce-grouped-product-list {
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.custom-grouped-form table {
    width: 100%;
    border-collapse: collapse;
}

.custom-grouped-form table th,
.custom-grouped-form table td {
    padding: 0.75rem;
    border: 1px solid #e5e5e5;
    vertical-align: middle;
}

.custom-grouped-form input.qty {
    width: 60px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 0.4rem;
}

/* .custom-grouped-form button.button {
    margin-top: 1rem;
} */


/* START: Product Descriptions Optimization */
.woocommerce-tabs h1,
.woocommerce-tabs h2,
.woocommerce-tabs h3,
.woocommerce-tabs h4,
.woocommerce-tabs h5,
.woocommerce-tabs h6 {
	margin-bottom: 10px !important;
	margin-top:20px!important;
}

.woocommerce-tabs p {
    color: #6c757d!important;
}

.woocommerce-tabs ul {
    color: #6c757d!important;
}
/* END: Product Descriptions Optimization */

