/*!
 * AMA Theme — WooCommerce / Shop CSS
 * Theme: AMA
 * Developer: Arian Shakh Adnan
 * Text Domain: ama-theme
 * Version: 1.0.0
 *
 * Table of Contents:
 *  1. WooCommerce Layout Resets
 *  2. Product Loops
 *  3. Buttons & Add to Cart
 *  4. Price Display
 *  5. Notices & Messages
 *  6. Shop Page Layout
 *  7. Single Product
 *  8. Cart & Checkout
 *  9. Account Pages
 * 10. Pagination
 * 11. Widgets / Sidebar
 * 12. Rating Stars
 */

/* =============================================================================
   1. WOOCOMMERCE LAYOUT RESETS
   ============================================================================= */

/* FIX: WooCommerce adds ::before / ::after with display:table to ul.products
   which creates phantom grid cells (blank first card) when used with CSS grid.
   Remove them entirely. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	display: none !important;
	content: none !important;
}

/* Remove WooCommerce default styles that conflict */
.woocommerce ul.products {
	margin:  0 !important;
	padding: 0 !important;
}

.woocommerce ul.products li.product {
	float:   none !important;
	width:   100% !important;
	margin:  0 !important;
	padding: 0 !important;
}

.woocommerce .woocommerce-loop-product__title {
	padding: 0 !important;
	margin:  0 !important;
}

/* Remove default WC breadcrumb styling */
.woocommerce .woocommerce-breadcrumb {
	background:  none;
	padding:     0;
	margin:      0 0 24px;
	font-size:   11px;
	font-weight: 900;
	color:       #94A3B8;
}

/* =============================================================================
   2. PRODUCT LOOPS
   ============================================================================= */

/* Override WC product grid with our custom grid */
.woocommerce ul.products.ama-products-grid {
	display:               grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap:                   24px !important;
}

@media (max-width: 1280px) {
	.woocommerce ul.products.ama-products-grid {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 1024px) {
	.woocommerce ul.products.ama-products-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 640px) {
	.woocommerce ul.products.ama-products-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap:                   16px !important;
	}
}

/* Product thumbnails */
.woocommerce ul.products li.product a img {
	width:      100% !important;
	height:     auto !important;
	object-fit: contain !important;
}

/* =============================================================================
   3. BUTTONS & ADD TO CART
   ============================================================================= */

/* Base WooCommerce button override */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	background-color: #FFB800 !important;
	color:            #222222 !important;
	font-family:      'Inter', ui-sans-serif, system-ui, sans-serif !important;
	font-weight:      900 !important;
	font-size:        11px !important;
	text-transform:   uppercase !important;
	letter-spacing:   0.2em !important;
	border-radius:    6px !important;
	border:           none !important;
	padding:          14px 24px !important;
	height:           auto !important;
	transition:       all 0.3s ease !important;
	box-shadow:       none !important;
	line-height:      1 !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background-color: #222222 !important;
	color:            #FFFFFF !important;
}

/* Alt button (secondary) */
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background-color: #222222 !important;
	color:            #FFFFFF !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background-color: #FFB800 !important;
	color:            #222222 !important;
}

/* Disabled state */
.woocommerce a.button.disabled,
.woocommerce button.button.disabled,
.woocommerce a.button:disabled,
.woocommerce button.button:disabled {
	opacity:        0.5 !important;
	pointer-events: none !important;
}

/* Add to cart loading state */
.woocommerce a.button.loading,
.woocommerce button.button.loading {
	opacity: 0.75 !important;
}

/* =============================================================================
   4. PRICE DISPLAY
   ============================================================================= */

.woocommerce .price,
.woocommerce ul.products li.product .price {
	color:       #FFB800 !important;
	font-weight: 900 !important;
	font-size:   16px !important;
}

.woocommerce .price del,
.woocommerce ul.products li.product .price del {
	color:       #94A3B8 !important;
	font-weight: 500 !important;
	font-size:   13px !important;
	opacity:     1 !important;
}

.woocommerce .price ins {
	text-decoration: none !important;
	font-weight:     900 !important;
}

/* Sale badge */
.woocommerce span.onsale {
	background:    #FFB800 !important;
	color:         #222222 !important;
	font-weight:   900 !important;
	font-size:     10px !important;
	border-radius: 50% !important;
	width:         48px !important;
	height:        48px !important;
	line-height:   48px !important;
	min-height:    unset !important;
	top:           16px !important;
	left:          16px !important;
	border:        2px solid #FFFFFF !important;
	box-shadow:    0 4px 12px rgba(0, 0, 0, 0.15) !important;
	padding:       0 !important;
	text-transform: uppercase !important;
	letter-spacing: 0 !important;
}

/* =============================================================================
   5. NOTICES & MESSAGES
   ============================================================================= */

.woocommerce .woocommerce-message {
	border-top-color:  #FFB800 !important;
	background-color:  #FFFBEB !important;
	color:             #222222 !important;
	font-weight:       700 !important;
}

.woocommerce .woocommerce-error {
	border-top-color:  #EF4444 !important;
	background-color:  #FEF2F2 !important;
}

.woocommerce .woocommerce-info {
	border-top-color:  #3B82F6 !important;
	background-color:  #EFF6FF !important;
}

.woocommerce-message a.button,
.woocommerce-error a.button,
.woocommerce-info a.button {
	float: right;
}

/* =============================================================================
   6. SHOP PAGE LAYOUT
   ============================================================================= */

/* Ordering / Results count toolbar */
.woocommerce .woocommerce-ordering select {
	background:     #f8fafc;
	border:         1px solid #f1f5f9;
	border-radius:  6px;
	padding:        10px 16px;
	font-family:    'Inter', ui-sans-serif, system-ui, sans-serif;
	font-size:      11px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color:          #222222;
	outline:        none;
	cursor:         pointer;
}

.woocommerce .woocommerce-result-count {
	font-size:   11px;
	font-weight: 700;
	color:       #94A3B8;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* =============================================================================
   7. SINGLE PRODUCT
   ============================================================================= */

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	border-bottom: 2px solid #f1f5f9;
	padding:       0;
	margin:        0;
	display:       flex;
	gap:           0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background:  transparent;
	border:      none;
	border-radius: 0;
	padding:     0;
	margin:      0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	font-family:    'Inter', ui-sans-serif, system-ui, sans-serif;
	font-size:      11px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color:          #94A3B8;
	padding:        16px 24px;
	display:        block;
	border-bottom:  2px solid transparent;
	margin-bottom:  -2px;
	transition:     all 0.2s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color:        #222222;
	border-color: #FFB800;
}

/* Quantity input */
.woocommerce .quantity .qty {
	width:         80px;
	height:        48px;
	background:    #f8fafc;
	border:        1px solid #f1f5f9;
	border-radius: 6px;
	font-size:     16px;
	font-weight:   900;
	text-align:    center;
	color:         #222222;
	outline:       none;
}

.woocommerce .quantity .qty:focus {
	border-color: #FFB800;
	background:   #FFFFFF;
}

/* =============================================================================
   8. CART & CHECKOUT
   ============================================================================= */

/* Cart table */
.woocommerce table.shop_table {
	border:     none;
	border-collapse: separate;
	border-spacing: 0;
}

.woocommerce table.shop_table th {
	font-size:      10px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color:          #94A3B8;
	border:         none;
	padding:        16px;
	border-bottom:  1px solid #f1f5f9;
}

.woocommerce table.shop_table td {
	border:     none;
	padding:    20px 16px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

/* Cart total block */
.woocommerce-cart .cart-collaterals .cart_totals {
	background:    #f8fafc;
	border-radius: 20px;
	padding:       32px;
	border:        1px solid #f1f5f9;
}

.woocommerce .cart_totals h2 {
	font-size:      16px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin:         0 0 24px;
}

/* Coupon input */
.woocommerce #coupon_code {
	background:    #f8fafc;
	border:        1px solid #f1f5f9;
	border-radius: 6px;
	padding:       14px 20px;
	font-size:     13px;
	font-weight:   700;
	color:         #222222;
	outline:       none;
	transition:    all 0.3s ease;
}

.woocommerce #coupon_code:focus {
	border-color:     #FFB800;
	background-color: #FFFFFF;
}

/* Checkout form fields */
.woocommerce-billing-fields .form-row label,
.woocommerce-shipping-fields .form-row label,
.woocommerce-account-fields .form-row label {
	font-size:      10px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color:          #94A3B8;
	margin-bottom:  8px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
	background:    #f8fafc;
	border:        1px solid #f1f5f9;
	border-radius: 6px;
	padding:       14px 20px;
	font-family:   'Inter', ui-sans-serif, system-ui, sans-serif;
	font-size:     14px;
	font-weight:   700;
	color:         #222222;
	outline:       none;
	transition:    all 0.3s ease;
	width:         100%;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
	border-color:     #FFB800;
	background-color: #FFFFFF;
	box-shadow:       0 0 0 3px rgba(255, 184, 0, 0.15);
}

/* Order review */
.woocommerce-checkout #payment {
	background:    #f8fafc;
	border-radius: 20px;
	border:        none;
}

.woocommerce-checkout #payment ul.payment_methods {
	border-bottom: 1px solid #f1f5f9;
	padding:       20px;
}

.woocommerce-checkout #payment div.payment_box {
	background: rgba(255, 184, 0, 0.08);
	color:      #222222;
}

.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: rgba(255, 184, 0, 0.08);
}

/* =============================================================================
   9. ACCOUNT PAGES
   ============================================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation {
	background:    #f8fafc;
	border-radius: 20px;
	padding:       24px;
	border:        1px solid #f1f5f9;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin:     0;
	padding:    0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display:        flex;
	align-items:    center;
	padding:        12px 16px;
	font-size:      11px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color:          #94A3B8;
	border-radius:  10px;
	transition:     all 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	background: #FFB800;
	color:      #222222;
}

/* =============================================================================
   10. PAGINATION
   ============================================================================= */

.woocommerce nav.woocommerce-pagination {
	text-align: center;
	margin-top: 48px;
}

.woocommerce nav.woocommerce-pagination ul {
	display:    inline-flex;
	align-items: center;
	gap:        8px;
	list-style: none;
	margin:     0;
	padding:    0;
	border:     none;
}

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

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display:         flex;
	align-items:     center;
	justify-content: center;
	width:           40px;
	height:          40px;
	border-radius:   10px;
	font-size:       12px;
	font-weight:     900;
	color:           #94A3B8;
	background:      #f8fafc;
	border:          1px solid #f1f5f9;
	transition:      all 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
	background:   #FFB800;
	color:        #222222;
	border-color: #FFB800;
}

/* =============================================================================
   11. WIDGETS / SIDEBAR
   ============================================================================= */

.widget_price_filter .price_slider {
	margin-bottom: 16px;
}

.widget_price_filter .ui-slider .ui-slider-range {
	background: #FFB800;
}

.widget_price_filter .ui-slider .ui-slider-handle {
	background:    #222222;
	border:        2px solid #FFB800;
	border-radius: 50%;
	width:         20px;
	height:        20px;
	top:           -8px;
	cursor:        pointer;
}

