/*
Theme Name: Zina Chic
Author: Antigravity AI
Description: Thème 100% sur-mesure pour Zina Shop avec esthétique "Quiet Luxury" basée sur zinashop.xyz.
Version: 1.0.0
Tags: woocommerce, jewelry, luxury, minimal, custom
Text Domain: zina-chic
*/

/* ==========================================================================
   1. VARIABLES DE DESIGN (Design Tokens)
   ========================================================================== */
   
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #C5A059;       /* Or Champagne */
  --color-secondary: #121212;     /* Noir Profond */
  --color-background: #F7F7F7;    /* Fond global gris ultra-léger */
  --color-text-main: #333333;     /* Gris Charbon pour la lecture */
  --color-text-heading: #000000;  /* Titres purs */
  --color-white: #ffffff;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-btn: 8px;
  --radius-pill: 50px;
  --padding-btn: 14px 28px;
  --transition-fast: all 0.2s ease-in-out;
}

/* ==========================================================================
   2. GLOBAL AESTHETICS (RESET & BASE)
   ========================================================================== */

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text-main);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  font-weight: 600;
  margin-top: 0;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

.zina-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   3. HEADER MINIMALISTE (Shopify-like)
   ========================================================================== */

.site-header {
  background: var(--color-white);
  padding: 20px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.header-logo a {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-secondary);
}

.header-logo a span {
  color: var(--color-primary);
}

nav.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

nav.main-navigation ul li a {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}

.header-actions a {
  margin-left: 20px;
  font-size: 18px;
}

/* ==========================================================================
   4. BOUTONS & ELEMENTS UI
   ========================================================================== */

button, 
input[type="submit"], 
.button, 
.checkout-button,
.woocommerce a.button,
.woocommerce button.button {
  background-color: var(--color-secondary) !important;
  color: var(--color-white) !important;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-btn);
  padding: var(--padding-btn);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-block;
  text-align: center;
}

button:hover, 
input[type="submit"]:hover, 
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background-color: var(--color-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

/* Alternate light button */
.btn-light {
  background-color: var(--color-white) !important;
  color: var(--color-secondary) !important;
  border: 1px solid var(--color-secondary) !important;
}

.btn-light:hover {
  background-color: var(--color-secondary) !important;
  color: var(--color-white) !important;
}

/* Form Inputs (Arrondis Pillule pour la douceur) */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  border: 1px solid #ddd;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  width: 100%;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* ==========================================================================
   5. WOOCOMMERCE PRODUCT CARDS (Design Clean 1:1)
   ========================================================================== */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--color-white);
  padding: 15px;
  border-radius: 4px;
  text-align: left;
  transition: var(--transition-fast);
  /* Pas de bordure par defaut pour un look eppure */
}

/* Aspect d'image carre (1:1 Shopify style) */
.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* Nettoyer le titre du produit */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sublimation du prix */
.woocommerce ul.products li.product .price {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 15px;
  display: block;
}

/* Badge Promo */
.woocommerce span.onsale {
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 11px;
}

/* ==========================================================================
   6. PAGE SINGLE PRODUCT
   ========================================================================== */
.woocommerce div.product {
  background: var(--color-white);
  padding: 40px;
  border-radius: 8px;
  margin-top: 40px;
}

.woocommerce div.product .product_title {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 20px;
}

.woocommerce div.product p.price {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 600;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

/* ==========================================================================
   7. OFF-CANVAS & MENUS LATERAUX (Mobile / Panier)
   ========================================================================== */

.zina-mobile-menu-drawer,
.zina-cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--color-white);
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  z-index: 9999;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.zina-mobile-menu-drawer.active,
.zina-cart-drawer.active {
  right: 0;
}

.zina-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.zina-cart-overlay.active {
  opacity: 1;
  pointer-events: all;
  backdrop-filter: blur(2px);
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  margin: 0;
  font-size: 18px;
}

.drawer-header a {
  font-size: 20px;
  color: var(--color-text-main);
}

.drawer-content {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Modifcation du style de liste pour le menu latéral */
.zina-mobile-menu-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.zina-mobile-menu-drawer ul li {
  padding: 15px 0;
  border-bottom: 1px solid #f5f5f5;
}
.zina-mobile-menu-drawer ul li a {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
}

.myaccount-mobile {
  display: inline-block;
  margin-top: 30px;
  font-weight: bold;
}

/* Badge Compteur */
.cart-count {
  background: var(--color-primary);
  color: white;
  font-size: 11px;
  border-radius: 50%;
  padding: 2px 6px;
  position: relative;
  top: -10px;
  right: 5px;
}

/* ==========================================================================
   8. ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* Fade-in surchargement */
body {
  animation: fadeIn 0.8s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Zoom Image sur hover */
.woocommerce ul.products li.product:hover img {
  transform: scale(1.05);
}
.woocommerce ul.products li.product img {
  transition: transform 0.4s ease;
}

/* ==========================================================================
   9. RESPONSIVE MOBILE (Medias Queries)
   ========================================================================== */

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .zina-menu-toggle {
    display: inline-block !important;
  }
  .header-logo a {
    font-size: 20px;
  }
  .header-wrapper {
    flex-wrap: wrap;
  }
  .woocommerce ul.products[class*=columns-] li.product, 
  .woocommerce-page ul.products[class*=columns-] li.product {
    width: 48%; /* 2 colonnes sur mobile comme Shopify */
    float: left;
    margin-right: 4%;
    padding: 0;
  }
  .woocommerce ul.products[class*=columns-] li.product:nth-child(2n) {
    margin-right: 0;
  }
}
