/**
 * Shop page – new design (hero, category sections, bundles, Still Need Help, quick-view)
 * Layout: flex, padding, margins. No position absolute for structure.
 *
 * @package WeGrowMagic
 */

/* ========== Hero ========== */
.wgm-shop-page--new .wgm-shop-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 41px 50px 24px;
    background: #fff;
    gap: 36px;
}
.wgm-bg-right-side{
    background: red;

}

.wgm-shop-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 1430px;
    width: 100%;
    margin: 0 auto;
}

.wgm-shop-hero__breadcrumb {
    margin: 0;
    color: #000;
    font-size: 18px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 600;
    line-height: 27px;
}

.wgm-shop-hero__title {
    margin: 0;
    color: #000;
    font-size: 56px;
    font-family: var(--font-heading, 'ITC Clearface Std', serif);
    font-weight: 550;
    line-height: 56px;
}

.wgm-shop-hero__subtitle {
    margin: 0;
    color: #000;
    font-size: 16px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 500;
    line-height: 24px;
}

/* ========== Category sections ========== */
.wgm-shop-sections {
    background: #fff;
    border-top: 0.4px solid #D9D9D9;
    padding: 36px 50px 64px;
    max-width: 1430px;
    margin: 0 auto;
}

.wgm-shop-sections__inner {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.wgm-shop-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wgm-shop-section__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wgm-shop-section__title {
    margin: 0;
    color: #000;
    font-size: 36px;
    font-family: var(--font-heading, 'ITC Clearface Std', serif);
    font-weight: 550;
    line-height: 36px;
}

.wgm-shop-section__subtitle {
    margin: 0;
    color: #000;
    font-size: 16px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 500;
    line-height: 24px;
}

.wgm-shop-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.wgm-shop-grid--4 {
    --cols: 4;
}
.wgm-shop-grid--3 {
    --cols: 3;
}

.wgm-shop-grid > * {
    flex: 1 1 calc((100% - (var(--cols) - 1) * 24px) / var(--cols));
    min-width: 0;
}

/* ========== Product card (new) ========== */
.wgm-shop-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.wgm-shop-card__image-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 360px;
    border-radius: 10px;
    overflow: hidden;
    background: #EBEBEB;
}

.wgm-shop-card__image-link {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
}

.wgm-shop-card__image {
    width: 100%;
    min-height: 300px;
    flex: 1 1 auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.wgm-shop-card__actions-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    margin-top: -70px;
    flex-shrink: 0;
}
.wgm-shop-bundle1{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}


.wgm-shop-card__btn {
    display: inline-flex;
    width:100%;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    min-height: 42px;
    background: #fff;
    border: 1px solid #0A4280;
    border-radius: 6.67px;
    color: #0A4280;
    font-size: 13.34px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 500;
    line-height: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.wgm-shop-card__btn:hover {
    background: #0A4280;
    color: #fff;
}

.wgm-shop-card__btn--add {
    border-color: #0A4280;
    color: #0A4280;
}

.wgm-shop-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wgm-shop-card__rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wgm-shop-card__rating-stars {
    color: #000000;
    font-size: 10.68px;
}

.wgm-shop-card__rating-text {
    color: #000;
    font-size: 10.68px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 500;
    line-height: 12.81px;
}

.wgm-shop-card__title {
    margin: 0;
    font-size: 24px;
    font-family: var(--font-heading, 'ITC Clearface Std', serif);
    font-weight: 550;
    line-height: 28.82px;
}

.wgm-shop-card__title a {
    color: #000;
    text-decoration: none;
}

.wgm-shop-card__title a:hover {
    text-decoration: underline;
}

.wgm-shop-card__strain {
    margin: 0;
    color: #000;
    font-size: 12px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 500;
    line-height: 18px;
}

.wgm-shop-card__price {
    color: #000;
    font-size: 18px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 500;
    line-height: 27px;
}

.wgm-shop-card__price .woocommerce-Price-amount {
    color: inherit;
}

/* ========== Bundle & Save ========== */
.wgm-shop-bundles {
    background: #F5F7F9;
    padding: 44px 50px;
    max-width: 1430px;
    margin: 0 auto;
}

.wgm-shop-bundles__inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.wgm-shop-bundles__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wgm-shop-bundles__title {
    margin: 0;
    color: #000;
    font-size: 56px;
    font-family: var(--font-heading, 'ITC Clearface Std', serif);
    font-weight: 550;
    line-height: 56px;
}

.wgm-shop-bundles__subtitle {
    margin: 0;
    color: #000;
    font-size: 16px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 500;
    line-height: 24px;
}

.wgm-shop-bundles__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: stretch;
}

.wgm-shop-bundles__grid > * {
    flex: 1 1 calc(50% - 16px);
    min-width: 280px;
}

/* Bundle card */
.wgm-shop-bundle-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.wgm-shop-bundle-card__image-wrap {
    display: flex;
    flex-direction: column;
    min-height: 350px;
    background: #EBEBEB;
    /* padding: 0 20px 20px; */
    align-items: flex-end;
    justify-content: center;
}

