/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* Single Products Button 
.single-product form.cart .gp-single-buy-now {
        width: auto !important;
		margin-left: 5px;
    }

@media (max-width: 307px) {
  .single-product form.cart .gp-single-buy-now {
    margin-top: 5px;
  }
} */

/* Related Products Css */
.woocommerce ul.products li.product a.button {
    display: inline-block !important;
    width: auto !important;
    margin: 5px 3px !important;
    padding: 10px 14px;
    font-size: 14px;
}

/* ===== SINGLE PRODUCT: layout (main product area only, not the sticky panel) ===== */
body.single-product .summary form.cart:not(.variations_form),
body.single-product .summary form.cart .woocommerce-variation-add-to-cart {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

body.single-product .summary form.cart::before,
body.single-product .summary form.cart::after,
body.single-product .summary form.cart .woocommerce-variation-add-to-cart::before,
body.single-product .summary form.cart .woocommerce-variation-add-to-cart::after {
    display: none !important;
    content: none !important;
}

body.single-product .summary form.cart .quantity {
    grid-column: 1 / -1;
    justify-self: start;
    margin: 0 !important;
    float: none !important;
}

/* ===== Both buttons: identical size and style ===== */
body.single-product .summary form.cart button.single_add_to_cart_button,
body.single-product .summary form.cart button[class*="buy" i],
body.single-product .summary form.cart a[class*="buy" i],
body.single-product .summary form.cart input[class*="buy" i] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 50px;
    margin: 0 !important;
    padding: 14px 16px !important;
    float: none !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    text-align: center;
    text-decoration: none !important;
    color: #fff !important;
    box-sizing: border-box !important;
    transition: opacity .2s ease, transform .2s ease;
}

body.single-product .summary form.cart button.single_add_to_cart_button:hover,
body.single-product .summary form.cart button[class*="buy" i]:hover,
body.single-product .summary form.cart a[class*="buy" i]:hover {
    opacity: .9;
    transform: translateY(-1px);
    color: #fff !important;
}

/* ===== Colors ===== */
body.single-product .summary form.cart button.single_add_to_cart_button {
    background: #f58a1f !important;
}
body.single-product .summary form.cart button[class*="buy" i],
body.single-product .summary form.cart a[class*="buy" i],
body.single-product .summary form.cart input[class*="buy" i] {
    background: #04201c !important;
}

/* ===== Shopping bag icon on Add to Cart (white, drawn as background image) ===== */
body.single-product .summary form.cart button.single_add_to_cart_button::before {
    content: "";
    display: inline-block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}

/* ===== WhatsApp / Call row uses the same grid ===== */
.osk-order-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 0 !important;
}
.osk-order-buttons .osk-btn {
    min-height: 50px;
    padding: 14px 16px;
    font-size: 15px;
    box-sizing: border-box;
}

/* ===== Phones: stack ===== */
@media (max-width: 480px) {
    body.single-product .summary form.cart:not(.variations_form),
    body.single-product .summary form.cart .woocommerce-variation-add-to-cart,
    .osk-order-buttons {
        grid-template-columns: 1fr;
    }
}
/* ===== SINGLE PRODUCT: layout (main product area only, not the sticky panel) ===== END*/

/* ===== ALL SIDEBARS (left + right): modern look ===== */
.sidebar {
    --osk-accent: #f58a1f;
    --osk-dark: #04201c;
    --osk-border: #e5e7eb;
    --osk-text: #374151;
}

/* ----- Widget cards ----- */
.sidebar .widget {
    background: #fff;
    border: 1px solid var(--osk-border);
    border-radius: 12px;
    padding: 20px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

/* ----- One consistent heading style ----- */
.sidebar .widget :is(h1, h2, h3, h4, h5, h6),
.sidebar .widget .widget-title,
.sidebar .widget .wp-block-heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: .01em;
    color: var(--osk-dark);
    margin: 0 0 14px 0 !important;
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--osk-border);
}

/* Main widget title slightly bigger, sub-headings stay equal */
.sidebar .widget :is(h1, h2):first-child {
    font-size: 18px !important;
}

/* Spacing between filter groups */
.sidebar .widget :is(h3, h4, h5, h6):not(:first-child) {
    margin-top: 22px !important;
}

/* ----- Body text ----- */
.sidebar .widget,
.sidebar .widget label,
.sidebar .widget li,
.sidebar .widget a {
    font-size: 14px;
    line-height: 1.5;
    color: var(--osk-text);
}
.sidebar .widget a { text-decoration: none; }
.sidebar .widget a:hover { color: var(--osk-accent); }

/* ----- Search ----- */
.sidebar .widget :is(.wp-block-search__inside-wrapper, .search-form) {
    display: flex;
    gap: 8px;
}
.sidebar .widget :is(input[type="search"], input[type="text"], input[type="number"]) {
    height: 44px;
    padding: 0 14px;
    background: #f9fafb;
    border: 1px solid var(--osk-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--osk-dark);
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.sidebar .widget :is(input[type="search"], input[type="text"], input[type="number"]):focus {
    outline: 0;
    border-color: var(--osk-accent);
    box-shadow: 0 0 0 3px rgba(245, 138, 31, .15);
}
.sidebar .widget :is(.wp-block-search__input, .search-field) {
    flex: 1 1 auto;
    min-width: 0;
}
.sidebar .widget :is(.wp-block-search__button, .search-submit, button[type="submit"]) {
    height: 44px;
    padding: 0 18px;
    background: var(--osk-dark);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.sidebar .widget :is(.wp-block-search__button, .search-submit, button[type="submit"]):hover {
    background: var(--osk-accent);
    color: #fff;
}

/* ----- Price slider ----- */
.sidebar .widget [class*="price-slider"] {
    --range-color: var(--osk-accent);
    --track-background: var(--osk-border);
}
.sidebar .widget [class*="price-slider__range-input-wrapper"] {
    height: 6px !important;
    border-radius: 99px;
    background: var(--osk-border) !important;
}
.sidebar .widget [class*="price-slider__range-input-progress"] {
    background: var(--osk-accent) !important;
    border-radius: 99px;
}
.sidebar .widget input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid var(--osk-accent);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.sidebar .widget input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid var(--osk-accent);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

/* Min / Max price boxes */
.sidebar .widget [class*="price-slider__controls"] input {
    height: 38px;
    width: 46%;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #f9fafb;
    border: 1px solid var(--osk-border);
    border-radius: 8px;
}

/* ----- Lists (categories, recent posts, archives, etc.) ----- */
.sidebar .widget :is(ul, ol) {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar .widget li {
    padding: 6px 0;
    margin: 0;
}

/* ----- Checkboxes ----- */
.sidebar .widget label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.sidebar .widget input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    cursor: pointer;
    transition: all .2s;
}
.sidebar .widget input[type="checkbox"]:hover {
    border-color: var(--osk-accent);
}
.sidebar .widget input[type="checkbox"]:checked {
    background-color: var(--osk-accent);
    border-color: var(--osk-accent);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
    .sidebar .widget { padding: 16px !important; }
}
/* Author Box Icon Round */
img.wp-image-443 {
    border-radius: 50%;
}
/* Deshi Pay Whatsapp link color change */
