:root {
    --ac-primary: #1a1a1a;
    --ac-accent: #e6be00;
    --ac-bg: #f9f9f9;
    --ac-border: #e0e0e0;
    --ac-drawer-width: 450px;
}

/* Layout */
.ac-product-container { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.ac-left-col { position: sticky; top: 0; height: 100vh; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ac-right-col { padding: 4rem 5rem; background: #fff; overflow-y: auto; }
.ac-content-area { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }

/* Typo */
.ac-title { font-size: 2.8rem; font-weight: 400; margin-bottom: 0.5rem; line-height: 1.1; letter-spacing: -1px; }
.ac-price { font-size: 1.5rem; color: var(--ac-primary); font-weight: 600; margin-bottom: 2rem; }
.ac-desc { font-size: 1.1rem; color: #555; margin-bottom: 2rem; line-height: 1.6; }
.ac-specs h3, .ac-manuf h3, .ac-deliv h3, .ac-addons h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; border-bottom: 1px solid #eee; padding-bottom: 10px; color: #888; margin-top: 2rem; }

/* Addons */
.ac-addon-option { display: flex; align-items: center; padding: 15px; border: 1px solid #eee; margin-bottom: 10px; cursor: pointer; border-radius: 4px; transition: 0.2s; }
.ac-addon-option:hover { background: #fdfdfd; border-color: #ccc; }
.ac-addon-checkbox { margin-right: 15px; transform: scale(1.2); }

/* Button */
.ac-btn-primary { background: var(--ac-primary); color: white; width: 100%; padding: 18px; border: none; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.3s; margin-top: 2rem; }
.ac-btn-primary:hover { background: #333; transform: translateY(-2px); }

/* Carousel */
.ac-carousel-wrapper { width: 100%; height: 100%; position: relative; }
.ac-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ac-slide.active { opacity: 1; pointer-events: all; }
.ac-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ac-controls { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; z-index: 20; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 10px 20px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.2); }
.ac-nav-btn, .ac-zoom-trigger { background: transparent; border: none; color: white; cursor: pointer; font-size: 1.2rem; }

/* Style du poids */
.ac-meta-row {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.ac-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #111;
}

.ac-weight {
    font-size: 1rem;
    color: #666;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Vidéo dans le carrousel */
.ac-product-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ou cover selon préférence */
    background: #000;
}


/* Drawer */
.ac-drawer { position: fixed; top: 0; right: 0; width: var(--ac-drawer-width); height: 100vh; background: white; box-shadow: -10px 0 40px rgba(0,0,0,0.15); z-index: 10000; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; }
.ac-drawer.is-open { transform: translateX(0); }
.ac-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); z-index: 9999; opacity: 0; pointer-events: none; transition: 0.3s; }
.ac-overlay.is-active { opacity: 1; pointer-events: all; }

.ac-drawer-header { padding: 20px 25px; border-bottom: 1px solid var(--ac-border); display: flex; justify-content: space-between; align-items: center; }
.ac-drawer-title { margin: 0; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }
#ac-close-drawer { background: none; border: none; font-size: 24px; cursor: pointer; }

#ac-cart-items { flex: 1; overflow-y: auto; padding: 20px; background: var(--ac-bg); }
.ac-cart-item { background: #fff; border-radius: 8px; padding: 15px; margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); display: flex; gap: 15px; position: relative; }
.ac-item-thumb { width: 70px; height: 70px; background: #eee; flex-shrink: 0; }
.ac-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-item-title { font-size: 0.95rem; font-weight: 700; margin: 0 0 5px; }
.ac-remove-item { position: absolute; top: 10px; right: 10px; background: none; border: none; color: #ccc; cursor: pointer; font-size: 1.2rem; }
.ac-remove-item:hover { color: red; }

.ac-drawer-footer { padding: 25px; background: #fff; border-top: 1px solid var(--ac-border); box-shadow: 0 -5px 20px rgba(0,0,0,0.05); }
.ac-form-group { margin-bottom: 15px; }
.ac-form-group label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #999; margin-bottom: 5px; }
.ac-form-group input, .ac-form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; background: #fcfcfc; }
.ac-checkbox-group { display: flex; align-items: center; gap: 10px; }
.ac-checkbox-group label { margin: 0; text-transform: none; font-weight: 400; color: #333; cursor: pointer; }
.ac-checkbox-group input { width: auto; }
.ac-total-row { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--ac-primary); }
.ac-submit-btn { width: 100%; background: var(--ac-primary); color: #fff; padding: 15px; border: none; font-weight: 700; text-transform: uppercase; cursor: pointer; }




.ac-form-content {
    border: 1px solid #ddd;
    padding: 5px;
    border-radius:10px;

    max-height: calc(100vh - 251px);
    overflow: auto;
}




/* Zoom Modal */
.ac-zoom-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #000; z-index: 10000; opacity: 0; visibility: hidden; transition: 0.3s; }
.ac-zoom-modal.active { opacity: 1; visibility: visible; }
.ac-zoom-pane { width: 100%; height: 100%; background-repeat: no-repeat; background-position: center; cursor: crosshair; }
#ac-close-zoom { position: absolute; top: 30px; right: 30px; background: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

@media (max-width: 900px) {
    .ac-product-container { grid-template-columns: 1fr; }
    .ac-left-col { height: 60vh; position: relative; }
    .ac-right-col { padding: 2rem; }
    :root { --ac-drawer-width: 100%; }
}



/* ==========================================================================
   ARCHIVES & GRILLES (Category + Related)
   ========================================================================== */
.ac-archive-container, .ac-related-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.ac-archive-header {
    text-align: center;
    margin-bottom: 4rem;
}

.ac-archive-title, .ac-related-title {
    font-size: 2.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.ac-related-section {
    border-top: 1px solid #eee;
    margin-top: 4rem;
    padding-top: 4rem;
}
.ac-related-title { font-size: 1.5rem; margin-bottom: 2rem; }

/* Grid System */
.ac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

/* Product Card */
.ac-card {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    group: transition;
}

.ac-card-image {
    width: 100%;
    aspect-ratio: 1 / 1.2; /* Format portrait élégant */
    background: #f5f5f5;
    overflow: hidden;
    margin-bottom: 15px;
}

.ac-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ac-card:hover .ac-card-image img {
    transform: scale(1.05);
}

.ac-card-info {
    text-align: center;
}

.ac-card-title {
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ac-card-price {
    font-weight: 600;
    color: var(--ac-primary);
}

.ac-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ccc;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.ac-badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #eee;
}

.ac-pagination {
    margin-top: 4rem;
    text-align: center;
}
.ac-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #eee;
    margin: 0 5px;
    text-decoration: none;
    color: #333;
}
.ac-pagination .current {
    background: #000;
    color: #fff;
    border-color: #000;
}


/* ==========================================================================
   PAGE PRINCIPALE CATALOGUE (/catalogue)
   ========================================================================== */

/* Espacement entre les grandes sections */
.ac-section {
    margin-bottom: 6rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #f0f0f0;
}

.ac-section:last-child {
    border-bottom: none;
}

.ac-section-title {
    font-size: 1.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.ac-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--ac-accent);
    margin: 15px auto 0;
}

/* Grille spécifique 4 colonnes pour grands écrans */
.ac-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* FORCE 4 COLONNES */
    gap: 30px;
}

/* Sous-titres catégories */
.ac-sub-category-block {
    margin-bottom: 4rem;
}
.ac-sub-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--ac-primary);
    padding-left: 15px;
}
.ac-sub-title a {
    text-decoration: none;
    color: var(--ac-primary);
    transition: 0.3s;
}
.ac-sub-title a:hover {
    color: var(--ac-accent);
    padding-left: 5px;
}

.ac-empty-msg {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
    background: #f9f9f9;
}

/* Responsive : On repasse en 2 colonnes sur tablette et 1 sur mobile */
@media (max-width: 1100px) {
    .ac-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ac-grid-4 {
        grid-template-columns: 1fr;
    }
}



/* ------------- Style du bouton Panier global ------------- */
.ac-cart-trigger-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.ac-cart-trigger-btn:hover { 
    background: #333;
}

/* --- ----- Bouton Panier Fixe à Droite ----- --- */
.ac-fixed-cart-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 999;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.1);
}

.ac-fixed-cart-btn .ac-cart-trigger-btn {
    border-radius: 4px 0 0 4px; /* Coin arrondi à gauche seulement */
    padding: 15px 20px;
    font-size: 16px;
}

/* --- Cartes Produits avec Bouton Ajouter --- */
.ac-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ac-card {
    flex: 1; /* Prend toute la place dispo */
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
}

/* Bouton Ajouter (+) sous la carte */
.ac-add-to-cart-card {
    background: transparent;
    border: 1px solid #000;
    color: #000;
    padding: 8px 12px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.ac-add-to-cart-card:hover {
    background: #000;
    color: #fff;
}
