/*
Theme Name: GlowNative E-commerce
Theme URI: https://glownative.eu
Author: Gemini
Author URI: https://glownative.eu
Description: Tema tip E-commerce (Magazin Afiliat) cu carusele si grile de produse.
Version: 2.0
Text Domain: glownative
*/

:root {
    --primary: #f06292; /* Roz Feminin Elegant */
    --primary-hover: #d81b60; /* Roz inchis pentru hover */
    --bg-color: #faf7f8; /* Fundal foarte usor rozaliu/cald */
    --surface-color: #ffffff;
    --text-main: #2a1f24;
    --text-light: #887b80;
    --border-color: #f0e6ea;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.store-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background: var(--surface-color);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-bar {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 30px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: var(--bg-color);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.search-bar input:focus {
    background: var(--surface-color);
    border-color: #bbb;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

/* Sections */
.store-section {
    background: var(--surface-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

/* Product Card - Luxury Borderless Style */
.product-card {
    background: var(--surface-color);
    border: none;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 100%; 
    transition: var(--transition);
}

.swiper-slide {
    height: auto; 
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(240, 98, 146, 0.12); /* Soft pink luxury glow */
    transform: translateY(-6px);
    z-index: 2;
    position: relative;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumbs a {
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.2s;
}
.breadcrumbs a:hover {
    color: var(--primary);
}
.breadcrumbs span.separator {
    color: #ccc;
}

/* Mobile Sticky CTA */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.08);
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}
.sticky-mobile-cta.visible {
    transform: translateY(0);
}
.sticky-mobile-cta .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}
.sticky-mobile-cta .btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.product-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-title {
    font-size: 14px;
    line-height: 1.4;
    color: #005eb8; /* eMag style blue text */
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
    font-weight: 400;
}

.product-card:hover .product-title {
    text-decoration: underline;
}

.product-price-wrap {
    margin-top: auto;
    margin-bottom: 15px;
}

.price-old {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    min-height: 18px;
    margin-bottom: 2px;
}

.price-current {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.price-currency {
    font-size: 14px;
    font-weight: 600;
}

.btn-buy {
    display: block;
    width: 100%;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    text-align: center;
    padding: 10px 0;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.product-card:hover .btn-buy {
    background: var(--primary);
    color: #fff;
}

/* Grid layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Swiper Customize */
.swiper-button-next, .swiper-button-prev {
    color: #333;
    background: rgba(255,255,255,0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}
.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
    opacity: 0;
}

/* Banner */
.hero-banner {
    background: linear-gradient(135deg, #ffb6c1 0%, #f06292 100%);
    border-radius: 12px;
    padding: 40px 30px;
    margin-bottom: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 25px rgba(240, 98, 146, 0.2);
}

.hero-banner h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* --- OPTIMIZARI NOI --- */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4081 0%, #f06292 100%);
    color: white;
    font-weight: 700;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(240, 98, 146, 0.4);
    letter-spacing: 0.5px;
}

.product-img-wrap {
    position: relative; /* Necesar pentru badge */
}

.search-bar {
    position: relative;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 30px;
}

.search-bar input {
    padding-left: 45px; 
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
    pointer-events: none;
}

/* Footer Complex */
.site-footer {
    background: #fff;
    padding: 60px 20px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}
.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-main);
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-light);
}
.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light);
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* --- BANNERS & TRUST BAR --- */
.trust-bar {
    background-color: #fce4ec;
    border-bottom: 1px solid #f8bbd0;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #d81b60;
}
.trust-bar .store-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.promo-banner {
    background: linear-gradient(45deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 50px 40px;
    margin: 40px auto;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(240,98,146,0.3) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}
.promo-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.promo-content h3 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
}
.promo-content p {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 20px;
}
.promo-btn {
    display: inline-block;
    background: #f06292;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: var(--transition);
}
.promo-btn:hover {
    background: #d81b60;
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .header-flex { 
        flex-direction: column; 
        gap: 15px; 
    }
    .search-bar { 
        width: 100%; 
        margin: 0; 
        max-width: none;
    }
    .main-navigation {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-banner { 
        flex-direction: column; 
        text-align: center; 
        padding: 30px 15px; 
    }
    .hero-banner h1 { 
        font-size: 24px; 
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .product-card {
        padding: 10px;
    }
    .product-title {
        font-size: 13px;
        height: 36px;
        margin-bottom: 5px;
    }
    .price-current {
        font-size: 18px;
    }
    .btn-buy {
        font-size: 12px;
        padding: 8px 0;
    }
    .store-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    .seo-content {
        padding: 20px !important;
    }
    .seo-content h2 {
        font-size: 20px !important;
    }
    .seo-content h3 {
        font-size: 16px !important;
    }
    .seo-content p, .seo-content ul {
        font-size: 14px;
    }
    .trust-bar .store-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 20px;
        padding-bottom: 5px;
    }
    .trust-bar .store-container::-webkit-scrollbar {
        display: none;
    }
    .trust-item {
        white-space: nowrap;
        font-size: 11px;
    }
    .promo-banner {
        padding: 30px 20px;
    }
    .promo-content h3 {
        font-size: 22px;
    }
    
    /* Afisare buton lipicios doar pe mobil */
    .sticky-mobile-cta {
        display: flex;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* Mereu 2 pe rand pe telefoane mici */
    }
    .swiper-button-next, .swiper-button-prev {
        width: 32px;
        height: 32px;
    }
    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 14px;
    }
}
