/* GlowCare Cosmetic theme — Health & Beauty storefront */

html:has(body.theme-cosmetic) {
    overflow-x: hidden;
}

.theme-cosmetic {
    --gc-pink: #e11d74;
    --gc-pink-deep: #be185d;
    --gc-pink-soft: #fce7f3;
    --gc-pink-mid: #f9a8d4;
    --gc-ink: #111827;
    --gc-muted: #6b7280;
    --gc-line: #f3e8ee;
    --gc-white: #ffffff;
    color: var(--gc-ink);
    background: var(--gc-white);
    overflow-x: hidden;
}

.theme-cosmetic a { text-decoration: none; }

.store-header-wrap--cosmetic {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}

.gc-header {
    background: #fff;
    border-bottom: 1px solid #f3e8ee;
}

.gc-header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 8px 0;
}

.gc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.gc-logo img {
    height: auto;
    width: auto;
    max-height: var(--store-header-logo-h, 42px);
    max-width: min(var(--store-header-logo-w, 220px), 52vw);
    object-fit: contain;
    object-position: left center;
    display: block;
}
.gc-logo--footer img {
    max-height: var(--store-footer-logo-h, 48px);
    max-width: min(var(--store-footer-logo-w, 240px), 70vw);
}

.gc-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fb7185, #e11d74);
    color: #fff;
    font-size: 18px;
}

.gc-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.gc-logo-text strong {
    color: var(--gc-pink);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.gc-logo-text small {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
}

.gc-nav-bar {
    border-top: 1px solid #f3e8ee;
    background: #fff;
}

.gc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 46px;
}

.gc-nav-link {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.gc-nav-link.is-active,
.gc-nav-link:hover {
    color: var(--gc-pink);
}

.gc-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gc-pink);
    border-radius: 2px;
}

.gc-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.gc-search-wrap {
    flex: 1;
    min-width: 0;
    max-width: 640px;
    margin: 0 auto;
}

.gc-search {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
    height: 44px;
    width: 100%;
}

.gc-search:focus-within {
    border-color: var(--gc-pink);
    box-shadow: 0 0 0 3px rgba(225, 29, 116, 0.12);
}

.gc-search input {
    border: 0;
    outline: 0;
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    font-size: 14px;
    background: transparent;
}

.gc-search button {
    width: 48px;
    flex-shrink: 0;
    border: 0;
    background: var(--gc-pink);
    color: #fff;
    font-size: 15px;
}

.gc-search button:hover {
    background: var(--gc-pink-deep);
}

.gc-icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
}

.gc-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gc-pink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gc-menu-toggle {
    border: 0;
    background: none;
    font-size: 20px;
    color: #111827;
}

.gc-mobile-drawer {
    display: none;
    border-top: 1px solid #f3e8ee;
    padding: 12px 16px 16px;
}

.gc-header.open .gc-mobile-drawer { display: block; }

.gc-mobile-drawer a {
    display: block;
    padding: 10px 0;
    color: #374151;
    font-weight: 500;
}

.gc-mobile-drawer a.is-active { color: var(--gc-pink); }

/* Hero */
.gc-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fff5f9 0%, #fce7f3 55%, #fff 100%);
    min-height: 520px;
}

.gc-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 40%, rgba(244, 114, 182, 0.35), transparent 42%),
        radial-gradient(circle at 12% 80%, rgba(251, 207, 232, 0.7), transparent 40%);
    pointer-events: none;
}

.gc-hero-bg::after {
    content: "";
    position: absolute;
    right: -40px;
    top: 20px;
    width: 520px;
    height: 520px;
    background:
        radial-gradient(circle at 30% 40%, rgba(236, 72, 153, 0.12) 0 18%, transparent 19%),
        radial-gradient(circle at 70% 30%, rgba(244, 114, 182, 0.18) 0 12%, transparent 13%);
    opacity: 0.9;
}

.gc-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 24px;
    padding: 36px 0 28px;
}

.gc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--gc-pink);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
}

.gc-hero-copy h1 {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #111827;
    margin-bottom: 14px;
}

