/* ==========================================================================
   1. TOP BANNER & HERO SECTION
   ========================================================================== */
#home-top-banner {
    background: #cf3339;
    color: #FFF;
    padding: 13px 0;
    text-align: center;
}

.box-in {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 10px;
    margin: 0 auto;
    font-size: 13px;
    font-weight: 600;
}

.box-in-block {
    display: block;
}

.button-quiz {
    background: #2c2c2c;
    color: #FFF;
    border-radius: 4px;
    padding: 4px 12px;
}

.hero-image-desktop {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 221px);
    object-fit: cover;
}

#banner {
    display: grid;
    gap: 20px;
    padding: 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.banner-image {
    display: block;
    width: 100%;
    height: auto;
}

.sec1400 {
    max-width: 1400px;
    margin: 2rem auto;
	padding: 20px;
}

.sec1400 {
    max-width: 1400px;
    margin: 2rem auto;
	padding: 20px;
}

@media screen and (max-width:768px) {
	.sec1400 {
		margin: 40px 20px!important;
		padding: 6px;
	}
}

/* ==========================================================================
   2. TEXT BLOCKS (TB-UP / TB-DOWN)
   ========================================================================== */
#text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    padding: 2rem;
}

.tb-up {
    font-size: 24px;
    font-weight: 300;
    color: #8c8c8a;
    text-align: center;
}

.tb-down {
    font-size: 49px;
    font-weight: 400;
    color: #0a0a0a;
    text-align: center;
}

@media screen and (max-width: 1200px) {
    .tb-down { font-size: 40px; }
}

@media screen and (max-width: 992px) {
    .tb-up, .tb-down { font-size: 16px; }
}


/* ==========================================================================
   3. PROMO CARDS GRID
   ========================================================================== */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile First */
    gap: 20px;
    padding: 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.card {
    background-color: #f3f3f3;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Mobile Default */
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 30px;
    gap: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-content h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.card-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.btn {
    display: inline-block;
    background-color: #222;
    color: #fff;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn:hover { background-color: #000; }

.card-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .promo-grid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
    .right-column {
        display: flex;
        flex-direction: column;
        gap: 20px;
        justify-content: space-between;
    }
    .card {
        flex-direction: row;
        text-align: left;
        height: 100%;
    }
    .card-large {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .card-large .card-image img {
        max-height: 300px;
        margin-top: 20px;
    }
}

@media screen and (max-width: 767px) {
    .card.card-small { margin-bottom: 20px; }
}


/* ==========================================================================
   4. HOME CATEGORIES GRID
   ========================================================================== */
#home-categories {
    max-width: 1400px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
    border: 1px solid #efefef;
    border-radius: 12px;
}

#home-categories .hc-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

#home-categories .hc-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: flex-start;
}

#home-categories .hc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    position: relative;
}

#home-categories .hc-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    margin-bottom: 15px;
}

#home-categories .hc-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease-in-out;
}

#home-categories .hc-img-default { opacity: 1; z-index: 2; }
#home-categories .hc-img-hover { opacity: 0; z-index: 1; }

#home-categories .hc-label {
    font-size: 16px;
    color: #555;
    text-transform: lowercase;
    font-weight: 500;
    transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    #home-categories .hc-item:hover .hc-img-default { opacity: 0; }
    #home-categories .hc-item:hover .hc-img-hover { opacity: 1; z-index: 3; }
    #home-categories .hc-item:hover .hc-label { color: #000; font-weight: 700; }
}

@media (max-width: 1024px) {
    #home-categories .hc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
    #home-categories { margin: 40px 20px; }
    #home-categories .hc-title { font-size: 20px; margin-bottom: 25px; }
    #home-categories .hc-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}


/* ==========================================================================
   5. ACHIEVEMENTS SECTION
   ========================================================================== */
#achievements {
    max-width: 1400px;
    margin: 2rem auto;
    background: #fcfcfc;
    border-radius: 12px;
}