.widget_price_filter .price_slider_amount .button {
	background:     #FFB800 !important;
	color:          #222222 !important;
	font-family:    'Inter', ui-sans-serif, system-ui, sans-serif !important;
	font-weight:    900 !important;
	font-size:      10px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.15em !important;
	border-radius:  6px !important;
	border:         none !important;
	padding:        10px 20px !important;
	cursor:         pointer !important;
	transition:     all 0.2s ease !important;
}

.widget_price_filter .price_slider_amount .button:hover {
	background: #222222 !important;
	color:      #FFFFFF !important;
}

/* =============================================================================
   12. RATING STARS
   ============================================================================= */

.woocommerce .star-rating {
	color:       #FFB800;
	font-size:   12px;
}

.woocommerce .star-rating::before,
.woocommerce .star-rating span::before {
	color: #FFB800;
}

.woocommerce p.stars a {
	color: #FFB800;
}

.woocommerce p.stars a:hover,
.woocommerce p.stars a.active {
	color: #FFB800;
}

/* =============================================================================
   FIX: Product card image aspect ratio & grid alignment
   ============================================================================= */

/* Ensure product card images fill their container properly */
.woocommerce ul.products.ama-products-grid li.product {
	display: flex;
	flex-direction: column;
}

/* Legacy: .aspect-square no longer used in product-card.php v2 (replaced by .ama-card-image-wrap) */
.ama-product-card .aspect-square {
	aspect-ratio: 1 / 1;
	overflow:     hidden;
}
.ama-product-card .aspect-square img {
	width:      100%;
	height:     100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.ama-product-card:hover .aspect-square img {
	transform: scale(1.1);
}

/* Fix: hover actions slide up */
.ama-product-card .ama-product-card__actions {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -70px;
	padding: 15px;
	display: flex;
	gap: 10px;
	transition: bottom 0.3s ease;
}

.ama-product-card:hover .ama-product-card__actions {
	bottom: 0;
}

/* Fix: Remove WC default thumbnail styling that breaks our cards */
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products li.product img {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
}

/* Fix: WC sale badge overrides */
.woocommerce span.onsale {
	display: none !important; /* We use our own badge */
}

/* Fix: WC price display */
.woocommerce ul.products li.product .price {
	display: block;
	margin: 0;
	padding: 0;
	color: #FFB800 !important;
	font-weight: 900 !important;
	font-size: 16px !important;
}

/* Fix: hide WC default add to cart button in loop (we use our own) */
.woocommerce ul.products li.product .button.add_to_cart_button {
	display: none !important;
}

/* Fix: hide WC default product title (we use our own) */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
	display: none !important;
}

/* =============================================================================
   FIX: Ensure product grid layout works even without ama-products-grid class
   This is a fallback for the WooCommerce loop container
   ============================================================================= */

/* Primary grid (with our custom class) */
.woocommerce ul.products.ama-products-grid {
	display:               grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap:                   24px !important;
	list-style:            none !important;
}

/* Fallback: apply grid to ALL WooCommerce product loops on shop/archive pages */
.ama-shop-page .woocommerce ul.products,
.woocommerce-page .woocommerce ul.products {
	display:               grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap:                   24px !important;
	list-style:            none !important;
	margin:                0 !important;
	padding:               0 !important;
}

@media (max-width: 1280px) {
	.ama-shop-page .woocommerce ul.products,
	.woocommerce-page .woocommerce ul.products {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 1024px) {
	.ama-shop-page .woocommerce ul.products,
	.woocommerce-page .woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 640px) {
	.ama-shop-page .woocommerce ul.products,
	.woocommerce-page .woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap:                   16px !important;
	}
}

/* Fix: each product li fills its grid cell */
.ama-shop-page .woocommerce ul.products li.product,
.woocommerce-page .woocommerce ul.products li.product {
	float:   none !important;
	width:   100% !important;
	margin:  0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
}

/* Fix: product card fills entire li */
.ama-shop-page .woocommerce ul.products li.product .ama-product-card,
.woocommerce-page .woocommerce ul.products li.product .ama-product-card {
	height: 100% !important;
}

/* Fix: ensure hover actions are properly hidden and shown */
.ama-product-card .ama-product-card__actions {
	position:   absolute !important;
	left:        0 !important;
	right:       0 !important;
	bottom:      -70px !important;
	padding:     15px !important;
	display:     flex !important;
	gap:         10px !important;
	transition:  bottom 0.3s ease !important;
	z-index:     5 !important;
}

.ama-product-card:hover .ama-product-card__actions {
	bottom: 0 !important;
}

/* Fix: image container must be positioned and overflow hidden */
.ama-product-card > div:first-child {
	position: relative !important;
	overflow: hidden !important;
}

/* =============================================================================
   PRODUCT CARD — REDESIGNED (matches sample design)
   ============================================================================= */

/* Card wrapper */
.ama-product-card {
	background:    #ffffff;
	border-radius: 16px;
	overflow:      hidden;
	display:       flex;
	flex-direction: column;
	height:        100%;
	border:        1px solid #f0f0f0;
	transition:    box-shadow 0.3s ease, transform 0.3s ease;
	isolation:     isolate;
	position:      relative;
}

.ama-product-card:hover {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
	transform:  translateY(-3px);
}

/* ── Ensure non-hovered sibling cards are NOT affected ──────────── */
/* When one card is hovered, explicitly reset siblings to normal state */
.ama-product-card:not(:hover) .ama-card-hover-actions {
	bottom: -72px !important;
}

.ama-product-card:not(:hover) .ama-card-img {
	transform: scale(1) !important;
}

/* ── Image Wrap ─────────────────────────────────────────────────── */
.ama-card-image-wrap {
	position:      relative;
	overflow:      hidden;
	aspect-ratio:  1 / 1;
	background:    #f8f8f8;
	flex-shrink:   0;
}

/* Cover image — no padding, fills the square */
.ama-card-image-wrap .ama-card-img {
	width:       100% !important;
	height:      100% !important;
	object-fit:  cover !important;
	object-position: center !important;
	display:     block !important;
	transition:  transform 0.5s ease !important;
}

.ama-product-card:hover .ama-card-img {
	transform: scale(1.06) !important;
}

/* Image link fills the wrap */
.ama-card-img-link {
	display:  block;
	width:    100%;
	height:   100%;
}

/* ── Badge ──────────────────────────────────────────────────────── */
.ama-card-badge {
	position:      absolute;
	top:           14px;
	left:          14px;
	z-index:       10;
	min-width:     46px;
	height:        46px;
	border-radius: 50%;
	display:       flex;
	align-items:   center;
	justify-content: center;
	font-family:   'Inter', sans-serif;
	font-weight:   900;
	font-size:     10px;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	line-height:   1;
	padding:       0 4px;
	border:        2px solid #ffffff;
	box-shadow:    0 4px 12px rgba(0, 0, 0, 0.15);
}

.ama-card-badge.bg-primary {
	background: #FFB800;
	color:      #222222;
}

.ama-card-badge.ama-badge-new {
	background: #222222;
	color:      #FFB800;
}

/* ── Wishlist Button (product card icon-only variant) ─────────────
   Scoped to .ama-product-card ONLY. The single product page reuses
   the .ama-wishlist-btn class (for the JS click handler / AJAX logic)
   but needs the "outline" row layout, not this absolutely-positioned
   circle — see "SHARE + WISHLIST — Single Product Page" below, which
   was previously being silently overridden by this unscoped block
   (bare .ama-wishlist-btn matched everywhere, including the single
   product page, pulling that button out of flow via position:absolute
   and rendering it off-layout/invisible). */
.ama-product-card .ama-wishlist-btn {
	position:         absolute;
	top:              14px;
	right:            14px;
	z-index:          10;
	width:            36px;
	height:           36px;
	border-radius:    50%;
	background:       #ffffff;
	border:           none;
	display:          flex;
	align-items:      center;
	justify-content:  center;
	cursor:           pointer;
	box-shadow:       0 2px 10px rgba(0, 0, 0, 0.12);
	transition:       transform 0.2s ease, background 0.2s ease;
	color:            #cbd5e1;
}

.ama-product-card .ama-wishlist-btn:hover,
.ama-product-card .ama-wishlist-btn.is-active {
	color:      #ef4444;
	background: #fff5f5;
	transform:  scale(1.1);
}

.ama-product-card .ama-wishlist-btn svg {
	width:  16px;
	height: 16px;
}

/* ── Hover Action Buttons ───────────────────────────────────────── */
.ama-card-hover-actions {
	position:   absolute;
	left:       0;
	right:      0;
	bottom:     -72px;
	padding:    12px;
	display:    flex;
	gap:        8px;
	transition: bottom 0.3s ease;
	z-index:    8;
}

.ama-product-card:hover .ama-card-hover-actions {
	bottom: 0;
}

.ama-card-action-btn {
	flex:            1;
	height:          40px;
	border-radius:   10px;
	font-family:     'Inter', sans-serif;
	font-weight:     900;
	font-size:       10px;
	text-transform:  uppercase;
	letter-spacing:  0.12em;
	display:         flex;
	align-items:     center;
	justify-content: center;
	gap:             6px;
	cursor:          pointer;
	border:          none;
	transition:      all 0.2s ease;
	background:      #FFB800;
	color:           #222222;
	white-space:     nowrap;
	overflow:        hidden;
	text-overflow:   ellipsis;
	text-decoration: none; /* prevent underline when rendered as <a> */
}

.ama-card-action-btn:hover,
.ama-card-action-btn:active {
	background: #222222;
	color:      #ffffff;
}

.ama-card-action-btn--white {
	background: #ffffff;
	color:      #222222;
	border:     1px solid rgba(255,255,255,0.8);
}

.ama-card-action-btn--white:hover,
.ama-card-action-btn--white:active {
	background:   #222222;
	color:        #ffffff;
	border-color: #222222;
}

.ama-card-action-btn--disabled {
	background: #e2e8f0;
	color:      #94a3b8;
	cursor:     not-allowed;
}

/* ── Card Body ──────────────────────────────────────────────────── */
.ama-card-body {
	padding:        16px 16px 18px;
	display:        flex;
	flex-direction: column;
	flex:           1;
	gap:            6px;
}

/* Category label */
.ama-card-category {
	font-family:    'Inter', sans-serif;
	font-size:      10px;
	font-weight:    700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color:          #94a3b8;
	margin:         0;
	line-height:    1.4;
}

/* Product title */
.ama-card-title-link {
	text-decoration: none;
}

.ama-card-title {
	font-family:    'Inter', sans-serif;
	font-size:      13.5px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height:    1.35;
	color:          #222222;
	margin:         0;
	display:        -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow:       hidden;
	transition:     color 0.2s ease;
}

/* Title colour intentionally stays fixed on hover/tap (no colour swap). */

/* Color swatches */
.ama-card-swatches {
	display:    flex;
	align-items: center;
	gap:        6px;
	flex-wrap:  wrap;
	margin-top: 2px;
}

.ama-card-swatch {
	width:        14px;
	height:       14px;
	border-radius: 50%;
	border:       1.5px solid #e2e8f0;
	display:      inline-block;
	box-shadow:   0 1px 3px rgba(0,0,0,0.12);
}

