/* ===================================================================
   Daman ContentSlider – Storefront Styles
   =================================================================== */

/* ===== Slider Container ===== */
.daman-content-slider {
    position: relative;
}

/* Full-width breakout: JS positions the slider at viewport edges. */
.daman-slider-fluid {
    max-width: none;
}

.daman-slider-inner {
    position: relative;
    overflow: hidden;
}

/* ===== Slide ===== */
.daman-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity 0.6s ease-in-out;
}

/* ===== Product Slide Layout ===== */
.daman-slide-product {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 1.5rem 5rem;
    gap: 2rem;
}

/* -- Layout: Picture Top -- */
.daman-slide-product.layout-top {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 4rem;
}

.daman-slide-product.layout-top .daman-slide-image {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 60%;
    width: 100%;
}

.daman-slide-product.layout-top .daman-slide-info {
    flex: 0 0 auto;
}

/* -- Layout: Picture Left / Right -- */
.daman-slide-product.layout-left,
.daman-slide-product.layout-right {
    flex-direction: row;
}

.daman-slide-product.layout-right {
    flex-direction: row-reverse;
}

.daman-slide-product.layout-left .daman-slide-image,
.daman-slide-product.layout-right .daman-slide-image {
    flex: 0 0 50%;
    max-width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.daman-slide-product.layout-left .daman-slide-info,
.daman-slide-product.layout-right .daman-slide-info {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 1.5rem 2rem;
}

/* ===== Image ===== */
.daman-slide-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.daman-slide-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.daman-slide-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* ===== Title ===== */
.daman-slide-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.daman-slide-title a {
    color: inherit;
    text-decoration: none;
}

.daman-slide-title a:hover {
    color: inherit;
    text-decoration: none;
}

/* ===== Description ===== */
.daman-slide-description {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ===== Prices ===== */
.daman-slide-prices {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.daman-slide-price {
    font-size: 1.4rem;
    font-weight: 400;
    color: #333;
}

.daman-slide-old-price {
    font-size: 1.1rem;
    color: #aaa;
    text-decoration: line-through;
}

/* ===== Badges ===== */
.daman-slide-badges {
    display: flex;
    gap: 0.35rem;
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
}

.daman-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.daman-badge-deal {
    background-color: #dc3545;
}

.daman-badge-new {
    background-color: #28a745;
}

.daman-badge-discount {
    background-color: #ffc107;
    color: #333;
}

.daman-badge-other {
    background-color: #e67e22;
}

/* ===== Button ===== */
.daman-slide-btn {
    display: inline-block;
    padding: 0.6rem 1.75rem;
    border: 1px solid #ccc;
    color: #555;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: transparent;
}

.daman-slide-btn:hover {
    border-color: #333;
    color: #333;
    text-decoration: none;
}

/* ===== Navigation Arrows ===== */
.daman-slider-prev,
.daman-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(190, 190, 190, 0.55);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    border-radius: 3px;
    font-size: 1rem;
    transition: background 0.2s;
}

.daman-slider-prev:hover,
.daman-slider-next:hover {
    background: rgba(150, 150, 150, 0.7);
}

.daman-slider-prev { left: 1rem; }
.daman-slider-next { right: 1rem; }

/* ===== Dots ===== */
.daman-slider-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 20;
}

.daman-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.daman-dot.active {
    background: rgba(0, 0, 0, 0.55);
}

/* ===== Blend Effect ===== */
.daman-slide-blend {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 1;
}

/* ===== HTML Slide Base ===== */
.daman-slide-html {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 2rem 4rem;
}

.daman-slide-html-content {
    max-width: 800px;
}

.daman-slide-html h1,
.daman-slide-html h2,
.daman-slide-html h3 {
    margin-bottom: 1rem;
}

/* ===================================================================
   HTML Slide Templates (Template1 – Template6)
   Each template applies a distinct visual style to HTML slides.
   =================================================================== */

/* --- Template1: Clean centered (default) --- */
.daman-html-template1 {
    text-align: center;
}

.daman-html-template1 .daman-slide-title {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* --- Template2: Bold left-aligned with accent bar --- */
.daman-html-template2 {
    text-align: left;
    align-items: flex-start;
    padding-left: 6rem;
}

.daman-html-template2 .daman-slide-html-content {
    border-left: 4px solid #e4393c;
    padding-left: 1.5rem;
}

.daman-html-template2 .daman-slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Template3: Overlay card (dark translucent box) --- */
.daman-html-template3 .daman-slide-html-content {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2.5rem 3rem;
    border-radius: 8px;
    max-width: 600px;
}

.daman-html-template3 .daman-slide-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.daman-html-template3 .daman-slide-html-content p,
.daman-html-template3 .daman-slide-html-content span {
    color: rgba(255, 255, 255, 0.85);
}

/* --- Template4: Minimal with large serif title --- */
.daman-html-template4 {
    text-align: center;
}

.daman-html-template4 .daman-slide-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.2rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.01em;
}

.daman-html-template4 .daman-slide-html-content {
    max-width: 650px;
}

/* --- Template5: Split-style left panel --- */
.daman-html-template5 {
    justify-content: flex-start;
    padding-left: 4rem;
}

.daman-html-template5 .daman-slide-html-content {
    background: rgba(255, 255, 255, 0.92);
    padding: 2rem 2.5rem;
    border-radius: 4px;
    max-width: 500px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.daman-html-template5 .daman-slide-title {
    font-size: 2rem;
    font-weight: 600;
    color: #222;
}

/* --- Template6: Full-width banner text --- */
.daman-html-template6 {
    text-align: center;
    padding: 0;
}

.daman-html-template6 .daman-slide-html-content {
    max-width: 100%;
    width: 100%;
    padding: 2rem 6rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.daman-html-template6 .daman-slide-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.daman-html-template6 .daman-slide-html-content p,
.daman-html-template6 .daman-slide-html-content span {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== RTL Adjustments ===== */
[dir="rtl"] .daman-slide-product.layout-right {
    flex-direction: row;
}

[dir="rtl"] .daman-slide-product.layout-left {
    flex-direction: row-reverse;
}

[dir="rtl"] .daman-slide-badges {
    left: auto;
    right: 0.75rem;
}

[dir="rtl"] .daman-slider-prev { left: auto; right: 1rem; }
[dir="rtl"] .daman-slider-next { right: auto; left: 1rem; }

[dir="rtl"] .daman-html-template2 {
    text-align: right;
    padding-left: 4rem;
    padding-right: 6rem;
}

[dir="rtl"] .daman-html-template2 .daman-slide-html-content {
    border-left: none;
    border-right: 4px solid #e4393c;
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .daman-html-template5 {
    justify-content: flex-end;
    padding-left: 4rem;
    padding-right: 4rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .daman-slide-product {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    .daman-slide-product.layout-left,
    .daman-slide-product.layout-right {
        flex-direction: column !important;
        text-align: center;
    }

    .daman-slide-product.layout-left .daman-slide-image,
    .daman-slide-product.layout-right .daman-slide-image {
        flex: 1 1 auto;
        max-width: 100%;
        max-height: 55%;
        padding: 0.5rem;
    }

    .daman-slide-product.layout-left .daman-slide-info,
    .daman-slide-product.layout-right .daman-slide-info {
        flex: 0 0 auto;
        max-width: 100%;
        padding: 0.5rem;
    }

    .daman-slide-title {
        font-size: 1.5rem;
    }

    .daman-slide-price {
        font-size: 1.1rem;
    }

    .daman-slide-prices {
        justify-content: center;
    }

    .daman-slider-prev,
    .daman-slider-next {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .daman-slide-html {
        padding: 1.5rem 2rem;
    }

    .daman-html-template2 {
        padding-left: 2rem;
    }

    .daman-html-template5 {
        padding-left: 1.5rem;
    }

    .daman-html-template6 .daman-slide-html-content {
        padding: 1.5rem 2rem;
    }
}
