/* =========================================================
   SWEET ELIZABETH CUSTOM CSS
   Cleaned up 9/30/2026
   ========================================================= */


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

/* Keep header artwork filling the header */
.site-header {
    background-size: cover;
    overflow: visible;
}

/* Logo size */
.site-header .custom-logo-link img {
    max-width: 150px;
    display: block;
}

/* Desktop only: move logo down so top is not clipped */
@media (min-width: 768px) {
    .site-header .custom-logo-link {
        position: relative;
        top: 22px;
        display: block;
    }
}

/* Menu spacing */
@media (min-width: 800px) {
    .main-navigation ul.menu > li > a,
    .main-navigation ul.nav-menu > li > a {
        padding: 1em 1em;
    }
}


/* ---------------------------------------------------------
   SHOP / PRODUCT ARCHIVES
   --------------------------------------------------------- */

/* Hide widget sidebar on shop page and make product area full width */
.woocommerce-shop #secondary {
    display: none;
}

.woocommerce-shop .content-area {
    width: 100%;
}

/* Make WooCommerce archive pages full width */
@media (min-width: 768px) {
    .archive.woocommerce.right-sidebar .content-area {
        width: 100%;
    }
}

/* Align Add to Cart buttons on shop page */
.woocommerce-shop a.woocommerce-LoopProduct-link {
    min-height: 280px;
}

.woocommerce-shop h2.woocommerce-loop-product__title {
    min-height: 45px;
}

/* Hide product meta details */
.product_meta {
    display: none !important;
}

/* Hide Additional Information tab on product pages */
.woocommerce-tabs ul.tabs li#tab-title-additional_information {
    display: none;
}

/* WooCommerce Product blocks: bottom-align buttons */
.wc-block-grid__products .wc-block-grid__product {
    justify-content: space-evenly;
}


/* ---------------------------------------------------------
   WOOCOMMERCE COLORS / NOTICES
   --------------------------------------------------------- */

/* WooCommerce store notice */
body[class*="woocommerce"] .woocommerce-store-notice,
body[class*="woocommerce"] p.demo_store {
    background-color: #FF69B4;
}

/* Checkout notices */
.woocommerce-info {
    background-color: #ff69b4;
}


/* ---------------------------------------------------------
   HOMEPAGE
   --------------------------------------------------------- */

/* Crop images in wide aligned columns on homepage to square */
.home .wp-block-columns.alignwide img {
    object-fit: cover;
    aspect-ratio: 1;
}

/* Set height for paragraph blocks in homepage columns */
.home .wp-container-5.wp-block-columns.alignwide:first-of-type p {
    min-height: 6em;
}

.home .wp-container-11.wp-block-columns.alignwide p {
    min-height: 9em;
}

/* Subscribe field border */
p#subscribe-email {
    border-bottom: 2px #ff69b4 solid;
}

button.wp-block-button__link.no-border-radius.has-16-px-font-size.has-text-color.has-white-color {
    border: 2px #ff69b4 solid;
    border-bottom: 6px #ff69b4 solid !important;
}


/* ---------------------------------------------------------
   INSTAGRAM
   --------------------------------------------------------- */

/* Remove rounded corners from Instagram gallery */
.wp-block-jetpack-instagram-gallery__grid-post img {
    border-radius: 0;
}

/* Adjust spacing on Instagram block on homepage */
@media (min-width: 768px) {
    .wp-block-jetpack-instagram-gallery.alignfull.wp-block-jetpack-instagram-gallery__grid.wp-block-jetpack-instagram-gallery__grid-columns-6 {
        margin-top: -20px;
    }
}

@media (max-width: 568px) {
    .wp-block-jetpack-instagram-gallery.alignfull.wp-block-jetpack-instagram-gallery__grid.wp-block-jetpack-instagram-gallery__grid-columns-6 {
        margin-top: -20px;
    }
}

/* Make Instagram widget images square */
.wp-block-jetpack-instagram-gallery img {
    aspect-ratio: 1 / 1;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

/* Hide Storefront copyright notice */
footer#colophon .site-info {
    display: none;
}

/* Make footer and footer widget area full width */
#colophon.responsive-max-width,
#colophon .widget-area.responsive-max-width,
#colophon .widget-area .widget {
    max-width: 100%;
    width: 100%;
}


/* ---------------------------------------------------------
   PAGE-SPECIFIC FIXES
   --------------------------------------------------------- */

/* Remove padding at bottom of Subscription block */
.page-id-11870 .wp-container-20 {
    padding-bottom: 0;
}


/* FIX DESKTOP LOGO CLIPPING - leave mobile unchanged */
@media (min-width: 768px) {

    .site-header,
    .site-header .site-branding,
    .site-header .custom-logo-link {
        overflow: visible !important;
    }

    .site-header .custom-logo-link img {
        position: relative !important;
        top: 22px !important;
    }
}

/* Simplify small WooCommerce shop catalog */
.woocommerce-shop .woocommerce-ordering,
.woocommerce-shop .woocommerce-result-count {
    display: none;
}

/* Hide category dropdown on the main Shop page only */
.woocommerce-shop .widget_product_categories,
.woocommerce-shop .wp-block-woocommerce-product-categories,
.woocommerce-shop .wc-block-product-categories,
.woocommerce-shop select.dropdown_product_cat,
.woocommerce-shop select[name="product_cat"] {
    display: none !important;
}

/* Simplify small WooCommerce shop catalog */
.woocommerce-shop .woocommerce-ordering,
.woocommerce-shop .woocommerce-result-count {
    display: none !important;
}

/* Align WooCommerce shop product cards */
.woocommerce-shop ul.products {
    align-items: stretch;
}

.woocommerce-shop ul.products li.product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Keep product content evenly structured */
.woocommerce-shop ul.products li.product .woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Consistent image area */
.woocommerce-shop ul.products li.product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* Give all product titles the same vertical space */
.woocommerce-shop ul.products li.product h2.woocommerce-loop-product__title {
    min-height: 4.8em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Keep prices aligned */
.woocommerce-shop ul.products li.product .price {
    min-height: 2.6em;
    margin-top: auto;
}

/* Keep buttons aligned underneath */
.woocommerce-shop ul.products li.product .button {
    margin-top: 1em;
}

/* Slightly tighten vertical spacing between rows */
.woocommerce-shop ul.products li.product {
    margin-bottom: 3em;
}

/* Hide SALE badge on shop/archive grids only */
.woocommerce-shop ul.products li.product .onsale,
.archive.woocommerce ul.products li.product .onsale {
    display: none !important;
}


/* Desktop header artwork - fit full image and position correctly */
@media (min-width: 768px) {
    .site-header {
        background-size: 100% auto !important;
        background-position: center -165px !important;
        background-repeat: no-repeat !important;
    }
}