/*
 Theme Name:   Storefront Child
 Theme URI:    https://votre-site.com/
 Description:  Thème enfant pour Storefront avec un design minimaliste inspiré par le design "Apple".
 Author:       Votre Nom
 Author URI:   https://votre-site.com/
 Template:     storefront
 Version:      1.0.0
 Text Domain:  storefront-child
*/

/* Google fonts removed, using native Apple system fonts */

/* --- RESET STOREFRONT CONSTRAINTS (SKEND OPTIMIZED) --- */
html, body {
    overflow-x: hidden;
}

.col-full {
    max-width: 1280px !important;
    padding: 0 1.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

#content.site-content {
    padding: 0 !important;
    margin: 0 !important;
}

.site-main {
    padding: 0 !important;
    margin: 0 !important;
}

/* On veut que le contenu WooCommerce respire quand même, 
mais sans les contraintes de Storefront */
#main.site-main {
    margin-bottom: 0 !important;
}

/* Correction des liens du footer */
.site-footer a {
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    color: inherit !important;
}

.site-footer a:hover {
    color: #000 !important;
    opacity: 0.7 !important;
}

/* Forcer la suppression du sidebar Storefront */
#secondary, .widget-area {
    display: none !important;
}

#primary.content-area {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Hide Storefront Breadcrumbs globally */
.storefront-breadcrumb, 
.woocommerce-breadcrumb {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix Huge Gap on Shop Page */
.post-type-archive-product .site-content,
.post-type-archive-product .skend-main-content-wrapper,
.tax-product_cat .site-content,
.tax-product_cat .skend-main-content-wrapper {
    padding-top: 0 !important;
}

/* Hide default Storefront page titles globally since we use custom headers */
.page .entry-header {
    display: none !important;
}

/* Remove default vertical spacing from standard pages */
.page .hentry {
    margin: 0 !important;
    padding: 0 !important;
}

/* Shop Ordering Styling */
.skend-wc-ordering select {
    background: transparent !important;
    border: none !important;
    font-weight: 800 !important;
    color: #1d1d1f !important;
    cursor: pointer !important;
    outline: none !important;
}

/* Nouveau Shop Loop Refined */
/*
ul.products {
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  gap: 2rem !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}

@media (min-width: 640px) {
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
  ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
*/

/* Fix mobile logo vertical issue */
.site-branding {
    display: block !important;
}

.storefront-handheld-footer-bar {
    display: none !important;
}

#page {
    background: #ffffff !important;
}

/* --- ADMIN BAR FIX --- */
body.admin-bar header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px !important;
    }
}

/* --- SKEND APP DESIGN --- */
:root {
  /* Apple Palette */
  --apple-bg: #FFFFFF;
  --apple-secondary-bg: #F5F5F7;
  --apple-ink: #1D1D1F;
  --apple-text-secondary: #86868B;
  --apple-accent: #036cd9;
  --apple-border: #D2D2D7;
  
  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  /* Layout */
  --container-max: 1200px;
}

/* Base Styling */
body, button, input, select, textarea {
  font-family: var(--font-sans);
  color: var(--apple-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--apple-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--apple-ink);
}

/* Header & Navigation */
.site-header {
  background-color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  position: sticky;
  top: 0;
  z-index: 999;
}

.main-navigation ul.menu li a {
  font-weight: 500;
  font-size: 14px;
  color: var(--apple-ink) !important;
  transition: opacity 0.3s ease;
}

.main-navigation ul.menu li a:hover {
  opacity: 0.6;
}

.site-branding .site-title a {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 24px;
}

/* WooCommerce Product Loop */
/* Grid layout is managed by Tailwind in woocommerce/loop/loop-start.php */

/* Forcer la suppression de tout soulignement sur les liens */
a {
    text-decoration: none !important;
}