.wgm-shop-bundle-card__image-link {
    display: flex;
    justify-content: center;    
    width: 100%;
    min-height: 0;
}

.wgm-shop-bundle-card__image {
    width: 100%;
    max-width: 246px;
    min-height: 260px;
    flex: 1 1 auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Discovery Bundle: custom background image covers full box */
.wgm-shop-bundle-card__image-wrap--custom-bg .wgm-shop-bundle-card__image-link {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}
.wgm-shop-bundle-card__image-wrap--custom-bg .wgm-shop-bundle-card__image {
    max-width: none;
    width: 100%;
    min-height: 100%;
    background-size: cover;
    background-position: center;
}

.wgm-shop-bundle-card__btn-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: auto;
    padding: 0px 0 0;
}

.wgm-shop-bundle-card__add-btn {    
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    padding: 16px 20px;
    background: #0A4280;
    border-radius: 32px;
    color: #fff;
    font-size: 16px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 600;
    line-height: 16px;
    z-index: 1;
    text-decoration: none;
    transition: opacity 0.2s;
    margin-bottom: 20px;
    margin-right: 20px;
    width: fit-content;
}

.wgm-shop-bundle-card__add-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.wgm-shop-bundle-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px 20px;
}

.wgm-shop-bundle-card__title {
    margin: 0;
    font-size: 32px;
    font-family: var(--font-heading, 'ITC Clearface Std', serif);
    font-weight: 550;
    line-height: 40px;
}

.wgm-shop-bundle-card__title a {
    color: #000;
    text-decoration: none;
}

.wgm-shop-bundle-card__title a:hover {
    text-decoration: underline;
}

.wgm-shop-bundle-card__prices {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wgm-shop-bundle-card__price-current {
    color: #000;
    font-size: 20px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 600;
    line-height: 30px;
}

.wgm-shop-bundle-card__price-regular {
    color: #989998;
    font-size: 20px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 500;
    line-height: 30px;
    text-decoration: line-through;
}

.wgm-shop-bundle-card__included-label {
    margin: 0;
    color: #707170;
    font-size: 15.6px;
    font-family: var(--wgm-font-body);
    font-weight: 500;
    line-height: 24px;
    text-transform: uppercase;
}

.wgm-shop-bundle-card__included {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;

}

.wgm-shop-bundle-card__item {
    display: flex;
    gap: 8px;
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
}

.wgm-shop-bundle-card__item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.wgm-shop-bundle-card__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background:#E8E7E5;
}

.wgm-shop-bundle-card__item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.wgm-shop-bundle-card__item-name {
    color: #000;
    font-size: 14.4px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 600;
    line-height: 24px;
}

.wgm-shop-bundle-card__item-desc {
    color: #000;
    font-size: 14px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 500;
    line-height: 18px;
}

/* ========== Still Need Help ========== */
.wgm-shop-help {
    background: #12679C;
    padding: 64px 50px;
}

.wgm-shop-help__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    max-width: 960px;
    margin: 0 auto;
}

.wgm-shop-help__title {
    margin: 0;
    color: #fff;
    font-size: 36px;
    font-family: var(--font-heading, 'ITC Clearface Std', serif);
    font-weight: 550;
    text-transform: capitalize;
    letter-spacing: 1px;
    text-align: center;
}

.wgm-shop-help__links {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 32px;
}

.wgm-shop-help__col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.wgm-shop-help__label {
    color: #fff;
    font-size: 24px;
    font-family: var(--font-heading, 'ITC Clearface Std', serif);
    font-weight: 550;
}

.wgm-shop-help__link {
    color: #fff;
    font-size: 16px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 500;
    text-decoration: underline;
}

a.wgm-shop-help__link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ========== Quick-view modal ========== */
.wgm-quick-view {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 24px;
}

.wgm-quick-view[aria-hidden="false"],
.wgm-quick-view.wgm-quick-view--open {
    display: flex;
}

.wgm-quick-view__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.wgm-quick-view__box {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.wgm-quick-view__content {
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 0;
}

.wgm-quick-view__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #000;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wgm-quick-view__content {
    overflow-y: auto;
    padding: 36px;
}

