/*
 Theme Name: Kidoov
 Theme URI: https://woostify.com/
 Description: This is a child theme developed by Kidoov
 Author: Kidoov
 Author URI: https://kidoov.com
 Template: woostify
 Version: 1.0.0
*/

@media (max-width: 768px) {
  /* ===== Grid layout for shop pages ===== */
  body.archive.woocommerce ul.products,
  body.post-type-archive-product ul.products,
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100%;
    box-sizing: border-box;
  }

  /* ===== Product card styles ===== */
  body.archive.woocommerce ul.products li.product,
  body.post-type-archive-product ul.products li.product,
  body.tax-product_cat ul.products li.product,
  body.tax-product_tag ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    border: 1px solid #eee !important;
  }

  body ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    line-height: 1.4;
    color: #222;
    font-weight: normal;
    margin: 0 0 0 !important;
    padding: 2px 2px !important;
    text-align: center !important;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  /* Universal zero side padding */
  body ul.products li.product * {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* === Revert padding for SALE and OUT OF STOCK labels === */
  body ul.products li.product .woostify-tag-on-sale.onsale.sale-left,
  body ul.products li.product .woostify-out-of-stock-label.position-left {
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  body ul.products li.product .price {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin: 0 0 10px !important;
    text-align: center;
    display: block;
  }

  /* === Remove background from wishlist icon only === */
  body ul.products li.product .tinvwl_add_to_wishlist_button {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
 /* === Remove footer == */
  .site-footer {
	  display: none !important;
	}

	/* CHECKOUT PAGE */
	 /* Compact boxed card sections */
  #customer_details,
  .shop_table.woocommerce-checkout-review-order-table,
  #payment.woocommerce-checkout-payment {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    padding: 10px;
    margin-left: 2px;
    margin-right: 2px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
  }

  /* Ensure table scrolls if needed, but fits naturally */
  .shop_table.woocommerce-checkout-review-order-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Adjust padding for table cells */
  .shop_table.woocommerce-checkout-review-order-table th,
  .shop_table.woocommerce-checkout-review-order-table td {
    white-space: normal;
    word-break: break-word;
    padding-left: 6px;
    padding-right: 6px;
  }

  /* Fix image and title layout */
  .shop_table.woocommerce-checkout-review-order-table td.product-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .shop_table.woocommerce-checkout-review-order-table .w-product-thumb img {
    max-width: 60px;
    height: auto;
    border-radius: 4px;
  }

  /* Reduce checkout form padding */
  .woocommerce-checkout,
  form.checkout {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
	  .woostify-sorting {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 10px;
    margin: 10px 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
  }

  .woostify-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    min-width: 0;
  }

  #toggle-sidebar-mobile-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #f0f0f0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-weight: 500;
    color: #333;
  }

  .woocommerce-result-count {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #444;
  }

  .woocommerce-ordering {
    flex-shrink: 0;
  }

  .woocommerce-ordering select.orderby {
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 0;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    font-weight: 400;
  }

	/* === CART PAGE ==*/
	/* Outer section layout */
  .elementor-container,
  .e-con {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    padding: 2px;
    box-sizing: border-box;
  }

  /* Cart form box with inner spacing */
  .woocommerce-cart-form {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
  }

  .woocommerce-cart-form table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
  }

  .woocommerce-cart-form th,
  .woocommerce-cart-form td {
    word-wrap: break-word;
    text-align: center;
    padding: 10px 6px;
    vertical-align: middle;
    font-size: 14px;
  }

  /* Product name clean block display */
  .woocommerce-cart-form .product-name {
    display: block !important;
    visibility: visible !important;
    font-weight: 500;
    font-size: 14px;
    text-align: left;
    margin-top: 4px;
    padding: 0 !important;
    border: none !important;
    background: none !important;
  }

  .woocommerce-cart-form .product-name a {
    color: inherit;
    text-decoration: none;
  }

  .woocommerce-cart-form .quantity {
    max-width: 100px;
    margin: 0 auto;
  }

  /* Cart totals box with inner spacing */
  .cart-collaterals {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
  }

  .cart-collaterals table {
    width: 100%;
    border-collapse: collapse;
  }

  .cart-collaterals th,
  .cart-collaterals td {
    padding: 8px 6px;
    font-size: 14px;
    text-align: left;
  }

  /* Update cart button states */
  .woocommerce-cart-form .actions .button[disabled],
  .woocommerce-cart-form .actions .button:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
  }

  .woocommerce-cart-form .actions .button:not([disabled]) {
    background-color: var(--e-global-color-woostify_color_1, #000) !important;
    color: #fff !important;
  },
}
@media (min-width: 769px) {
  /* Box the cart content area on desktop */
  .woocommerce-cart .woocommerce {
    max-width: 1200px; /* adjust to your desired box width */
    margin: 0 auto;
    padding: 0 20px; /* optional side padding */
    box-sizing: border-box;
  }
}

.swatch-list .swatch.swatch-label.selected,
.woostify-variation-swatches .swatch.swatch-label.selected{
background: #6DE9C8;
color: #000000;
}



