/* Greek Derma – Products page, product category archive and single product */

.gdp-hero {
    position: relative;
    padding: 250px 0 90px;
    background: var(--dark) url("../../../uploads/2026/05/Premium-Derma-Skincare-Products-scaled.webp") center / cover no-repeat;
    color: var(--white);
    overflow: hidden;
}
.gdp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(21, 43, 28, .94) 0%, rgba(21, 43, 28, .82) 50%, rgba(233, 54, 138, .75) 100%);
}
.gdp-hero .container { position: relative; z-index: 1; }
.gdp-hero-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 50px;
}
.gdp-collage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 540px;
    margin-left: auto;
}
.gdp-collage::before {
    content: "";
    position: absolute;
    inset: 12% 8%;
    background: radial-gradient(circle, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(20px);
}
.gdp-collage a {
    position: relative;
    display: block;
    height: 250px;
    padding: 16px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .25);
    transition: transform .35s ease;
}
.gdp-collage a:nth-child(even) { transform: translateY(40px); }
.gdp-collage a:hover { transform: translateY(-6px); }
.gdp-collage a:nth-child(even):hover { transform: translateY(32px); }
.gdp-collage img { width: 100%; height: 100%; object-fit: contain; }
.gdp-collage-badge {
    position: absolute;
    left: -24px;
    bottom: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--dark);
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .2);
}
.gdp-collage-badge i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    background: var(--accent);
    border-radius: 50%;
}
.gdp-collage-badge strong { display: block; font-size: 15px; line-height: 1.2; }
.gdp-collage-badge small { font-size: 12px; color: var(--text); }
.gdp-crumb {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    padding: 6px 16px;
    font-size: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 30px;
}
.gdp-crumb a { color: var(--white); text-decoration: none; }
.gdp-crumb a:hover { color: var(--accent); }
.gdp-crumb span { color: var(--accent); }
.gdp-hero h1 {
    max-width: 680px;
    margin: 0 0 18px;
    font-family: "Playfair Display", serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.12;
    color: var(--white);
}
.gdp-hero p {
    max-width: 580px;
    margin: 0 0 32px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .85);
}
.gdp-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.gdp-stat {
    min-width: 150px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    backdrop-filter: blur(6px);
}
.gdp-stat strong { display: block; font-size: 28px; line-height: 1.1; color: var(--white); }
.gdp-stat small { font-size: 13px; color: rgba(255, 255, 255, .75); }

.gdp-section { padding: 90px 0; }
.gdp-section.gdp-soft { background: var(--light-green); }
.gdp-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.gdp-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(233, 54, 138, .08);
    border-radius: 30px;
}
.gdp-head h2 {
    margin: 0 0 14px;
    font-family: "Playfair Display", serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
}
.gdp-head p { margin: 0; color: var(--text); line-height: 1.7; }

/* Categories */
.gdp-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.gdp-cat {
    position: relative;
    display: block;
    height: 230px;
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none;
    background: var(--dark);
    box-shadow: 0 10px 30px rgba(21, 43, 28, .08);
}
.gdp-cat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.gdp-cat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 43, 28, 0) 35%, rgba(21, 43, 28, .9) 100%);
    transition: background .3s ease;
}
.gdp-cat:hover img { transform: scale(1.08); }
.gdp-cat:hover::after {
    background: linear-gradient(180deg, rgba(233, 54, 138, .15) 20%, rgba(233, 54, 138, .92) 100%);
}
.gdp-cat-body {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}
.gdp-cat-body h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--white); }
.gdp-cat-body small { font-size: 13px; color: rgba(255, 255, 255, .85); }
.gdp-cat-arrow {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--white);
    border-radius: 50%;
    transition: transform .3s ease;
}
.gdp-cat:hover .gdp-cat-arrow { transform: rotate(45deg); }

/* Toolbar */
.gdp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}
.gdp-result { margin: 0; color: var(--text); }
.gdp-result strong { color: var(--dark); }
.gdp-search { display: flex; width: 100%; max-width: 360px; }
.gdp-search input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 30px 0 0 30px;
    background: var(--white);
    outline: none;
}
.gdp-search input:focus { border-color: var(--primary); }
.gdp-search button {
    width: 56px;
    height: 48px;
    padding: 0;
    color: var(--white);
    background: var(--primary);
    border: 0;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
}
.gdp-search button:hover { background: var(--secondary); }

