/*
Theme Name:   Storefront Child
Theme URI:    https://example.com/storefront-child/
Description:  Child theme for Storefront, customized for use with WooCommerce.
Author:       Luke
Author URI:   https://example.com
Template:     storefront
Version:      2.6.0
Text Domain:  storefront-child
*/

/* =========================================
   Add your custom CSS overrides below.
   These load AFTER the parent Storefront
   stylesheet, so they will take priority.
   ========================================= */

/* =========================================
   ORIGINAL SITE STYLING
   (migrated from Customizer -> Additional CSS,
   which was tied to the Storefront parent theme
   and did not carry over automatically when
   switching to this child theme)
   ========================================= */

.n2_clear {
	margin-bottom: 2.5em !important;
}
.col-full {
	padding-top: 0em !important;
	padding-bottom: 0em !important;
}
.site-search {
margin-bottom: 0 !important;
}
.size-woocommerce_thumbnail {
	border: 1px #ccc solid;
	border-radius: 4px !important;
}
.storefront-breadcrumb {
margin-bottom: 0 !important;
}
.wc-block-featured-category {
min-height: 300px !important;
}
.woocommerce-product-gallery__image {
	border: 1px #ccc solid;
	border-radius: 4px !important;
}
.entry-title {
margin-bottom: 0 !important;
}
.site-header {
	margin-bottom: 0 !important;
}
.wp-block-column {
	margin-right: 0 !important;
}
.wp-block-image {
	margin-right: 0 !important;
	margin-bottom: 30px !important;
	border-radius: 4px !important;
}
.wc-block-featured-category {
	border-radius: 4px !important;
}
.search-field {
	height: 44px !important;
	border-radius: 4px !important;
}
.site-branding {
	display: flex !important;
 align-items: center !important;
  height: 44px !important;
}
.site-branding img {
	border-radius: 0 !important;
}
.storefront-breadcrumb {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 0 2em 0 !important;
}
.widget {
    margin: 0 !important;
}
.widget h5 {
   font-size: 1em !important;
}
.footer-widgets {
        padding-top: 2em !important;
}
.footer-widgets .widget img {
   max-width: 140px !important;
	border-radius: 0 !important;
}
.site-info {
    padding: 2em 0 3em 0 !important;
	font-size: 0.875em !important;
}
#menu-mobile {
	padding-top: 16px;
}
#menu-mobile>li>a {
	padding: 1em 0;
}

.pwb-brands-in-loop {
min-height: 50px;
}
.site-header .site-logo-anchor img, .site-header .site-logo-link img, .site-header .custom-logo-link img {
    width: 100%;
		max-width: 180px !important;
}
button.menu-toggle, button.menu-toggle:hover {
    border-radius: 4px !important;
}
.storefront-align-wide.page-template-template-fullwidth-php .hentry .entry-content .alignfull, .storefront-align-wide.storefront-full-width-content .hentry .entry-content .alignfull {
		margin-top: -24px;
	}
.wc-block-featured-category .wc-block-featured-category__title {
		font-size: 1.5em !important;
	}
.hentry .entry-content .wp-block-button, .editor-styles-wrapper .wp-block-button {
    margin-bottom: 0em !important;
}
.hentry .entry-content .wp-block-button .wp-block-button__link, .editor-styles-wrapper .wp-block-button .wp-block-button__link {
	border-radius: 4px !important;
}
.woocommerce-breadcrumb {
    padding: 8px 12px;
    background-color: #eee;
    border-radius: 4px;
	  margin-top: 24px !important;
}
.entry-content ul {
		margin: 2em 0 !important;
}
.hentry {
    margin: 0 !important;
}
.wp-block-columns {
    margin-bottom: 1.5em !important;
}
.hentry .wp-post-image {
    width: 100% !important;
}
ul.products li.product .button, ul.products .wc-block-grid__product .button, .wc-block-grid__products li.product .button, .wc-block-grid__products .wc-block-grid__product .button {
    display: none !important;
}
ul.products li.product, ul.products .wc-block-grid__product, .wc-block-grid__products li.product, .wc-block-grid__products .wc-block-grid__product {
    list-style: none;
    margin-bottom: 2em !important;
}
ul.products li.product .price, ul.products .wc-block-grid__product .price, .wc-block-grid__products li.product .price, .wc-block-grid__products .wc-block-grid__product .price  {
	display: none !important;
}
.pwb-text-before-brands-links {
	font-weight: 600 !important;
}
.woocommerce-product-details__short-description {
	margin-top: 1.5em !important;
}
.wp-block-cover-image,.wp-block-cover {
    min-height: 150px !important;
    padding: 1em !important;
		border-radius: 4px !important;
}
.wp-block-columns.is-layout-flex {
    gap: 1.5em !important;
}
.hentry .entry-content .wp-block-columns .wp-block-column, .editor-styles-wrapper .wp-block-columns .wp-block-column {
    margin-bottom: 0 !important;
}
	.storefront-align-wide.page-template-template-fullwidth-php .hentry .entry-content .alignfull, .storefront-align-wide.storefront-full-width-content .hentry .entry-content .alignfull {
		margin-top: 0px !important;
		margin-bottom: 24px !important;
	}