.ama-card-swatch-more {
	font-size:   9px;
	font-weight: 900;
	color:       #94a3b8;
	line-height: 1;
}

/* ── Card Footer: price + buy button ─────────────────────────────── */
.ama-card-footer {
	display:     flex;
	align-items: center;
	justify-content: space-between;
	margin-top:  auto;
	padding-top: 10px;
	border-top:  1px solid #f5f5f5;
}

.ama-card-price {
	display:     flex;
	align-items: baseline;
	gap:         6px;
	flex-wrap:   wrap;
}

.ama-card-price-current {
	font-family: 'Inter', sans-serif;
	font-weight: 900;
	font-size:   15px;
	color:       #FFB800;
	line-height: 1;
}

.ama-card-price-current .woocommerce-Price-amount,
.ama-card-price-current bdi {
	font-size:   inherit;
	font-weight: inherit;
	color:       inherit;
}

.ama-card-price-original {
	font-size:       12px;
	font-weight:     500;
	color:           #cbd5e1;
	text-decoration: line-through;
	font-style:      normal;
}

.ama-card-price-original .woocommerce-Price-amount,
.ama-card-price-original bdi {
	font-size:       inherit;
	font-weight:     inherit;
	color:           inherit;
	text-decoration: inherit;
}

/* Buy Now button */
.ama-card-buy-btn {
	display:         flex;
	align-items:     center;
	gap:             6px;
	height:          36px;
	padding:         0 14px;
	border-radius:   10px;
	background:      var(--ama-btn-primary-bg, #FFB800);
	color:           var(--ama-btn-primary-text, #222222);
	text-decoration: none; /* prevent underline when <a> tag */
	border:          none;
	font-family:     'Inter', sans-serif;
	font-weight:     900;
	font-size:       10px;
	text-transform:  uppercase;
	letter-spacing:  0.1em;
	cursor:          pointer;
	white-space:     nowrap;
	transition:      background 0.2s ease, color 0.2s ease, transform 0.15s ease;
	flex-shrink:     0;
}

.ama-card-buy-btn:hover {
	background: var(--ama-btn-primary-hover-bg, #222222);
	color:      var(--ama-primary, #FFB800);
	transform:  scale(1.03);
}

/* ── Grid overrides: ensure li fills cell properly ──────────────── */
.woocommerce ul.products li.product .ama-product-card {
	height: 100%;
}

/* ── Remove old conflicting card styles ─────────────────────────── */
/* These selectors target old markup that no longer exists in product-card.php */
.ama-product-card .aspect-square,
.ama-product-card > div:first-child > a.block {
	all: unset;
}

/* ── Ensure .ama-card-img always uses cover (canonical rule) ──────── */
.ama-card-image-wrap .ama-card-img,
.ama-product-card .ama-card-img {
	width:           100% !important;
	height:          100% !important;
	object-fit:      cover !important;
	object-position: center !important;
	display:         block !important;
	transition:      transform 0.5s ease !important;
	mix-blend-mode:  normal !important;
}

/* =============================================================================
   SHOP SIDEBAR — Complete Styles (matches sample design)
   ============================================================================= */

.ama-shop-sidebar {
	width:          260px !important;
	flex-shrink:    0;
	padding-right:  0 !important;
	flex-direction: column;
	gap:            28px;
}

/* BUG-FIX: display was previously set unconditionally here (display:flex
   with no media query), which overrode the "hidden lg:flex" Tailwind
   classes on this element in the markup — same CSS specificity, later
   rule in the cascade wins. That made the FULL sidebar (categories, price
   range, color, rating — everything) show above the product grid on
   MOBILE too, forcing a long scroll before reaching any products, when
   mobile is only meant to show the compact "Filter" button + drawer.
   Only force display at the desktop (lg) breakpoint now, matching the
   markup's own intent. */
@media (min-width: 1024px) {
	.ama-shop-sidebar {
		display: flex;
	}
}

/* Filter section block */
.ama-filter-section {
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 22px;
}

.ama-filter-section:last-of-type {
	border-bottom: none;
}

/* Section heading */
.ama-filter-label {
	font-family:    'Inter', sans-serif;
	font-size:      11px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color:          #222222;
	margin:         0 0 14px 0;
}

/* ── Category links ─────────────────────────────────────────────── */
.ama-cat-link {
	display:         flex;
	justify-content: space-between;
	align-items:     center;
	font-size:       13px;
	font-weight:     600;
	color:           #475569;
	text-decoration: none;
	padding:         5px 0;
	transition:      color 0.2s ease;
	line-height:     1.4;
}

.ama-cat-link:hover,
.ama-cat-link.is-active {
	color: #222222;
}

.ama-cat-link.is-active {
	font-weight: 800;
}

.ama-cat-count {
	font-size:   11px;
	font-weight: 600;
	color:       #94a3b8;
	flex-shrink: 0;
}

/* ── Price range slider ─────────────────────────────────────────── */
.ama-price-thumb {
	position:           absolute;
	top:                50%;
	transform:          translateY(-50%);
	width:              100%;
	height:             4px;
	-webkit-appearance: none;
	appearance:         none;
	background:         transparent;
	pointer-events:     none;
	outline:            none;
}

.ama-price-thumb::-webkit-slider-thumb {
	-webkit-appearance: none;
	width:              18px;
	height:             18px;
	border-radius:      50%;
	background:         #222222;
	border:             2.5px solid #FFB800;
	cursor:             pointer;
	pointer-events:     all;
	box-shadow:         0 2px 6px rgba(0,0,0,0.15);
	transition:         transform 0.15s ease;
}

.ama-price-thumb::-webkit-slider-thumb:hover {
	transform: scale(1.15);
}

.ama-price-thumb::-moz-range-thumb {
	width:        18px;
	height:       18px;
	border-radius: 50%;
	background:   #222222;
	border:       2.5px solid #FFB800;
	cursor:       pointer;
	pointer-events: all;
}

/* ── Checkboxes (brand filter) ──────────────────────────────────── */
.ama-checkbox {
	width:         16px;
	height:        16px;
	border:        2px solid #e2e8f0;
	border-radius: 4px;
	appearance:    none;
	-webkit-appearance: none;
	cursor:        pointer;
	flex-shrink:   0;
	position:      relative;
	background:    #ffffff;
	transition:    all 0.15s ease;
}

.ama-checkbox:checked {
	background:   #FFB800;
	border-color: #FFB800;
}

.ama-checkbox:checked::after {
	content:     '';
	position:    absolute;
	left:        4px;
	top:         1px;
	width:       5px;
	height:      9px;
	border:      2px solid #222222;
	border-top:  none;
	border-left: none;
	transform:   rotate(45deg);
}

/* ── Rating rows ────────────────────────────────────────────────── */
.ama-filter-section a[aria-label*="stars"] {
	padding:        4px 0;
	border-radius:  6px;
}

/* ── Color swatches ─────────────────────────────────────────────── */
.ama-color-swatch {
	display:       block;
	width:         26px;
	height:        26px;
	border-radius: 50%;
	border:        2px solid #e2e8f0;
	cursor:        pointer;
	transition:    transform 0.15s ease, border-color 0.15s ease;
	box-shadow:    0 1px 3px rgba(0,0,0,0.1);
}

.ama-color-swatch:hover {
	transform:    scale(1.15);
	border-color: #94a3b8;
}

.ama-color-swatch.is-active {
	border:     3px solid #222222;
	transform:  scale(1.1);
	box-shadow: 0 0 0 2px #FFB800;
}

/* ── Promo box ──────────────────────────────────────────────────── */
.ama-shop-sidebar .rounded-\[6px\] {
	border-radius: 12px !important;
}

/* ── Mobile drawer sidebar ──────────────────────────────────────── */
@media (max-width: 1023px) {
	.ama-shop-sidebar {
		width: 100% !important;
	}
}

/* =============================================================================
   QUICK VIEW MODAL — Styles
   ============================================================================= */

#ama-quick-view-modal {
	animation: amaFadeIn 0.2s ease;
}

@keyframes amaFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

body.ama-modal-open {
	overflow: hidden;
}

/* Quick view color swatch inside modal */
#ama-quick-view-content .ama-color-swatch {
	width:        32px;
	height:       32px;
	border-radius: 50%;
	border:       2px solid #e2e8f0;
	cursor:       pointer;
	transition:   transform 0.15s ease, box-shadow 0.15s ease;
}

#ama-quick-view-content .ama-color-swatch:hover,
#ama-quick-view-content .ama-color-swatch.is-selected {
	transform:  scale(1.15);
	box-shadow: 0 0 0 3px #FFB800;
}

/* Skeleton loader */
.ama-skeleton {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: amaShimmer 1.5s infinite;
}

@keyframes amaShimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* =============================================================================
   PAGINATION — Sample-style numbered pagination
   ============================================================================= */

.ama-page-item {
	display: inline-flex;
}

.ama-page-item a,
.ama-page-item span {
	display:         flex;
	align-items:     center;
	justify-content: center;
	min-width:       40px;
	height:          40px;
	padding:         0 8px;
	border-radius:   10px;
	font-family:     'Inter', sans-serif;
	font-size:       13px;
	font-weight:     800;
	color:           #64748b;
	background:      #f8fafc;
	border:          1px solid #f1f5f9;
	text-decoration: none;
	transition:      all 0.2s ease;
}

.ama-page-item a:hover {
	background:  #FFB800;
	color:       #222222;
	border-color: #FFB800;
}

.ama-page-item.is-active span,
.ama-page-item.is-active a {
	background:   #FFB800;
	color:        #222222;
	border-color: #FFB800;
	font-weight:  900;
}

.ama-page-item.is-dots span {
	background:  transparent;
	border-color: transparent;
	color:       #94a3b8;
	pointer-events: none;
}

/* =============================================================================
   MOBILE RESPONSIVE — Shop Page
   Complete mobile overrides for all screen widths
   ============================================================================= */

/* ─── Top Bar: hide right-side links on mobile to prevent overflow ─── */
@media (max-width: 767px) {
	.ama-top-bar__right {
		display: none !important;
	}
	.ama-top-bar {
		padding-left:  16px !important;
		padding-right: 16px !important;
		justify-content: center !important;
	}
}

/* ─── Shop Page Header: reduce padding on mobile ─── */
@media (max-width: 767px) {
	/* Page header band */
	.ama-shop-page > div:first-child > div {
		padding-top:    20px !important;
		padding-bottom: 20px !important;
		padding-left:   16px !important;
		padding-right:  16px !important;
	}

	/* Page title */
	.ama-shop-page h1 {
		font-size: clamp(2rem, 10vw, 2.5rem) !important;
		margin-bottom: 8px !important;
	}

	/* Main content wrapper */
	.ama-shop-page .container {
		padding-left:  16px !important;
		padding-right: 16px !important;
		margin-top:    20px !important;
	}

	/* Tailwind container px-8 override */
	.ama-shop-page .px-8 {
		padding-left:  16px !important;
		padding-right: 16px !important;
	}
	.ama-shop-page .py-16 {
		padding-top:    20px !important;
		padding-bottom: 20px !important;
	}
	.ama-shop-page .mt-16 {
		margin-top: 20px !important;
	}
	.ama-shop-page .mb-10 {
		margin-bottom: 16px !important;
	}
	.ama-shop-page .pb-6 {
		padding-bottom: 12px !important;
	}
	.ama-shop-page .gap-16 {
		gap: 0 !important;
	}
}

/* ─── Product Grid: always 2 columns on mobile ─────────────────────── */
@media (max-width: 640px) {

	/* Override ALL WooCommerce column variants */
	.woocommerce ul.products,
	.woocommerce ul.products.ama-products-grid,
	.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,
	.ama-shop-page .woocommerce ul.products,
	.woocommerce-page .woocommerce ul.products {
		display:               grid !important;
		/* Mobile column count — Customizer → Shop (WooCommerce) → Shop
		   Archive / Category Page → Columns – Mobile. */
		grid-template-columns: repeat(var(--ama-shop-cols-mobile, 2), 1fr) !important;
		gap:                   10px !important;
	}

	/* ── Product Card: scaled for narrow mobile cards ── */
	.ama-product-card {
		border-radius: 10px !important;
	}

	/* Card body spacing */
	.ama-card-body {
		padding: 8px 10px 10px !important;
		gap:     3px !important;
	}

	/* Category label */
	.ama-card-category {
		font-size:      8px !important;
		letter-spacing: 0.08em !important;
	}

	/* Product title */
	.ama-card-title {
		font-size:      10.5px !important;
		letter-spacing: 0 !important;
		-webkit-line-clamp: 2 !important;
	}

	/* Color swatches */
	.ama-card-swatch {
		width:  11px !important;
		height: 11px !important;
	}
	.ama-card-swatches {
		gap: 4px !important;
	}

	/* Price + buy footer */
	.ama-card-footer {
		flex-direction: column !important;
		align-items:    flex-start !important;
		gap:            6px !important;
		padding-top:    7px !important;
	}

	/* Current price */
	.ama-card-price-current {
		font-size: 12px !important;
	}

	/* Original (crossed) price */
	.ama-card-price-original {
		font-size: 10px !important;
	}

	/* Buy Now — full width on mobile, smaller */
	.ama-card-buy-btn {
		width:         100% !important;
		height:        30px !important;
		padding:       0 8px !important;
		font-size:     9px !important;
		border-radius: 7px !important;
		justify-content: center !important;
	}

	/* Badge: smaller on mobile */
	.ama-card-badge {
		min-width:  32px !important;
		height:     32px !important;
		font-size:  8px !important;
		top:        8px !important;
		left:       8px !important;
	}

	/* Wishlist button: smaller (product card only — see scoping note
	   in the desktop rule above) */
	.ama-product-card .ama-wishlist-btn {
		width:  28px !important;
		height: 28px !important;
		top:    8px !important;
		right:  8px !important;
	}
	.ama-product-card .ama-wishlist-btn svg {
		width:  13px !important;
		height: 13px !important;
	}

	/* Quick View / Add to Cart row: hidden by default on mobile too, same
	   as desktop — revealed only on :hover (the ":not(:hover)" reset rule
	   above keeps it off-canvas at bottom:-72px until then). Icon-only
	   (label hidden below) so two buttons fit comfortably on a narrow
	   2-column card without the text getting clipped. Centered as a group
	   at the bottom of the image, not pinned to the left edge. The
	   always-visible "Buy Now" button below the image remains the primary
	   tap target for purchasing on touch devices. */
	.ama-card-hover-actions {
		position:        absolute !important;
		left:            0 !important;
		right:           0 !important;
		bottom:          -72px !important;
		padding:         8px !important;
		display:         flex !important;
		justify-content: center !important;
		gap:             10px !important;
		z-index:         8 !important;
	}

	.ama-product-card:hover .ama-card-hover-actions {
		bottom: 0 !important;
	}

	/* v9.5.5 fix: touch devices have no real :hover. Tapping a card only
	   *simulates* :hover on the first tap (revealing these buttons after
	   the transition), requiring a SECOND tap to actually activate one —
	   felt like a slow, unresponsive delay. Below the tablet breakpoint,
	   show Quick View / Add to Cart permanently (no hover needed), so the
	   first tap always acts immediately. Must match/exceed the specificity
	   of the ":not(:hover)" reset rule above (used to keep sibling cards'
	   overlays hidden on desktop hover) to actually override it here. */
	@media (hover: none) {
		.ama-product-card:not(:hover) .ama-card-hover-actions,
		.ama-card-hover-actions {
			bottom: 0 !important;
		}
	}

	.ama-card-action-btn {
		flex:          0 0 36px !important;
		width:         36px !important;
		height:        36px !important;
		padding:       0 !important;
		border-radius: 50% !important;
		gap:           0 !important;
	}

	.ama-card-action-label {
		display: none !important;
	}

	.ama-card-action-btn svg {
		width:  15px !important;
		height: 15px !important;
		flex-shrink: 0 !important;
	}

	/* Out of Stock badge has no icon, so keep it readable as a small pill
	   instead of forcing it into the 36px circle above. */
	.ama-card-action-btn--disabled {
		flex:           0 1 auto !important;
		width:          auto !important;
		border-radius:  8px !important;
		font-size:      8px !important;
		letter-spacing: 0.04em !important;
		padding:        0 10px !important;
	}

	/* ── Toolbar (Filter + Sort) ── */
	.ama-shop-page main > div.flex.flex-col {
		gap:           10px !important;
		margin-bottom: 16px !important;
		padding-bottom: 12px !important;
	}

	/* Pagination */
	.ama-shop-pagination {
		margin-top: 24px !important;
		gap:        6px !important;
	}
	.ama-page-item a,
	.ama-page-item span {
		min-width: 34px !important;
		height:    34px !important;
		font-size: 11px !important;
	}
}

/* ─── Tablet: 641px – 1023px ──────────────────────────────────────── */
@media (min-width: 641px) and (max-width: 1023px) {

	/* Container side padding */
	.ama-shop-page .px-8 {
		padding-left:  20px !important;
		padding-right: 20px !important;
	}

	/* Tablet column count — Customizer → Shop (WooCommerce) → Shop
	   Archive / Category Page → Columns – Tablet. */
	.woocommerce ul.products,
	.woocommerce ul.products.ama-products-grid,
	.woocommerce ul.products.columns-4,
	.ama-shop-page .woocommerce ul.products,
	.woocommerce-page .woocommerce ul.products {
		grid-template-columns: repeat(var(--ama-shop-cols-tablet, 3), 1fr) !important;
		gap: 16px !important;
	}

	/* Moderate card padding */
	.ama-card-body {
		padding: 12px 12px 14px !important;
	}
}

/* ─── Fix WooCommerce columns width floats (belt-and-braces) ──────── */
.woocommerce ul.products.columns-4 li.product,
.woocommerce ul.products.columns-3 li.product,
.woocommerce ul.products.columns-2 li.product {
	width:  100% !important;
	margin: 0    !important;
	float:  none !important;
}

/* =============================================================================
   MOBILE TAP CARD — Touch UX
   ============================================================================= */

/* v9.5.5 fix: touch devices don't have a mouse-out event, so once a tap
   simulates :hover on a card, the lift/shadow (below) and the image
   zoom (.ama-card-img, see "Image Wrap" above) can stay visually "stuck"
   on whichever card was tapped last, making it look like it's hovering
   by itself with no finger on it. Quick View / Add to Cart staying
   permanently visible on touch (see the earlier "hover: none" rule
   inside the 640px breakpoint) is intentional — this block only
   neutralises the CARD-level lift/shadow/zoom, which only make sense
   as a mouse-hover cue and have no equivalent touch gesture to pair
   them with. */
@media (hover: none) {
	.ama-product-card:hover {
		box-shadow: none !important;
		transform:  none !important;
	}

	.ama-product-card:hover .ama-card-img {
		transform: scale(1) !important;
	}
}

@media (hover: none) and (pointer: coarse) {

	/* Image wrap: tap ripple feedback */
	.ama-card-img-link {
		-webkit-tap-highlight-color: rgba(255, 184, 0, 0.15);
	}
}

/* =============================================================================
   FLASH SALE SECTION — Product cards on dark background
   ============================================================================= */

/* Cards inside the flash sale dark section get a refined look */
.ama-flash-sale .ama-product-card {
	background:    #2a2a2a;
	border-color:  rgba(255, 255, 255, 0.08);
	box-shadow:    0 4px 20px rgba(0, 0, 0, 0.3);
}

.ama-flash-sale .ama-product-card:hover {
	box-shadow:    0 16px 40px rgba(0, 0, 0, 0.5);
	border-color:  rgba(255, 184, 0, 0.25);
}

.ama-flash-sale .ama-card-image-wrap {
	background: #1e1e1e;
}

.ama-flash-sale .ama-card-body {
	background: #2a2a2a;
}

.ama-flash-sale .ama-card-category {
	color: #6b7280;
}

.ama-flash-sale .ama-card-title {
	color: #f1f1f1;
}

/* Title colour intentionally stays fixed on hover/tap on the flash-sale
   dark background too (no colour swap). */

.ama-flash-sale .ama-card-footer {
	border-top-color: rgba(255, 255, 255, 0.08);
}

.ama-flash-sale .ama-wishlist-btn {
	background:   rgba(255,255,255,0.1);
	color:        #9ca3af;
	box-shadow:   none;
}

.ama-flash-sale .ama-wishlist-btn:hover,
.ama-flash-sale .ama-wishlist-btn.is-active {
	background: rgba(239, 68, 68, 0.2);
	color:      #ef4444;
}

/* =============================================================================
   HOMEPAGE LAYOUT FIXES
   ============================================================================= */

/* Reduce excess vertical spacing between homepage sections */
#ama-homepage > section {
	padding-top:    72px;
	padding-bottom: 72px;
}

