/*
Theme Name: Astra Child Bootstrap WooCommerce
Description: CSS complet pour boutique et single product WooCommerce avec Bootstrap
Author: Toi
Template: astra
Version: 1.2
*/

/* -----------------------------
   Global
-------------------------------*/
body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.15);
}

footer {
    background: #111;
}

.min-vh-60 { min-height: 60vh; }
.min-vh-80 { min-height: 80vh; }

/* -----------------------------
   Typography
-------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.price, .woocommerce-Price-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
}

/* -----------------------------
   Buttons
-------------------------------*/
.btn-primary, .btn-success {
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

#decreaseQty, #increaseQty {
    width: 50px;
    transition: background-color 0.2s;
}

#decreaseQty:hover, #increaseQty:hover {
    background-color: var(--bs-primary);
    color: #fff;
}

/* -----------------------------
   Product gallery (single product)
-------------------------------*/
.product-main-image {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.product-thumbnails {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.thumbnail-item {
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    overflow: hidden;
    flex: 1 0 20%;
}

.thumbnail-item img {
    width: 100%;
    display: block;
}

.thumbnail-item.active,
.thumbnail-item:hover {
    opacity: 1;
    border: 2px solid var(--bs-primary);
}

/* -----------------------------
   Tabs / Description
-------------------------------*/
.tab-content {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,.1);
    padding: 2rem;
}

.nav-pills .nav-link {
    border-radius: 0.5rem;
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background-color: var(--bs-primary);
    color: #fff;
}

/* -----------------------------
   Badges
-------------------------------*/
.badge {
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4em 0.7em;
}

.badge.bg-primary {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: var(--bs-primary) !important;
}

/* -----------------------------
   Info & features / cards
-------------------------------*/
.card.bg-light {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.card.bg-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
}

.list-unstyled li i {
    margin-right: 0.5rem;
    color: var(--bs-primary);
}

/* -----------------------------
   Boutique / archive products
-------------------------------*/
.woocommerce ul.products li.product {
    list-style: none;
    margin-bottom: 2rem;
}

.woocommerce ul.products li.product a {
    text-decoration: none;
    color: inherit;
}

.woocommerce ul.products li.product .card {
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce ul.products li.product img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Prix & badges boutique */
.woocommerce ul.products li.product .price {
    font-weight: 600;
    color: #0d6efd;
}

/* -----------------------------
   Hover lift utility
-------------------------------*/
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.2);
}

/* -----------------------------
   Responsive adjustments
-------------------------------*/
@media (max-width: 768px) {
    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }

    .product-main-image img {
        margin-bottom: 1rem;
    }

    .thumbnail-item {
        flex: 1 0 20%;
    }
}


/* --- CONFIGURATION GÉNÉRALE --- */
:root {
    --tech-blue: #00d4ff;
    --tech-dark: #1a1a1a;
    --tech-gray: #f4f7f6;
    --tech-text: #333;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.magazine-pro-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

/* --- HERO SECTION --- */
.main-featured-card {
    position: relative;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    margin-bottom: 50px;
}

.hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.main-featured-card:hover .hero-img-container img {
    transform: scale(1.05);
}

.hero-content-pro {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: white;
}

.category-badge {
    background: var(--tech-blue);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 2.5rem;
    margin: 15px 0;
    font-weight: 800;
    line-height: 1.2;
}

/* --- GRILLE D'ARTICLES --- */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.section-title-pro {
    font-size: 1.8rem;
    font-weight: 800;
    margin-right: 20px;
    white-space: nowrap;
}

.title-line {
    height: 2px;
    background: #eee;
    width: 100%;
}

.grid-container-pro {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* --- CARTE MAGAZINE --- */
.magazine-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.magazine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.read-time {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
}

.card-body {
    padding: 25px;
}

.post-cat {
    color: var(--tech-blue);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.post-title a {
    color: var(--tech-dark);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
    margin: 10px 0;
    line-height: 1.3;
}

.post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.read-more-btn {
    color: var(--tech-blue);
    font-weight: 700;
    text-decoration: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .grid-container-pro { grid-template-columns: 1fr; }
    .hero-content-pro { padding: 20px; }
}