.hero-available {
	margin-bottom: 0 !important;
}
.site-footer a {
    text-decoration: none !important;
    font-size: 0.875em !important;
}
.related.products {
  display: none !important;
}
	.hero-text>div {
		font-size: 28px !important;
	}
#wc-square-digital-wallet {
    max-width: 100% !important;
}
.paypal-button-row {
    max-height: 40px !important;
}
.single-product div.product form.cart {
    margin-bottom: 0 !important;
}
.hero-about {
	padding: 0 20px;
}

.wapf {
    margin: 16px 0 40px 0 !important;
    padding: 12px 16px 0px 16px;
    border: solid 1px #ccc;
    border-radius: 8px;
}
.hentry .wp-post-image {
    width: 100% !important;
    max-width: 250px;
    margin-left: 0;
}
.hentry .entry-header {
        margin-bottom: 1em !important;
        margin-top: 1em !important;
        border-bottom: none !important;
    }
.cat-links {
    display: none !important;
}
.wp-block-image .aligncenter {
		margin-left: 0 !important;
		margin-right: 0 !important;
}
.wp-block-image .aligncenter img {
    width: 100% !important;
}

@media (max-width: 767px)  {
	.site-header {
    margin-bottom: 1px !important;
	}
	.products {
		margin-left: -8px !important;
    margin-right: -8px !important;
	}
	ul.products li.product {
		float: left;
		width: 50%;
		padding-left: 8px;
		padding-right: 8px;
	}
	.wc-block-featured-category {
		min-height: 200px !important;
	}
	.eb-row-c5vqe.eb-row-root-container > .eb-row-wrapper > .eb-row-inner > .eb-parent-wrapper {
    margin: 8px 0 !important;
	}
	.hentry .entry-content .wp-block-columns .wp-block-column, .editor-styles-wrapper .wp-block-columns .wp-block-column {
        padding-right: 0 !important;
    }
	.hero-image>div>img {
		width: 150px !important;
	}

}
	
	
@media (min-width: 768px) {
	.site-header {
			padding-top: 1em !important;
			padding-bottom: 0;
		border-bottom-color: #fff !important;
	}
	.hero-about {
	padding: 0 40px;
}
	.hero-text>div {
		font-size: 36px !important;
	}
	.storefront-align-wide.page-template-template-fullwidth-php .hentry .entry-content .alignfull, .storefront-align-wide.storefront-full-width-content .hentry .entry-content .alignfull {
		margin-top: 0px !important;
		margin-bottom: 24px !important;
	}
	.eb-row-c5vqe.eb-row-root-container > .eb-row-wrapper > .eb-row-inner > .eb-parent-wrapper {
    	margin: 0px !important;
	}
	.storefront-primary-navigation {
    	background-color: #ed1c24 !important;
		  margin-top: 24px !important;
	}
	.main-navigation ul.menu>li>a, .main-navigation ul.nav-menu>li>a {
			padding: 0.5em 1em !important;
	}
	.secondary-navigation {
    margin: 0 !important;
	}
	.site-header-cart .cart-contents {
			padding: 0.5em 0 !important;
	}
	.site-branding, .site-search, .site-header-cart, .site-logo-anchor, .site-logo-link, .custom-logo-link {
			margin-bottom: 0em !important;
	}
	.site-header {
			padding-top: 1.5em !important;
	}
	.site-main ul.products.columns-6 li.product {
        width: 13.7647058824% !important;
        margin-right: 2.8823529412% !important;
    }
	    .storefront-full-width-content.woocommerce-cart .entry-header, .storefront-full-width-content.woocommerce-checkout .entry-header, .storefront-full-width-content.woocommerce-account .entry-header, .storefront-full-width-content .woocommerce-products-header {
        text-align: left !important;
        padding: 0 0 2em !important;
    }
}


@media (min-width: 66.4989378333em) {
.storefront-align-wide.page-template-template-fullwidth-php .hentry .entry-content .alignwide, .storefront-align-wide.storefront-full-width-content .hentry .entry-content .alignwide {
        margin-left: 0 !important;
        margin-right: 0 !important;
}
.storefront-align-wide.page-template-template-fullwidth-php .hentry .entry-content .alignwide, .storefront-align-wide.storefront-full-width-content .hentry .entry-content .alignwide {
        padding-left: 0 !important;
        padding-right: 0 !important;
}
}