.wgm-quick-view__inner {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.wgm-quick-view__gallery {
    flex: 0 0 595px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wgm-quick-view__main-image {
    border-radius: 12px;
    overflow: hidden;
}

.wgm-quick-view__main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.wgm-quick-view__thumbs {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.wgm-quick-view__thumb {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.wgm-quick-view__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wgm-quick-view__details {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.wgm-quick-view__header {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wgm-quick-view__rating-text {
    color: #000;
    font-size: 16px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 500;
    line-height: 19.2px;
}

.wgm-quick-view__title {
    margin: 0;
    font-size: 36px;
    font-family: var(--font-heading, 'ITC Clearface Std', serif);
    font-weight: 550;
    line-height: 43.2px;
}

.wgm-quick-view__strain,
.wgm-quick-view__tagline {
    margin: 0;
    color: #000;
    font-size: 18px;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 600;
    line-height: 27px;
}

.wgm-quick-view__form-wrap .variations_form {
    margin: 0;
}

/* Hide default WooCommerce variation table; we use V1/V5 path/dose/supply UI */
.wgm-quick-view__form-wrap .variations,
.wgm-quick-view__form-wrap .variations_form table.variations {
    display: none !important;
}

.wgm-quick-view__form-wrap .reset_variations {
    display: none;
}

/* Quick-view inner when using V1/V5 main section (same layout as single product) */
.wgm-quick-view__inner .wgm-product-v1__main,
.wgm-quick-view__inner .wgm-product-v5__main {
    width: 100%;
}

.wgm-quick-view__loading,
.wgm-quick-view__error {
    margin: 0;
    padding: 24px;
    text-align: center;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .wgm-shop-page--new .wgm-shop-hero,
    .wgm-shop-sections,
    .wgm-shop-bundles {
        padding-left: 24px;
        padding-right: 24px;
    }
    .wgm-shop-help {
        padding-left: 24px;
        padding-right: 24px;
    }
    .wgm-shop-grid--4 > *,
    .wgm-shop-grid--3 > * {
        flex: 1 1 calc(50% - 12px);
    }
    .wgm-shop-bundles__grid > * {
        flex: 1 1 100%;
    }
    .wgm-quick-view__inner {
        flex-direction: column;
    }
    .wgm-quick-view__gallery {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .wgm-shop-page--new .wgm-shop-hero {
        padding: 32px 20px 20px;
        gap: 24px;
    }
.wgm-shop-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50%;
}


    .wgm-shop-card__btn {
    display: inline-flex;
    width:100%;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    min-height: 27px;
    background: #fff;
    border: 1px solid #0A4280;
    border-radius: 6.67px;
    color: #0A4280;
    font-size: 13.34px;
    text-align: center;
    font-family: var(--font-body, 'General Sans', sans-serif);
    font-weight: 500;
    line-height: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}



    .wgm-shop-bundle1{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}
    .wgm-shop-hero__title {
        font-size: 44px;
        line-height: 40px;
    }
    .wgm-shop-hero__breadcrumb {
        font-size: 18px;
    }
    .wgm-shop-hero__subtitle {
        font-size: 16px;
    }
    .wgm-shop-card__title{
        font-size: 20px;

    }
    .wgm-shop-card__price{
        font-size: 14px;

    }
    .wgm-shop-sections {
        padding: 24px 20px 48px;
    }
    .wgm-shop-sections__inner {
        gap: 48px;
    }
    .wgm-shop-section__title {
        font-size: 28px;
    }
    .wgm-shop-bundle-card__included {
    display: flex;
    flex-wrap: nowrap!important;
    gap: 16px;
    flex-direction: column;
}
.wgm-shop-bundle-card__title{
font-size: 28px;

}
.wgm-shop-bundle-card__price-current{
font-size: 18px;
}
.wgm-shop-bundle-card__included-label{
font-size: 13px;

}

.wgm-shop-bundle-card__add-btn{
font-size: 14px;
width: 40%;
}




    .mobile{    
        display: block!important;
    }
     .desktop{
        display: none;
    }
    .wgm-shop-grid {
        gap: 16px;
    }
    .wgm-shop-grid--4 > *,
    .wgm-shop-grid--3 > * {
        flex: 1 1 100%;
    }
    .wgm-shop-card__image-wrap {
        min-height: 158px;
        min-width: 172px;
    }
    .wgm-shop-card__image {
        min-height: 158px;
        margin-left: 0px;
        min-width: 166px;
    }
    .wgm-shop-card{
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    }
    .desktop{
        display: block;
    }
    .wgm-shop-card__actions-wrap{
        margin-top: 0;
        display:none;
    }
    .wgm-shop-bundles {
        padding: 32px 20px;
    }
    .wgm-shop-bundles__title {
        font-size: 28px;
        line-height: 42px;
    }
    .wgm-shop-help__inner {
        gap: 40px;
    }
    .wgm-shop-help__title {
        font-size: 28px;
    }
    .wgm-shop-help__links {
        flex-direction: column;
        align-items: center;
    }
    .wgm-quick-view__content {
        padding: 20px;
    }
    .wgm-quick-view__box {
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .wgm-shop-page--new .wgm-shop-hero,
    .wgm-shop-sections,
    .wgm-shop-bundles {
        padding-left: 16px;
        padding-right: 16px;
    }
    .wgm-shop-help {
        padding: 40px 16px;
    }
}
  .desktop{
        display: block;
    }
    .mobile{    
        display: none;
    }
.woocommerce-breadcrumb{
    display: none;

}
.wgm-product-v1__dose-label{
    display: none;
}
.wgm-product-v1__dose-tooltip{
    display: none;
}