/*
Theme Name: Heat Seal Equipment
Template: kiosko
Author: Fast Computers
Author URI: https://fastcomputers.ca/
Description: Heat Seal Equipment is a child theme of Kiosko, a store theme for WooCommerce.
Version: 1.1
*/

/* Variation Table */
.heat-seal-variations {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 14px;
    background: #fff;
}

.heat-seal-variations thead {
    background: #f8f8f8;
}

.heat-seal-variations th {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    min-width: 80px;
}

.heat-seal-variations td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.heat-seal-variations tbody tr {
    transition: background-color 0.2s ease;
}

.heat-seal-variations tbody tr:hover {
    background-color: #f9f9f9;
}

.heat-seal-variations tbody tr.out-of-stock {
    opacity: 0.6;
    background-color: #fafafa;
}

/* Image Column */
.heat-seal-variations .variation-image {
    width: 80px;
    text-align: center;
    padding: 8px;
}

.heat-seal-variations .variation-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 0;
}

/* Part Number Column */
.heat-seal-variations td:nth-child(2) strong {
    color: #D0150F;
    font-family: monospace;
    font-size: 15px;
}

/* Description Column */
.heat-seal-variations td:nth-child(3) {
    max-width: 300px;
}

/* Price Column */
.heat-seal-variations td:nth-child(4) {
    font-weight: 600;
    color: #333;
}

.heat-seal-variations .woocommerce-Price-amount {
    font-size: 16px;
}

/* Quantity Input */
.heat-seal-variations .qty-input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.heat-seal-variations .qty-input:focus {
    outline: none;
    border-color: #D0150F;
}

/* Request Quote Button */
.heat-seal-variations .request-quote-btn {
    background: #D0150F;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.heat-seal-variations .request-quote-btn:hover {
    background-color: var(--wp--preset--color--contrast);
}

.heat-seal-variations .request-quote-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Out of Stock Label */
.heat-seal-variations .out-of-stock-label {
    color: #d63638;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Messages */
.variation-messages {
    margin: 20px 0;
}

.variation-messages .woocommerce-message,
.variation-messages .woocommerce-error {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 3px;
}

.variation-messages .woocommerce-message {
    background: #ecf7ed;
    border-left: 4px solid #46b450;
    color: #0f5132;
}

.variation-messages .woocommerce-error {
    background: #f9e2e2;
    border-left: 4px solid #d63638;
    color: #8b0000;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .heat-seal-variations {
        font-size: 12px;
    }

    .heat-seal-variations th,
    .heat-seal-variations td {
        padding: 8px 10px;
    }

    .heat-seal-variations th {
        font-size: 11px;
    }

    /* Stack table on very small screens */
    @media (max-width: 600px) {
        .heat-seal-variations thead {
            display: none;
        }

        .heat-seal-variations,
        .heat-seal-variations tbody,
        .heat-seal-variations tr,
        .heat-seal-variations td {
            display: block;
            width: 100%;
        }

        .heat-seal-variations tr {
            margin-bottom: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 10px;
        }

        .heat-seal-variations td {
            border: none;
            padding: 8px 0;
            position: relative;
            padding-left: 40%;
        }

        .heat-seal-variations td:before {
            content: attr(data-label);
            position: absolute;
            left: 10px;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 11px;
        }

        .heat-seal-variations td:nth-child(1):before {
            content: "";
        }

        /* No label for image */
        .heat-seal-variations td:nth-child(2):before {
            content: "Part #";
        }

        .heat-seal-variations td:nth-child(3):before {
            content: "Description";
        }

        .heat-seal-variations td:nth-child(4):before {
            content: "Price";
        }

        .heat-seal-variations td:nth-child(5):before {
            content: "QTY";
        }

        .heat-seal-variations td:nth-child(6):before {
            content: "";
        }

        /* Make image full-width on mobile */
        .heat-seal-variations .variation-image {
            padding-left: 0;
            text-align: center;
            width: 100%;
        }

        .heat-seal-variations .variation-image img {
            margin: 0 auto;
        }

        .heat-seal-variations .request-quote-btn {
            width: 100%;
            margin-top: 10px;
        }
    }
}

/* Hide default WooCommerce variation form when our table is shown */
.single-product .variations_form {
    display: none;
}

/* But show it if our table isn't present (fallback) */
.single-product .variations_form:not(.heat-seal-variations) {
    display: block;
}










/* Indent with subtle spacing */
.wc-block-product-filter-checkbox-list__item.has-depth-1 {
    padding-left: 16px !important;
}

.wc-block-product-filter-checkbox-list__item.has-depth-2 {
    padding-left: 32px !important;
}

/* Add simple prefix that won't break on wrap */
.wc-block-product-filter-checkbox-list__item.has-depth-1>label::before {
    color: #999;
    margin-right: 4px;
}

.wc-block-product-filter-checkbox-list__item.has-depth-2>label::before {
    color: #999;
    margin-right: 4px;
}

/* Slightly muted styling for hierarchy */
.wc-block-product-filter-checkbox-list__item.has-depth-2 {
    opacity: 0.85;
}

/* Align checkbox to top for multi-line labels */
.wc-block-product-filter-checkbox-list__label {
    display: flex !important;
    align-items: flex-start !important;
}