/* ---- News page: image-left, stacked text-right card layout ---- */
body.blog #main.site-main,
body.archive #main.site-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

body.blog #main.site-main article,
body.archive #main.site-main article {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1.5rem calc(250px + 3rem);
    min-height: calc(250px + 3rem);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

body.blog #main.site-main article img,
body.archive #main.site-main article img {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
}

.hentry .entry-header {
    margin-top: 0 !important;
}

body.blog #main.site-main .posted-on,
body.blog #main.site-main .post-author,
body.archive #main.site-main .posted-on,
body.archive #main.site-main .post-author {
    font-size: 0.85rem;
    color: #888;
    margin-right: 0.75rem;
}

body.blog #main.site-main .entry-title,
body.archive #main.site-main .entry-title {
    font-size: 2.5em;
    margin: 0.4rem 0 0.6rem;
}

body.blog #main.site-main .entry-title a,
body.archive #main.site-main .entry-title a {
    color: #222;
    text-decoration: none;
}

body.blog #main.site-main .entry-title a:hover,
body.archive #main.site-main .entry-title a:hover {
    color: #8b0000;
}

.spellbound-readmore-btn {
    display: inline-block;
    margin-top: 0;
    padding: 0.6rem 1.3rem;
    background: #222;
    color: #fff !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.spellbound-readmore-btn:hover {
    background: #8b0000;
}

body.blog .entry-content a.spellbound-readmore-btn,
body.archive .entry-content a.spellbound-readmore-btn {
    text-decoration: none !important;
}

body.blog #main.site-main .entry-taxonomy,
body.archive #main.site-main .entry-taxonomy {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #999;
}

/* Stack image above text on small screens */
@media (max-width: 600px) {
    body.blog #main.site-main article,
    body.archive #main.site-main article {
        padding-left: 1.5rem;
        padding-top: calc(250px + 2rem);
    }

    body.blog #main.site-main article img,
    body.archive #main.site-main article img {
        left: 1.5rem;
        top: 1.5rem;
        width: calc(100% - 3rem);
        height: 250px;
    }
}


.spellbound-loop-artist {
    position: relative;
    z-index: 5;
}
.spellbound-loop-artist a {
    position: relative;
    z-index: 5;
}
.spellbound-loop-artist,
.spellbound-loop-artist a {
    font-size: 1rem !important;
}

/* =========================================
   NEW ADDITIONS (child theme specific)
   ========================================= */

/* ---------- Homepage intro banner ---------- */

.spellbound-homepage-intro {
	position: relative;
	overflow: hidden;
	background-color: #111111; /* fallback if there are no product images yet */
	color: #ffffff;
	text-align: center;
	padding: 4em 1em;
	min-height: 380px;
	display: flex;
	align-items: center;
	justify-content: center;

	/* Full-bleed: break out of Storefront's centered, max-width content
	   container so the banner spans the full browser width. The inner
	   text block below stays centered via its own max-width, so this
	   only affects the background/collage. */
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

/* Collage of release cover images, filling the section as a grid */
.spellbound-homepage-intro__collage {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: repeat(3, 1fr);
	grid-auto-flow: dense;
	z-index: 0;
}

.spellbound-homepage-intro__collage-item {
	position: relative;
	overflow: hidden; /* clips the rotated/scaled image so tile edges stay clean */
}

.spellbound-homepage-intro__collage-item--large {
	grid-column: span 2;
	grid-row: span 2;
}

.spellbound-homepage-intro__collage-item--wide {
	grid-column: span 2;
}

.spellbound-homepage-intro__collage-item--tall {
	grid-row: span 2;
}

.spellbound-homepage-intro__collage-item-inner {
	position: absolute;
	inset: -15%; /* oversized so rotating it never reveals a gap at the tile edge */
	background-size: cover;
	background-position: center;
	filter: grayscale(20%) brightness(0.85);
}

/* Dark scrim over the collage so the title/tagline/button stay readable */
.spellbound-homepage-intro::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.85) 100%);
	z-index: 1;
}

.spellbound-homepage-intro__inner {
	position: relative;
	z-index: 2;
	max-width: 700px;
	margin: 0 auto;
}