#achievements .achievements-grid {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 65px 40px 90px;
}

#achievements .achievements-box {
    width: 33.33333%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#achievements img {
    max-height: 65px;
    margin-bottom: 1.5rem;
}

#achievements span {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4; /* Changed from fixed 26px/19px */
    max-width: 320px;
    text-align: center;
    color: #000;
}

@media screen and (max-width: 768px) {
    #achievements { margin: 2rem 20px; }
    #achievements .achievements-grid { flex-direction: column; gap: 2rem; padding: 40px 20px; }
    #achievements .achievements-box { width: 100%; margin-bottom: 0; }
    #achievements span { font-size: 14px; }
}


/* ==========================================================================
   6. TIMELINE (HORIZONTAL / VERTICAL)
   ========================================================================== */
#timeline {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto;
    text-align: center;
}

#timeline .t-title {
    font-size: 31px;
    font-weight: 700;
    color: #303030;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

#timeline .h-p {
    font-size: 22px;
    font-weight: 300;
}

#timeline .tbox-in {
    margin-top: 3rem;
    display: flex;
}

#timeline .in-card {
    width: 33.33%;
    display: grid;
    grid-template-rows: 60px 20px 1fr;
    gap: 2rem;
}

#timeline .tbutton {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #cf3339;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 7px;
    min-width: 174px;
    height: 55px;
    padding: 0 15px;
    font-size: 27px;
    margin: 2rem auto 3.1rem;
    width: max-content;
}

#timeline .tline, 
#timeline .tline-e {
    position: relative;
    height: 20px;
}

#timeline .tline::before, 
#timeline .tline-e::before {
    content: "";
    position: absolute;
    background-color: #212121;
    left: 10px;
    top: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

#timeline .tline::after {
    content: "";
    position: absolute;
    background-color: #212121;
    left: 10px;
    top: 10px;
    width: 100%;
    height: 2px;
}

#timeline .tline-e::after {
    content: "";
    position: absolute;
    border-bottom: 2px dashed #212121;
    left: 10px;
    top: 8px;
    width: 100%;
    height: 2px;
}

#timeline .tline-e-e {
    position: absolute;
    right: 0;
}

#timeline .tline-e-e::after {
    content: ">";
    position: absolute;
    right: 0;
    top: -16px;
    font-size: 2rem;
    font-weight: 300;
    width: 100%;
}

#timeline .tbox-in p {
    font-size: 21px;
    text-align: left;
    font-weight: 300;
    line-height: 2rem;
    color: #5a5a5a;
    width: 320px;
}

#timeline strong { font-weight: 700; }

@media screen and (max-width: 1200px) {
    #timeline { padding: 0 15px; }
}

@media screen and (max-width: 768px) {
    #timeline .t-title {
        font-size: 1.8rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    #timeline .h-p {
        font-size: 16px;
        line-height: 1.5;
    }
    #timeline .tbox-in {
        flex-direction: column;
        padding: 0 10px;
    }
    #timeline .in-card {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        grid-template-columns: 60px 30px 1fr;
        grid-template-rows: auto;
        min-height: 190px;
    }
    #timeline .tbutton {
        margin: 0 0 1rem;
        min-width: 120px;
        height: 40px;
        font-size: 16px;
    }
    #timeline .tline, 
    #timeline .tline-e {
        height: 100%;
        width: 20px;
    }
    #timeline .tline::before, 
    #timeline .tline-e::before {
        left: 0;
        top: 10px;
        width: 20px;
        height: 20px;
    }
    #timeline .tline::after {
        width: 2px;
        height: 200px;
        left: 10px;
        top: 10px;
    }
    #timeline .tline-e::after {
        width: 2px;
        height: 200px;
        left: 10px;
        top: 10px;
        border-left: 2px dashed #212121;
        border-bottom: none;
    }
    #timeline .tline-e-e::after {
        left: -8px;
        top: 175px;
        transform: rotate(90deg);
    }
    #timeline .tbox-in p {
        font-size: 14px;
        width: inherit;
        line-height: 1.4;
    }
}


