/**
 * WooCommerce Custom Styles - Hearn Shop Design
 */

/* ===================================
   FORCE CONTAINER VISIBILITY
   =================================== */

/* Masquer les éléments non désirés */
.woocommerce-result-count,
.woocommerce-ordering {
	display: none !important;
}

/* Forcer l'affichage des conteneurs parents */
.list_products_header,
.list_products .list_products_header {
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative !important;
	overflow: visible !important;
}

/* ===================================
   SHOP HEADER SECTION (HEARN DESIGN)
   =================================== */

/* Shop Header Container */
.woocommerce-products-header {
	width: 100% !important;
	max-width: 100% !important;
	background: #ffffff !important;
	padding: 60px 20px 40px !important;
	text-align: center !important;
	border: none !important;
	margin-bottom: 40px !important;
	display: block !important;
	visibility: visible !important;
	position: relative !important;
}

/* Title Section */
.hearn-shop-title-section {
	max-width: 1410px !important;
	margin: 0 auto 32px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 8px !important;
}

/* Main Title */
.hearn-shop-main-title {
	font-family: 'Bricolage Grotesque', sans-serif !important;
	font-weight: 800 !important;
	font-size: 60px !important;
	line-height: 74.4px !important;
	text-transform: uppercase !important;
	color: #141515 !important;
	margin: 0 0 8px 0 !important;
	letter-spacing: 0.02em !important;
}

/* Subtitle */
.hearn-shop-subtitle {
	font-family: 'Bricolage Grotesque', sans-serif !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	line-height: 17.78px !important;
	text-transform: uppercase !important;
	color: #000000 !important;
	margin: 0 !important;
}

.hearn-shop-subtitle p {
	margin: 0 !important;
	padding: 0 !important;
}

/* Title Decorator */
.hearn-title-decorator {
	margin: 14px 0 24px !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
}

.hearn-title-decorator svg,
.hearn-title-decorator img {
	width: 168.36px !important;
	height: 9.76px !important;
	opacity: 1 !important;
}

/* Category Filters */
.hearn-category-filters {
	max-width: 1410px !important;
	margin: 0 auto 40px !important;
	padding: 0 20px !important;
}

.hearn-chip-wrapper {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 24px !important;
	justify-content: center !important;
	align-items: center !important;
	margin-bottom: 20px !important;
}

/* Chip Styles */
a.hearn-chip,
.hearn-chip {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #ffffff !important;
	border: 1px solid rgba(20, 21, 21, 0.4) !important;
	border-radius: 36.667px !important;
	padding: 8.556px 31.778px 8.556px 25.636px !important;
	font-family: 'Bricolage Grotesque', sans-serif !important;
	font-weight: 700 !important;
	font-size: 17.111px !important;
	line-height: 26.889px !important;
	text-align: center !important;
	color: #141515 !important;
	text-decoration: none !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
	white-space: nowrap !important;
}

a.hearn-chip:hover,
.hearn-chip:hover {
	background: #f8f8f8 !important;
	border-color: #774594 !important;
	color: #774594 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 8px rgba(119, 69, 148, 0.2) !important;
}

a.hearn-chip.active,
.hearn-chip.active {
	background: #774594 !important;
	border-color: #774594 !important;
	color: #ffffff !important;
	font-weight: 800 !important;
}

a.hearn-chip.active:hover,
.hearn-chip.active:hover {
	background: #8b5aa5 !important;
	border-color: #8b5aa5 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 12px rgba(119, 69, 148, 0.3) !important;
}

/* Responsive Design for Header */
@media (max-width: 768px) {
	.woocommerce-products-header {
		padding: 40px 15px 30px !important;
	}
	
	.hearn-shop-main-title {
		font-size: 40px !important;
		line-height: 50px !important;
	}
	
	.hearn-shop-subtitle {
		font-size: 14px !important;
	}
	
	.hearn-chip-wrapper {
		gap: 12px !important;
	}
	
	.hearn-chip {
		font-size: 14px !important;
		padding: 6px 20px !important;
	}
}

@media (max-width: 480px) {
	.hearn-shop-main-title {
		font-size: 32px !important;
		line-height: 40px !important;
	}
	
	.hearn-shop-subtitle {
		font-size: 12px !important;
	}
	
	.hearn-chip {
		font-size: 13px !important;
		padding: 6px 18px !important;
	}
}

