/* GLOBAL WRAPPER */
.shoppage {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px;
}
/* HEADER */
.bookshop-header-wrapper {
    position: relative; /* safe, does NOT break grid */
    max-width: 1200px;
  margin: 0 auto !important;
}

/* FLOATING BACKGROUND STRIP */
.bookshop-header-back {
    position: absolute;
    inset: 0; /* fills entire wrapper height + width */
    background: linear-gradient(180deg, #0a0909 0%, #302929 100%);
    z-index: 0; /* behind header */

  /*clip-path: polygon(100% 10%, 100% 90%, 0% 90%, 0% 10%); */
    
    margin: 5rem 2rem;
}

/* HEADER CONTENT (normal flow) */
.bookshop-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    color: white;

    position: relative; /* stays normal */
    z-index: 1;         /* sits above strip */
}


body #primary.shoppage { margin: 0 auto !important;}


@media (max-width: 901px) {
  .woocommerce #masthead {
    margin-bottom: 0 !important;
  }
}
.bookshop-header-left{

    padding: 2rem;
}

.bookshop-header-left {
    position: relative; /* safe, does NOT break grid */
}

.bookshop-header-left::before {
    content: "";
    position: absolute;
top: -1rem;
  left: 7rem;
  width: 120px;
  height: 84px;
    background-image: url("https://www.lafowler.ca/wp-content/uploads/2025/11/fowler-quail.png");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; /* she won’t block clicks */
    z-index: 5; /* floats above header content */
}

.featured-product-image {
    width: 100%;
}

.book-cover-image,
.shop-sidebar .shop-featured img,
.featured-product-image-wrapper{
    transition: transform .4s cubic-bezier(.2,.8,.2,1), 
                filter .4s ease;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,.18));
}

.book-cover-image:hover,
.shop-sidebar .shop-featured img:hover,
.featured-product-image-wrapper:hover {
    transform: translateY(-10px) rotate(-1.5deg) scale(1.035);
    filter: brightness(1.05) drop-shadow(0 18px 20px rgba(0,0,0,.3));
}

.featured-product-image-wrapper {
    position: relative;
    max-width: 185px;
    margin: 0 auto;
}



.featured-sale-badge {
    position: absolute;

}

.featured-sale-badge {
    transition: transform 0.3s ease;
}

.featured-product-image-wrapper:hover .featured-sale-badge {
    transform: rotate(-10deg) scale(1.1);
}


/* SERIES */
.shop-series {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.shop-series h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

/* BOOK ROW */
.book-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.book-row-image img {
    width: 100%;
    border-radius: 12px;
}

.book-row-title {
    font-size: 1.8rem;
    margin: 5px 0 !important;
}

.book-row-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.book-row-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.book-row-learn {
    background: #111;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.book-row-learn:hover {
    background: #333;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .bookshop-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-row-image img {
        max-width: 250px;
        margin: 0 auto;
    }

    .book-row-buttons {
        justify-content: center;
    }
}



/*--- PRODUCT PAGE ----*/

/* MAIN LAYOUT */
.shop-product-inner {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: start;
}

/* BOOK COVER */
.shop-product-images {
    position: relative;
}
.shop-product-images img {
    width: 100%;
    border-radius: 12px;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.15);*/
}

/* SALE BADGE */
.featured-sale-badge {
    position: absolute;

}

/* TITLE */
.shop-product-summary h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