/* ==========================================================================
   7. TIMELINE ALTERNATIVE (RESULTS TIMELINE)
   ========================================================================== */
.results-timeline__wrap { padding: 60px 0; text-align: center; }
.results-timeline__title { font-size: 24px; font-weight: 700; text-transform: uppercase; margin-bottom: 5px; color: #333; }
.results-timeline__subtitle p { font-size: 14px; color: #666; margin-top: 0; margin-bottom: 40px; }
.results-timeline__stages { list-style: none; padding: 0; margin: 0; position: relative; }
.results-timeline__stage { position: relative; }
.results-timeline__icon img { display: block; margin: 0 auto; max-height: 80px; width: auto; }

.results-timeline__stage-title {
    display: inline-block;
    background-color: #ce2c2c;
    color: #fff;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 0 0 15px 0;
    font-size: 16px;
    text-transform: uppercase;
}

.results-timeline__description { font-size: 15px; line-height: 1.5; color: #444; }
.results-timeline__description p { margin: 0; }

.dsl-timeline-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.dsl-timeline-header { text-align: center; margin-bottom: 50px; }
.dsl-timeline-title { font-size: 22px; font-weight: 700; text-transform: uppercase; color: #333; margin: 0 0 10px 0; line-height: 1.3; }
.dsl-timeline-subtitle { font-size: 14px; color: #666; margin: 0; }
.dsl-timeline-wrapper { display: flex; flex-direction: column; }
.dsl-timeline-step { display: flex; flex-direction: row; position: relative; padding-bottom: 40px; }

.dsl-visual-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    flex-shrink: 0;
    margin-right: 15px;
    position: relative;
}

.dsl-icon-box img { width: 50px; height: auto; display: block; margin-bottom: 10px; }
.dsl-dot { width: 14px; height: 14px; background-color: #222; border-radius: 50%; z-index: 2; }
.dsl-line {
    position: absolute;
    top: 60px;
    bottom: -10px;
    width: 2px;
    background-color: #333;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.dsl-timeline-step.last-step .dsl-line { display: block; height: 60px; bottom: auto; }
.dsl-content-col { flex: 1; padding-top: 50px; }
.dsl-badge {
    display: inline-block;
    background-color: #ce2c2c;
    color: #fff;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.dsl-text { font-size: 15px; line-height: 1.5; color: #444; }
.dsl-text strong { font-weight: 700; color: #000; }


/* ==========================================================================
   8. BESTSELLERS TABS
   ========================================================================== */
.ds-labs-bestsellers {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.ds-labs-bestsellers .add_to_cart_button, 
.ds-labs-bestsellers .button {
    display: none !important;
}

.ds-labs-bestsellers span.price {
    font-size: 1.5rem !important;
}

.ds-tabs-nav {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.ds-tab-link {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
    text-transform: capitalize;
}

.ds-tab-link.active {
    color: #000;
    border-bottom: 3px solid #d32f2f;
}

@media (max-width: 768px) {
    .ds-labs-bestsellers { padding: 6px; }
    .ds-tab-content ul.products {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 10px;
        padding-bottom: 15px; /* Για να μην κρύβεται η μπάρα scroll */
    }
    .ds-tab-content ul.products li {
        min-width: 250px;
    }
}

#by-concern {
    padding: 60px 20px;
    text-align: center;
	border: 1px solid #efefef;
	max-width:1400px;
	margin: 3rem auto;
	border-radius: 16px;
}

.concern-grid {
    display: grid;
    grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;
    grid-gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.concern-item {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5; 
    text-decoration: none;
    color: #333;
    overflow: hidden;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.concern-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

.concern-label {
    position: relative;
    z-index: 2; 
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px;
}

/* Hover State */
.concern-item:hover .concern-bg-image {
    opacity: 1;
}

.concern-item:hover .concern-label {
    color: #fff; 
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

@media screen and (max-width:1200px) {
	.concern-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media screen and (max-width:900px) {
	.concern-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.ds-labs-steps {
    padding: 50px 0;
    background: #fff;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.step-header {
    margin-bottom: 20px;
}

.step-number {
    display: block;
    color: #e34f31; /* Το κόκκινο της DS Labs */
    font-weight: bold;
    font-size: 1.2rem;
}

.step-title {
    font-size: 1.25rem;
    text-transform: uppercase;
    margin: 5px 0 0;
	text-align: start;
}

.step-title-red {
	color:#cf3339;
}

.step-prod {
	font-size: 2rem;
    font-weight: 300;
    margin: 0;
    padding: 0;
    text-align: start;
    letter-spacing: -1.5px;
}

.step-image img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    aspect-ratio: 1 / 1;
	object-fit: cover;
}
}

/* Star Rating Style */
.step-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.step-rating .star-rating {
    font-size: 14px;
    width: 80px;
}

.rating-count {
    font-size: 0.9rem;
    color: #666;
}

.step-description {
    font-size:1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 100px;
	font-weight:300;
	text-wrap: pretty;
}

.step-description ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.step-description li::before {
	position: absolute;
	content: "›";
    margin-right: 16px;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 0;
	top:10px;
	left:-26px;
}
.ds-labs-steps li {
	position:relative;
    margin-left: 30px;
}
.ds-btn-learn-more {
    background: #1a1a1a;
    color: #fff;
    padding: 4px 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    width: 100%;
    border-radius: 4px;
    font-size: 14px;
}

.ds-btn-learn-more:hover {
    background: #333;
}

span.st-reviews {
    font-size: 0.8rem;
    font-style: italic;
    color: #666;
}

.step-rating{
	text-align:start;	
}

/* Container για τα αστέρια */
.custom-star-rating {
    display: inline-block;
    vertical-align: middle;
}

.stars-outer {
    position: relative;
    display: inline-block;
    font-family: "Font Awesome 5 Free", "Segoe UI Symbol", sans-serif; /* Fallback αν δεν έχεις FA */
    font-size: 16px;
    letter-spacing: 2px;
    color: #ccc; /* Χρώμα για τα άδεια αστέρια */
}

/* Τα 5 άδεια αστέρια */
.stars-outer::before {
    content: "\2605\2605\2605\2605\2605";
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0; /* Ορίζεται δυναμικά από την PHP */
    color: #f1c40f; /* Το χρυσό χρώμα των γεμάτων αστεριών */
    transition: width 0.5s ease-in-out;
}

/* Τα 5 γεμάτα αστέρια που μπαίνουν "πάνω" από τα άδεια */
.stars-inner::before {
    content: "\2605\2605\2605\2605\2605";
}

.rating-count {
    font-size: 15px;
    color: #666;
    margin-left: 5px;
}

#steps-carousel-section .swiper-slide {
	display: grid!important;
    align-content: space-between;
    align-items: start;
	height: -webkit-fill-available;
}

/* HOME CLINICAL */
.grid-4 {
	display:grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-gap:4rem;
}
	
#home-clinical {
	padding: 60px 40px;
    border: 1px solid #efefef;
    max-width: 1400px;
    margin: 3rem auto;
    border-radius: 16px;		
}

#home-clinical h2 {
	color: #545d60;
	font-size: 1.35rem;
	text-wrap-style: pretty;
	font-weight: 500;
}
	
#home-clinical p {
	font-size: 14px;
	color: #5E5E5E;
}
	
#home-clinical img {
	width:auto;
	height:100%;
	max-height:60px;
}

.cli-head {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
	margin-bottom: 1.5rem;
}
	
@media screen and (max-width:768px) {
	.grid-4 {
		grid-template-columns: 1fr 1fr;
	}
}
	
@media screen and (max-width:584px) {
	.grid-4 {
		grid-template-columns: 1fr;
	}
}