.gdp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.gdp-pill {
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    transition: all .25s ease;
}
.gdp-pill span { margin-left: 4px; font-size: 12px; opacity: .6; }
.gdp-pill:hover { color: var(--primary); border-color: var(--primary); }
.gdp-pill.is-active { color: var(--white); background: var(--primary); border-color: var(--primary); }

/* Products */
.gdp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.gdp-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.gdp-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(21, 43, 28, .1);
}
.gdp-card-img {
    position: relative;
    display: block;
    height: 250px;
    padding: 18px;
    background: #fafcf8;
}
.gdp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}
.gdp-card:hover .gdp-card-img img { transform: scale(1.06); }
.gdp-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    background: var(--secondary);
    border-radius: 30px;
}
.gdp-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 22px;
}
.gdp-card-body h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}
.gdp-card-body h3 a { color: var(--dark); text-decoration: none; }
.gdp-card-body h3 a:hover { color: var(--primary); }
.gdp-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.gdp-card-link i { transition: transform .25s ease; }
.gdp-card-link:hover { color: var(--secondary); }
.gdp-card-link:hover i { transform: translateX(4px); }

.gdp-empty {
    padding: 60px 20px;
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: 14px;
}
.gdp-empty h3 { color: var(--dark); }

.gdp-pagination { margin-top: 50px; text-align: center; }
.gdp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    margin: 3px;
    padding: 0 14px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
}
.gdp-pagination .page-numbers.current,
.gdp-pagination a.page-numbers:hover {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

/* CTA */
.gdp-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 50px 60px;
    background: linear-gradient(110deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
}
.gdp-cta h2 {
    margin: 0 0 8px;
    font-family: "Playfair Display", serif;
    font-size: 34px;
    color: var(--white);
}
.gdp-cta p { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .9); }
.gdp-cta .main-btn { background: var(--dark); cursor: pointer; }
.gdp-cta .main-btn:hover { background: var(--white); color: var(--dark); }

@media (max-width: 1199.98px) {
    .gdp-hero { padding: 200px 0 70px; }
    .gdp-cat-grid, .gdp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
    .gdp-hero-row { grid-template-columns: 1fr; }
    .gdp-collage { display: none; }
    .gdp-hero h1 { font-size: 44px; }
    .gdp-head h2 { font-size: 34px; }
    .gdp-cat-grid, .gdp-grid { grid-template-columns: repeat(2, 1fr); }
    .gdp-section { padding: 70px 0; }
    .gdp-cta { padding: 40px; }
}
@media (max-width: 575.98px) {
    .gdp-hero { padding: 170px 0 60px; }
    .gdp-hero h1 { font-size: 34px; }
    .gdp-hero p { font-size: 15px; }
    .gdp-stat { min-width: calc(50% - 7px); padding: 12px 16px; }
    .gdp-head h2 { font-size: 28px; }
    .gdp-cat-grid { gap: 14px; }
    .gdp-cat { height: 170px; }
    .gdp-cat-body { left: 14px; right: 14px; bottom: 12px; }
    .gdp-cat-body h3 { font-size: 16px; }
    .gdp-cat-arrow { display: none; }
    .gdp-grid { gap: 14px; }
    .gdp-card-img { height: 170px; padding: 12px; }
    .gdp-card-body { padding: 14px; }
    .gdp-card-body h3 { font-size: 14px; }
    .gdp-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; }
    .gdp-pill { flex: 0 0 auto; }
    .gdp-search { max-width: none; }
    .gdp-cta { padding: 30px 22px; }
    .gdp-cta h2 { font-size: 26px; }
}


/* ---------- Compact hero (category + single product) ---------- */

.gdp-hero--sm { padding: 230px 0 70px; }
.gdp-hero--sm h1 { max-width: 760px; font-size: 48px; }
.gdp-hero--sm p { margin-bottom: 26px; }
.gdp-crumb { flex-wrap: wrap; }
.gdp-hero-thumb {
    width: 300px;
    height: 300px;
    margin-left: auto;
    padding: 10px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .25);
}
.gdp-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


/* ---------- Single product ---------- */

.gdp-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 60px;
}
.gdp-gallery { position: sticky; top: 30px; }
.gdp-gallery-main {
    position: relative;
    height: 520px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(21, 43, 28, .06);
}
.gdp-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gdp-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.gdp-thumb {
    width: 84px;
    height: 84px;
    padding: 6px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .25s ease;
}
.gdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gdp-thumb:hover, .gdp-thumb.is-active { border-color: var(--primary); }