.wc-block-product-filter-checkbox-list__input-wrapper {
    margin-top: 2px;
}

.wc-block-product-filter-checkbox-list__input-wrapper:hover {
    text-decoration: underline;
}








@media (max-width: 768px) {

    /* Hide main product image on mobile */
    .woocommerce-product-gallery {
        display: none;
    }

    /* Limit request quote button width on mobile */
    .heat-seal-variations .request-quote-btn {
        max-width: 200px;
    }
}









.heatseal-cat-tree {
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.heatseal-cat-tree h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}

.heatseal-cat-item {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

.heatseal-cat-header {
    padding: 5px 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 3px;
    margin: 0 !important;
}

.heatseal-cat-header:hover {
    background: #e8e8e8;
}

.heatseal-cat-header a {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    display: block;
}

.heatseal-cat-count {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
    font-weight: normal;
}

.heatseal-cat-header.current a {
    font-weight: 600;
    color: #D0150F;
}

.heatseal-cat-children {
    display: none;
    padding-left: 12px;
    margin: 0 !important;
    border-left: 1px solid #ddd;
}

.heatseal-cat-item.open>.heatseal-cat-children {
    display: block;
}

.heatseal-toggle {
    font-size: 10px;
    color: #999;
    transition: transform 0.2s;
    user-select: none;
    margin-left: 4px;
}

.heatseal-cat-item.open>.heatseal-cat-header .heatseal-toggle {
    transform: rotate(90deg);
}

.heatseal-product-item {
    padding: 5px 6px !important;
    display: block !important;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    border-radius: 3px;
    margin: 0 !important;
    line-height: 1.3;
    box-sizing: border-box;
}

.heatseal-product-item:hover {
    background: #e8e8e8;
}

.heatseal-product-item.current-product {
    background: #D0150F;
    color: white;
    font-weight: 600;
}



.wp-post-image,
.woocommerce-product-gallery__image,
.wc-block-components-product-image,
.woocommerce-page img {
    border-radius: 8px;
}



@media (max-width: 768px) {
    #wp-block-search__input-2 {
        max-width: 60px;
    }

    h1.wp-block-site-title {
        display: none;
    }
}

div.wp-block-search__inside-wrapper,
#wp-block-search__input-2 {
    border-color: #D0150F !important;
    border-radius: 8px;
    margin: 0px;
    max-height: 40px;
    padding-bottom: 0px !important;
    padding-right: 0px !important;
    padding-top: 0px !important;
}

form>div>button.wp-block-search__button {
    border-radius: 0 8px 8px 0;
    padding: 6px 10px !important;
}

body>div.wp-site-blocks>header>div.wp-block-group.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained>div>div.wp-block-group.alignwide.is-content-justification-left.is-layout-flex.wp-container-core-group-is-layout-fc4fd283.wp-block-group-is-layout-flex {
    gap: 20px;
}




/* shopping cart icon size */
.wc-block-mini-cart__button .wc-block-mini-cart__icon {
    height: 2em !important;
    width: 2em !important;
}

/* fix shopping cart icon badge alignment */
.wc-block-mini-cart__button {
    line-height: 1.5 !important;
}

/* customer account icon size */
div.wp-block-woocommerce-customer-account>a>svg {
    height: 2em;
    width: 2em;
    padding-left: 8px;
}

/* adjust spacing in header */
.wp-container-core-group-is-layout-fc054d2d {
    gap: 0px !important;
}


.wc-block-mini-cart__badge {
    font-size: 12px;
    height: 18px;
}


header.wp-block-template-part {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}



.category-description {
	font-size: 18px;
	font-weight: 300;
}


/* Resources - Download Button Styling */
.wp-block-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.wp-block-file:hover {
    background: #f9f9f9;
}

.wp-block-file__button {
    margin-left: auto;
}

.wp-block-file:not(.wp-element-button) {
    font-size: .8em;
    margin: 0;
    padding: 12px !important;
}


/* Contact - Google Maps Styling */
.wp-container-core-group-is-layout-12243e0f { display: inline!important; }


/* Contact Form 7 Styling */
.wpcf7 {
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.cf7-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .cf7-grid-row {
    grid-template-columns: 1fr;
  }
}

.wpcf7 label {
  display: block;
  margin-bottom: 20px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
  box-sizing: border-box;
  margin-top: 8px;
  font-family: inherit;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: #D0150F;
  outline: none;
}

.wpcf7 textarea {
  resize: vertical;
  min-height: 150px;
}

.wpcf7 input[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, #D0150F 0%, #a01008 100%);
  color: #ffffff;
  padding: 16px;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(208, 21, 15, 0.3);
  margin-top: 10px;
}

.wpcf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(208, 21, 15, 0.4);
}

.wpcf7 .wpcf7-response-output {
  margin: 20px 0 0 0;
  padding: 15px;
  border-radius: 6px;
}

.wpcf7 .wpcf7-not-valid-tip {
  color: #D0150F;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Hide Free in shipping options */
.wc-block-checkout__shipping-option--free {
    display: none;
}

/* Hide Free in order summary */
.wc-block-components-totals-shipping .wc-block-components-totals-item__value {
    display: none;
}