.gc-hero-copy h1 em {
    font-style: normal;
    color: var(--gc-pink);
}

.gc-hero-copy p {
    color: #6b7280;
    max-width: 420px;
    margin-bottom: 26px;
}

.gc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.gc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 14px;
}

.gc-btn-primary {
    background: var(--gc-pink);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(225, 29, 116, 0.28);
}

.gc-btn-outline {
    background: #fff;
    color: var(--gc-pink) !important;
    border: 1px solid #f9a8d4;
}

.gc-btn-light {
    background: #fff;
    color: var(--gc-pink) !important;
}

.gc-hero-visual {
    position: relative;
    min-height: 420px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.gc-hero-photo {
    width: min(100%, 420px);
    height: 440px;
    object-fit: cover;
    object-position: top center;
    border-radius: 180px 180px 40px 40px;
    box-shadow: 0 24px 50px rgba(190, 24, 93, 0.18);
    background: linear-gradient(180deg, #fbcfe8, #fce7f3);
}

.gc-hero-seal {
    position: absolute;
    right: 18px;
    bottom: 48px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
}

.gc-hero-seal strong {
    color: var(--gc-pink);
    font-size: 22px;
    line-height: 1;
}

.gc-hero-seal span {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
}

/* Trust */
.gc-trust { margin-top: -28px; position: relative; z-index: 2; }

.gc-trust-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 18px 8px;
}

.gc-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
}