/* PRICE */
.shop-product-summary .price {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* META */
.product_meta {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* SYNOPSIS TAB */
.woocommerce-tabs .wc-tabs li a {
    padding: 10px 20px;
    border-radius: 8px;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .shop-product-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .shop-product-images img {
        max-width: 300px;
        margin: 0 auto;
    }

    .floating-add-to-cart {
        right: 15px;
        bottom: 15px;
        padding: 14px 22px;
    }
}

@media (min-width: 900px) {
    .widget-area.shop-sidebar{
        padding-top: 101px !important;
    }
}
.shop-product-single .featured-sale-badge {
width: 30%;
  height: 30%;
  top: 1rem;
  left: 18rem;
}

.shop-sidebar a:hover { color: #22d655;}

.shop-sidebar .featured-sale-badge {
width: 20rem;
  height: 6rem;
  top: 3rem;
  left: 28%;
}

/* Mini Cart Buttons */
.woocommerce-mini-cart__buttons {
    display: flex;
    justify-content: space-between; /* pushes left + right */
    gap: 20px; /* adds spacing between buttons */
    margin-top: 15px;
}

.woocommerce-mini-cart__buttons .button {
    flex: 1; /* optional: makes them equal width */
    text-align: center;
}

/* If you want them NOT equal width, remove flex:1 */

@media (max-width: 600px) {
    .woocommerce-mini-cart__buttons {
        flex-direction: column;
        gap: 10px;
    }
}

.woocommerce-mini-cart .mini_cart_item::after {
    content: attr(data-qty);
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


/* Mini-cart covers container */
.mini-cart-covers {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Each cover */
.mini-cart-covers img {
    width: 55px;
    height: auto;
    border-radius: 4px;
}

/* Hide WooCommerce text */
.woocommerce-mini-cart .mini_cart_item a {
    font-size: 0; /* hides title */
}

.woocommerce-mini-cart .mini_cart_item .quantity {
    display: none; /* hides quantity line */
}

/* Remove weird floats WooCommerce adds */
.woocommerce ul.cart_list li img,
.woocommerce ul.product_list_widget li img {
    float: none !important;
    margin: 0 !important;
}

form.cart { margin-bottom: 1rem;}
		


/* Replace WooCommerce sale badge with custom image */
.onsale, .featured-sale-badge {
    color: transparent !important;
    font-size: 0 !important;
    width: 60px;
    height: 60px;
    display: block;
    position: absolute;
top: 2rem;
  left: 9rem;
    padding: 0;
    border-radius: 0;
    background-color:  transparent;
    background-image: url('/wp-content/themes/fowler-theme/images/sale-gow-red-sign.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 20;
}




/*---- TABS ---*/

/* --- TABS WRAPPER --- */
.woocommerce-tabs {
    margin-top: 40px;
}

/* --- TAB LIST --- */
.woocommerce-tabs .wc-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* Remove WooCommerce default bullets */
.woocommerce-tabs .wc-tabs li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

/* --- TAB BUTTONS --- */
.woocommerce-tabs .wc-tabs li a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    background: #f7f7f7;
    transition: all 0.25s ease;
}

/* Hover effect */
.woocommerce-tabs .wc-tabs li a:hover {
    background: #e5e5e5;
}

/* --- ACTIVE TAB --- */
.woocommerce-tabs .wc-tabs li.active a {
    background: #111;
    color: #fff;
}

/* --- TAB CONTENT AREA --- */
.woocommerce-Tabs-panel {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}



body.woocommerce-checkout  #primary,
body.woocommerce-cart  #primary {
  margin: 4rem auto 0 auto;
}


.book-buy-links {
        transform: scale(.85);
    transform-origin: left center;
    margin: 1.5rem 0;
    padding: 1.25rem;
border: 2px solid #1FB48A;
  border-radius: 12px;
  background: #c9e0da;
    text-align: center;
}

.book-buy-links h4 {
    margin-top:0;
    margin-bottom:.5rem;
}

.book-buy-links p {
    margin-bottom:1rem;
}

.book-buy-links h3 {
    margin: 0 0 .75rem 0;
    color: #D9266C;
}


.single-product-page form.cart {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.single-product-page form.cart .quantity {
    margin: 0;
}

.single-product-page form.cart button {
    margin: 0;
}
.book-retailer-links {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.book-retailer-links a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: #DA387B;
    padding: .35rem .8rem;
    margin: .2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all .25s ease;
    box-shadow: 0 3px 0 rgba(0,0,0,.15);
    position: relative;
    top: 0;
}

.book-series {
  margin: 0;
  font-size: .55rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  opacity: .75;
  padding: 0;
}


.book-row-content hr {
    margin: 1rem 0 1.5rem;
    border: 0;
    border-top: 1px solid currentColor;
    opacity: .25;
}

.book-row-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}


/* Mobile */
@media (max-width: 768px) {

    .book-row-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }


    .book-row-buttons > * {
        width: 100%;
    }


    .book-print-links {
        justify-content: center;
        text-align: center;
    }

}
.book-print-links a {
    display: inline-block;
    border-radius: 999px;
    background: #DA387B;
    padding: .35rem .8rem;
    margin: .2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all .25s ease;
    box-shadow: 0 3px 0 rgba(0,0,0,.15);
    position: relative;
    top: 0;
}

.book-print-links a:hover {
    background: #428277;
    transform: translateY(-3px) rotate(-2deg);
    box-shadow: 0 6px 12px rgba(0,0,0,.18);
}

.book-details {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,.15);
}


.book-details > div {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-bottom: .5rem;
}


.book-details .label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .08em;
}


.book-details a {
    text-decoration: none;
}