.gdp-info .gdp-badge { position: static; display: inline-block; margin-bottom: 14px; text-decoration: none; }
.gdp-info h2 {
    margin: 0 0 22px;
    font-family: "Playfair Display", serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}
.gdp-compo {
    margin-bottom: 26px;
    padding: 22px 24px;
    background: var(--light-green);
    border-left: 4px solid var(--accent);
    border-radius: 0 14px 14px 0;
}
.gdp-compo h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--dark);
}
.gdp-compo h4 i { color: var(--accent); }
.gdp-compo, .gdp-compo p { font-size: 15px; line-height: 1.75; color: var(--text); }
.gdp-compo p:last-child { margin-bottom: 0; }

.gdp-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}
.gdp-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.gdp-features i {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(233, 54, 138, .08);
    border-radius: 50%;
}

.gdp-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.gdp-actions .main-btn { cursor: pointer; }
.gdp-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: #25d366;
    border-radius: 50px;
    transition: transform .25s ease, background .25s ease;
}
.gdp-wa-btn:hover { color: #fff; background: #1ebe5a; transform: translateY(-2px); }
.gdp-wa-btn i { font-size: 20px; }

.gdp-meta { margin: 0; padding-top: 20px; font-size: 14px; color: var(--text); border-top: 1px solid var(--border); }
.gdp-meta a { color: var(--primary); text-decoration: none; }

.gdp-desc {
    padding: 40px 45px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.gdp-desc h2 {
    margin: 0 0 20px;
    font-family: "Playfair Display", serif;
    font-size: 30px;
    color: var(--dark);
}
.gdp-desc, .gdp-desc p, .gdp-desc li { font-size: 16px; line-height: 1.8; color: var(--text); }
.gdp-desc h3, .gdp-desc h4 { margin-top: 24px; color: var(--dark); }


@media (max-width: 1199.98px) {
    .gdp-hero--sm { padding: 190px 0 60px; }
    .gdp-product { gap: 40px; }
    .gdp-gallery-main { height: 440px; }
}
@media (max-width: 991.98px) {
    .gdp-hero--sm h1 { font-size: 38px; }
    .gdp-hero-thumb { display: none; }
    .gdp-product { grid-template-columns: 1fr; }
    .gdp-gallery { position: static; }
    .gdp-info h2 { font-size: 32px; }
}
@media (max-width: 575.98px) {
    .gdp-hero--sm { padding: 160px 0 50px; }
    .gdp-hero--sm h1 { font-size: 28px; }
    .gdp-gallery-main { height: 320px; padding: 16px; }
    .gdp-thumb { width: 66px; height: 66px; }
    .gdp-info h2 { font-size: 26px; }
    .gdp-features { grid-template-columns: 1fr; }
    .gdp-actions > * { flex: 1 1 100%; justify-content: center; }
    .gdp-desc { padding: 26px 20px; }
    .gdp-desc h2 { font-size: 24px; }
}


/* ---------- Single product: packing chips + info tabs ---------- */

.gdp-pack { display: flex; flex-wrap: wrap; gap: 10px; margin: -6px 0 22px; }
.gdp-pack span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
}
.gdp-pack i { color: var(--secondary); }

.gdp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.gdp-tab {
    padding: 11px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    background: var(--light-green);
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    transition: all .25s ease;
}
.gdp-tab:hover { color: var(--primary); }
.gdp-tab.is-active { color: var(--white); background: var(--primary); }
.gdp-tab-panel { display: none; }
.gdp-tab-panel.is-active { display: block; animation: gdpFade .3s ease; }
.gdp-tab-panel ul { margin: 0; padding: 0; list-style: none; }
.gdp-tab-panel li { position: relative; margin-bottom: 10px; padding-left: 30px; }
.gdp-tab-panel li::before {
    content: "\F26A";
    position: absolute;
    left: 0;
    top: 1px;
    font-family: "bootstrap-icons";
    color: var(--accent);
}
.gdp-tab-panel p:last-child { margin-bottom: 0; }
@keyframes gdpFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 575.98px) {
    .gdp-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .gdp-tab { flex: 0 0 auto; padding: 9px 18px; font-size: 14px; }
}
