/* Westure Culture custom styles (code-managed): header tweaks, homepage sections, footer. */

:root {
    --wc-green: #00685f;
    --wc-green-light: #00a887;
    --wc-red: #e5202b;
    --wc-yellow: #f8cf1c;
    --wc-border: #ececec;
}

.wc-container { max-width: 1230px; margin: 0 auto; padding: 0 15px; box-sizing: border-box; }
.wc-icon { width: 30px; height: 30px; flex: none; }
.wc-btn {
    display: inline-block; background: #fff; color: #000; font-size: 12px; font-weight: 700; line-height: 1;
    letter-spacing: .02em; text-transform: uppercase; padding: 11px 18px; border-radius: 2px;
    transition: background .2s, color .2s;
}
a:hover > .wc-btn, a:hover .wc-btn { background: #000; color: #fff; }

/* ---------- Header ---------- */
.header-container .topbar { --topbarbg: #000; --topbarcolor: #fff; background: #000; color: #fff; font-size: 13px; }
.header-container .topbar a, .header-container .topbar a:not(:hover) { color: #fff; }
.header-container .block-search .actions .action.search { background-color: #000; }
.header-container .block-search button.action.search:before { color: #fff; }
/* The search bar's category picker duplicated the "Shop by categories" menu right below it. */
.header-container .block-search .search-category-dropdown { display: none !important; }

@media (min-width: 1200px) {
    /* Home: keep the category dropdown closed until hovered (theme forces it open). */
    .cms-index-index .header_style-3:not(.sticky) .vertical-menu-container .title-menu-dropdown { pointer-events: auto; }
    .cms-index-index .header_style-3:not(.sticky) .vertical-menu-container .verticalmenu-list { display: none !important; }
    .cms-index-index .header_style-3:not(.sticky) .vertical-menu-container:hover .verticalmenu-list { display: block !important; }
    .header-container.header_style-3 .vertical-menu-container .title-menu-dropdown {
        --vertical_menu_title_bg: #000; --vertical_menu_title_color: #fff; font-weight: 700;
    }

    /* Compact logo + search row so the home hero / product buy buttons get more of the first screen. */
    .header-container.header_style-3 .header-content { padding-top: 0 !important; }
    .header-container.header_style-3 .header_middle { padding-top: 5px; padding-bottom: 5px; }
    .header-container.header_style-3 .logo-container .logo img { width: 145px; height: 58px; }
    .header-container.header_style-3 .top-search { flex: 0 0 auto; width: 420px; }
    .header-container .block-search .search-form, .header-container .block-search .field.search { height: 38px; }
    .header-container .block-search #search { height: 36px; font-size: 14px; }
    .header-container .block-search .actions .action.search { height: 36px; width: 46px; padding: 0; justify-content: center; }
    .header-container .block-search .actions .action.search > span { line-height: 1; }

    /* Menu bar: category quick links on desktop (see Blueskytechco_MenuBuilder/templates/html/horizontal.phtml). */
    .header-container .navigation.horizontal .horizontal-list > li.level0:not(.wc-quick) { display: none; }
}

@media (max-width: 1199px) {
    /* The theme stretches the centred logo link across the whole header row, so on touch devices
       (iOS Safari) taps on the hamburger / cart landed on the logo. Keep the link as wide as the image. */
    .header-container.header_style-3 .logo-container .logo {
        left: 50%; right: auto; -webkit-transform: translateX(-50%) scale(.75); transform: translateX(-50%) scale(.75);
    }
    .header-container .logo-container .nav-toggle { position: relative; top: 0; left: 0; z-index: 15; cursor: pointer; }
    .header-container .nav-toggle, .toggle-nav-footer, .close-menu { cursor: pointer; }
    /* Mobile drawer: categories already have their own tab, so the "Menu" tab keeps only the page links. */
    .navigation.horizontal .horizontal-list > li.wc-quick { display: none; }
}

@media (max-width: 767px) {
    /* Announcement bar is shown on mobile too (text only). */
    .header-container .topbar.d-none { display: block !important; font-size: 11px; padding: 2px 0; }
    .header-container .topbar .topbar__inner { justify-content: center; }
    .header-container .topbar .col_right { display: none !important; }
    .header-container .topbar p { text-align: center; white-space: nowrap; }

    /* Mobile uses the stacked 500x500 logo. */
    .header-container.header_style-3 .logo-container .logo { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
    .header-container .logo-container .logo img {
        content: url("../images/westure-culture-logo-square.png");
        width: 76px; height: 76px; max-width: none; max-height: none; margin: -14px auto;
    }
}

/* ---------- Home ---------- */
.cms-index-index .wc-banner-slider { margin: 0; border-radius: 0; }
@media (min-width: 1200px) {
    /* Hero (2:1 artwork): never taller than the space left under the 164px header, so it shows in full. */
    .cms-index-index .wc-banner-slider { max-width: max(880px, calc((100vh - 164px) * 2)); margin: 0 auto; }
}
.wc-banner-slider .wc-banner-slider__arrow { padding: 0; min-width: 0; line-height: 1; box-shadow: none; }
.wc-banner-slider .wc-banner-slider__dot { min-width: 0; min-height: 0; }
.cms-index-index .page-main-full-width .columns .column.main { padding-bottom: 0; }

.wc-home { color: #111; }
.wc-home a { color: inherit; text-decoration: none; }
.wc-home ul { list-style: none; margin: 0; padding: 0; }
.wc-home li { margin: 0; }
.wc-home img { max-width: 100%; }
.wc-home section { margin: 0 0 40px; }

.wc-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 22px; }
.wc-heading h2 { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0; color: #111; }
.wc-heading a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.wc-heading a:hover { color: var(--wc-green); }

/* Features */
.wc-home .wc-features { margin-bottom: 24px; }
.wc-features__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 22px 0 !important; }
.wc-features__item { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 4px 12px; border-left: 1px solid var(--wc-border); }
.wc-features__item:first-child { border-left: 0; }
.wc-features__item strong, .wc-values__list strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.wc-features__item span, .wc-values__list span { display: block; font-size: 12px; line-height: 1.4; color: #555; }

/* Promo tiles */
.wc-promos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wc-promo { position: relative; display: block; overflow: hidden; aspect-ratio: 230 / 151; background: #e7e7e7; }
.wc-promo--basics { background: linear-gradient(180deg, #aab6a0, #8d9b81); }
.wc-promo--collections { background: #e2e2e2; }
.wc-promo__img {
    position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none !important;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%);
    transition: transform .5s;
}
.wc-promo:hover .wc-promo__img { transform: scale(1.04); }
.wc-promo__body { position: relative; display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 7% 7% 8%; box-sizing: border-box; }
.wc-promo__title { font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; line-height: 1.12; color: #111; }
.wc-promo__text { font-size: 15px; line-height: 1.3; margin-top: 8px; color: #222; }
.wc-promo--new .wc-promo__text { color: #555; }
.wc-promo .wc-btn { margin-top: auto; }

/* Categories */
.wc-categories__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.wc-categories__list a { display: block; text-align: center; }
.wc-categories__thumb { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #f1f1f1; }
.wc-categories__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.wc-categories__list a:hover img { transform: scale(1.06); }
.wc-categories__name { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; }

/* Summer collection banner */
.wc-summer__banner {
    position: relative; display: block; overflow: hidden; aspect-ratio: 709 / 180;
    background: radial-gradient(120% 140% at 0% 0%, #2a8a72 0%, #0a6650 45%, #025949 100%);
}
.wc-summer__img {
    position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none !important;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%); mask-image: linear-gradient(90deg, transparent, #000 14%);
}
.wc-summer__body {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    height: 100%; width: 50%; padding-left: 4%; box-sizing: border-box; color: #fff;
    font-style: italic; font-weight: 900; text-transform: uppercase; line-height: .95;
}
.wc-summer__line1, .wc-summer__line2, .wc-summer__line3 { display: block; transform: rotate(-5deg); transform-origin: left center; text-shadow: 2px 3px 0 rgba(0, 0, 0, .25); }
.wc-summer__line1 { color: var(--wc-yellow); font-size: clamp(22px, 5vw, 64px); }
.wc-summer__line2 { font-size: clamp(22px, 5vw, 64px); margin-left: 12%; }
.wc-summer__line3 { font-size: clamp(11px, 2vw, 26px); margin: 4% 0 0 16%; }
.wc-summer .wc-btn { font-style: normal; margin: 5% 0 0 34%; padding: 12px 30px; font-size: 14px; }

/* Featured products */
.wc-products__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.wc-product { position: relative; min-width: 0; border: 1px solid var(--wc-border); background: #fff; }
.wc-product__photo { display: block; aspect-ratio: 1; background: #f6f6f6; overflow: hidden; }
.wc-product__photo img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .4s; }
.wc-product:hover .wc-product__photo img { transform: scale(1.05); }
.wc-product__wish { position: absolute; top: 10px; right: 10px; z-index: 1; display: flex; }
.wc-product__wish .wc-icon { width: 20px; height: 20px; }
.wc-product__wish:hover { color: var(--wc-red); }
.wc-product__info { padding: 12px 10px 14px; }
.wc-product__name { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; height: 2.6em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wc-product__rating { min-height: 4px; margin: 6px 0; font-size: 12px; }
.wc-product__rating .product-reviews-summary { display: flex !important; align-items: center; margin: 0; }
.wc-product__price { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.wc-product__price strong { font-size: 16px; font-weight: 700; }
.wc-product__price del { font-size: 13px; color: #888; }
.wc-product__off { background: var(--wc-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 5px 7px; border-radius: 2px; }
@media (min-width: 992px) { .wc-product:nth-child(n+6) { display: none; } }

/* Values strip */
.wc-home .wc-values { background: var(--wc-green); color: #fff; margin: 0; }
.wc-values__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 16px 0 !important; }
.wc-values__list li { display: flex; align-items: center; justify-content: center; gap: 16px; }
.wc-values__list span { color: rgba(255, 255, 255, .85); }

/* ---------- Product page ---------- */
/* Tighter spacing, and the short description moved under the buttons, so Add to Cart / Buy It Now
   show without scrolling on a laptop screen (1280x630). */
@media (min-width: 992px) {
    .catalog-product-view .breadcrumbs { min-height: 0; margin-bottom: 6px; }
    .catalog-product-view .breadcrumbs .items { padding-top: 2px; padding-bottom: 2px; }
    .catalog-product-view .product-main-content { padding-top: 16px; }
    .catalog-product-view .product-info-main { display: flex; flex-direction: column; }
    .catalog-product-view .product-info-main > * { order: 5; }
    .catalog-product-view .product-info-main > .product-title-wrap { order: 1; }
    .catalog-product-view .product-info-main > .product-rate-price { order: 2; margin-bottom: 2px; }
    .catalog-product-view .product-info-main > .product-add-form { order: 3; margin-top: 0; }
    .catalog-product-view .product-info-main > .product.attribute.overview { order: 4; margin: 14px 0 6px; }
    .catalog-product-view .product-info-main .page-title-wrapper .page-title { font-size: 22px; line-height: 1.25; margin-bottom: 4px; }
    .catalog-product-view .product-info-main .product-options-wrapper { margin: 0; }
    body.catalog-product-view .product-info-main .swatch-opt .swatch-attribute { margin-bottom: 4px; }
    body.catalog-product-view .product-info-main .swatch-opt .swatch-attribute-label { margin-bottom: 0; }
    body.catalog-product-view .product-info-main .swatch-opt .swatch-attribute-options { margin-top: 2px; }
    body.catalog-product-view .product-info-main .swatch-opt .swatch-option { margin-bottom: 6px; }
    body.catalog-product-view .product-info-main .swatch-opt .swatch-option.text { min-width: 40px; min-height: 40px; height: 40px; }
    .catalog-product-view .product-info-main .box-tocart .field.qty, .catalog-product-view .product-info-main .box-tocart .actions { margin-bottom: 0; }
    .catalog-product-view .product-info-main .buynow-button { margin: 10px 0 14px; }
}

/* ---------- Footer ---------- */
.wc-footer { background: #fff; color: #222; font-size: 13px; }
.wc-footer a { color: inherit; text-decoration: none; }
.wc-footer a:hover { color: var(--wc-green); }
.wc-footer ul { list-style: none; margin: 0; padding: 0; }
.wc-footer li { margin: 0 0 8px; }
.wc-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.6fr; gap: 30px; padding-top: 30px; padding-bottom: 26px; }
.wc-footer__brand img { display: block; width: 180px; height: auto; }
.wc-footer__brand p { margin: 8px 0 0; color: #555; }
.wc-footer__col { border-left: 1px solid var(--wc-border); padding-left: 30px; }
.wc-footer h4 { font-size: 14px; font-weight: 700; margin: 0 0 14px; color: #111; }
.wc-footer__newsletter { display: flex; max-width: 320px; margin: 0 0 18px; }
.wc-footer__newsletter input[type="email"] { flex: 1; min-width: 0; height: 42px; border: 1px solid #ddd; border-right: 0; border-radius: 0; padding: 0 14px; font-size: 13px; background: #fff; }
.wc-footer__newsletter button { flex: none; width: 44px; height: 42px; padding: 0; border: 0; border-radius: 0; background: #000; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wc-footer__newsletter button:hover { background: var(--wc-green); }
.wc-footer__social { display: flex; gap: 20px; font-size: 18px; }
.wc-footer__social li { margin: 0; }
.wc-footer__copy { border-top: 1px solid var(--wc-border); text-align: center; padding: 14px 15px; font-size: 12px; color: #666; }

/* ---------- Mobile bottom navigation ---------- */
.link-on-bottom .mobile-bottom-link li { border-right: 0; }
.link-on-bottom .mobile-bottom-link li a { flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; color: #111; }
.link-on-bottom .mobile-bottom-link .wc-nav-label { font-size: 11px; font-weight: 500; }
.link-on-bottom .counter.qty, .link-on-bottom .count { top: 2px; right: -6px; }
.wc-footer.enable-mobile-menu { padding-bottom: 0; }
@media (max-width: 767px) { .wc-footer.enable-mobile-menu { padding-bottom: 62px; } }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .wc-products__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wc-footer__grid { grid-template-columns: 1fr 1fr; }
    .wc-footer__col { border-left: 0; padding-left: 0; }
    .wc-features__item { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 767px) {
    .wc-home section { margin-bottom: 28px; }
    .wc-heading { margin-bottom: 16px; }
    .wc-heading h2 { font-size: 20px; }

    .wc-features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; padding: 20px 0 6px !important; }
    .wc-features__item:nth-child(odd) { border-left: 0; }

    .wc-promos__grid { grid-template-columns: 1fr; gap: 12px; }
    .wc-promo { aspect-ratio: 236 / 120; }
    .wc-promo__body { padding: 5% 6%; }
    .wc-promo__title { font-size: 22px; }
    .wc-promo__text { font-size: 14px; margin-top: 4px; }

    .wc-categories__list { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -15px; padding-right: 15px !important; }
    .wc-categories__list::-webkit-scrollbar { display: none; }
    .wc-categories__list li { flex: 0 0 30%; scroll-snap-align: start; }
    .wc-categories__name { font-size: 13px; }

    .wc-summer__banner { aspect-ratio: 238 / 120; }
    .wc-summer__img { width: 56%; object-fit: cover; object-position: 50% 20%; }
    .wc-summer__body { width: 52%; padding-left: 5%; }
    .wc-summer__line1, .wc-summer__line2 { font-size: 6.2vw; }
    .wc-summer__line2 { margin-left: 4%; }
    .wc-summer__line3 { font-size: 2.9vw; margin-left: 6%; }
    .wc-summer .wc-btn { margin: 7% 0 0 8%; padding: 8px 12px; font-size: 10px; }

    .wc-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

    .wc-values__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; padding: 20px 0 !important; }
    .wc-values__list li { justify-content: flex-start; gap: 10px; }

    .wc-footer__grid { gap: 24px 16px; }
    .wc-footer__brand, .wc-footer__community { grid-column: 1 / -1; }
}
