/* =====================================================
   WOOCOMMERCE - Handcrafted Creations by Andrea
   Single product, notices, cart, checkout
   ===================================================== */

   :root {
    --hc-accent: #7d9b88;
    --hc-accent-dark: #66836f;
    --hc-text: #222222;
    --hc-muted: #6b6b6b;
    --hc-border: #dcdcdc;
    --hc-radius: 12px;
  }
  
  /* ---------- Buttons (shared) ---------- */
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .single_add_to_cart_button,
  .wc-block-cart__submit-button,
  .wc-block-components-checkout-place-order-button {
    display: inline-block;
    background: var(--hc-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 15px 34px !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .woocommerce a.button:hover,
  .woocommerce button.button:hover,
  .woocommerce input.button:hover,
  .single_add_to_cart_button:hover,
  .wc-block-cart__submit-button:hover,
  .wc-block-components-checkout-place-order-button:hover {
    background: var(--hc-accent-dark) !important;
  }
  
  .wc-block-components-checkout-place-order-button,
  .wc-block-cart__submit-button {
    width: 100%;
  }
  
  /* ---------- Notices ---------- */
  .woocommerce-notices-wrapper {
    width: 100%;
  }
  
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 0 30px;
    padding: 16px 22px;
    background: #fff;
    border-left: 4px solid var(--hc-accent);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }
  
  .woocommerce-error {
    border-left-color: #d63638;
  }
  
  .woocommerce-message .button {
    order: 2;
    padding: 10px 24px !important;
    font-size: 14px;
  }
  
  /* =====================================================
     SINGLE PRODUCT
     ===================================================== */
  .hc-single-product {
    padding: 70px 0 90px;
  }
  
  .hc-single-product div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
  }
  
  .hc-single-product div.product .woocommerce-notices-wrapper {
    flex: 0 0 100%;
  }
  
  /* Gallery */
  .hc-single-product div.product .woocommerce-product-gallery {
    flex: 0 0 calc(50% - 25px);
    max-width: calc(50% - 25px);
    width: auto;
    float: none;
    margin: 0;
    position: relative;
    opacity: 1 !important;
  }
  
  .hc-single-product .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
  }
  
  .hc-single-product .woocommerce-product-gallery__trigger {
    z-index: 5;
  }
  
  .hc-single-product ol.flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    list-style: none;
    margin: 15px 0 0;
    padding: 0;
  }
  
  .hc-single-product ol.flex-control-thumbs li {
    width: 100%;
    float: none;
    margin: 0;
  }
  
  .hc-single-product ol.flex-control-thumbs li img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid transparent;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .hc-single-product ol.flex-control-thumbs li img.flex-active,
  .hc-single-product ol.flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: var(--hc-accent);
  }
  
  /* Sale badge */
  .woocommerce span.onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 6;
    min-height: 0;
    min-width: 0;
    padding: 5px 16px;
    background: var(--hc-accent);
    color: #fff;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
  }
  
  /* Summary */
  .hc-single-product div.product .summary {
    flex: 1 1 0;
    min-width: 300px;
    width: auto;
    float: none;
    margin: 0;
  }
  
  .hc-single-product .summary .price {
    display: block;
    margin: 0 0 20px;
    font-size: 32px;
    font-weight: 700;
    color: var(--hc-accent-dark);
  }
  
  .hc-single-product .summary .price del {
    font-size: 22px;
    opacity: 0.5;
  }
  
  .hc-single-product .summary .price ins {
    text-decoration: none;
  }
  
  .hc-single-product .woocommerce-product-details__short-description {
    margin-bottom: 25px;
    color: var(--hc-muted);
    line-height: 1.7;
  }
  
  .hc-single-product .stock {
    margin: 0 0 15px;
    font-weight: 600;
    color: var(--hc-accent-dark);
  }
  
  .hc-single-product .stock.out-of-stock {
    color: #d63638;
  }
  
  /* Add to cart row */
  .hc-single-product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin: 0 0 25px;
  }
  
  .hc-single-product .quantity .qty {
    width: 90px;
    height: 52px;
    padding: 0 10px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--hc-border);
    border-radius: 100px;
    font-size: 16px;
  }
  
  /* Meta (SKU, categories) */
  .hc-single-product .product_meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 20px;
    border-top: 1px solid var(--hc-border);
    font-size: 14px;
    color: var(--hc-muted);
  }
  
  .hc-single-product .product_meta a {
    color: var(--hc-accent-dark);
  }
  
  /* Description (tabs nav hidden, only content shown) */
  .hc-single-product .woocommerce-tabs {
    flex: 0 0 100%;
    margin-top: 20px;
    padding-top: 40px;
    border-top: 1px solid var(--hc-border);
  }
  
  .hc-single-product .woocommerce-tabs ul.tabs {
    display: none;
  }
  
  .hc-single-product .woocommerce-Tabs-panel {
    display: block !important;
    line-height: 1.8;
  }
  
  .hc-single-product .woocommerce-Tabs-panel > h2:first-child {
    display: none;
  }
  
  @media (max-width: 991px) {
    .hc-single-product {
      padding: 50px 0 60px;
    }
  
    .hc-single-product div.product {
      gap: 30px;
    }
  
    .hc-single-product div.product .woocommerce-product-gallery,
    .hc-single-product div.product .summary {
      flex: 0 0 100%;
      max-width: 100%;
    }
  }
  
  /* =====================================================
     CART + CHECKOUT (WooCommerce Blocks)
     ===================================================== */
  .woocommerce-cart .entry-content,
  .woocommerce-checkout .entry-content,
  .woocommerce-account .entry-content {
    padding: 60px 0 90px;
  }
  
  /* Fix oversized theme headings inside cart/checkout */
  .woocommerce-cart .entry-content h2,
  .woocommerce-checkout .entry-content h2,
  .wc-block-components-title.wc-block-components-title {
    line-height: 1.2 !important;
    margin: 0 0 18px;
    letter-spacing: 0;
  }
  
  .wc-block-components-checkout-step {
    margin: 0 0 35px;
  }
  
  .wc-block-components-checkout-step__description {
    font-size: 15px;
    color: var(--hc-muted);
  }
  
  /* Inputs */
  .wc-block-components-text-input input[type="email"],
  .wc-block-components-text-input input[type="number"],
  .wc-block-components-text-input input[type="password"],
  .wc-block-components-text-input input[type="tel"],
  .wc-block-components-text-input input[type="text"],
  .wc-block-components-text-input input[type="url"] {
    height: 58px !important;
    padding: 22px 16px 6px !important;
    font-size: 16px !important;
    line-height: 1.2;
    background: #fff;
    border: 1px solid var(--hc-border);
    border-radius: 10px;
  }
  
  .wc-block-components-text-input label {
    left: 16px !important;
  }
  
  .wc-blocks-components-select .wc-blocks-components-select__select {
    height: 58px !important;
    padding: 22px 16px 6px !important;
    font-size: 16px !important;
    background-color: #fff;
    border: 1px solid var(--hc-border);
    border-radius: 10px;
  }
  
  .wc-blocks-components-select .wc-blocks-components-select__container {
    height: auto !important;
  }
  
  .wc-block-components-address-form__address_2-toggle,
  .wc-block-components-checkbox .wc-block-components-checkbox__label,
  .wc-block-components-checkbox > span {
    font-size: 16px !important;
  }
  
  .wc-block-checkout__terms span,
  .wc-block-checkout__terms {
    font-size: 15px;
  }
  
  /* Cart table */
  .wc-block-cart-items th,
  .is-large.wc-block-cart .wc-block-cart-items th span {
    font-size: 14px !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hc-text) !important;
  }
  
  .wc-block-components-product-name {
    font-size: 17px !important;
    font-weight: 600;
    color: var(--hc-text) !important;
    text-decoration: none;
  }
  
  .wc-block-cart-item__image img,
  .wc-block-components-order-summary-item__image img {
    border-radius: 8px;
  }
  
  .wc-block-components-quantity-selector {
    border-radius: 100px;
    background: #fff;
  }
  
  .wc-block-components-quantity-selector__input {
    height: 38px;
  }
  
  /* Totals / summary */
  .wc-block-components-totals-item span,
  .wc-block-components-totals-coupon .wc-block-components-panel__button {
    font-size: 16px;
  }
  
  .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 22px;
    font-weight: 700;
  }
  
  .wp-block-woocommerce-checkout-order-summary-block {
    border-radius: var(--hc-radius);
    background: #fff;
  }
  
  .wc-block-cart__totals-title {
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  /* Block notices */
  .wc-block-components-notice-banner {
    line-height: 1.6;
    border-radius: 8px;
  }

  /* ---------- Single product: summary fixes ---------- */
.hc-single-product div.product .summary {
    position: sticky;
    top: 120px;
  }
  
  .hc-single-product .hc-product-title {
    margin: 0 0 12px;
    font-size: 25px;
    line-height: 1.1;
    color: var(--hc-text);
  }
  
  .hc-single-product .summary p.price,
  .woocommerce div.product p.price {
    color: var(--hc-accent-dark) !important;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
  }
  
  .hc-single-product .woocommerce-product-details__short-description {
    font-size: 17px;
    margin-bottom: 25px;
  }
  
  .hc-single-product .quantity .qty {
    color: var(--hc-text);
  }
  
  .hc-single-product .hc-product-description {
    margin: 10px 0 25px;
    padding-top: 25px;
    border-top: 1px solid var(--hc-border);
    color: var(--hc-muted);
    line-height: 1.8;
  }
  
  .hc-single-product .hc-product-description p:last-child {
    margin-bottom: 0;
  }
  
  @media (max-width: 991px) {
    .hc-single-product div.product .summary {
      position: static;
    }
  
    .hc-single-product .hc-product-title {
      font-size: 18px;
    }
  }

  