/**
 * Main Styles
 * 
 * @package WeGrowMagic
 */

/* ========================================
   Header
   ======================================== */
.wgm-announcement-bar {
    padding: 8px 0;
    color: #fff;
    text-align: center;
    font-size: var(--wgm-text-sm);
}

.wgm-announcement-bar__text {
    margin: 0;
}

.wgm-announcement-bar a {
    color: #fff;
    text-decoration: underline;
    margin-left: 8px;
}

.wgm-header {
    position: relative;
    position: relative;
    z-index: 100;
    background-color: var(--wgm-background);
    transition: all var(--wgm-transition);
}

.wgm-header--sticky-enabled.is-sticky,
.wgm-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}


@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.wgm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--wgm-header-height);
    gap: var(--wgm-gap);
    position: static;
}

.wgm-header__logo {
    flex-shrink: 0;
}

.wgm-logo {
    display: block;
}

.wgm-logo__image {
    height: 40px;
    width: auto;
}

.wgm-logo__image--sticky {
    display: none;
}

.is-sticky .wgm-logo__image:not(.wgm-logo__image--sticky) {
    display: none;
}

.is-sticky .wgm-logo__image--sticky {
    display: block;
}

.wgm-logo--text {
    font-family: var(--wgm-font-accent);
    font-size: var(--wgm-text-2xl);
    font-weight: 500;
    color: var(--wgm-primary);
}

/* Navigation */
.wgm-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    position: static;
}

.wgm-nav__menu {
    display: flex;
    align-items: center;
    gap: var(--wgm-gap-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.wgm-nav__menu > li {
    position: relative;
}

.wgm-nav__menu > li.wgm-nav__item--mega a {
    position: static;
    color: #000;
    font-family: 'General Sans';
    font-size: 16.75px;
    font-weight: 500;
    line-height: 150%;
}

.wgm-nav__menu > li > a {
    display: block;
    
    padding: 8px 0;
    color: var(--wgm-text);
    font-weight: 500;
    transition: color var(--wgm-transition-fast);
}

.wgm-nav__menu > li > a:hover,
.wgm-nav__menu > li.current-menu-item > a {
    color: var(--wgm-primary);
}

/* Dropdown */
.wgm-nav__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #fff;
    border-radius: var(--wgm-radius);
    box-shadow: var(--wgm-shadow-lg);
    padding: 16px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all var(--wgm-transition-fast);
}

.wgm-nav__menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.wgm-nav__menu .sub-menu li a {
    display: block;
    padding: 8px 12px;
    color: var(--wgm-text);
    border-radius: var(--wgm-radius-sm);
}

.wgm-nav__menu .sub-menu li a:hover {
    background-color: var(--wgm-background-alt);
}

/* Header Actions */
.wgm-header__actions {
    display: flex;
    align-items: center;
    gap: var(--wgm-gap-sm);
}

.wgm-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wgm-text);
    transition: color var(--wgm-transition-fast);
}

.wgm-header__icon:hover {
    color: var(--wgm-primary);
}

.wgm-header__cta {
    font-weight: 500;
    color: var(--wgm-primary);
    text-decoration: underline;
}

.wgm-header__cart-toggle {
    position: relative;
}

.wgm-cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background-color: var(--wgm-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wgm-cart-count:empty,
.wgm-cart-count[data-count="0"] {
    display: none;
}

.wgm-header__menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .wgm-nav {
        display: none;
    }
    
    .wgm-header__menu-toggle {
        display: flex;
    }
}

/* ========================================
   Search Overlay
   ======================================== */
.wgm-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--wgm-transition);
}

.wgm-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.wgm-search-overlay__inner {
    width: 100%;
    max-width: 900px;
    padding: 0 var(--wgm-gap);
}

.wgm-search-overlay__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.wgm-search-form {
    display: flex;
    gap: 12px;
}

.wgm-search-form__input {
    flex: 1;
    padding: 16px 20px;
    font-size: var(--wgm-text-lg);
    border: 2px solid var(--wgm-border);
    border-radius: var(--wgm-radius);
    outline: none;
    transition: border-color var(--wgm-transition-fast);
}

.wgm-search-form__input:focus {
    border-color: var(--wgm-primary);
}

.wgm-search-form__submit {
    padding: 16px;
    background-color: var(--wgm-primary);
    color: #fff;
    border: none;
    border-radius: var(--wgm-radius);
    cursor: pointer;
}

/* ========================================
   Mobile Menu
   ======================================== */
.wgm-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 100%;
    background-color: #fff;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform var(--wgm-transition);
    overflow-y: auto;
}

.wgm-mobile-menu.is-open {
    transform: translateX(0);
}

.wgm-mobile-menu__header {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
    border-bottom: 1px solid var(--wgm-border);
}

.wgm-mobile-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.wgm-mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 16px;
}

.wgm-mobile-menu__list li {
    border-bottom: 1px solid var(--wgm-border);
}