/* ===================================
   PRODUCT LIST VIEW
   =================================== */

/* Force list layout */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: block !important;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: 100% !important;
	margin: 0 0 20px 0 !important;
	padding: 0 !important;
	float: none !important;
	display: block !important;
}

/* Product list item layout */
.product-list-item {
	background: #fff;
	border: 2px solid #774594;
	border-radius: 22px;
      box-shadow: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  border-color: #8b5aa5;  
}

.product-list-content {
  display: grid !important;
  grid-template-columns: 1fr auto;           /* texte à gauche, bouton à droite */
  align-items: center !important;
  gap: 20px !important;
  padding: 18px 20px !important;
}

/* Product info section */
.product-info {
	flex: 1;

	min-width: 0; /* Allow flex item to shrink below content size */
}

.product-info .woocommerce-loop-product__title {
  margin: 0 0 12px 0 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em;
  font-size: 1.05rem !important;
  line-height: 1.25 !important;
  color: #000000 !important;                
}

.product-info .woocommerce-loop-product__title a {
  color: inherit !important;
    font-weight: 800 !important;
  text-decoration: none !important;
}

.product-info .woocommerce-loop-product__title a:hover {
	color: #000;
}

.product-description {
	color: #454545;
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0;
}

.product-description p {
	margin: 0;
}

/* Product actions section */
.product-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 15px;
	min-width: 150px;
}

.product-price {
	font-size: 1.5rem;
	font-weight: 800;
	color: #774594 !important;
}

.product-price del {
	font-size: 1rem;
	color: #8f9094;
	margin-right: 5px;
}

.product-price ins {
	text-decoration: none;
}

.product-add-to-cart { width: auto !important; }
.product-add-to-cart .button,
.product-add-to-cart .added_to_cart {
  width: 48px !important;
  height: 48px !important;
  min-width: 44px !important;
  border-radius: 999px !important;
  background: #774594 !important;        /* violet */
  color: #FDC957 !important;             /* jaune */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease !important;

  /* on masque le label texte si Woo en met un */
  font-size: 0 !important;
  line-height: 1 !important;
}

/* Icône + via pseudo-élément, accessible (le lien conserve son aria-label) */
.product-add-to-cart .button::before {
  content: "+" !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #FDC957 !important;
}
.product-add-to-cart .button:hover,
.product-add-to-cart .added_to_cart:hover {
	background-color: #333;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-add-to-cart .added_to_cart {
	margin-top: 10px;
	background-color: #4CAF50;
}

.product-add-to-cart .added_to_cart:hover {
	background-color: #45a049;
}

/* Hide product thumbnails */
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product img {
	display: none !important;
}

/* Remove grid view classes */
.woocommerce ul.products.columns-1,
.woocommerce ul.products.columns-2,
.woocommerce ul.products.columns-3,
.woocommerce ul.products.columns-4,
.woocommerce ul.products.columns-5,
.woocommerce ul.products.columns-6 {
	display: block !important;
}

/* Responsive design */
@media (max-width: 768px) {
	.product-list-content {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
		padding: 20px !important;
	}
	
	.product-info {
		width: 100%;
	}
	
	.product-info .woocommerce-loop-product__title {
		font-size: 1.25rem !important;
		margin-bottom: 10px !important;
	}
	
	.product-description {
		font-size: 1rem !important;
		line-height: 1.5 !important;
	}
	
	.product-actions {
		width: 100%;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 16px !important;
	}
	
	.product-price {
		font-size: 1.75rem !important;
		text-align: left !important;
		flex: 1;
	}
	
	.product-add-to-cart {
		width: auto !important;
		flex-shrink: 0;
	}
	
	.product-add-to-cart .button,
	.product-add-to-cart .added_to_cart {
		width: 56px !important;
		height: 56px !important;
		min-width: 56px !important;
	}
	
	.product-add-to-cart .button::before {
		font-size: 28px !important;
	}
}

/* Out of stock styles */
.product-list-item.outofstock {
	opacity: 0.6;
}

.product-list-item.outofstock .product-add-to-cart .button {
	background-color: #999;
	cursor: not-allowed;
}

.product-list-item.outofstock .product-add-to-cart .button:hover {
	background-color: #999;
	transform: none;
	box-shadow: none;
}