.gc-trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fdf2f8;
    color: var(--gc-pink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.gc-trust-item strong { display: block; font-size: 14px; }
.gc-trust-item small { color: #9ca3af; font-size: 12px; }

/* Sections */
.gc-section { padding: 48px 0 12px; }

.gc-sec-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.gc-sec-head h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
}

.gc-sec-head a {
    color: var(--gc-pink);
    font-weight: 600;
    font-size: 14px;
}

.gc-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

.gc-products-toolbar {
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.gc-sort-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gc-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #f9a8d4;
    color: var(--gc-pink, #e11d74);
    font-size: 13px;
    font-weight: 700;
    background: #fff;
}

.gc-chip:hover,
.gc-chip.is-active {
    background: var(--gc-pink, #e11d74);
    border-color: var(--gc-pink, #e11d74);
    color: #fff;
}

.theme-cosmetic .home-promo-section {
    padding: 12px 0 28px;
}

.theme-cosmetic .home-promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .theme-cosmetic .home-promo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

.theme-cosmetic .home-promo-card {
    position: relative;
    display: block;
    min-height: 230px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.theme-cosmetic .home-promo-card:hover {
    color: inherit;
}

.theme-cosmetic .home-promo-card__content {
    position: relative;
    z-index: 3;
    max-width: 58%;
    min-height: 230px;
    padding: 26px 20px 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theme-cosmetic .home-promo-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 8px;
    color: #1f2937;
}

.theme-cosmetic .home-promo-card__subtitle {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0 0 16px;
}

.theme-cosmetic .home-promo-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--gc-pink, #e11d74);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.theme-cosmetic .home-promo-card:hover .home-promo-card__btn {
    box-shadow: 0 8px 18px rgba(225, 29, 116, 0.28);
    color: #fff;
}

.theme-cosmetic .home-promo-card__media {
    position: absolute;
    inset: 0 0 0 38%;
    z-index: 1;
    pointer-events: none;
}

.theme-cosmetic .home-promo-card__media-inner {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.theme-cosmetic .home-promo-card__media-inner img {
    position: absolute;
    right: -6%;
    bottom: -8%;
    width: 118%;
    height: 118%;
    max-width: none;
    object-fit: contain;
    object-position: bottom right;
}

.gc-cat-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px 14px 18px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
    color: inherit;
}

.gc-cat-photo {
    display: block;
    height: 150px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fce7f3, #fff);
    overflow: hidden;
    margin-bottom: 12px;
}

.gc-cat-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gc-cat-photo i {
    font-size: 36px;
    color: var(--gc-pink);
    line-height: 150px;
}

.gc-cat-card strong { display: block; color: #111827; }
.gc-cat-card small { color: #9ca3af; }

/* Promo */
.gc-promo { padding: 28px 0 10px; }

.gc-promo-banner {
    border-radius: 22px;
    min-height: 220px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: linear-gradient(90deg, #fb7185 0%, #e11d74 55%, #db2777 100%);
    color: #fff;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.gc-promo-visual {
    min-height: 220px;
    overflow: hidden;
    min-width: 0;
}

.gc-promo-visual img {
    width: 100%;
    height: 220px;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.gc-promo-copy {
    padding: 32px 36px 32px 12px;
    min-width: 0;
}

.gc-promo-copy span {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    margin-bottom: 10px;
}

.gc-promo-copy h3 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 6px;
}

.gc-promo-copy p { opacity: .9; margin-bottom: 16px; }

/* Products */
.gc-prod-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.gc-prod-grid--page {
    grid-template-columns: repeat(4, 1fr);
}

.gc-prod-col { min-width: 0; }

.gc-prod-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gc-prod-img {
    display: block;
    height: 190px;
    background: #fdf2f8;
    overflow: hidden;
}

.gc-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.gc-prod-empty {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--gc-pink);
    font-size: 32px;
}

.gc-prod-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.gc-prod-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.55em;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 2px;
}

.gc-prod-meta {
    color: #9ca3af;
    font-size: 12px;
    margin: 0 0 6px;
    min-height: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-prod-rating {
    color: #f59e0b;
    font-size: 11px;
    margin-bottom: 8px;
}

.gc-prod-rating span { color: #9ca3af; margin-left: 4px; }

.gc-star-off { color: #e5e7eb; }

.gc-prod-price {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 12px;
}

.gc-prod-price strong { font-size: 18px; color: #111827; }
.gc-prod-price s { color: #9ca3af; font-size: 13px; }

.gc-prod-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    margin-top: auto;
}

.gc-prod-actions--full .gc-btn-buy {
    width: 100%;
}

.gc-btn-buy {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gc-pink);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.gc-btn-buy:hover {
    background: var(--gc-pink-deep);
    color: #fff;
}

.gc-btn-cart-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: var(--gc-pink);
    color: #fff;
    padding: 0;
    font-size: 14px;
}

.gc-btn-cart-icon:hover {
    background: var(--gc-pink-deep);
    color: #fff;
}

/* Footer */
.gc-footer {
    background: var(--section-footer-bg, #fff7fb);
    margin-top: 24px;
    color: var(--section-footer-text, #6b7280);
}

.gc-footer-trust {
    background: var(--section-trust-bg, #fce7f3);
    border-top: 1px solid #f9a8d4;
    border-bottom: 1px solid #f9a8d4;
    padding: 22px 0;
}

.gc-footer-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.gc-footer-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
    background: #fff;
    border: 1px solid #fbcfe8;
    border-radius: 14px;
    padding: 14px 16px;
    min-height: 84px;
    box-shadow: 0 8px 20px rgba(225, 29, 116, 0.06);
}

.gc-footer-trust-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdf2f8;
    color: var(--gc-pink);
}

.gc-footer-trust-item i { color: var(--gc-pink); font-size: 16px; }
.gc-footer-trust-item strong { display: block; font-size: 14px; color: #111827; }
.gc-footer-trust-item span { font-size: 12px; color: #9ca3af; }

.gc-footer-main {
    background: var(--section-footer-bg, #fff7fb);
}

.gc-footer-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--section-footer-heading, #111827);
}
.gc-footer-text { color: var(--section-footer-text, #6b7280); font-size: 14px; }
.gc-footer-links { list-style: none; padding: 0; margin: 0; }
.gc-footer-links li { margin-bottom: 8px; color: var(--section-footer-text, #6b7280); font-size: 14px; }
.gc-footer-links a { color: var(--section-footer-link, #6b7280); }
.gc-footer-links a:hover { color: var(--gc-pink); }
.gc-logo--footer .gc-logo-text strong { font-size: 20px; }

.theme-cosmetic .store-footer-dev-bar {
    background: #fce7f3;
    border-top: 1px solid #f9a8d4;
    color: #000;
}
.theme-cosmetic .store-footer-dev-bar .store-footer-dev-copy,
.theme-cosmetic .store-footer-dev-bar .store-footer-dev-credit {
    color: #000;
}
.theme-cosmetic .store-footer-dev-bar .store-footer-dev-credit a {
    color: #000;
    font-weight: 800;
}
.theme-cosmetic .store-footer-dev-bar .store-footer-dev-credit a:hover {
    color: #051c3b;
    opacity: 1;
}

    @media (max-width: 1199px) {
    .gc-cat-grid, .gc-prod-grid, .gc-prod-grid--page { grid-template-columns: repeat(3, 1fr); }
    .gc-hero-inner { grid-template-columns: 1fr; }
    .gc-hero-visual { min-height: 320px; }
    .gc-hero-photo { height: 340px; }
    .gc-trust-card { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .gc-header-top {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "menu logo actions"
            "search search search";
        align-items: center;
        gap: 10px 12px;
        min-height: 0;
        padding: 10px 0 12px;
    }
    .gc-menu-toggle { grid-area: menu; }
    .gc-logo { grid-area: logo; justify-self: center; }
    .gc-header-actions { grid-area: actions; }
    .gc-search-wrap {
        grid-area: search;
        max-width: none;
        margin: 0;
    }
    .gc-search { height: 42px; }
    .gc-nav-bar { display: none; }
    .gc-logo img { max-width: min(var(--store-header-logo-w, 220px), 46vw); }
    .gc-promo-banner {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 18px;
    }
    .gc-promo-visual { min-height: 0; }
    .gc-promo-visual img { height: 180px; }
    .gc-promo-copy { padding: 20px 22px; }
}

@media (max-width: 767px) {
    .gc-nav { display: none !important; }
    .gc-trust-card,
    .gc-cat-grid,
    .gc-prod-grid,
    .gc-prod-grid--page,
    .gc-footer-trust-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gc-hero { min-height: 0; }
    .gc-hero-photo { height: 240px; border-radius: 20px; }
    .gc-hero-seal { width: 72px; height: 72px; right: 8px; bottom: 12px; }
    .gc-hero-copy h1 { font-size: 1.7rem; }
    .gc-hero-actions { width: 100%; }
    .gc-hero-actions .gc-btn { flex: 1; justify-content: center; }
    .gc-sec-head { gap: 8px; }
    .gc-sec-head h2 { font-size: 20px; }
    .gc-prod-img { height: 140px; }
    .gc-btn-buy { font-size: 11px; height: 36px; }
    .gc-btn-cart-icon { width: 36px; height: 36px; flex-basis: 36px; }

    .gc-promo { padding: 12px 0 8px; }
    .gc-promo-banner {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 16px;
    }
    .gc-promo-visual { min-height: 0; }
    .gc-promo-visual img {
        height: 168px;
        object-fit: cover;
        display: block;
    }
    .gc-promo-copy {
        padding: 16px 18px 18px;
        grid-column: auto;
    }
    .gc-promo-copy h3 {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    .gc-promo-copy .gc-btn {
        width: 100%;
        justify-content: center;
    }

    .theme-cosmetic .home-promo-card,
    .theme-cosmetic .home-promo-card__content {
        min-height: 168px;
    }
    .theme-cosmetic .home-promo-card__content {
        max-width: 60%;
        padding: 16px 12px 16px 16px;
    }
}

@media (max-width: 479px) {
    .gc-trust-card { grid-template-columns: 1fr; }
    .gc-trust-item { padding: 10px 14px; }
    .gc-promo-visual img { height: 140px; }
    .gc-promo-copy h3 { font-size: 1.25rem; }
}

.store-header-wrap--cosmetic .search-form-panel:focus-within {
    border-color: var(--gc-pink, #e11d74);
    box-shadow: 0 0 0 4px rgba(225, 29, 116, 0.12);
}
.store-header-wrap--cosmetic .search-form-panel button {
    background: var(--gc-pink, #e11d74);
}