/* Hero keeps its own min-height, don't clamp it */
#ama-homepage .ama-hero {
	padding-top:    0;
	padding-bottom: 0;
}

/* Category section: tighten heading margin */
#ama-homepage .grid.grid-cols-2.lg\:grid-cols-4.gap-12 {
	gap: 2rem;
}

/* Featured products: header spacing tightened */
#ama-homepage #ama-featured-grid {
	margin-top: 0;
}

/* Fix: ama-product-card inside Tailwind grid must not overflow */
.ama-product-card {
	min-width: 0;
}

/* Fix: product grid columns should always be equal height */
#ama-featured-grid > *,
.ama-flash-sale .grid > * {
	display:        flex;
	flex-direction: column;
}

#ama-featured-grid .ama-product-card,
.ama-flash-sale .ama-product-card {
	height: 100%;
}

@media (max-width: 640px) {
	#ama-homepage > section {
		padding-top:    48px;
		padding-bottom: 48px;
	}
}
   ============================================================================= */

/* ── Page wrapper ── */
.ama-single-product-page {
	background: #ffffff;
	min-height: 100vh;
}

/* ── Two-column grid gap on mobile ── */
@media (max-width: 1023px) {
	.ama-product-article .grid.grid-cols-1.lg\:grid-cols-12 {
		gap: 2rem !important;
	}
	.ama-single-product-page .container.mx-auto.px-5 {
		padding-left:  16px !important;
		padding-right: 16px !important;
	}
	.ama-single-product-page .container.mx-auto.px-5.py-16 {
		padding-top:    32px !important;
		padding-bottom: 32px !important;
	}
}