.wgm-mobile-menu__list li a {
    display: block;
    padding: 16px 0;
    color: var(--wgm-text);
    font-weight: 500;
}

.wgm-mobile-menu__list .sub-menu {
    list-style: none;
    padding-left: 16px;
}

.wgm-mobile-menu__list .sub-menu li {
    border-bottom: none;
}

.wgm-mobile-menu__list .sub-menu li a {
    padding: 12px 0;
    font-weight: 500;
    color: var(--wgm-text-light);
}

/* ========================================
   Cart Drawer
   ======================================== */
.wgm-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100%;
    background-color: #fff;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform var(--wgm-transition);
    display: flex;
    flex-direction: column;
}

.wgm-cart-drawer.is-open {
    transform: translateX(0);
}

.wgm-cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--wgm-border);
}

.wgm-cart-drawer__title {
    margin: 0;
    font-size: var(--wgm-text-xl);
}

.wgm-cart-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.wgm-cart-drawer__content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.wgm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--wgm-transition);
}

.wgm-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Footer
   ======================================== */
.wgm-footer {
    width: 100%;
    height: 650px;
    position: relative;
    background: #0D3751;
    color: white;
    overflow: hidden;
}

.wgm-footer__container {
    width: 1408.50px;
    max-width: calc(100% - 319px);
    padding: 0;
    position: relative;
    height: 100%;
}

.wgm-footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.wgm-footer a:hover {
    opacity: 0.8;
}

/* Footer Top - Logo */
.wgm-footer__top {
    width: 2100px;
    left: 159.50px;
    top: 79.50px;
    position: absolute;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
}

.wgm-footer__logo {
    width: 178px;
    height: 38px;
    display: block;
}

.wgm-footer__logo img {
    width: 178px;
    height: 38px;
    object-fit: contain;
}

.wgm-footer__logo--text {
    font-family: 'ITC Clearface Std', serif;
    font-size: 24px;
    color: white;
}

.wgm-footer__divider {
    align-self: stretch;
    height: 0px;
    outline: 1px rgba(255, 255, 255, 0.25) solid;
    outline-offset: -0.50px;
}

/* Footer Columns */
.wgm-footer__columns {
    position: relative;
    width: 100%;
    display:flex;
    height: auto;
}

.wgm-footer__column {
    position: absolute;
    width: 212.80px;
}

.wgm-footer__column--shop {
    left: 159px;
    top: 246px;
}

.wgm-footer__column--how-it-works {
    left: 470px;
    top: 246px;
}

.wgm-footer__column--newsletter {
    left: 811px;
    top: 246px;
    width: auto;
    min-width: 439px;
}

.wgm-footer__heading {
    color: white;
    font-size: 20px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 25.20px;
    word-wrap: break-word;
    margin: 0 0 20px 0;
}

.wgm-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wgm-footer__links li {
    margin-bottom: 17px;
}

.wgm-footer__links li:last-child {
    margin-bottom: 0;
}

.wgm-footer__links a {
    color: white;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 300;
    line-height: 25.20px;
    word-wrap: break-word;
}

/* Newsletter */
.wgm-footer__newsletter-text {
    width: 1408.50px;
    left: 811px;
    top: 288px;
    position: absolute;
    color: rgba(255, 255, 255, 0.80);
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 18px;
    word-wrap: break-word;
    margin: 0 0 20px 0;
}

.wgm-newsletter-form {
    position: relative;
    display: block;
    margin-top: 20px;
}

.wgm-newsletter-form__wrapper {
    width: 439px;
    height: 51px;
    position: relative;
    background: white;
    overflow: hidden;
    border-radius: 56px;
    display: block;
}

.wgm-newsletter-form__input {
    width: 100%;
    height: 100%;
    padding: 0 140px 0 20px;
    border: none;
    background: transparent;
    color: rgba(13, 55, 81, 0.42);
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 18px;
    outline: none;
}

.wgm-newsletter-form__input::placeholder {
    color: rgba(13, 55, 81, 0.42);
}

.wgm-newsletter-form__submit {
    width: 112px;
    height: 39px;
    left: 319px;
    top: 6px;
    position: absolute;
    background: #0D3751;
    overflow: hidden;
    border-radius: 46px;
    border: none;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wgm-newsletter-form__submit-text {
    left: 19px;
    top: 7px;
    position: absolute;
    color: white;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 25.20px;
    word-wrap: break-word;
}

.wgm-newsletter-form__submit:hover {
    opacity: 0.9;
}

/* Divider Bottom */
.wgm-footer__divider--bottom {
    width: 2100px;
    height: 0px;
    left: 159.50px;
    top: 501px;
    position: absolute;
    outline: 1px rgba(255, 255, 255, 0.25) solid;
    outline-offset: -0.50px;
}

/* Footer Bottom */
.wgm-footer__bottom {
    position: absolute;
    left: 159px;
    top: 551px;
    width: 416px;
    z-index: 1;
}

.wgm-footer__country {
    width: 416px;
    margin-bottom: 20px;
    display: none;
}

.wgm-footer__country-label {
    width: 416px;
    color: rgba(255, 255, 255, 0.60);
    font-size: 18.20px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 23.40px;
    word-wrap: break-word;
    display: block;
    margin-bottom: 10px;
}

.wgm-footer__country-select {
    width: 416px;
    height: 65px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 6.50px;
    outline: 0.65px white solid;
    outline-offset: -0.65px;
    position: relative;
}

.wgm-footer__country-select select {
    width: 100%;
    height: 100%;
    padding: 0 20.80px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.60);
    font-size: 18.20px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 23.40px;
    appearance: none;
    cursor: pointer;
    outline: none;
}