/* Loading state */
.woocommerce .blockUI.blockOverlay {
	background-color: rgba(255, 255, 255, 0.6) !important;
}

/* ===================================
   CART DRAWER STYLES
   =================================== */

/* Prevent body scroll when drawer is open */
body.cart-drawer-open {
	overflow: hidden;
}

/* Overlay */
.cart-drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

/* Cart Drawer Container */
.cart-drawer {
	position: fixed;
	top: 0;
	right: -450px;
	width: 450px;
	max-width: 100%;
	height: 100%;
	background-color: #fff;
	z-index: 9999;
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	transition: right 0.3s ease;
}

.cart-drawer.is-open {
	right: 0;
}

/* Drawer Header */
.cart-drawer-header {
 background: #774594 !important;
  color: #FFFFFF !important;
  border-bottom: none !important;
  padding: 18px 24px !important;
  display: flex !important; justify-content: space-between !important; align-items: center !important;
}

.cart-drawer-header h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 800;
      text-transform: uppercase;

	color: #ffffff;
}

.cart-drawer-close {
  background: none !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: none !important;
  width: 34px !important; height: 34px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  padding: 0 !important; cursor: pointer !important;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease !important;
}

.cart-drawer-close:hover {
  color: #FDC957 !important; 
}

/* Drawer Content */
.cart-drawer-content {
	flex: 1;
	overflow-y: auto;
	padding: 20px 25px;
	transition: opacity 0.3s ease;
}

.cart-drawer-empty {
	text-align: center;
	padding: 40px 20px;
	color: #999;
}

.cart-drawer-empty p {
	margin: 0;
	font-size: 1.1rem;
}

/* Cart Items */
.cart-drawer-items {
	margin: 0;
	padding: 0;
}

.cart-drawer-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 8px 8px 8px 8px;
	margin-bottom: 20px;
	border-radius: 32px;
	background: #FFFFFF;
	transition: box-shadow 0.2s ease;
}

.cart-drawer-item:hover {

}

.cart-drawer-item:last-child {
	margin-bottom: 0;
}

/* Item Info Section */
.cart-drawer-item-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cart-drawer-item-title {
	margin: 0;
}

.cart-drawer-item-title h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.5;
	color: #141515;
	letter-spacing: 0.02em;
}

.cart-drawer-item-title h4 a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cart-drawer-item-title h4 a:hover {
	color: #774594;
}

.cart-drawer-item-description {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: #454545;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	max-width: 280px;
	margin: 0;
}

.cart-drawer-item-price {
	font-size: 20px;
	font-weight: 700;
	color: #774594 !important;
	line-height: 1.3;
	letter-spacing: -1.06px;
	margin: 0;
}

/* Item Actions Section */
.cart-drawer-item-actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* Quantity Stepper */

.cart-drawer-quantity-stepper .qty-btn {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.cart-drawer-quantity-stepper {
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 0.8px solid rgba(20, 21, 21, 0.4);
	border-radius: 24px;
	padding: 0;
	height: 40px;
	min-width: 128px;
	background: #FFFFFF;
}

.cart-drawer-quantity-stepper .qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 40px;
	background: transparent;
	border: none;
	color: #141515;
	cursor: pointer;
	transition: opacity 0.2s ease;
	padding: 0;
	flex-shrink: 0;
}

.cart-drawer-quantity-stepper .qty-btn:hover {
	opacity: 0.7;
}

.cart-drawer-quantity-stepper .qty-btn svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	stroke-width: 2;
}

.cart-drawer-quantity-stepper .qty-value {
	flex: 1;
	text-align: center;
	font-weight: 700;
	font-size: 12.8px;
	color: #141515;
	line-height: 1.5;
	min-width: 32px;
}

/* Old styles kept for compatibility */
.cart-drawer-item-details {
	flex: 1;
	min-width: 0;
}

.cart-drawer-item-details h4 {
	margin: 0 0 8px 0;
	font-size: 1rem;
	font-weight: 800;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	line-height: 1.4;
}

.cart-drawer-item-details h4 a {
	color: #0C0F26;
	text-decoration: none;
	transition: color 0.3s ease;
}

.cart-drawer-item-details h4 a:hover {
	color: #000;
}