.spellbound-homepage-intro__title {
	font-size: 2.4em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 0.4em;
	color: #ffffff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.spellbound-homepage-intro__logo-img {
	max-width: 280px;
	width: 100%;
	height: auto;
	display: inline-block;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.spellbound-homepage-intro__tagline {
	font-size: 1.1em;
	line-height: 1.5;
	color: #eeeeee;
	margin: 0 0 1.4em;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.spellbound-homepage-intro__cta {
	display: inline-block;
	background-color: #ed1c24;
	color: #ffffff;
	padding: 0.7em 1.6em;
	border-radius: 3px;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.03em;
	transition: background-color 0.2s ease;
}

.spellbound-homepage-intro__cta:hover,
.spellbound-homepage-intro__cta:focus {
	background-color: #c8151c;
	color: #ffffff;
}

@media screen and (max-width: 600px) {
	.spellbound-homepage-intro {
		min-height: 300px;
		padding: 3em 1em;
	}

	.spellbound-homepage-intro__collage {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: repeat(4, 1fr);
	}

	.spellbound-homepage-intro__title {
		font-size: 1.8em;
	}

	.spellbound-homepage-intro__logo-img {
		max-width: 200px;
	}
}

/* ---------- Streaming & store link buttons (product page) ---------- */

.spellbound-streaming-links {
	margin-top: 1.4em;
}

.spellbound-streaming-links__heading {
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #777777;
	margin: 0 0 0.6em;
}

.spellbound-streaming-links__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
}

.spellbound-streaming-links__button {
	display: inline-block;
	padding: 0.55em 1.1em;
	border: 1px solid #cccccc;
	border-radius: 3px;
	font-size: 0.9em;
	font-weight: 600;
	text-decoration: none;
	color: #111111;
	background-color: #f5f5f5;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.spellbound-streaming-links__button:hover,
.spellbound-streaming-links__button:focus {
	border-color: #8b0000;
	color: #8b0000;
	background-color: #ffffff;
}

/* Optional per-platform accent on hover; safe to remove if you'd
   rather every button look identical. */
.spellbound-streaming-links__button--spotify:hover      { border-color: #1DB954; color: #1DB954; }
.spellbound-streaming-links__button--apple_music:hover  { border-color: #fa233b; color: #fa233b; }
.spellbound-streaming-links__button--bandcamp:hover      { border-color: #1da0c3; color: #1da0c3; }

/* ---------- Instagram feed (homepage) ---------- */

.spellbound-ig-feed {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2.5em 1em;
	text-align: center;
}

.spellbound-ig-feed__heading {
	font-size: 1.4em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 1em;
}

.spellbound-ig-feed__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.8em;
}

.spellbound-ig-feed__item {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 3px;
}

.spellbound-ig-feed__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.spellbound-ig-feed__item:hover img {
	transform: scale(1.05);
}

@media screen and (max-width: 600px) {
	.spellbound-ig-feed__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- Header / footer / menu colors (migrated from Customizer -> Colors) ---------- */

/* Header: black background */
.site-header {
	background-color: #2c2f31 !important;
}

/* Main menu: white text (background color, e.g. red, is set separately above) */
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a,
.main-navigation ul.menu > li > a:visited,
.main-navigation ul.nav-menu > li > a:visited {
	color: #ffffff !important;
}

.main-navigation ul.menu > li.menu-item-has-children > a::after,
.main-navigation ul.nav-menu > li.menu-item-has-children > a::after {
	color: #ffffff !important;
}

/* If the header background is black, header text/icons (search, cart,
   site title if text-based) also need to stay legible on it. */
.site-header,
.site-header .site-title a,
.site-header .site-description {
	color: #ffffff !important;
}

.site-header-cart .cart-contents,
.site-header-cart .cart-contents::before {
	color: #ffffff !important;
}

/* Footer: black background, white text and links */
.site-footer,
.footer-widgets,
.site-info {
	background-color: #2c2f31 !important;
	color: #ffffff !important;
}

.site-footer a,
.footer-widgets a,
.site-info a,
.footer-widgets .widget-title,
.footer-widgets h1,
.footer-widgets h2,
.footer-widgets h3,
.footer-widgets h4,
.footer-widgets h5,
.footer-widgets h6 {
	color: #ffffff !important;
}

.site-footer a:hover,
.footer-widgets a:hover,
.site-info a:hover {
	color: #cccccc !important;
}

/* Header: "My account | Cart" secondary nav text, white */
.secondary-navigation ul.menu li a,
.secondary-navigation ul.nav-menu li a,
.secondary-navigation ul.menu li a:visited,
.secondary-navigation ul.nav-menu li a:visited {
	color: #ffffff !important;
}

.secondary-navigation ul.menu li a:hover,
.secondary-navigation ul.nav-menu li a:hover {
	color: #cccccc !important;
}

/* ---------- Hide breadcrumbs ---------- */
.storefront-breadcrumb,
.woocommerce-breadcrumb {
	display: none !important;
}

/* Restore the top spacing the breadcrumb used to provide before the
   main content (it had its own padding/margin, which collapsed along
   with the element once hidden above). Excludes the homepage since
   that already has its own spacing via the intro banner. */
body:not(.home) #primary {
	padding-top: 2em;
}

/* Safety net for the full-bleed banner above: 100vw can occasionally
   introduce a small horizontal scrollbar on some browsers when a
   vertical scrollbar is present. This prevents that without affecting
   any other layout. */
body {
	overflow-x: hidden;
}