.wgm-footer__copyright {
    width: 416px;
    position: absolute;
    left: 0;
    top: 0px;
    justify-content: left;
    display: flex;
    align-items: left;
    color: rgba(255, 255, 255, 0.90);
    font-size: 13.41px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 18.20px;
    letter-spacing: 0.91px;
    word-wrap: break-word;
    margin: 0;
    text-align: center;
    z-index: 1;
}

.wgm-footer__copyright span {
    display: block;
}

/* Responsive */
@media (max-width: 1440px) {
    .wgm-footer {
        height: auto;
        min-height: 767px;
    }
    
    .wgm-footer__container {
        width: 100%;
        max-width: 1408.50px;
        padding: 0 20px;
    }
    
    .wgm-footer__top {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        padding: 79.50px 0 0 0;
    }
    
    .wgm-footer__column--shop,
    .wgm-footer__column--how-it-works,
    .wgm-footer__column--newsletter {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        margin-bottom: 40px;
    }
    
    .wgm-footer__newsletter-text {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
    }
    
    .wgm-newsletter-form__wrapper {
        width: 100%;
        max-width: 439px;
    }
    
    .wgm-newsletter-form__submit {
        position: relative;
        left: auto;
        top: auto;
        margin: 6px;
    }
    
    .wgm-newsletter-form__submit-text {
        position: relative;
        left: auto;
        top: auto;
    }
    
    .wgm-footer__divider--bottom {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        margin: 40px 0;
    }
    
    .wgm-footer__bottom {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        padding: 40px 0;
    }
    
    .wgm-footer__copyright {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .wgm-footer {
        height: auto;
    }
    
    .wgm-footer__container {
        padding: 40px 20px;
    }
    
    .wgm-footer__top {
        padding: 0;
    }
    
    .wgm-footer__column {
        margin-bottom: 30px;
    }
    
    .wgm-newsletter-form__wrapper {
        height: auto;
        padding: 10px;
    }
    
    .wgm-newsletter-form__input {
        height: 40px;
        padding: 0 10px;
    }
    
    .wgm-newsletter-form__submit {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: 40px;
        margin: 10px 0 0 0;
    }
    
    .wgm-newsletter-form__submit-text {
        position: relative;
        left: auto;
        top: auto;
    }
}

/* ========================================
   Main Content
   ======================================== */
.wgm-main {
    min-height: 50vh;
}

/* ========================================
   Breadcrumbs
   ======================================== */
.wgm-breadcrumbs {
    padding: 16px 0;
    font-size: var(--wgm-text-sm);
}

.wgm-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wgm-breadcrumbs__separator {
    color: var(--wgm-text-light);
}

.wgm-breadcrumbs__item a {
    color: var(--wgm-text-light);
}

.wgm-breadcrumbs__item--current {
    color: var(--wgm-text);
}

/* ========================================
   Posts Grid
   ======================================== */
.wgm-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wgm-gap-lg);
}

@media (max-width: 992px) {
    .wgm-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .wgm-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Pagination
   ======================================== */
.wgm-pagination {
    margin-top: 48px;
}

.wgm-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wgm-pagination a,
.wgm-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--wgm-border);
    border-radius: var(--wgm-radius);
    transition: all var(--wgm-transition-fast);
}

.wgm-pagination a:hover {
    border-color: var(--wgm-primary);
    color: var(--wgm-primary);
}

.wgm-pagination .current {
    background-color: var(--wgm-primary);
    border-color: var(--wgm-primary);
    color: #fff;
}

/* ========================================
   Star Rating
   ======================================== */
.wgm-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #F59E0B;
}

.wgm-star-rating .wgm-icon {
    width: 16px;
    height: 16px;
}

.wgm-star-rating__count {
    margin-left: 8px;
    color: var(--wgm-text-light);
    font-size: var(--wgm-text-sm);
}

/* ========================================
   Forms
   ======================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--wgm-font-body);
    font-size: var(--wgm-text-base);
    border-radius: var(--wgm-radius);
    background-color: #fff;
    transition: border-color var(--wgm-transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--wgm-primary);
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}