/* ── Gallery ── */
.ama-product-gallery {
	position: sticky;
	top: 100px;
}

@media (max-width: 1023px) {
	.ama-product-gallery {
		position: static;
	}
}

/* Gallery thumbnails */
.ama-gallery-thumbs {
	-ms-overflow-style: none;
	scrollbar-width:    none;
}
.ama-gallery-thumbs::-webkit-scrollbar { display: none; }

/* ── Summary panel ── */
.ama-product-summary {
	padding-bottom: 2rem;
}

/* Product title */
.ama-product-summary h1 {
	word-break: break-word;
}

/* Add to cart button states */
.ama-summary-add-cart:hover {
	background: #333333 !important;
}
.ama-summary-add-cart:disabled {
	opacity: 0.6;
	cursor:  not-allowed;
}

/* Buy Now shimmer */
.ama-btn-shiny {
	position: relative;
	overflow: hidden;
}
.ama-shiny-sweep {
	position:   absolute;
	inset:      0;
	background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
	transform:  translateX(-100%);
	transition: none;
}
.ama-btn-shiny:hover .ama-shiny-sweep {
	transform:  translateX(100%);
	transition: transform 0.5s ease;
}

/* ── Value props bar ── */
.ama-value-props {
	border-top:    1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
	background:    #fafafa;
}

/* ── Product tabs ── */
.ama-product-tabs {
	border-top: 1px solid #f1f5f9;
}

/* Tab prose content */
.ama-prose p    { margin-bottom: 1em; }
.ama-prose ul   { list-style: disc; padding-left: 1.5em; margin-bottom: 1em; }
.ama-prose ol   { list-style: decimal; padding-left: 1.5em; margin-bottom: 1em; }
.ama-prose li   { margin-bottom: 0.4em; }
.ama-prose h2,
.ama-prose h3   { font-weight: 800; margin: 1.5em 0 0.5em; }

/* Additional info table */
.ama-additional-info table {
	width:           100%;
	border-collapse: collapse;
}
.ama-additional-info tr {
	border-bottom: 1px solid #f1f5f9;
}
.ama-additional-info tr:last-child {
	border-bottom: none;
}

/* ── Frequently bought / Related products ── */
.ama-product-article .py-\[100px\] {
	padding-top:    60px !important;
	padding-bottom: 60px !important;
}

@media (max-width: 768px) {
	.ama-product-article .py-\[100px\] {
		padding-top:    40px !important;
		padding-bottom: 40px !important;
	}

	/* Related products grid: 2 cols on mobile */
	.ama-product-article .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 12px !important;
	}

	/* Tabs: horizontal scroll on mobile */
	.ama-product-tabs .flex.flex-wrap.border-b {
		flex-wrap:    nowrap !important;
		overflow-x:   auto !important;
		-ms-overflow-style: none;
		scrollbar-width: none;
	}
	.ama-product-tabs .flex.flex-wrap.border-b::-webkit-scrollbar {
		display: none;
	}
	.ama-product-tabs .flex.flex-wrap.border-b button {
		flex-shrink: 0;
		padding:     12px 14px !important;
		font-size:   10px !important;
	}

	/* Gallery thumbs: horizontal on mobile */
	.ama-gallery-thumbs.flex.md\:flex-col {
		flex-direction: row !important;
	}

	/* Summary buttons: full width stack on mobile */
	.ama-product-summary .grid.grid-cols-1.md\:grid-cols-2 {
		grid-template-columns: 1fr !important;
	}

	/* Size buttons: smaller on mobile */
	.ama-product-summary button.min-w-\[54px\] {
		min-width: 42px !important;
		height:    44px !important;
		font-size: 12px !important;
	}

	/* Quantity row: full width */
	.ama-product-summary .grid.grid-cols-1 .flex.items-center.border-2 {
		width: 100% !important;
	}
}

/* ── Pulse dot animation ── */
@keyframes ama-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%       { opacity: 0.6; transform: scale(0.85); }
}
.ama-pulse-dot {
	animation: ama-pulse 2s ease-in-out infinite;
}

/* ── Payment icons ── */
.ama-payment-icons img {
	height:       28px;
	width:        auto;
	max-width:    60px;
	object-fit:   contain;
	display:      inline-block;
	vertical-align: middle;
}

/* =========================================================================
   AMA Theme — Bug Fixes v8+
   Issues addressed:
     Fix 3: Color swatch / attribute visibility
     Fix 4: Hide glitched duplicate WooCommerce product options container
     Fix 1: Reward points notice styling
     Fix 2: Product customizer positioning
   ========================================================================= */

/* ── Fix 3: Color Swatch Visibility ─────────────────────────────────────── */
/*
 * Ensures the custom color swatch buttons in .ama-product-summary are always
 * visible and correctly sized regardless of global button resets or conflicts
 * from WooCommerce attribute plugin overrides.
 */
.ama-product-summary .flex.gap-4 button[title],
.ama-product-summary button[aria-label][class*="rounded-full"] {
	display:          inline-flex !important;
	visibility:       visible !important;
	opacity:          1 !important;
	width:            2.5rem !important;   /* 40px */
	height:           2.5rem !important;
	border-radius:    9999px !important;
	padding:          4px !important;
	border-width:     2px !important;
	border-style:     solid !important;
	flex-shrink:      0 !important;
	position:         relative !important;
	overflow:         visible !important;
}

/* Inner colour circle */
.ama-product-summary button[aria-label][class*="rounded-full"] > div {
	width:         100% !important;
	height:        100% !important;
	border-radius: 9999px !important;
	display:       block !important;
	visibility:    visible !important;
	opacity:       1 !important;
}

/*
 * Fix for WooCommerce Variation Swatches plugins that inject their own
 * <li> / <a> colour swatches and may conflict. Force any swatch anchor
 * to show as a circular swatch when inside the product summary.
 */
.ama-product-summary .variable-items-wrapper li,
.ama-product-summary ul.variable-items-wrapper li.variable-item {
	list-style:     none !important;
	display:        inline-flex !important;
	margin:         4px !important;
}
.ama-product-summary .variable-items-wrapper li .variable-item-contents,
.ama-product-summary .variable-items-wrapper li a {
	width:          40px !important;
	height:         40px !important;
	border-radius:  50% !important;
	display:        block !important;
	visibility:     visible !important;
	opacity:        1 !important;
	border:         2px solid #f1f5f9 !important;
	overflow:       hidden !important;
}
.ama-product-summary .variable-items-wrapper li.selected a,
.ama-product-summary .variable-items-wrapper li.selected .variable-item-contents {
	border-color:   #FFB800 !important;
	box-shadow:     0 0 0 2px #FFB800 !important;
}

/*
 * Some swatch plugins set `display:none` on the native WC <select> and
 * forget to show their replacement. Force both to be visible in a
 * non-conflicting way (the WC select is hidden by the theme anyway).
 */
.ama-product-summary select[name^="attribute_"] {
	/* Keep the native select hidden — it's replaced by our custom buttons. */
	position:    absolute !important;
	left:        -9999px !important;
	visibility:  hidden !important;
	pointer-events: none !important;
}

/* ── Fix 4: Hide Duplicate / Glitched WooCommerce Product Options Box ────── */
/*
 * WooCommerce's woocommerce_template_single_add_to_cart hook can produce a
 * second unstyled "Choose an option" / "Add to Cart" block when the theme's
 * custom summary renders its own controls and the default hook is still active.
 *
 * The PHP remove_action calls in class-woocommerce-hooks.php::add_hooks()
 * should prevent this entirely, but a CSS safety net is provided here to
 * catch edge cases from third-party plugins re-registering the hook.
 *
 * Targets the default WC variations form and its wrappers when they appear
 * OUTSIDE the intended .ama-product-summary container.
 */
.ama-product-article .woocommerce-variation-add-to-cart:not(.ama-product-summary *),
.ama-product-article form.variations_form:not(.ama-product-summary *),
.ama-product-article .cart:not(.ama-cart-panel *):not(.ama-product-summary *),
.woocommerce div.product form.cart:not(.ama-product-summary form.cart) {
	display: none !important;
}

/*
 * Additional safety: hide any orphaned WC single-product meta / sharing block
 * outside the custom summary (these are removed via PHP but guarded here too).
 */
.ama-product-article .woocommerce-product-details__short-description:not(.ama-product-summary *),
.ama-product-article .product_meta:not(.ama-product-summary *),
.ama-product-article .woocommerce-product-rating:not(.ama-product-summary *) {
	display: none !important;
}

/* ── Fix 1: Reward Points Notice Styling ─────────────────────────────────── */
/*
 * Styles the repositioned WooCommerce Points & Rewards "Earn up to X points"
 * notice so it fits the AMA theme aesthetic and sits directly below the
 * product price row.
 */
.ama-reward-points-notice {
	display:       flex !important;
	align-items:   center !important;
	gap:           8px !important;
	padding:       10px 14px !important;
	border-radius: 6px !important;
	background:    rgba(255, 184, 0, 0.08) !important;
	border:        1px solid rgba(255, 184, 0, 0.25) !important;
	font-size:     12px !important;
	font-weight:   700 !important;
	color:         #92610a !important;
	letter-spacing: 0.02em !important;
	line-height:   1.4 !important;
	margin-top:    4px !important;
}
.ama-reward-points-notice::before {
	content:     "⭐";
	font-size:   14px !important;
	flex-shrink: 0 !important;
}
/* Target the plugin's own <p> or <span> tag */
.ama-reward-points-notice p,
.ama-reward-points-notice span {
	margin:  0 !important;
	padding: 0 !important;
	color:   inherit !important;
	font:    inherit !important;
}

/* ── Fix 2: Product Customizer Plugin Area ────────────────────────────────── */
/*
 * Ensures .ama-product-customizer and ALL its descendants render at full width.
 * Targets every plugin wrapper, canvas, iframe, and container that may have
 * an inline width or max-width set by the plugin's own scripts.
 *
 * Also covers the "Upload Your Design / Add Custom Text" WooCommerce
 * Product Customize plugin (wc-product-customize, .wcpc-*, .wpc-*) and
 * WooCommerce Product Add-Ons (.wc-pao-*, .woocommerce-product-addons).
 */

/* ── Form / wrapper ─────────────────────────────────────────────────────── */
.ama-product-customizer {
	margin-top:  0 !important;
	width:       100% !important;
	max-width:   100% !important;
	box-sizing:  border-box !important;
	overflow-x:  hidden !important;
	display:     block !important;
}

/* ── Every descendant: cap max-width ────────────────────────────────────── */
.ama-product-customizer * {
	max-width:  100% !important;
	box-sizing: border-box !important;
}

/* ── Direct block children: full width ──────────────────────────────────── */
.ama-product-customizer > div,
.ama-product-customizer > section,
.ama-product-customizer > article,
.ama-product-customizer > table,
.ama-product-customizer > p {
	width:   100% !important;
	display: block !important;
}

