/* =====================================================================
   Alish Sports – Quote Form v2.0  |  form-style.css
   Colors: #111 (black), #fff (white), #ffaa00 (gold)
   ===================================================================== */

/* ---- Shop Loop: GET QUOTE NOW button ---- */
.aqf-loop-quote-btn {
    background: #111 !important;
    color: #fff !important;
    border: 2px solid #111 !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    transition: background 0.2s !important;
}
.aqf-loop-quote-btn:hover {
    background: #ffaa00 !important;
    color: #111 !important;
    border-color: #ffaa00 !important;
}

/* ---- Product Page Section ---- */
.aqf-section {
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

/* ---- CTA Row ---- */
.aqf-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.aqf-gqn-btn {
    flex: 1;
    background: #111;
    color: #fff;
    border: 2px solid #111;
    border-radius: 4px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    min-width: 180px;
}
.aqf-gqn-btn:hover,
.aqf-gqn-btn[aria-expanded="true"] {
    background: #ffaa00;
    color: #111;
    border-color: #ffaa00;
}
.aqf-add-qcart-btn {
    flex: 1;
    background: #fff;
    color: #111;
    border: 2px solid #111;
    border-radius: 4px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    min-width: 180px;
}
.aqf-add-qcart-btn:hover {
    background: #111;
    color: #fff;
}
.aqf-add-qcart-btn.aqf-added {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}

/* ---- Inline Form Wrap ---- */
.aqf-inline-wrap {
    display: none;
    border: 2px solid #111;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    animation: aqfSlideDown 0.3s ease;
}
@keyframes aqfSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.aqf-inline-wrap.aqf-open {
    display: block;
}

/* ---- Form Header ---- */
.aqf-form-header {
    background: #111;
    color: #fff;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid #ffaa00;
}
.aqf-form-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.aqf-form-close:hover { opacity: 1; }

/* ---- Form ---- */
.aqf-quote-form {
    padding: 20px 24px;
    background: #fff;
}

/* ---- Rows / Cols ---- */
.aqf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.aqf-row.aqf-full { grid-template-columns: 1fr; }

/* ---- Labels ---- */
.aqf-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #111;
    margin-bottom: 6px;
}
.aqf-req { color: #ffaa00; }

/* ---- Inputs & Textarea ---- */
.aqf-input,
.aqf-textarea {
    width: 100%;
    background: #fff;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    padding: 11px 14px;
    font-size: 14px;
    color: #111;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}
.aqf-input::placeholder,
.aqf-textarea::placeholder { color: #aaa; }
.aqf-input:focus,
.aqf-textarea:focus {
    border-color: #ffaa00;
    box-shadow: 0 0 0 3px rgba(255,170,0,0.15);
}
.aqf-input.aqf-err,
.aqf-textarea.aqf-err { border-color: #e74c3c; }
.aqf-textarea { resize: vertical; min-height: 90px; }

/* ---- Submit Button ---- */
.aqf-submit-btn {
    width: 100%;
    background: #ffaa00;
    color: #111;
    border: none;
    border-radius: 4px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    transition: background 0.2s, transform 0.1s;
}
.aqf-submit-btn:hover { background: #e09900; }
.aqf-submit-btn:active { transform: scale(0.99); }
.aqf-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* ---- Response Messages ---- */
.aqf-response {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}
.aqf-response.aqf-success {
    background: #e8f8e8;
    color: #1a7f1a;
    border-left: 4px solid #27ae60;
    display: block;
}
.aqf-response.aqf-error {
    background: #fdecea;
    color: #c0392b;
    border-left: 4px solid #e74c3c;
    display: block;
}

/* =====================================================================
   ACCORDION – Long Description
   ===================================================================== */
.aqf-accordion {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 4px;
}
.aqf-acc-btn {
    width: 100%;
    background: #f7f7f7;
    color: #111;
    border: none;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: background 0.2s;
}
.aqf-acc-btn:hover { background: #ebebeb; }
.aqf-acc-btn[aria-expanded="true"] { background: #111; color: #ffaa00; }
.aqf-acc-arrow {
    font-size: 11px;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.aqf-acc-btn[aria-expanded="true"] .aqf-acc-arrow {
    transform: rotate(180deg);
}
.aqf-acc-body {
    display: none;
    background: #fff;
    border-top: 2px solid #e0e0e0;
}
.aqf-acc-body.aqf-acc-open { display: block; }
.aqf-acc-content {
    padding: 20px 24px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}
.aqf-acc-content p { margin-bottom: 12px; }
.aqf-acc-content img { max-width: 100%; height: auto; }

/* =====================================================================
   STICKY QUOTE CART BAR
   ===================================================================== */
.aqf-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #111;
    color: #fff;
    box-shadow: 0 -3px 16px rgba(0,0,0,0.25);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.aqf-sticky-bar.aqf-bar-visible {
    transform: translateY(0);
}
.aqf-sticky-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.aqf-sticky-icon { font-size: 22px; }
.aqf-sticky-text { font-size: 14px; font-weight: 600; flex: 1; }
.aqf-sticky-text strong { color: #ffaa00; font-size: 18px; }
.aqf-sticky-cta {
    background: #ffaa00;
    color: #111;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.aqf-sticky-cta:hover { background: #e09900; }
.aqf-sticky-x {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    line-height: 1;
}
.aqf-sticky-x:hover { color: #fff; }

/* =====================================================================
   QUOTE CART MODAL
   ===================================================================== */
.aqf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.aqf-modal-overlay.aqf-modal-open {
    opacity: 1;
    pointer-events: all;
}
.aqf-modal-box {
    background: #fff;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(40px);
    transition: transform 0.3s;
    font-family: Arial, sans-serif;
}
.aqf-modal-overlay.aqf-modal-open .aqf-modal-box {
    transform: translateY(0);
}
.aqf-modal-head {
    background: #111;
    color: #fff;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #ffaa00;
}
.aqf-modal-x {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    padding: 0 4px;
    transition: opacity 0.2s;
}
.aqf-modal-x:hover { opacity: 1; }
.aqf-modal-body {
    overflow-y: auto;
    padding: 20px 24px 28px;
    flex: 1;
}

/* ---- Modal Footer Buttons ---- */
.aqf-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.aqf-modal-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
    color: #fff;
}

.aqf-modal-view-cart {
    background: #666;
}

.aqf-modal-view-cart:hover {
    background: #555;
}

.aqf-modal-checkout {
    background: #111;
}

.aqf-modal-checkout:hover {
    background: #000;
}

/* ---- Cart Item List ---- */
.aqf-cart-list {
    margin-bottom: 20px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}
.aqf-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    flex-wrap: wrap;
    justify-content: space-between;
}
.aqf-cart-item:last-child { border-bottom: none; }
.aqf-cart-item:nth-child(even) { background: #fff; }
.aqf-cart-pname { 
    font-weight: 700; 
    font-size: 13px; 
    color: #111; 
    flex: 1;
    min-width: 120px;
}
.aqf-cart-qty-wrap { 
    display: flex; 
    align-items: center; 
    gap: 6px;
    flex-shrink: 0;
}
.aqf-cart-qty-lbl { 
    font-size: 11px; 
    color: #888; 
    font-weight: 600;
    white-space: nowrap;
}
.aqf-cart-qty-input {
    width: 65px;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 13px;
    color: #111;
    flex-shrink: 0;
}
.aqf-cart-sizes-input {
    width: 120px;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 13px;
    color: #111;
    flex-shrink: 0;
}
.aqf-cart-remove {
    background: none;
    border: 1.5px solid #c0392b;
    color: #c0392b;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 3px;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}
.aqf-cart-remove:hover { 
    background: #c0392b;
    color: #fff;
}
.aqf-cart-empty {
    text-align: center;
    color: #888;
    padding: 24px;
    font-size: 14px;
}

/* ---- Multi form heading ---- */
.aqf-multi-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #111;
    margin: 0 0 16px 0;
    padding-top: 16px;
    border-top: 2px solid #f0f0f0;
}

/* =====================================================================
   MOBILE RESPONSIVE
   ===================================================================== */
@media (max-width: 600px) {
    .aqf-row { grid-template-columns: 1fr; gap: 12px; }
    .aqf-quote-form { padding: 14px 16px; }
    .aqf-cta-row { flex-direction: column; }
    .aqf-gqn-btn, .aqf-add-qcart-btn { min-width: auto; }
    .aqf-sticky-inner { flex-wrap: wrap; gap: 10px; }
    .aqf-sticky-cta { width: 100%; text-align: center; }
    .aqf-modal-box { max-height: 95vh; }
    .aqf-cart-item { grid-template-columns: 1fr auto; }
    .aqf-cart-qty-wrap, .aqf-cart-sizes-input { display: none; }
}

/* =====================================================================
   B2B GLOBAL OVERRIDES  (v2.1)
   Hide native WooCommerce price/cart elements that shouldn't appear
   ===================================================================== */

/* ---- 1. SHOP LOOP – hide any residual native add-to-cart button ---- */
.woocommerce ul.products .add_to_cart_button:not(.aqf-loop-quote-btn),
.woocommerce-loop-product__link ~ a.button:not(.aqf-loop-quote-btn),
.woocommerce .products .product .button.product_type_simple:not(.aqf-loop-quote-btn),
.woocommerce .products .product .button.product_type_variable:not(.aqf-loop-quote-btn) {
    display: none !important;
}

/* ---- 2. PRODUCT PAGE – hide native add-to-cart form & quantity ---- */
.woocommerce div.product form.cart,
.single-product .cart,
.woocommerce div.product .cart-button,
.single_add_to_cart_button,
.woocommerce-variation-add-to-cart {
    display: none !important;
}

/* ---- 3. PRODUCT PAGE – hide wishlist & compare buttons ---- */
/* YITH Wishlist */
.yith-wcwl-add-to-wishlist,
.yith-wcwl-wishlist-fragment,
/* WooSwipe / Swatchly wishlist */
.woosw-btn,
/* TI WooCommerce Wishlist */
.tinvwl_add_to_wishlist_button,
.tinv-wishlist,
/* WPC Smart Wishlist */
.woosw-popup-btn,
/* YITH Compare */
.yith-woocompare-add,
/* WPC Smart Compare */
.wooscp-btn,
/* Generic compare links */
a.compare,
.compare-button {
    display: none !important;
}

/* ---- 4. PRODUCT PAGE – hide theme shipping/delivery info box ---- */
/* Common theme/plugin delivery info selectors */
.product-delivery-info,
.porto-product-extra-info,
.product-extra-info,
.woo-delivery-info,
.product-shipping-details,
.shipping-notice,
[class*="delivery-info"],
[class*="shipping-info"],
[class*="product-extra"],
/* Flatsome theme */
.product-shipping,
/* Woodmart theme */
.woodmart-product-extra-info,
/* Astra / Kadence / GeneratePress "meta" shipping boxes */
.ast-product-extra,
.product_meta_extra,
/* XStore theme */
.woocommerce-product-details__shipping {
    display: none !important;
}

/* ---- 5. MINI CART – hide all price/total/savings elements ---- */
/* Per-item price */
.woocommerce-mini-cart .woocommerce-Price-amount,
.woocommerce-mini-cart .amount,
.mini_cart_item .product-price,
/* Subtotal row */
.woocommerce-mini-cart__total,
.widget_shopping_cart_content .total,
/* "SAVE: $XX" badge that some themes add */
[class*="save-badge"],
[class*="saving"],
.woocommerce-mini-cart .saved-amount {
    display: none !important;
}

/* ---- 6. MINI CART – custom notice & buttons ---- */
.aqf-minicart-notice {
    padding: 12px 14px;
    background: #f9f9f9;
    border-top: 2px solid #f0f0f0;
    font-family: Arial, sans-serif;
}
.aqf-minicart-msg {
    font-size: 13px;
    color: #444;
    margin: 0 0 12px 0;
    line-height: 1.5;
}
.aqf-minicart-continue-btn,
.aqf-minicart-contact-btn {
    display: block;
    text-align: center;
    padding: 11px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-bottom: 8px;
    text-decoration: none !important;
}
.aqf-minicart-continue-btn {
    background: #fff;
    color: #111;
    border: 2px solid #111;
}
.aqf-minicart-continue-btn:hover {
    background: #111;
    color: #fff;
}
.aqf-minicart-contact-btn {
    background: #ffaa00;
    color: #111 !important;
    border: 2px solid #ffaa00;
}
.aqf-minicart-contact-btn:hover {
    background: #e09900;
    border-color: #e09900;
}

/* =====================================================================
   SHOPPING CART PAGE – RESPONSIVE PRODUCT IMAGES
   ===================================================================== */

/* Lock the thumbnail COLUMN width */
td.product-thumbnail,
th.product-thumbnail,
.woocommerce td.product-thumbnail,
.woocommerce th.product-thumbnail,
.woocommerce table.shop_table td.product-thumbnail,
.woocommerce table.shop_table th.product-thumbnail {
    width: 80px !important;
    max-width: 80px !important;
    min-width: 0 !important;
    padding: 12px 8px !important;
}

/* Lock the IMAGE itself — width AND height so it never stretches the row */
td.product-thumbnail img,
td.product-thumbnail a img,
.woocommerce td.product-thumbnail img,
.woocommerce td.product-thumbnail a img,
.woocommerce table.shop_table td.product-thumbnail img,
.woocommerce table.shop_table .product-thumbnail img,
.woocommerce-cart-form td.product-thumbnail img,
.woocommerce-cart-form__cart-item-thumbnail img,
.woocommerce-cart-form__cart-item-thumbnail a img,
.cart-item-thumbnail img,
.woocommerce .cart-collaterals .product-thumbnail img {
    width: 80px !important;
    max-width: 80px !important;
    height: 80px !important;
    max-height: 80px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 4px !important;
}

/* Mobile – even smaller */
@media (max-width: 768px) {
    td.product-thumbnail,
    .woocommerce td.product-thumbnail,
    .woocommerce table.shop_table td.product-thumbnail,
    .woocommerce table.shop_table th.product-thumbnail {
        width: 56px !important;
        max-width: 56px !important;
    }
    td.product-thumbnail img,
    .woocommerce td.product-thumbnail img,
    .woocommerce table.shop_table td.product-thumbnail img,
    .woocommerce table.shop_table .product-thumbnail img,
    .woocommerce-cart-form__cart-item-thumbnail img {
        width: 56px !important;
        max-width: 56px !important;
        height: 56px !important;
        max-height: 56px !important;
    }
}
