/*
Theme Name: Dia's Bridal Boutique — Exact Reference
Theme URI: https://diasbridal.com/
Author: OpenAI
Description: Dia's Bridal WooCommerce theme based on the owner's supplied exact visual reference, using the same image crops and two collections.
Version: 2.0.7
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: bliss-bridal
*/
:root{--plum:#4b1456;--plum-dark:#35103f;--gold:#c69a42;--ivory:#fffafd;--lav:#f0e4f2;--ink:#2b1730;--line:#e5d4e7}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fffafd;color:var(--ink);font-family:Georgia,"Times New Roman",serif}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.sr-header{display:flex;align-items:center;justify-content:center;gap:20px;padding:9px clamp(16px,4vw,54px);background:#fffafd;border-bottom:1px solid #eaddec;position:relative;z-index:20;min-height:42px}
.sr-menu{display:flex;align-items:center;gap:clamp(12px,2.2vw,30px)}
.sr-menu a,.reference-nav a{font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:var(--plum);font-weight:bold}
.sr-menu a:hover,.reference-nav a:hover{color:#b1812e}
.sr-menu-toggle{display:none;background:transparent;border:1px solid #d8c4dc;border-radius:5px;padding:9px}
.sr-menu-toggle span{display:block;width:22px;height:2px;background:var(--plum);margin:4px}
main{min-height:300px}
.reference-hero{width:100%;display:grid;grid-template-columns:2.097fr 1fr;gap:5px;background:#fff}
.hero-main-img{width:100%;height:clamp(260px,30.3vw,465px);object-fit:cover;object-position:center}
.hero-side-link{display:block;overflow:hidden}
.hero-side-link img{width:100%;height:100%;object-fit:cover}
.reference-hero{position:relative}
.reference-hero> .hero-side-link{position:absolute;right:0;width:32.3%;height:50.7%}
.reference-hero>.veil-hotspot{top:0}
.reference-hero>.crown-hotspot{bottom:0}
.hero-hotspot{position:absolute;left:0;top:0;width:67.7%;height:100%;z-index:2}
.hero-side-link{z-index:3}
.reference-nav{display:flex;justify-content:center;align-items:center;gap:clamp(14px,3vw,38px);padding:13px 12px;background:#fffafd;border-top:1px solid #eaddec;border-bottom:1px solid #eaddec;flex-wrap:wrap}
.benefits-image{width:100%;background:#f5edf6}
.benefits-image img{width:100%;height:auto}
.collection-story{display:grid;grid-template-columns:2fr 1fr;gap:8px;padding:7px 7px 0}
.collection-banner,.story-banner{display:block;overflow:hidden;border-radius:10px}
.collection-banner img,.story-banner img{width:100%;height:100%;object-fit:cover}
.collection-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 2.05fr;gap:8px;padding:8px 7px 10px}
.collection-tiles>a,.scripture-banner{display:block;overflow:hidden;border-radius:10px}
.collection-tiles img{width:100%;height:100%;object-fit:cover}
.live-products{padding:54px max(20px,4vw);background:#fffafd}
.live-products-heading{text-align:center;margin-bottom:24px}
.live-products-heading span{color:#b1812e;letter-spacing:.2em;font-size:11px;font-weight:bold}
.live-products-heading h2{font-size:clamp(25px,3vw,38px);color:var(--plum);margin:8px 0}
.live-products-heading p{margin:0;color:#6d5c70}
.live-product-categories{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin:22px 0}
.live-product-categories a{border:1px solid var(--gold);padding:10px 20px;border-radius:30px;color:var(--plum);font-weight:bold}
.woocommerce ul.products li.product{background:#fff;border:1px solid var(--line);padding:10px;border-radius:9px}
.woocommerce ul.products li.product img{border-radius:6px}
.woocommerce ul.products li.product .price{color:var(--plum)}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--plum);color:#fff;border-radius:30px}
.reference-footer{background:var(--plum-dark);position:relative}
.reference-footer>img{width:100%;height:auto}
.footer-live-contact{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;background:var(--plum-dark);color:#fff;padding:12px;font-family:Arial,sans-serif;font-size:12px}
.footer-live-contact a{color:#fff}
.page-title{background:#f0e4f2;padding:42px 16px;text-align:center;color:var(--plum)}
.page-content{padding:35px max(18px,5vw);max-width:1100px;margin:auto;min-height:350px}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.contact-card{padding:22px;border:1px solid var(--line);border-radius:10px;background:#fff}
@media(max-width:760px){
 .sr-header{padding:8px 16px;justify-content:flex-end}
 .sr-menu-toggle{display:block;cursor:pointer}
 .sr-menu{display:none;position:absolute;top:100%;left:0;right:0;background:#fffafd;padding:16px 20px 20px;box-shadow:0 12px 20px #35103f20;flex-direction:column;align-items:stretch;gap:0}
 .sr-menu.is-open{display:flex}
 .sr-menu a{padding:12px 4px;border-bottom:1px solid #eee2ef}
 .reference-hero{grid-template-columns:1fr;gap:3px}
 .hero-main-img{height:auto;aspect-ratio:1040/465;object-fit:cover}
 .reference-hero>.hero-side-link{position:static;width:auto;height:auto}
 .reference-hero>.hero-side-link img{width:100%;height:auto}
 .hero-hotspot{left:0;top:0;width:100%;height:67%}
 .reference-nav{gap:12px 18px}
 .reference-nav a{font-size:10px}
 .collection-story{grid-template-columns:1fr;gap:7px}
 .collection-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 .scripture-banner{grid-column:span 2}
 .contact-grid{grid-template-columns:1fr}
 .footer-live-contact{flex-direction:column;align-items:center;gap:8px}
}

/* WooCommerce product image rendering: preserve the original aspect ratio and avoid low-quality display sizing. */
.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img,
.woocommerce-page div.product div.images img,
.woocommerce .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    image-rendering: auto;
    filter: none;
    opacity: 1;
    transform: none;
}
.woocommerce div.product div.images,
.woocommerce-page div.product div.images {
    width: 100%;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    margin: 0;
}
.woocommerce ul.products li.product a img {
    margin: 0 0 1em;
    border-radius: 6px;
}
.woocommerce div.product div.images .flex-control-thumbs img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Keep WooCommerce archive title only once; the archive template supplies it. */
.woocommerce .woocommerce-products-header { background: var(--lav); padding: 42px 16px; text-align: center; color: var(--plum); margin: 0 0 28px; }
.woocommerce .woocommerce-products-header__title { color: var(--plum); margin: 0; }
.woocommerce .woocommerce-products-header .term-description { margin-top: 14px; }