.cart-drawer-item-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 0.9rem;
	color: #797C7F;
}

.cart-drawer-item-meta .quantity {
	color: #999;
}

.cart-drawer-item-meta .price {
	font-weight: 800 !important; 
	color: #774594 !important; 
	font-size: 16px !important;
}

.cart-drawer-item-remove {
	align-self: start !important;
	color: #774594 !important;
	background: #FFFFFF !important;
	border: none !important;
	border-radius: 999px !important;
	width: 38px !important; 
	height: 38px !important;
	display: inline-flex !important; 
	align-items: center !important; 
	justify-content: center !important;
	box-shadow: none !important;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease !important;
	padding: 0 !important;
}

.cart-drawer-item-remove:hover {
	color: #774594;
}

/* Drawer Footer */
.cart-drawer-footer {
  position: sticky !important; 
  bottom: 0 !important; 
  left: 0 !important; 
  right: 0 !important;
  background: #FFFFFF !important;
  border-top: 1px solid #EFEFEF !important;
  padding: 16px 24px 24px !important;
}

.cart-drawer-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	font-size: 1.1rem;
}

.cart-drawer-subtotal span {
color: #000000 !important; 
}

.cart-drawer-subtotal strong {
color: #000 !important; font-size: 18px !important; font-weight: 800 !important; }


.cart-drawer-actions {
  display: grid !important;
  grid-template-columns: 1fr;     /* une seule colonne pleine largeur */
  justify-items: stretch !important;  /* étire les enfants horizontalement */
  align-items: stretch !important;    /* étire verticalement si besoin */
  gap: 16px !important;
  width: 100% !important;
  text-align: center !important;      /* centre le texte à l'intérieur des boutons */
}
#cartDrawer .cart-drawer-actions .button {
  display: block !important;
  width: 100% !important;
  max-width: none !important;   /* pas de limite cachée */
  margin: 0 !important;         /* pas de centrage qui réduit la largeur */
  justify-self: stretch !important; /* ceinture & bretelles */
}
#cartDrawer .cart-drawer-actions a.button,
#cartDrawer .cart-drawer-actions button.button {
  max-width: none !important;
}
#cartDrawer .cart-drawer-actions .button.button-secondary {
    text-align: center !important;
    background: #FFFFFF !important;
  color: #774594 !important;
  border: 2px solid #000000 !important;
  border-radius: 24px !important;
  padding: 14px 28px !important;
  font-weight: 800 !important; 
  text-transform: uppercase !important; 
  transition: all .2s ease !important;
}
#cartDrawer .cart-drawer-actions .button.button-secondary:hover {
  background: #FDC957 !important; 
  transform: translateY(-2px) !important; 
  box-shadow: -6px 6px 0 0 #000000 !important;
}

/* Primaire : jaune + ombre décalée noire */
#cartDrawer .cart-drawer-actions .button.button-primary {
  background: #FDC957 !important;
  color: #774594 !important;
  border: 2px solid #000000 !important;
  border-radius: 24px !important;
  padding: 14px 28px !important;
  font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: .3px !important;
  text-align: center !important;
  box-shadow: -8px 8px 0 0 #000000 !important;
  transition: all .2s ease !important;
  display: block !important;
}
#cartDrawer .cart-drawer-actions .button.button-primary:hover {
  background: #774594 !important; color: #FDC957 !important;
  transform: translateY(-2px) !important; box-shadow: -10px 10px 0 0 #000000 !important;
}

/* Loading Spinner */
.cart-drawer-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
}

.cart-drawer-loading .spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #333;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Button Loading State */
.product-add-to-cart .button.loading {
	position: relative;
	color: transparent;
	pointer-events: none;
}

.product-add-to-cart .button.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 20px;
	height: 20px;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
	.cart-drawer {
		width: 100%;
		right: -100%;
	}
	
	.cart-drawer-header {
		padding: 15px 20px;
	}
	
	.cart-drawer-content {
		padding: 15px 20px;
	}
	
	.cart-drawer-footer {
		padding: 15px 20px;
	}
}

/* Smooth scrollbar for drawer content */
.cart-drawer-content::-webkit-scrollbar {
	width: 6px;
}

.cart-drawer-content::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.cart-drawer-content::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.cart-drawer-content::-webkit-scrollbar-thumb:hover {
	background: #999;
}