/* ── WooCommerce Product Add-Ons (WC core add-on plugin) ────────────────── */
.ama-product-customizer .woocommerce-product-addons,
.ama-product-customizer .wc-pao-addon-wrap,
.ama-product-customizer .wc-pao-addon,
.ama-product-customizer .wc-pao-addon-container,
.ama-product-customizer .wc-pao-addon-image-swatch-select,
.ama-product-customizer [class*="wc-pao"] {
	width:     100% !important;
	max-width: 100% !important;
}

/* ── WC Product Customize (Upload Design / Custom Text plugin) ───────────── */
.ama-product-customizer .wcpc-product-customize,
.ama-product-customizer .wcpc-field,
.ama-product-customizer .wcpc-upload-wrap,
.ama-product-customizer .wcpc-upload-area,
.ama-product-customizer .wcpc-text-field,
.ama-product-customizer .wcpc-preview-btn,
.ama-product-customizer .wpc-product-customizer,
.ama-product-customizer .wpc-field,
.ama-product-customizer .wpc-upload,
.ama-product-customizer [class*="wcpc"],
.ama-product-customizer [class*="wpc-product"],
.ama-product-customizer [class*="wc-product-customize"],
/* Upload area drag-and-drop zone */
.ama-product-customizer .upload-design-wrap,
.ama-product-customizer .upload-your-design,
.ama-product-customizer .custom-text-wrap,
.ama-product-customizer .add-custom-text,
.ama-product-customizer .product-customize-field,
.ama-product-customizer .product-customize-wrap,
.ama-product-customizer [class*="upload-design"],
.ama-product-customizer [class*="custom-text"],
.ama-product-customizer [class*="customize-field"] {
	width:     100% !important;
	max-width: 100% !important;
}

/* ── Fancy Product Designer, WP Product Configurator, Zakeke ────────────── */
.ama-product-customizer .fpd-container,
.ama-product-customizer .fpd-main-wrapper,
.ama-product-customizer .wppc-product-configurator,
.ama-product-customizer .zakeke-product-customizer,
.ama-product-customizer [class*="customizer"],
.ama-product-customizer [class*="configurator"],
.ama-product-customizer [class*="designer"],
.ama-product-customizer [class*="product-text"],
.ama-product-customizer [class*="product_text"],
.ama-product-customizer [class*="input-field"],
.ama-product-customizer [class*="addon"] {
	width:     100% !important;
	max-width: 100% !important;
}

/* ── Media elements ─────────────────────────────────────────────────────── */
.ama-product-customizer iframe,
.ama-product-customizer canvas,
.ama-product-customizer table,
.ama-product-customizer img {
	width:     100% !important;
	max-width: 100% !important;
}

/* ── Form fields ─────────────────────────────────────────────────────────── */
.ama-product-customizer input[type="text"],
.ama-product-customizer input[type="number"],
.ama-product-customizer input[type="email"],
.ama-product-customizer input[type="file"],
.ama-product-customizer textarea,
.ama-product-customizer select {
	width:     100% !important;
	max-width: 100% !important;
}

/* ── Spacing between customizer option rows ──────────────────────────────── */
.ama-product-customizer .wcpc-field,
.ama-product-customizer .wc-pao-addon-wrap,
.ama-product-customizer .product-customize-field {
	margin-bottom: 1rem !important;
}

/*
 * Safety net: hide the plugin's fallback render if it still tries to output
 * at the bottom-right of the page (outside .ama-product-summary).
 */
.woocommerce div.product .ama-product-customizer ~ .woocommerce-product-details__customizer,
body.single-product > .wc-product-customizer:not(.ama-product-summary .ama-product-customizer *),
body.single-product > .wcpc-product-customize:not(.ama-product-summary *),
body.single-product > .woocommerce-product-addons:not(.ama-product-summary *) {
	display: none !important;
}

/* =========================================================================
   AMA Theme — Sticky Add-to-Cart Bar + Complete Bug Fixes (v9)
   ========================================================================= */

/* ── Sticky ATC Bar: Full CSS (was MISSING — root cause of duplicate box) ── */
/*
 * The sticky bar had NO CSS at all. woocommerce_template_single_add_to_cart()
 * inside it rendered as an unstyled inline block visible at the bottom-left.
 * Now the bar is properly positioned, hidden by default, and revealed by JS.
 */