/* Buttons */
.button, 
.woocommerce-button,
button.alt,
input.button.alt {
  background-color: var(--apple-accent) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  padding: 12px 24px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  text-transform: none !important;
  border: none !important;
  transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.button:hover, 
.woocommerce-button:hover,
button.alt:hover,
input.button.alt:hover {
  background-color: #025bb5 !important;
  transform: scale(1.02);
}

/* Single Product Page */
.single-product div.product .product_title {
  font-size: 3rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

.single-product div.product .price {
  font-size: 1.5rem !important;
  color: var(--apple-ink) !important;
}

.woocommerce-tabs ul.tabs {
  border: none !important;
}

.woocommerce-tabs ul.tabs li {
  background: none !important;
  border: none !important;
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--apple-ink) !important;
  font-weight: 600 !important;
}

/* Cart & Checkout */
.woocommerce-cart-form, .cart-collaterals {
  background: var(--apple-secondary-bg);
  padding: 30px;
  border-radius: var(--radius-lg);
}

.shop_table {
  border: none !important;
  border-radius: var(--radius-md);
}

/* Footer */
.site-footer {
  background-color: var(--apple-secondary-bg) !important;
  padding-top: 4rem !important;
  padding-bottom: 2rem !important;
  border-top: none !important;
}

.site-footer a {
  color: var(--apple-text-secondary) !important;
}

.site-info {
  font-size: 12px;
  color: var(--apple-text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-header {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

/* --- SKEND SHOP DESIGN --- */
.woocommerce-products-header h2 {
    font-size: 24px !important;
    letter-spacing: -0.02em !important;
}

.skend-shop-nav a {
    text-decoration: none !important;
}

.skend-shop-nav .category-item a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skend-add-to-cart-btn {
    text-decoration: none !important;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.skend-add-to-cart-btn:hover {
    transform: scale(1.02);
}

/* Override Storefront default grid */
.woocommerce-products-header + .products,
.flex-1 > .products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 1200px) {
    .flex-1 > .products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .flex-1 > .products {
        gap: 1rem !important;
    }
}

.flex-1 > .products::before,
.flex-1 > .products::after {
    display: none !important;
}

.flex-1 > .products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

.skend-ordering select {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-weight: 700 !important;
    color: #000 !important;
    cursor: pointer;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hide default storefront sorting and breadcrumbs if necessary */
.woocommerce-breadcrumb {
    display: none !important;
}

/* Pagination skend Style */
nav.woocommerce-pagination {
    border: none !important;
    margin-top: 4rem !important;
}

nav.woocommerce-pagination ul {
    border: none !important;
    display: flex !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

nav.woocommerce-pagination ul li {
    border: none !important;
}

nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: white !important;
    color: #6b7280 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.3s ease !important;
}

nav.woocommerce-pagination ul li span.current {
    background: black !important;
    color: white !important;
    border-color: black !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

nav.woocommerce-pagination ul li a:hover {
    border-color: black !important;
    color: black !important;
}

/* --- SKEND SINGLE PRODUCT DESIGN --- */
.skend-single-product-wrapper .woocommerce-product-gallery {
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 1.5rem !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.skend-single-product-wrapper .woocommerce-product-gallery .flex-viewport {
    flex: 1 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    border: 1px solid #f0f0f2 !important;
    background: #f9f9fb !important;
    width: auto !important;
}

.skend-single-product-wrapper .woocommerce-product-gallery .flex-control-nav {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 80px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex-shrink: 0 !important;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}

.skend-single-product-wrapper .woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.skend-single-product-wrapper .woocommerce-product-gallery .flex-control-nav li {
    width: 80px !important;
    height: 80px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    list-style: none !important;
}

.skend-single-product-wrapper .woocommerce-product-gallery .flex-control-nav li img {
    border-radius: 12px !important;
    border: 2px solid #f3f4f6 !important;
    height: 100% !important;
    width: 100% !important;
    object-fit: contain !important;
    padding: 6px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0.6;
    margin: 0 !important;
    display: block !important;
}

.skend-single-product-wrapper .woocommerce-product-gallery .flex-control-nav li img.flex-active {
    border-color: #000 !important;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.skend-single-product-wrapper .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.skend-single-product-wrapper .woocommerce-product-gallery .woocommerce-product-gallery__image {
    padding: 1.5rem !important;
}

.skend-single-product-wrapper .woocommerce-product-gallery__trigger {
    right: 1.5rem !important;
    top: 1.5rem !important;
    z-index: 10;
}

/* --- SHOP TOOLBAR STYLING --- */
.skend-ordering-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: #111;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0 16px 0 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    transition: all 0.2s ease;
    height: auto;
    line-height: inherit;
}

.skend-ordering-wrapper select:hover {
    color: #036cd9;
}

.skend-ordering-wrapper .woocommerce-ordering {
    margin: 0 !important;
}

.woocommerce-result-count {
    display: none !important; /* On utilise notre version custom dans archive-product.php */
}

/* Summary styles */
.skend-single-product-wrapper .summary {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

.skend-single-product-wrapper .quantity {
    display: flex !important;
    align-items: center !important;
    margin-right: 1.5rem !important;
}

.skend-single-product-wrapper .quantity input {
    height: 48px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    width: 60px !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.skend-single-product-wrapper .single_add_to_cart_button {
    flex: 1 !important;
    background: #036cd9 !important;
    color: white !important;
    height: 56px !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.skend-single-product-wrapper .single_add_to_cart_button:hover {
    background: #025bb5 !important;
    transform: scale(1.02) !important;
}

.skend-single-product-wrapper .cart {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
}

/* Floating pill animation */
@keyframes pillFadeIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.skend-floating-buy-pill {
    animation: pillFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.skend-product-description-section .prose {
    font-family: var(--font-sans) !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
}

/* Tabs removal adjustment or restyle */
.woocommerce-tabs {
    display: none !important; /* On a déja le bloc description skend */
}

@media (max-width: 1024px) {
    .skend-single-product-wrapper .woocommerce-product-gallery {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .skend-single-product-wrapper .woocommerce-product-gallery .flex-control-nav {
        flex-direction: row !important;
        width: 100% !important;
        padding: 0 !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        justify-content: center;
    }
    .skend-single-product-wrapper .woocommerce-product-gallery .flex-control-nav li {
        width: 60px !important;
        flex-shrink: 0;
    }
    .skend-single-product-wrapper .woocommerce-product-gallery .flex-control-nav li img {
        height: 60px !important;
        width: 60px !important;
    }
}

/* --- SKEND UTILITIES (Matching React Site) --- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2.5 > * + * { margin-top: 0.625rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.pb-8 { padding-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-xl { max-width: 36rem; }
.w-full { width: 100%; }
.h-6 { height: 1.5rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-6xl { font-size: 3.75rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-light { font-weight: 300; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff; }
.text-black { color: #000; }
.text-gray-500 { color: #6b7280; }
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* --- SKEND CART DESIGN --- */
.skend-cart-wrapper .woocommerce-cart-form {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.skend-cart-wrapper .cart_item img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
}

.skend-cart-wrapper .checkout-button {
    width: 100% !important;
    background: #036cd9 !important;
    color: #fff !important;
    border-radius: 9999px !important;
    padding: 1.25rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.skend-cart-wrapper .checkout-button:hover {
    background: #025bb5 !important;
    transform: scale(1.02) !important;
}

.skend-cart-wrapper .checkout-button::after {
    content: "→" !important;
    display: inline-block !important;
    font-size: 1.4rem !important;
}

.skend-cart-wrapper .quantity input {
    border: 1px solid #f3f4f6 !important;
    border-radius: 9999px !important;
    width: 60px !important;
    padding: 0.5rem !important;
    font-weight: 700 !important;
}

.skend-cart-wrapper .shop_table.cart th,
.skend-cart-wrapper .shop_table.cart td {
    border: none !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Fix Storefront default cart width interfering with Tailwind Grid */
.woocommerce-page .cart-collaterals,
.woocommerce-cart .cart-collaterals,
.skend-cart-wrapper .cart-collaterals {
    width: 100% !important;
    float: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.skend-cart-wrapper .cart-collaterals .cart_totals {
    position: sticky;
    top: 6rem;
    width: 100% !important;
    float: none !important;
}

/* Update Cart Message Style */
.woocommerce-notices-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-message, .woocommerce-error, .woocommerce-info {
    border: none !important;
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    padding: 1.5rem 2rem !important;
    margin: 0 0 2rem 0 !important;
    color: #1d1d1f !important;
    font-weight: 500 !important;
}

.woocommerce-message::before {
    color: #000 !important;
}

.woocommerce-message a.button {
    background: #000 !important;
    color: #fff !important;
    border-radius: 9999px !important;
    padding: 8px 20px !important;
    font-size: 12px !important;
}

@media (max-width: 1024px) {
    .skend-cart-wrapper .woocommerce-cart-form {
        grid-template-columns: 1fr !important;
    }
}

/* --- SKEND CHECKOUT DESIGN --- */
.skend-checkout-wrapper .woocommerce-billing-fields__field-wrapper,
.skend-checkout-wrapper .woocommerce-shipping-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
}

@media (max-width: 640px) {
    .skend-checkout-wrapper .woocommerce-billing-fields__field-wrapper,
    .skend-checkout-wrapper .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

.skend-checkout-wrapper .form-row {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

.skend-checkout-wrapper .form-row-wide {
    grid-column: span 2 !important;
}

/* --- SKEND MY ACCOUNT DESIGN --- */
.woocommerce-account.logged-in .woocommerce {
    display: flex !important;
    flex-wrap: wrap !important;
    row-gap: 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 3rem 1.5rem !important;
}

.woocommerce-account.logged-in .woocommerce-notices-wrapper {
    width: 100% !important;
    flex-basis: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 768px) {
    .woocommerce-account.logged-in .woocommerce {
        column-gap: 4rem !important;
    }
}

/* Center Login Page if not logged in */
.woocommerce-account:not(.logged-in) .woocommerce {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
    width: 100% !important;
    max-width: 600px !important;
    margin: 2rem auto 0 auto !important;
}

.skend-login-wrapper {
    width: 100% !important;
    flex-basis: 100% !important;
    margin: 4rem 0 10rem 0 !important;
    padding: 0 1.5rem !important;
    box-sizing: border-box !important;
}

.skend-login-wrapper .u-column1.col-1,
.skend-login-wrapper .u-column2.col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* My Account Navigation (Sidebar) */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100% !important;
    flex-shrink: 0 !important;
}

@media (min-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 300px !important;
    }
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    border: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li::before,
.woocommerce-account .woocommerce-MyAccount-navigation ul li::after {
    display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 1.5rem !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: #4b5563 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #f9fafb !important;
    color: #111827 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #111827 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-color: #111827 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* My Account Content Area */
.woocommerce-account .woocommerce-MyAccount-content {
    flex-grow: 1 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #f3f4f6 !important;
    padding: 2.5rem !important;
}

@media (min-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-content {
        width: calc(100% - 300px - 4rem) !important;
    }
}

@media (max-width: 640px) {
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 1.5rem !important;
        border-radius: 20px !important;
    }
}

/* Typography & Links in Content */
.woocommerce-account .woocommerce-MyAccount-content h1,
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.02em !important;
}

.woocommerce-account .woocommerce-MyAccount-content p {
    color: #4b5563 !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: #111827 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-decoration-color: #d1d5db !important;
    text-underline-offset: 4px !important;
    transition: text-decoration-color 0.2s ease !important;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
    text-decoration-color: #111827 !important;
}

/* Account Tables (Orders, etc.) */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 2rem !important;
    border: 1px solid #f3f4f6 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th {
    background: #f9fafb !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #6b7280 !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
    padding: 1.25rem 1.5rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
    color: #111827 !important;
    font-size: 0.95rem !important;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tr:last-child td {
    border-bottom: none !important;
}

/* Address Columns */
.woocommerce-account .woocommerce-MyAccount-content .col2-set {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
}

@media (min-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-content .col2-set {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.woocommerce-account .woocommerce-MyAccount-content .col-1,
.woocommerce-account .woocommerce-MyAccount-content .col-2 {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content address {
    background: #f9fafb !important;
    padding: 1.5rem !important;
    border-radius: 16px !important;
    border: 1px solid #f3f4f6 !important;
    font-style: normal !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
}

.woocommerce-account .woocommerce-MyAccount-content header.title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 1rem !important;
}

.woocommerce-account .woocommerce-MyAccount-content header.title h3 {
    margin-bottom: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .edit, 
.woocommerce-account .woocommerce-MyAccount-content .edit-password {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
    padding: 0.5rem 1rem !important;
    background: #f3f4f6 !important;
    border-radius: 9999px !important;
    color: #111827 !important;
    text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .edit:hover,
.woocommerce-account .woocommerce-MyAccount-content .edit-password:hover {
    background: #e5e7eb !important;
}
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"] {
    display: inline-block !important;
    background: #111827 !important;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover {
    background: #374151 !important;
    transform: translateY(-1px) !important;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset {
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
    background: #fafafa !important;
}

.woocommerce-account .woocommerce-MyAccount-content legend {
    font-weight: 600 !important;
    color: #111827 !important;
    padding: 0 0.5rem !important;
}

.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"] {
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 0.8rem 1rem !important;
    color: #111827 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
}

.woocommerce-account .woocommerce-MyAccount-content input:focus {
    border-color: #111827 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1) !important;
}

.woocommerce-account .woocommerce-MyAccount-content label {
    font-weight: 500 !important;
    color: #374151 !important;
    font-size: 0.9rem !important;
}

.woocommerce-account .woocommerce-MyAccount-content mark {
    background-color: transparent !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

.skend-checkout-wrapper input[type="text"],
.skend-checkout-wrapper input[type="email"],
.skend-checkout-wrapper input[type="tel"],
.skend-checkout-wrapper select,
.skend-checkout-wrapper textarea {
    width: 100% !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: #1d1d1f !important;
    font-size: 14px !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}

.skend-checkout-wrapper input:focus {
    background: white !important;
    border-color: #000 !important;
    box-shadow: 0 0 0 1px #000 !important;
}

.skend-checkout-wrapper label {
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
    color: #4b5563 !important;
}

/* Payment methods styling */
.skend-checkout-wrapper #payment {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.skend-checkout-wrapper #payment ul.payment_methods {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 2rem !important;
}

.skend-checkout-wrapper #payment ul.payment_methods li {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease;
}

.skend-checkout-wrapper #payment ul.payment_methods li:has(input:checked) {
    background: white !important;
    border-color: #000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.skend-checkout-wrapper #payment div.payment_box {
    background: #fff !important;
    border-radius: 12px !important;
    border: 1px solid #f3f4f6 !important;
    margin-top: 1rem !important;
    font-size: 13px !important;
    color: #6b7280 !important;
}

/* Order Review in Sidebar */
.skend-checkout-sidebar .cart_item .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.skend-checkout-sidebar .order-total {
    border-top: 2px solid #000 !important;
}

/* Place Order Button */
#place_order {
    width: 100% !important;
    background: #000 !important;
    color: #fff !important;
    border-radius: 9999px !important;
    padding: 1.25rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
}

#place_order:hover {
    background: #1d1d1f !important;
    transform: scale(1.02) !important;
}

/* Thankyou page specific */
.skend-thankyou-wrapper .wc-bacs-bank-details {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
}

.skend-thankyou-wrapper .wc-bacs-bank-details li {
    display: flex !important;
    justify-content: space-between !important;
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
}

.skend-thankyou-wrapper .wc-bacs-bank-details li strong {
    font-weight: 700 !important;
    color: #000 !important;
}

/* --- SKEND LOGIN DESIGN --- */
.skend-login-wrapper .woocommerce-form-login,
.skend-login-wrapper .woocommerce-form-register {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.skend-login-wrapper .woocommerce-error,
.skend-login-wrapper .woocommerce-message,
.skend-login-wrapper .woocommerce-info {
    margin-bottom: 2rem !important;
}

/* Hidden by default columns if we use our tab layout */
.skend-login-wrapper #customer_login {
    display: block !important;
}

.skend-login-wrapper .col-1, .skend-login-wrapper .col-2 {
    width: 100% !important;
    float: none !important;
}

/* --- HERO SECTION --- */
.hero-skend {
  margin: 1.5rem 2rem;
  border-radius: 2rem;
  background-color: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-glow-1 {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background-color: rgba(0, 102, 204, 0.15);
  filter: blur(150px);
  border-radius: 50%;
}

.hero-glow-2 {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background-color: rgba(0, 102, 204, 0.05);
  filter: blur(150px);
  border-radius: 50%;
}

.hero-category-tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero-category-tag:hover {
  background: #fff;
  color: #000;
}

/* --- REVIEWS SECTION --- */
.reviews-marquee {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.reviews-marquee:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  width: 400px;
  background-color: #f5f5f7;
  padding: 2rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-card blockquote {
  border: none;
  padding: 0;
  margin: 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: #000;
  line-height: 1.2;
}

.review-avatar {
  width: 2rem;
  height: 2rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- FAQ SECTION --- */
.faq-item {
  border-bottom: 1px solid #f3f4f6;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.3s;
}

.faq-question:hover {
  opacity: 0.7;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.04, 0.62, 0.23, 0.98), opacity 0.4s;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1.5rem;
}

.faq-icon {
  transition: transform 0.4s;
  color: #86868b;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #036cd9;
}

/* --- CHAT WIDGET DESIGN --- */
.skend-chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  font-family: var(--font-sans);
}

.skend-chat-button {
  width: 3.5rem;
  height: 3.5rem;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skend-chat-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.skend-chat-window {
  position: absolute;
  bottom: 4.5rem;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 600px;
  max-height: 80vh;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skend-chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.skend-chat-header {
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skend-chat-body {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skend-chat-form {
  background: white;
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  body {
    padding-bottom: 4rem; /* Hauteur de la barre mobile */
  }
  .skend-chat-widget {
    bottom: 5.5rem; /* Éviter la barre mobile */
    right: 1rem;
  }
  .skend-chat-window {
    width: calc(100vw - 2rem);
    height: 70vh;
  }
}

@media (max-width: 768px) {
  .hero-skend {
    margin: 1rem;
    min-height: 380px;
  }
  .review-card {
    width: 300px;
  }
}

/* --- APPLE-LIKE PRODUCT CARD PRICE OVERRIDES --- */
.product-price-wrapper .amount,
.product-price-wrapper ins .amount,
.product-price-wrapper bdi {
  font-weight: 400 !important;
  color: #1d1d1f !important;
  text-decoration: none !important;
}
.product-price-wrapper del .amount,
.product-price-wrapper del bdi {
  color: #86868b !important;
  margin-right: 4px;
}
.product-price-wrapper ins {
  text-decoration: none !important;
}

/* Force mobile 1-column layout for shop products */
@media (max-width: 767px) {
    .site-main ul.products,
    ul.products,
    body.woocommerce ul.products {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .site-main ul.products li.product,
    ul.products li.product,
    body.woocommerce ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        float: none !important;
    }
}
