/**
 * Tema1 - Klasik Sidebar Theme CSS
 * Classic sidebar layout, 3-column widgets, banner carousel
 */

/* =========================================================
   CSS Custom Properties (Tema1 variables)
   ========================================================= */
:root {
    /* Bridge: tema degiskenleri --theme-* uzerinden beslenir */
    --tema1-primary:       var(--theme-primary, #4a6fa5);
    --tema1-primary-dark:  var(--theme-primary-hover, #3a5a8e);
    --tema1-secondary:     #6c8ebf;
    --tema1-accent:        var(--theme-accent, #e8b84b);
    --tema1-bg-light:      var(--theme-bg-alt, #f5f7fa);
    --tema1-bg-white:      #ffffff;
    --tema1-border:        var(--theme-border, #dde3ec);
    --tema1-text-dark:     var(--theme-heading, #2c3e50);
    --tema1-text-muted:    var(--theme-text-muted, #7f8fa4);
    --tema1-sidebar-width: 260px;
    --tema1-gap:           20px;
}

/* =========================================================
   Sidebar Home Layout
   ========================================================= */
.sidebar-home {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--tema1-gap);
    padding: 20px 0;
}

.sidebar-home .sidebar-col {
    flex: 0 0 var(--tema1-sidebar-width);
    width: var(--tema1-sidebar-width);
    min-width: 220px;
}

.sidebar-home .sidebar-content {
    flex: 1;
    min-width: 0;
}

/* Sidebar widget box */
.sidebar-widget {
    background: var(--tema1-bg-white);
    border: 1px solid var(--tema1-border);
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-widget .widget-title {
    background: var(--tema1-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 16px;
    margin: 0;
    border-radius: 6px 6px 0 0;
}

.sidebar-widget .widget-body {
    padding: 14px 16px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    border-bottom: 1px solid var(--tema1-border);
    padding: 7px 0;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--tema1-text-dark);
    font-size: 13px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.sidebar-widget ul li a:hover {
    color: var(--tema1-primary);
}

.sidebar-widget ul li a .count {
    background: var(--tema1-bg-light);
    color: var(--tema1-text-muted);
    font-size: 11px;
    border-radius: 10px;
    padding: 1px 8px;
    min-width: 24px;
    text-align: center;
}

/* =========================================================
   Main Content with Sidebar (full-width fallback too)
   ========================================================= */
.main-content-with-sidebar {
    max-width: 100%;
    overflow: hidden;
}

/* =========================================================
   Hero Slider (Tema1 Override)
   ========================================================= */
.tema1-hero-slider {
    margin-bottom: 24px;
}

.tema1-hero-slider .home-slide {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.tema1-hero-slider .slide-bg {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.tema1-hero-slider .banner-layer {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 480px;
}

.tema1-hero-slider .banner-layer h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
    margin-bottom: 10px;
}

.tema1-hero-slider .banner-layer h4 {
    font-size: 16px;
    color: rgba(255,255,255,.9);
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
    margin-bottom: 22px;
}

.tema1-hero-slider .banner-layer .btn-tema1 {
    display: inline-block;
    background: var(--tema1-accent);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.tema1-hero-slider .banner-layer .btn-tema1:hover {
    background: var(--tema1-primary);
    transform: translateY(-2px);
}

/* Owl nav override for hero slider */
.tema1-hero-slider .owl-nav button {
    background: rgba(255,255,255,.18) !important;
    border: 2px solid rgba(255,255,255,.45) !important;
    color: #fff !important;
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    transition: background 0.2s !important;
}

.tema1-hero-slider .owl-nav button:hover {
    background: rgba(255,255,255,.38) !important;
}

.tema1-hero-slider .owl-dots .owl-dot span {
    background: rgba(255,255,255,.5) !important;
}

.tema1-hero-slider .owl-dots .owl-dot.active span {
    background: #fff !important;
}

/* =========================================================
   Banner Carousel (Tema1)
   ========================================================= */
.tema1-banner-carousel-section {
    margin-bottom: 28px;
}

.tema1-banner-carousel-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tema1-banner-carousel-section .section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--tema1-text-dark);
    position: relative;
    padding-left: 14px;
    margin: 0;
}

.tema1-banner-carousel-section .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--tema1-primary);
    border-radius: 2px;
}

.tema1-banner-carousel .banner-item {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    display: block;
}

.tema1-banner-carousel .banner-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    transition: transform 0.35s ease;
}

.tema1-banner-carousel .banner-item:hover img {
    transform: scale(1.04);
}

.tema1-banner-carousel .banner-item .banner-caption {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--tema1-text-dark);
    margin-top: 8px;
}

/* owl dots for banner carousel */
.tema1-banner-carousel.owl-carousel .owl-dots {
    margin-top: 12px;
}

.tema1-banner-carousel.owl-carousel .owl-dot span {
    background: var(--tema1-border) !important;
    width: 8px;
    height: 8px;
}

.tema1-banner-carousel.owl-carousel .owl-dot.active span {
    background: var(--tema1-primary) !important;
}

/* =========================================================
   Product Slider (Tema1 Override)
   ========================================================= */
/* Standart alias: .product-slider-section icin fallback */
.tema1-product-slider-section,
.product-slider-section.tema1-style {
    margin-bottom: 28px;
    background: var(--tema1-bg-white);
    border: none;
    border-radius: 0;
    padding: 20px 0;
}

.tema1-product-slider-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--tema1-border);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.tema1-product-slider-section .section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--tema1-text-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tema1-product-slider-section .section-subtitle {
    font-size: 13px;
    color: var(--tema1-text-muted);
    margin-left: 10px;
}

.tema1-product-slider-section .view-all-link {
    font-size: 12px;
    color: var(--tema1-primary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.tema1-product-slider-section .view-all-link:hover {
    color: var(--tema1-primary-dark);
    text-decoration: underline;
}

/* Product card overrides inside tema1 slider */
.tema1-product-slider-section .product-default {
    border: 1px solid var(--tema1-border);
    border-radius: 6px;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}

.tema1-product-slider-section .product-default:hover {
    box-shadow: 0 6px 24px rgba(74,111,165,.12);
    transform: translateY(-3px);
}

/* =========================================================
   Brand Slider (Tema1 Override)
   ========================================================= */
.tema1-brand-slider-section {
    margin-bottom: 28px;
    background: var(--tema1-bg-light);
    border-top: 1px solid var(--tema1-border);
    border-bottom: 1px solid var(--tema1-border);
    padding: 24px 0;
}

.tema1-brand-slider-section .section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tema1-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    text-align: center;
}

.tema1-brands-slider .brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    min-height: 80px;
}

.tema1-brands-slider .brand-item img {
    max-height: 56px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    filter: grayscale(60%);
    opacity: 0.75;
    transition: filter 0.25s, opacity 0.25s;
}

.tema1-brands-slider .brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.tema1-brands-slider .brand-item .brand-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--tema1-text-dark);
}

/* =========================================================
   Product Widget - 3 Column List (Tema1)
   ========================================================= */
.tema1-product-widget-section {
    margin-bottom: 28px;
}

.tema1-product-widget-section .section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--tema1-text-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tema1-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tema1-widget-col {
    background: var(--tema1-bg-white);
    border: 1px solid var(--tema1-border);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.tema1-widget-col .widget-col-header {
    background: var(--tema1-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 16px;
    border-radius: 8px 8px 0 0;
}

.tema1-widget-col .widget-col-body {
    padding: 0;
}

/* Mini product card in widget */
.tema1-product-widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--tema1-border);
    transition: background 0.15s;
}

.tema1-product-widget-item:last-child {
    border-bottom: none;
}

.tema1-product-widget-item:hover {
    background: var(--tema1-bg-light);
}

.tema1-product-widget-item .item-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--tema1-border);
    background: var(--tema1-bg-light);
}

