/*
Theme Name: Zina Shop
Theme URI: https://zinashop.tn
Description: Thème enfant WooCommerce pour Zina Shop — Collection Accessoires 2026
Author: Zina Shop
Author URI: https://zinashop.tn
Template: storefront
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: zina-shop
*/

/* ==== Zina theme.css (inlined) ==== */
/* ==============================
   Zina Shop — Pink Universe
   Inspired by tunipromo.tn
   ============================== */

:root {
  --pink: #C8507A;
  --pink-light: #f8e8ef;
  --pink-dark: #a33d62;
  --pink-50: #fdf2f6;
  --text: #4a2a3a;
  --text-light: #8a6a7a;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(200,80,122,0.08);
  --shadow-md: 0 4px 16px rgba(200,80,122,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Lato', 'Cairo', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.zina-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .zina-container { padding: 0 1.5rem; }
}

/* ==============================
   Header — Sticky, clean
   ============================== */
.zina-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200,80,122,0.1);
  height: 56px;
}
.zina-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.zina-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pink);
}
.zina-logo span { color: var(--text); }
.zina-search {
  display: none;
  flex: 1;
  max-width: 320px;
  margin: 0 1rem;
}
@media (min-width: 768px) {
  .zina-search { display: block; }
}
.zina-search input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(200,80,122,0.15);
  border-radius: 999px;
  background: var(--pink-50);
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.zina-search input:focus {
  border-color: var(--pink);
}
.zina-search input::placeholder { color: var(--text-light); opacity: 0.6; }
.zina-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.zina-nav__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.zina-nav__link:hover { color: var(--pink); }

/* ==============================
   Page Header / Title
   ============================== */
.zina-page-header {
  padding: 80px 0 20px;
  text-align: center;
}
.zina-page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--pink);
  font-weight: 700;
}
.zina-page-header p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ==============================
   Products Grid
   ============================== */
.zina-products {
  padding: 20px 0 60px;
  min-height: 60vh;
}
.zina-products__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .zina-products__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .zina-products__grid { grid-template-columns: repeat(4, 1fr); }
}

.zina-product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(200,80,122,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.zina-product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.zina-product-card__image {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--pink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.zina-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zina-product-card__body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zina-product-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.zina-product-card__price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pink);
}
.zina-product-card__old-price {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 6px;
}

/* ==============================
   CTA Button
   ============================== */
.zina-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--pink);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.zina-cta:hover { background: var(--pink-dark); transform: translateY(-1px); }
.zina-cta--small { padding: 6px 16px; font-size: 0.8rem; }
.zina-cta--outline {
  background: transparent;
  border: 2px solid var(--pink);
  color: var(--pink);
}
.zina-cta--outline:hover { background: var(--pink); color: var(--white); }

/* ==============================
   Footer
   ============================== */
.zina-footer {
  background: var(--pink-light);
  padding: 30px 0 16px;
}
.zina-footer__grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 640px) {
  .zina-footer__grid { grid-template-columns: repeat(3, 1fr); }
}
.zina-footer__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 8px;
}
.zina-footer__text {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
}
.zina-footer__heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--pink);
  margin-bottom: 10px;
}
.zina-footer__list li {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 6px;
}
.zina-footer__list a { transition: color 0.2s; }
.zina-footer__list a:hover { color: var(--pink); }
.zina-footer__bottom {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(200,80,122,0.15);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ==============================
   Sticky WhatsApp
   ============================== */
.zina-whatsapp-sticky {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  transition: transform 0.2s;
  cursor: pointer;
}
.zina-whatsapp-sticky:hover { transform: scale(1.1); }
.zina-whatsapp-sticky svg { width: 26px; height: 26px; }

/* ==============================
   Order Form
   ============================== */
.zina-order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zina-order-form .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.zina-order-form label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}
.zina-order-form input,
.zina-order-form select,
.zina-order-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(200,80,122,0.15);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.zina-order-form input:focus,
.zina-order-form select:focus,
.zina-order-form textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(200,80,122,0.1);
}
.zina-order-form textarea { resize: none; min-height: 60px; }
.zina-order-form .required { color: var(--pink); }
.zina-order-form .submit-btn {
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.zina-order-form .submit-btn:hover { background: var(--pink-dark); }
.zina-order-form .submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.zina-order-message {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: center;
}
.zina-order-message.success { background: #d4edda; color: #155724; }
.zina-order-message.error { background: #f8d7da; color: #721c24; }

/* ==============================
   Quantity selector
   ============================== */
.zina-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(200,80,122,0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.zina-qty button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--pink-50);
  color: var(--pink);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zina-qty button:hover { background: var(--pink); color: var(--white); }
.zina-qty input {
  width: 48px;
  height: 36px;
  border: none;
  border-left: 1px solid rgba(200,80,122,0.15);
  border-right: 1px solid rgba(200,80,122,0.15);
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
}

/* ==============================
   WooCommerce overrides
   ============================== */
.woocommerce ul.products {
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: repeat(2, 1fr) !important;
  padding: 0 !important;
  margin: 0 !important;
}
@media (min-width: 640px) {
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (min-width: 1024px) {
  .woocommerce ul.products { grid-template-columns: repeat(4, 1fr) !important; }
}
.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(200,80,122,0.08) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  background: var(--white) !important;
}
.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow-md) !important;
}
.woocommerce ul.products li.product a img {
  margin: 0 !important;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 8px 12px 0 !important;
  font-size: 0.9rem !important;
  color: var(--text) !important;
}
.woocommerce ul.products li.product .price {
  padding: 0 12px 12px !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: var(--pink) !important;
}
.woocommerce .onsale { display: none !important; }
.woocommerce .quantity,
.woocommerce .cart,
.woocommerce .add_to_cart_button,
.woocommerce .single_add_to_cart_button { display: none !important; }

/* ==============================
   Mobile
   ============================== */
@media (max-width: 639px) {
  .zina-products__grid { gap: 10px; }
  .zina-product-card__body { padding: 8px; }
  .zina-product-card__name { font-size: 0.8rem; }
  .zina-product-card__price { font-size: 1rem; }
  .zina-order-form input,
  .zina-order-form select,
  .zina-order-form textarea { font-size: 16px; }
  .zina-whatsapp-sticky { bottom: 16px; left: 16px; width: 48px; height: 48px; }
  .zina-whatsapp-sticky svg { width: 24px; height: 24px; }
}