.ama-sticky-atc {
	position:   fixed;
	bottom:     0;
	left:       0;
	right:      0;
	z-index:    9990;
	background: #fff;
	border-top: 2px solid #f1f5f9;
	box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
	transform:  translateY(100%);          /* hidden off-screen by default */
	transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
	will-change: transform;
}
/* JS adds .is-visible to show it */
.ama-sticky-atc.is-visible {
	transform: translateY(0);
}
.ama-sticky-atc__inner {
	display:     flex;
	align-items: center;
	gap:         16px;
	max-width:   1200px;
	margin:      0 auto;
	padding:     12px 20px;
}
.ama-sticky-atc__thumb {
	width:         52px;
	height:        52px;
	object-fit:    cover;
	border-radius: 6px;
	flex-shrink:   0;
	border:        1px solid #f1f5f9;
}
.ama-sticky-atc__info {
	flex:          1 1 auto;
	min-width:     0;
	display:       flex;
	flex-direction: column;
	gap:           2px;
}
.ama-sticky-atc__title {
	font-weight:     800;
	font-size:       13px;
	color:           #222;
	white-space:     nowrap;
	overflow:        hidden;
	text-overflow:   ellipsis;
}
.ama-sticky-atc__price {
	font-weight: 700;
	font-size:   13px;
	color:       #FFB800;
}
.ama-sticky-atc__form {
	flex-shrink: 0;
}
/* The new custom AJAX button */
.ama-sticky-atc__btn {
	display:         inline-flex;
	align-items:     center;
	gap:             8px;
	padding:         0 24px;
	height:          44px;
	background:      #222;
	color:           #fff;
	border:          none;
	border-radius:   4px;
	font-weight:     800;
	font-size:       12px;
	letter-spacing:  0.15em;
	text-transform:  uppercase;
	cursor:          pointer;
	transition:      background 0.2s;
	white-space:     nowrap;
}
.ama-sticky-atc__btn:hover { background: #333; }
.ama-sticky-atc__btn--oos {
	background: #f1f5f9;
	color:      #94a3b8;
	cursor:     not-allowed;
}
.ama-sticky-atc__close {
	flex-shrink:  0;
	width:        32px;
	height:       32px;
	border:       none;
	background:   transparent;
	color:        #94a3b8;
	font-size:    20px;
	cursor:       pointer;
	border-radius: 50%;
	display:      flex;
	align-items:  center;
	justify-content: center;
	transition:   background 0.2s;
}
.ama-sticky-atc__close:hover { background: #f1f5f9; color: #222; }

/* Hide any residual WC form output inside the sticky bar (safety net) */
.ama-sticky-atc form.cart,
.ama-sticky-atc .variations_form,
.ama-sticky-atc .woocommerce-variation-add-to-cart,
.ama-sticky-atc table.variations,
.ama-sticky-atc .reset_variations,
.ama-sticky-atc .single_variation_wrap,
.ama-sticky-atc .woocommerce-variation {
	display: none !important;
}

@media (max-width: 600px) {
	.ama-sticky-atc__thumb,
	.ama-sticky-atc__info { display: none; }
	.ama-sticky-atc__inner { justify-content: center; }
	.ama-sticky-atc__btn   { width: 100%; justify-content: center; }
}

/* ── Fix 2: Product Customizer — suppress bottom-right fallback render ─────── */
/*
 * Some customizer plugins hook into woocommerce_after_single_product as a
 * fallback. Since we moved the customizer inside .ama-product-customizer
 * (within the summary panel), any output outside that div must be hidden.
 */
#ama-single-product > .woocommerce-product-customizer,
#ama-single-product > .wc-product-configurator,
#ama-single-product > [class*="customizer"]:not(.ama-product-customizer),
#ama-single-product > [class*="configurator"]:not(.ama-product-customizer),
#ama-single-product > [id*="customizer"]:not(#ama-single-product .ama-product-customizer *),
#ama-single-product > [id*="configurator"]:not(#ama-single-product .ama-product-customizer *) {
	display: none !important;
}

/* ── Fix 3 extra: Force color swatches visible even with plugin conflicts ─── */
/*
 * Some swatch plugins set opacity:0 or visibility:hidden on unselected swatches
 * hoping to control display themselves, then fail to make them visible again.
 */
.ama-product-summary [class*="swatch"],
.ama-product-summary [class*="color-option"],
.ama-product-summary [data-value][data-attribute_name] {
	opacity:    1 !important;
	visibility: visible !important;
	display:    inline-flex !important;
}

/* ── Fix: Points & Rewards plugin-specific width + position ─────────────── */
/*
 * Ensure the .ama-reward-points-notice is always full-width below the price.
 * Also force-hide any Points & Rewards output that leaked into the customizer
 * form (belt-and-suspenders alongside the PHP hook removal in FIX 1).
 */
.ama-reward-points-notice {
	width:     100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Hide any Points & Rewards notice inside the customizer form.
 * This is a CSS safety net for the PHP hook removal in FIX 1.
 * Known plugin output classes across versions: */
.ama-product-customizer .wc_points_rewards_actions,
.ama-product-customizer .woocommerce-message.wc-points-rewards,
.ama-product-customizer p[class*="points-reward"],
.ama-product-customizer p[class*="points_reward"],
.ama-product-customizer [class*="earn-points"],
.ama-product-customizer [class*="points-earned"],
.ama-product-customizer [class*="points_earned"],
.ama-product-customizer [class*="reward-points"],
.ama-product-customizer [class*="reward_points"] {
	display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Fix: PCP Product Customizer Section – Full Width
   Forces every .pcp-customizer-section element (and children) to span the
   full width of the .ama-product-customizer wrapper. Without this, the PCP
   plugin's Upload-Your-Design and Add-Custom-Text panels collapse to their
   own intrinsic widths, causing right-side overflow or a shrunk layout.
   ═══════════════════════════════════════════════════════════════════════════ */
.pcp-customizer-section,
.ama-product-customizer .pcp-customizer-section,
.pcp-customizer-section > *,
.ama-product-customizer .pcp-customizer-section > * {
	width:     100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Also target common child wrappers that PCP plugins nest inside the section */
.pcp-customizer-section .pcp-upload-wrap,
.pcp-customizer-section .pcp-text-wrap,
.pcp-customizer-section .pcp-preview-wrap,
.pcp-customizer-section .pcp-field,
.pcp-customizer-section input[type="text"],
.pcp-customizer-section textarea,
.pcp-customizer-section .pcp-drop-zone,
.pcp-customizer-section [class*="pcp-"] {
	width:     100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Fix: WPLoyalty Earn-Points Message – Positioning & Styling
   WPLoyalty hooks its earn-message onto woocommerce_before_add_to_cart_button
   which fires INSIDE the .ama-product-customizer <form>. The theme intercepts
   that callback (see class-woocommerce-hooks.php FIX-WPLOYALTY) and re-renders
   it via .ama-wployalty-notice just below the price row in summary.php.
   The rules below:
     1. Style the theme-rendered .ama-wployalty-notice wrapper.
     2. Suppress any WPLoyalty output that leaks into the <form> as a CSS
        safety net (belt-and-suspenders alongside the PHP hook removal).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Theme-rendered notice (matches .ama-reward-points-notice aesthetic) ── */
.ama-wployalty-notice {
	display:        flex !important;
	align-items:    center !important;
	gap:            8px !important;
	padding:        10px 14px !important;
	border-radius:  6px !important;
	background:     rgba(255, 184, 0, 0.08) !important;
	border:         1px solid rgba(255, 184, 0, 0.25) !important;
	font-size:      12px !important;
	font-weight:    700 !important;
	color:          #92610a !important;
	letter-spacing: 0.02em !important;
	line-height:    1.4 !important;
	margin-top:     4px !important;
	width:          100% !important;
	max-width:      100% !important;
	box-sizing:     border-box !important;
}
.ama-wployalty-notice::before {
	content:     "⭐";
	font-size:   14px !important;
	flex-shrink: 0 !important;
}
.ama-wployalty-notice p,
.ama-wployalty-notice span,
.ama-wployalty-notice a {
	margin:  0 !important;
	padding: 0 !important;
	color:   inherit !important;
	font:    inherit !important;
}
.ama-wployalty-notice {
	width:      100% !important;
	max-width:  100% !important;
	box-sizing: border-box !important;
}

/* =============================================================================
   SHORTCODE PRODUCT GRIDS — [ama_products] and its convenience wrappers
   ([ama_featured_products], [ama_sale_products], [ama_best_selling_products],
   [ama_top_rated_products], [ama_recent_products], [ama_product_attribute],
   [ama_product_category]). Cards inside use the same .ama-product-card
   design as the shop grid and homepage sections — only the column count is
   configurable per shortcode instance, via the columns="" attribute.
   ============================================================================= */
.ama-shortcode-products {
	--ama-sc-cols: 4;
	display:               grid;
	grid-template-columns: repeat(var(--ama-sc-cols), 1fr);
	gap:                   24px;
	margin:                0 0 24px;
	padding:               0;
	list-style:            none;
}

.ama-shortcode-products .ama-product-card {
	height: 100%;
}

.ama-shortcode-products--cols-1 { --ama-sc-cols: 1; }
.ama-shortcode-products--cols-2 { --ama-sc-cols: 2; }
.ama-shortcode-products--cols-3 { --ama-sc-cols: 3; }
.ama-shortcode-products--cols-4 { --ama-sc-cols: 4; }
.ama-shortcode-products--cols-5 { --ama-sc-cols: 5; }
.ama-shortcode-products--cols-6 { --ama-sc-cols: 6; }

/* Tablet: cap at 3 columns so a 4–6 column desktop grid stays readable;
   smaller intentional column counts (1–2) are left alone. */
@media (max-width: 1024px) {
	.ama-shortcode-products { gap: 16px; }

	.ama-shortcode-products--cols-3,
	.ama-shortcode-products--cols-4,
	.ama-shortcode-products--cols-5,
	.ama-shortcode-products--cols-6 {
		--ama-sc-cols: 3;
	}
}

/* Mobile: cap at 2 columns, same rule as everywhere else in the shop. */
@media (max-width: 640px) {
	.ama-shortcode-products { gap: 12px; }

	.ama-shortcode-products--cols-2,
	.ama-shortcode-products--cols-3,
	.ama-shortcode-products--cols-4,
	.ama-shortcode-products--cols-5,
	.ama-shortcode-products--cols-6 {
		--ama-sc-cols: 2;
	}
}

/* No-results message reuses the same grid gutter so it doesn't look stray
   when this shortcode is dropped directly inside Elementor. */
.ama-shortcode-products + .ama-no-content,
p.ama-no-content {
	text-align: center;
	padding:    32px 0;
	color:      #94a3b8;
	font-weight: 700;
}

/* =============================================================================
   SHORTCODE CATEGORY GRIDS — [ama_categories] / [ama_product_categories] /
   [ama_product_category]. Same visual language as the homepage "Shop by
   Category" circles (template-parts/home/categories.php): a soft grey
   circle framing the category thumbnail, bold uppercase italic name below.
   columns="" controls the grid, same --ama-sc-cols pattern as the product
   shortcode grid above; style="list" switches to a compact horizontal row
   layout instead.
   ============================================================================= */
.ama-categories {
	--ama-sc-cols: 3;
	display:               grid;
	grid-template-columns: repeat(var(--ama-sc-cols), 1fr);
	gap:                   32px 24px;
	margin:                0 0 24px;
	padding:               0;
	list-style:            none;
}

.ama-categories--cols-1 { --ama-sc-cols: 1; }
.ama-categories--cols-2 { --ama-sc-cols: 2; }
.ama-categories--cols-3 { --ama-sc-cols: 3; }
.ama-categories--cols-4 { --ama-sc-cols: 4; }
.ama-categories--cols-5 { --ama-sc-cols: 5; }
.ama-categories--cols-6 { --ama-sc-cols: 6; }

.ama-categories__item {
	text-align: center;
}

.ama-categories__link {
	display:         flex;
	flex-direction:  column;
	align-items:     center;
	gap:             14px;
	text-decoration: none;
}

.ama-categories__image {
	width:           100%;
	aspect-ratio:    1 / 1;
	border-radius:   9999px;
	background:      #F2F2F2;
	box-shadow:      0 1px 3px rgba(0, 0, 0, 0.06);
	display:         flex;
	align-items:     center;
	justify-content: center;
	padding:         18%;
	overflow:        hidden;
	transition:      box-shadow 0.3s ease, transform 0.3s ease;
}

.ama-categories__link:hover .ama-categories__image {
	transform:  scale(1.04);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.ama-categories__image img {
	max-width:      100%;
	max-height:     100%;
	width:          auto;
	height:         auto;
	object-fit:     contain;
	mix-blend-mode: multiply;
	transition:     transform 0.5s ease;
}

.ama-categories__link:hover .ama-categories__image img {
	transform: scale(1.08);
}

.ama-categories__name {
	margin:         0;
	font-size:      16px;
	font-weight:    900;
	line-height:    1.2;
	color:          #222222;
	text-transform: uppercase;
	font-style:     italic;
	letter-spacing: -0.02em;
	transition:     color 0.2s ease;
}

.ama-categories__link:hover .ama-categories__name {
	color: #FFB800;
}

.ama-categories__count {
	display:     block;
	margin-top:  2px;
	font-size:   12px;
	font-weight: 600;
	color:       #94a3b8;
}

/* style="list" — compact horizontal rows instead of circles, useful in a
   sidebar or a narrow Elementor column. columns="" is ignored in this mode. */
.ama-categories--list {
	display:        flex;
	flex-direction: column;
	gap:            4px;
}

.ama-categories--list .ama-categories__link {
	flex-direction: row;
	align-items:    center;
	justify-content: flex-start;
	gap:            14px;
	padding:        10px 12px;
	border-radius:  8px;
	transition:     background-color 0.2s ease;
}

.ama-categories--list .ama-categories__link:hover {
	background-color: #F8F9FA;
}

.ama-categories--list .ama-categories__image {
	width:    56px;
	flex:     0 0 56px;
	padding:  10px;
}

.ama-categories--list .ama-categories__link:hover .ama-categories__image {
	transform:  none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ama-categories--list .ama-categories__info {
	text-align: left;
}

@media (max-width: 1024px) {
	.ama-categories { gap: 24px 16px; }

	.ama-categories--cols-4,
	.ama-categories--cols-5,
	.ama-categories--cols-6 {
		--ama-sc-cols: 3;
	}
}

@media (max-width: 640px) {
	.ama-categories { gap: 20px 12px; }

	.ama-categories--cols-3,
	.ama-categories--cols-4,
	.ama-categories--cols-5,
	.ama-categories--cols-6 {
		--ama-sc-cols: 2;
	}

	.ama-categories__name { font-size: 13px; }
}

/* ── CSS safety net: hide WPLoyalty output that leaks inside the form ───── */
.ama-product-customizer .wpl-earn-message,
.ama-product-customizer .wpl-points-message,
.ama-product-customizer .wpl-loyalty-message,
.ama-product-customizer [class*="wpl-earn"],
.ama-product-customizer [class*="wpl-points"],
.ama-product-customizer [class*="wpl-loyalty"],
.ama-product-customizer [class*="wployalty"],
.ama-product-customizer [class*="WPLoyalty"] {
	display: none !important;
}


/* =============================================================================
   HOME PAGE — 4 Product Sections (Featured, New Arrivals, On Sale, Best Sellers)
   ============================================================================= */

/* ── Section Grid ─────────────────────────────────────────────────────────── */
.ama-home-product-grid {
	display:               grid;
	grid-template-columns: repeat(4, 1fr);
	gap:                   24px;
}

@media (max-width: 1024px) {
	.ama-home-product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 640px) {
	.ama-home-product-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
}

/* Ensure each card in the home grid fills its cell */
.ama-home-product-grid .ama-product-card {
	height: 100%;
}

/* No-products message */
.ama-no-products-msg {
	grid-column: 1 / -1;
	text-align:  center;
	padding:     48px 0;
	color:       #94a3b8;
	font-weight: 700;
}

/* ── Section visual separators ────────────────────────────────────────────── */
.ama-home-product-section:first-of-type {
	border-top: none;
}

/* ── Section heading hover accent ────────────────────────────────────────── */
.ama-home-product-section h2 {
	position:   relative;
	display:    inline-block;
}

/* ── "View All" link hover ────────────────────────────────────────────────── */
/* Scoped with :not() so this doesn't also repaint the Buy Now / product-card
   buttons inside the same section — those manage their own hover color via
   .ama-card-buy-btn:hover and must not be overridden here. */
.ama-home-product-section a:hover:not(.ama-card-buy-btn):not(.ama-buy-now) {
	color: #FFB800;
}

/* ── Single product page — safety net (PHP wc_is_loop() is the primary fix) ─ */
/* PHP already blocks .ama-product-card on the main product wrapper.            */
/* This CSS guard handles any edge-case where the class still lands on it.      */
body.single-product div.product.ama-product-card:hover {
	box-shadow: none !important;
	transform:  none !important;
}

body.single-product div.product.ama-product-card {
	overflow:        visible !important;
	border:          none !important;
	height:          auto !important;
	display:         block !important;
	flex-direction:  unset !important;
}

body.single-product div.product.ama-product-card:hover .ama-card-img {
	transform: scale(1) !important;
}

body.single-product div.product.ama-product-card:hover .ama-card-hover-actions {
	bottom: -72px !important;
}

/* Related / upsell loop cards are <li> — hover works normally. */

/* ── Buy Now anchor — global underline removal ─────────────────────────────── */
a.ama-buy-now,
a.ama-card-buy-btn {
	text-decoration: none !important;
}
a.ama-buy-now:hover,
a.ama-card-buy-btn:hover {
	text-decoration: none !important;
}

/* =============================================================================
   PRODUCT REVIEWS — "Write a Review" + "Customer Reviews" summary
   (woocommerce/single-product-reviews.php)
   ============================================================================= */

.ama-reviews-wrap {
	max-width: 100%;
}

.ama-reviews-grid {
	display:               grid;
	grid-template-columns: 1fr;
	gap:                    32px;
}
@media (min-width: 768px) {
	.ama-reviews-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ---- Write a Review card ---- */
.ama-write-review-card {
	background:    #ffffff;
	border:        1px solid #f1f5f9;
	border-radius: 12px;
	padding:       28px;
}
.ama-write-review-title {
	font-size:     18px;
	font-weight:   900;
	color:         #222222;
	margin:        0 0 20px;
}
.ama-write-review-form .comment-notes,
.ama-write-review-form .logged-in-as {
	display: none;
}
.ama-form-field {
	margin-bottom: 20px;
}
.ama-form-label {
	display:        block;
	font-size:      12px;
	font-weight:    800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color:          #222222;
	margin-bottom:  10px;
}
.ama-form-textarea,
.ama-write-review-form input[type="text"],
.ama-write-review-form input[type="email"],
.ama-write-review-form input[type="url"] {
	width:         100%;
	border:        2px solid #f1f5f9;
	border-radius: 8px;
	padding:       12px 16px;
	font-family:   inherit;
	font-size:     14px;
	color:         #222222;
	transition:    border-color 0.2s;
}
.ama-form-textarea:focus,
.ama-write-review-form input:focus {
	outline:      none;
	border-color: #222222;
}
.ama-form-file {
	width:            100%;
	border:           2px dashed #e2e8f0;
	border-radius:    8px;
	padding:          20px;
	font-size:        13px;
	background-color: #fafafa;
	cursor:           pointer;
}
.ama-form-hint {
	font-size:  11px;
	color:      #94a3b8;
	margin-top: 6px;
}
.ama-review-submit-btn {
	background:     #FFB800;
	color:          #222222;
	border:         none;
	border-radius:  8px;
	padding:        14px 32px;
	font-family:    inherit;
	font-size:      11px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	cursor:         pointer;
	transition:     background-color 0.2s, color 0.2s;
}
.ama-review-submit-btn:hover {
	background: #222222;
	color:      #ffffff;
}

/* ---- CSS-only 5-star rating input (no JS required) ---- */
.ama-star-rating-input {
	display:         flex;
	flex-direction:  row-reverse;
	justify-content: flex-end;
	gap:             4px;
}
.ama-star-rating-input input {
	position:       absolute;
	opacity:        0;
	width:          0;
	height:         0;
	pointer-events: none;
}
.ama-star-rating-input label {
	cursor:      pointer;
	font-size:   30px;
	line-height: 1;
	color:       #e2e8f0;
	transition:  color 0.15s;
}
.ama-star-rating-input label:hover,
.ama-star-rating-input label:hover ~ label,
.ama-star-rating-input input:checked ~ label {
	color: #FFB800;
}

/* ---- Star display (read-only, existing reviews + summary) ---- */
.ama-review-stars span {
	color:     #E2E8F0;
	font-size: 14px;
}
.ama-review-stars span.is-filled {
	color: #FFB800;
}
.ama-review-stars--lg span {
	font-size: 16px;
}

/* ---- Existing reviews list ---- */
.ama-reviews-list {
	margin-bottom: 40px;
}
.ama-review-item {
	display:       flex;
	gap:           16px;
	padding:       20px 0;
	border-bottom: 1px solid #f1f5f9;
}
.ama-review-item__avatar img {
	border-radius: 50%;
	display:       block;
}
.ama-review-item__body {
	flex:     1;
	min-width: 0;
}
.ama-review-item__meta {
	display:       flex;
	align-items:   center;
	gap:           10px;
	flex-wrap:     wrap;
	margin-bottom: 4px;
}
.ama-review-item__author {
	font-size: 14px;
	color:     #222222;
}
.ama-review-item__date {
	font-size: 12px;
	color:     #94a3b8;
}
.ama-review-item__text {
	font-size:   14px;
	color:       #475569;
	line-height: 1.6;
	margin:      0 0 10px;
}
.ama-review-item__photo {
	width:         64px;
	height:        64px;
	object-fit:    cover;
	border-radius: 8px;
	display:       block;
}

/* ---- Customer Reviews summary card ---- */
.ama-reviews-summary-card {
	background:    #f8fafc;
	border-radius: 12px;
	padding:       28px;
}
.ama-reviews-summary-title {
	font-size:   16px;
	font-weight: 900;
	color:       #222222;
	margin:      0 0 20px;
}
.ama-reviews-summary-top {
	display:       flex;
	align-items:   baseline;
	gap:           12px;
	margin-bottom: 16px;
}
.ama-reviews-summary-avg {
	font-size:   40px;
	font-weight: 900;
	color:       #222222;
	line-height: 1;
}
.ama-reviews-summary-count {
	display:    block;
	font-size:  12px;
	color:      #94a3b8;
	margin-top: 4px;
}
.ama-rating-bar-row {
	display:       flex;
	align-items:   center;
	gap:           8px;
	margin-bottom: 6px;
	font-size:     12px;
	color:         #64748b;
}
.ama-rating-bar-label {
	width:      28px;
	flex-shrink: 0;
}
.ama-rating-bar-track {
	flex:          1;
	height:        6px;
	background:    #e2e8f0;
	border-radius: 3px;
	overflow:      hidden;
}
.ama-rating-bar-fill {
	height:     100%;
	background: #FFB800;
}
.ama-rating-bar-pct {
	width:      36px;
	flex-shrink: 0;
	text-align: right;
}

/* ---- "No Reviews Yet" empty state ---- */
.ama-no-reviews {
	text-align: center;
	padding:    24px 0;
}
.ama-no-reviews__icon {
	width:            48px;
	height:           48px;
	border-radius:    50%;
	background:       #eff6ff;
	display:          flex;
	align-items:      center;
	justify-content:  center;
	margin:           0 auto 12px;
}
.ama-no-reviews__title {
	font-weight: 800;
	font-size:   14px;
	color:       #222222;
	margin:      0 0 4px;
}
.ama-no-reviews__text {
	font-size: 13px;
	color:     #94a3b8;
	margin:    0;
}
.ama-reviews-closed {
	color: #94a3b8;
}

/* =============================================================================
   SHARE + WISHLIST — Single Product Page
   Hand-written CSS (not Tailwind utility classes) on purpose: this theme
   ships a pre-built, static tailwind-compiled.css that is not rebuilt at
   runtime, so any Tailwind class not already used elsewhere in the theme
   silently has no effect. Writing real CSS here guarantees it renders
   correctly regardless of what did/didn't get compiled.
   ============================================================================= */

.ama-share-wishlist-row {
	display:         flex;
	align-items:     stretch;
	gap:             12px;
	margin-top:      12px;
}

@media (max-width: 360px) {
	.ama-share-wishlist-row {
		flex-direction: column;
	}
}

/* Shared "outline" style for both Share and Add to Wishlist buttons */
.ama-outline-btn {
	flex:            1 1 0;
	display:         flex;
	align-items:     center;
	justify-content: center;
	gap:             8px;
	height:          48px;
	padding:         0 12px;
	background:      #ffffff;
	border:          2px solid #222222;
	border-radius:   4px;
	color:           #222222;
	font-weight:     900;
	font-size:       11px;
	text-transform:  uppercase;
	letter-spacing:  0.15em;
	line-height:     1;
	cursor:          pointer;
	white-space:     nowrap;
	transition:      background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ama-outline-btn:hover,
.ama-outline-btn:focus-visible {
	background: #222222;
	color:      #ffffff;
	border-color: #222222;
}

.ama-outline-btn svg {
	flex-shrink: 0;
}

/* Wishlist heart fill toggles red when active — button chrome stays the
   same "outline" style as Share for visual consistency. */
.ama-wishlist-heart.is-active,
.ama-wishlist-btn.is-active .ama-wishlist-heart {
	color: #ef4444;
}

@media (max-width: 400px) {
	.ama-outline-btn {
		font-size: 10px;
		padding:   0 8px;
	}
}

/* ---- Share modal ---- */
.ama-share-modal-overlay {
	position:         fixed;
	inset:            0;
	/* Above mini-cart (150) and quick-view (200), but below the toast
	   notification stack (300) so a "Link copied!" toast fired while this
	   modal is open still shows on top of it, not hidden behind it. */
	z-index:          250;
	display:          flex;
	align-items:      center;
	justify-content:  center;
	padding:          16px;
	background:       rgba(0, 0, 0, 0.5);
}

.ama-share-modal {
	width:            100%;
	max-width:        420px;
	background:       #ffffff;
	border-radius:    10px;
	box-shadow:       0 20px 60px rgba(0, 0, 0, 0.3);
	padding:          24px;
}

.ama-share-modal__head {
	display:          flex;
	align-items:      center;
	justify-content:  space-between;
	margin-bottom:    20px;
}

.ama-share-modal__head h3 {
	margin:      0;
	font-size:   16px;
	font-weight: 900;
	color:       #222222;
}

.ama-share-modal__close {
	width:            32px;
	height:           32px;
	flex-shrink:      0;
	display:          flex;
	align-items:      center;
	justify-content:  center;
	border-radius:    50%;
	background:       transparent;
	border:           none;
	color:            #222222;
	cursor:           pointer;
	transition:       background-color 0.2s ease;
}

.ama-share-modal__close:hover {
	background: #f1f5f9;
}

.ama-share-icons {
	display:       flex;
	align-items:   center;
	flex-wrap:     wrap;
	gap:           12px;
	margin-bottom: 24px;
}

.ama-share-icon {
	width:            44px;
	height:           44px;
	flex-shrink:      0;
	display:          flex;
	align-items:      center;
	justify-content:  center;
	border-radius:    50%;
	border:           none;
	cursor:           pointer;
	text-decoration:  none;
	transition:       transform 0.15s ease;
}

.ama-share-icon:hover {
	transform: scale(1.1);
}

.ama-share-icon--muted {
	background: #f1f5f9;
	color:      #475569;
}

.ama-share-link-label {
	display:         block;
	font-size:       10px;
	font-weight:     900;
	text-transform:  uppercase;
	letter-spacing:  0.15em;
	color:           #64748b;
	margin-bottom:   8px;
}

.ama-share-link-row {
	display:      flex;
	align-items:  center;
	gap:          8px;
}

.ama-share-link-input {
	flex:            1 1 auto;
	min-width:       0;
	height:          44px;
	padding:         0 12px;
	font-size:       12px;
	font-weight:     700;
	color:           #475569;
	background:      #f8fafc;
	border:          1px solid #e2e8f0;
	border-radius:   6px;
	white-space:     nowrap;
	overflow:        hidden;
	text-overflow:   ellipsis;
}

.ama-share-copy-btn {
	flex-shrink:     0;
	height:          44px;
	padding:         0 18px;
	background:      #222222;
	color:           #ffffff;
	border:          none;
	border-radius:   6px;
	font-weight:     900;
	font-size:       11px;
	text-transform:  uppercase;
	letter-spacing:  0.1em;
	cursor:          pointer;
	transition:      background-color 0.2s ease;
}

.ama-share-copy-btn:hover {
	background: #000000;
}

.ama-share-copy-btn.is-copied {
	background: #22c55e;
}