.tema1-product-widget-item .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tema1-product-widget-item .item-info {
    flex: 1;
    min-width: 0;
}

.tema1-product-widget-item .item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--tema1-text-dark);
    margin: 0 0 4px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tema1-product-widget-item .item-title a {
    color: inherit;
    text-decoration: none;
}

.tema1-product-widget-item .item-title a:hover {
    color: var(--tema1-primary);
}

.tema1-product-widget-item .item-price {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tema1-product-widget-item .price-new {
    font-size: 14px;
    font-weight: 700;
    color: var(--tema1-primary);
}

.tema1-product-widget-item .price-old {
    font-size: 12px;
    color: var(--tema1-text-muted);
    text-decoration: line-through;
}

/* =========================================================
   Section Heading - Shared helper class
   ========================================================= */
/* Standart alias: .section-title ve .tema1-section-title ayni stili paylasir */
.tema1-section-title,
.section-title.tema1-style {
    font-size: 18px;
    font-weight: 700;
    color: var(--tema1-text-dark);
    position: relative;
    padding-left: 14px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tema1-section-title::before,
.section-title.tema1-style::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--tema1-primary);
    border-radius: 2px;
}

.tema1-section-title .section-subtitle,
.section-title.tema1-style .section-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--tema1-text-muted);
    text-transform: none;
    letter-spacing: 0;
    margin-top: 3px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991px) {
    .sidebar-home {
        flex-direction: column;
    }

    .sidebar-home .sidebar-col {
        width: 100%;
        flex: 0 0 auto;
    }

    .tema1-hero-slider .slide-bg {
        height: 340px;
    }

    .tema1-hero-slider .banner-layer {
        left: 30px;
        max-width: 340px;
    }

    .tema1-hero-slider .banner-layer h2 {
        font-size: 26px;
    }

    .tema1-banner-carousel .banner-item img {
        height: 180px;
    }
}

@media (max-width: 575px) {
    .sidebar-home {
        gap: 10px;
    }

    .tema1-hero-slider .slide-bg {
        height: 220px;
    }

    .tema1-hero-slider .banner-layer {
        left: 16px;
        max-width: 220px;
    }

    .tema1-hero-slider .banner-layer h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .tema1-hero-slider .banner-layer h4 {
        display: none;
    }

    .tema1-hero-slider .banner-layer .btn-tema1 {
        font-size: 12px;
        padding: 8px 18px;
    }

    .tema1-banner-carousel .banner-item img {
        height: 140px;
    }

    .tema1-product-slider-section {
        padding: 14px;
    }
}
