/*!
 * AMA Theme — Global CSS Foundation
 * Theme: AMA
 * Developer: Arian Shakh Adnan
 * Text Domain: ama-theme
 * Version: 1.0.0
 *
 * Table of Contents:
 *  1. CSS Custom Properties
 *  2. Base Styles
 *  3. Typography Utilities
 *  4. Button Styles
 *  5. Product Card Styles
 *  6. Form Input Styles
 *  7. Section Styles
 *  8. Badge / Pill Styles
 *  9. Outline Text Effects
 * 10. Animations & Skeleton
 * 11. Mobile Bottom Nav Spacing
 * 12. Breadcrumb
 * 13. No Scrollbar
 * 14. Overlay
 * 15. Trust Badge Bar
 * 16. Responsive Utilities
 * 17. Print Styles
 * 18. Alpine.js Utilities
 */

/* =============================================================================
   18. ALPINE.JS UTILITIES
   Hides any element with x-cloak until Alpine has initialized and evaluated
   its x-show/x-if — without this rule, x-cloak does nothing and elements
   that should start hidden (modals, dropdowns) flash visible for a frame
   on every page load.
   ============================================================================= */

[x-cloak] {
	display: none !important;
}


/* =============================================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================================= */

:root {
	--ama-primary:       #FFB800;
	--ama-primary-hover: #e6a500;
	--ama-ink:           #222222;
	--ama-white:         #FFFFFF;
	--ama-bg-muted:      #f8fafc;
	--ama-bg-alt:        #F8F9FA;
	--ama-border:        #f1f5f9;
	--ama-border-muted:  #E2E8F0;
	--ama-text-muted:    #64748B;
	--ama-text-light:    #94A3B8;
	--ama-radius-card:   20px;
	--ama-radius-btn:    6px;
	--ama-shadow-card:   0 10px 20px rgba(0, 0, 0, 0.05);
	--ama-shadow-lg:     0 20px 40px rgba(0, 0, 0, 0.08);
	--ama-transition:    all 0.3s ease;
	--ama-font:          'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* =============================================================================
   2. BASE STYLES
   ============================================================================= */

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	font-family:              var(--ama-font);
	color:                    var(--ama-ink);
	background-color:         var(--ama-white);
	-webkit-font-smoothing:   antialiased;
	-moz-osx-font-smoothing:  grayscale;
	text-rendering:           optimizeLegibility;
	line-height:              1.6;
	margin:                   0;
	padding:                  0;
	overflow-x:               hidden;
}

img {
	max-width: 100%;
	height:    auto;
	display:   block;
}

a {
	color:           inherit;
	text-decoration: none;
	transition:      var(--ama-transition);
}

/* Higher specificity (element + pseudo-class) than any plain `a{}` reset —
   ours above, or Tailwind Preflight's — so a previously VISITED link can
   never fall back to the browser's default blue/underline anywhere on the
   site, on any current or future page, without having to special-case
   every button individually. Does not touch :hover/:focus, so deliberate
   underline-on-hover effects elsewhere (e.g. checkout terms link) still work. */
a:link,
a:visited {
	text-decoration: none;
}

/* =============================================================================
   3. TYPOGRAPHY UTILITIES
   ============================================================================= */

.ama-heading {
	font-weight:    900;
	text-transform: uppercase;
	font-style:     italic;
	letter-spacing: -0.03em;
	line-height:    1.1;
}

.ama-subheading {
	font-size:      12px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color:          var(--ama-primary);
	line-height:    1.4;
}

.ama-label {
	font-size:      10px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color:          var(--ama-text-light);
	line-height:    1.4;
}

/* =============================================================================
   4. BUTTON STYLES
   ============================================================================= */

/* Base button reset */
.ama-btn-primary,
.ama-btn-dark,
.ama-btn-outline,
.ama-btn-pill {
	display:         inline-flex;
	align-items:     center;
	justify-content: center;
	gap:             8px;
	height:          56px;
	padding:         0 32px;
	font-family:     var(--ama-font);
	font-size:       12px;
	font-weight:     900;
	text-transform:  uppercase;
	letter-spacing:  0.2em;
	border-radius:   var(--ama-radius-btn);
	border:          2px solid transparent;
	cursor:          pointer;
	transition:      var(--ama-transition);
	white-space:     nowrap;
	text-decoration: none;
	line-height:     1;
}

/* Primary Button */
.ama-btn-primary {
	background-color: var(--ama-primary);
	color:            var(--ama-ink);
	border-color:     var(--ama-primary);
}

.ama-btn-primary:hover,
.ama-btn-primary:focus-visible {
	background-color: var(--ama-ink);
	border-color:     var(--ama-ink);
	color:            var(--ama-white);
}

/* Dark Button */
.ama-btn-dark {
	background-color: var(--ama-ink);
	color:            var(--ama-white);
	border-color:     var(--ama-ink);
}

.ama-btn-dark:hover,
.ama-btn-dark:focus-visible {
	background-color: var(--ama-primary);
	border-color:     var(--ama-primary);
	color:            var(--ama-ink);
}

/* Outline Button */
.ama-btn-outline {
	background-color: transparent;
	color:            var(--ama-ink);
	border-color:     var(--ama-ink);
}

.ama-btn-outline:hover,
.ama-btn-outline:focus-visible {
	background-color: var(--ama-ink);
	color:            var(--ama-white);
}

/* Small Button */
.ama-btn-sm {
	height:        40px;
	padding:       0 16px;
	font-size:     10px;
	border-radius: 10px;
}

/* Pill Button */
.ama-btn-pill {
	background-color: var(--ama-primary);
	color:            var(--ama-ink);
	border-color:     var(--ama-primary);
	border-radius:    9999px;
}

.ama-btn-pill:hover,
.ama-btn-pill:focus-visible {
	background-color: var(--ama-ink);
	border-color:     var(--ama-ink);
	color:            var(--ama-white);
}

/* Loading state */
.ama-btn-primary.loading,
.ama-btn-dark.loading,
.ama-btn-outline.loading,
.ama-btn-pill.loading {
	opacity:        0.7;
	pointer-events: none;
	cursor:         not-allowed;
}

/* ── Add-to-Cart instant success state ───────────────────────────────────
   Applied immediately on click (before AJAX completes) so the button
   feels instant.  pointer-events:none blocks accidental double-adds
   during the 1.5 s success flash without disabling the element.
   ──────────────────────────────────────────────────────────────────────── */
.ama-btn-added,
.ama-card-action-btn.ama-btn-added,
.ama-summary-add-cart.ama-btn-added {
	background:     #16a34a !important;
	border-color:   #16a34a !important;
	color:          #ffffff !important;
	pointer-events: none;
	transition:     background 0.15s ease, border-color 0.15s ease;
}

/* =============================================================================
   5. PRODUCT CARD STYLES
   ============================================================================= */

/* =============================================================================
   PRODUCT CARD — Legacy class stubs (kept for plugin compatibility only)
   All real card styles live in ama-shop.css .ama-product-card / .ama-card-*
   ============================================================================= */

/* Legacy image wrapper — not used by product-card.php v2 */
.ama-product-card__image {
	position:    relative;
	aspect-ratio: 1;
	overflow:    hidden;
	background:  var(--ama-bg-muted);
}

.ama-product-card__image img {
	width:      100%;
	height:     100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

/* Legacy body / badge / wishlist / actions stubs */
.ama-product-card__body   { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.ama-product-card__badge  { position: absolute; top: 16px; left: 16px; z-index: 2; }
.ama-product-card__wishlist { position: absolute; top: 15px; right: 15px; z-index: 2; }
.ama-product-card__actions  { position: absolute; left: 0; right: 0; bottom: -70px; display: flex; gap: 10px; transition: bottom 0.3s ease; z-index: 3; }
.ama-product-card:hover .ama-product-card__actions { bottom: 0; }
.ama-product-card__title  { font-size: 14px; font-weight: 900; text-transform: uppercase; color: var(--ama-ink); }
.ama-product-card__price  { font-size: 16px; font-weight: 900; color: var(--ama-primary); }
.ama-product-card__price del { font-size: 13px; color: var(--ama-text-light); }
.ama-product-card__rating { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ama-primary); }

/* =============================================================================
   6. FORM INPUT STYLES
   ============================================================================= */

.ama-input {
	width:       100%;
	background:  var(--ama-bg-muted);
	border:      1px solid var(--ama-border);
	border-radius: var(--ama-radius-btn);
	padding:     16px 20px;
	font-family: var(--ama-font);
	font-size:   14px;
	font-weight: 700;
	color:       var(--ama-ink);
	outline:     none;
	transition:  var(--ama-transition);
	appearance:  none;
}

.ama-input:focus {
	border-color:     var(--ama-primary);
	background-color: var(--ama-white);
	box-shadow:       0 0 0 3px rgba(255, 184, 0, 0.15);
}

.ama-input::placeholder {
	color:       #CBD5E1;
	font-weight: 500;
}

.ama-input-label {
	display:        block;
	font-size:      10px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color:          var(--ama-text-light);
	margin-bottom:  8px;
}

.ama-input-group {
	display:        flex;
	flex-direction: column;
	gap:            4px;
	margin-bottom:  20px;
}

.ama-input-error {
	font-size:   11px;
	font-weight: 700;
	color:       #EF4444;
	margin-top:  4px;
}

/* Select */
.ama-select {
	width:          100%;
	background:     var(--ama-bg-muted);
	border:         1px solid var(--ama-border);
	border-radius:  var(--ama-radius-btn);
	padding:        16px 20px;
	font-family:    var(--ama-font);
	font-size:      14px;
	font-weight:    700;
	color:          var(--ama-ink);
	outline:        none;
	transition:     var(--ama-transition);
	appearance:     none;
	cursor:         pointer;
	background-image:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat:   no-repeat;
	background-position: right 16px center;
	padding-right:       48px;
}

.ama-select:focus {
	border-color: var(--ama-primary);
	background-color: var(--ama-white);
}

/* Checkbox & Radio */
.ama-checkbox,
.ama-radio {
	display:     flex;
	align-items: center;
	gap:         10px;
	cursor:      pointer;
}

.ama-checkbox input[type="checkbox"],
.ama-radio input[type="radio"] {
	width:        18px;
	height:       18px;
	accent-color: var(--ama-primary);
	cursor:       pointer;
}

/* =============================================================================
   7. SECTION STYLES
   ============================================================================= */

.ama-section {
	padding: 80px 0;
}

.ama-section-lg {
	padding: 100px 0;
}

.ama-section-sm {
	padding: 48px 0;
}

.ama-section-dark {
	background-color: var(--ama-ink);
	color:            var(--ama-white);
}

.ama-section-muted {
	background-color: var(--ama-bg-muted);
}

.ama-container {
	max-width: 1280px;
	margin:    0 auto;
	padding:   0 32px;
}

@media (max-width: 768px) {
	.ama-container {
		padding: 0 20px;
	}

	.ama-section {
		padding: 60px 0;
	}

	.ama-section-lg {
		padding: 80px 0;
	}

	.ama-section-sm {
		padding: 36px 0;
	}
}

/* Section Header */
.ama-section-header {
	text-align:    center;
	margin-bottom: 64px;
}

.ama-section-header h2 {
	font-size:   clamp(32px, 5vw, 56px);
	font-weight: 900;
	font-style:  italic;
	text-transform: uppercase;
	letter-spacing: -0.03em;
	color:       var(--ama-ink);
	margin:      0 0 16px;
}

/* =============================================================================
   8. BADGE / PILL STYLES
   ============================================================================= */

.ama-badge {
	display:         inline-flex;
	align-items:     center;
	gap:             8px;
	background:      rgba(255, 184, 0, 0.2);
	border:          1px solid rgba(255, 184, 0, 0.3);
	padding:         6px 12px;
	border-radius:   9999px;
	font-size:       10px;
	font-weight:     900;
	text-transform:  uppercase;
	letter-spacing:  0.2em;
	color:           var(--ama-ink);
}

.ama-badge-dark {
	background:   rgba(34, 34, 34, 0.1);
	border-color: rgba(34, 34, 34, 0.2);
}

.ama-badge-white {
	background:   rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.3);
	color:        var(--ama-white);
}

.ama-badge-dot::before {
	content:         '';
	display:         inline-block;
	width:           6px;
	height:          6px;
	border-radius:   50%;
	background:      var(--ama-primary);
	flex-shrink:     0;
}

/* =============================================================================
   9. OUTLINE TEXT EFFECTS
   ============================================================================= */

.ama-text-outline {
	color:                transparent;
	-webkit-text-stroke:  1px var(--ama-ink);
}

.ama-text-outline-white {
	color:                transparent;
	-webkit-text-stroke:  1.5px var(--ama-white);
}

.ama-text-primary {
	color: var(--ama-primary);
}

.ama-text-muted {
	color: var(--ama-text-muted);
}

/* =============================================================================
   10. ANIMATIONS & SKELETON
   ============================================================================= */

@keyframes ama-fade-in {
	from {
		opacity:   0;
		transform: translateY(20px);
	}
	to {
		opacity:   1;
		transform: translateY(0);
	}
}

@keyframes ama-slide-right {
	from { transform: translateX(-100%); }
	to   { transform: translateX(0); }
}

@keyframes ama-slide-in-right {
	from { transform: translateX(100%); opacity: 0; }
	to   { transform: translateX(0);    opacity: 1; }
}

@keyframes ama-pulse-dot {
	0%, 100% { transform: scale(1);   opacity: 1; }
	50%       { transform: scale(1.5); opacity: 0.5; }
}

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

@keyframes ama-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

@keyframes ama-bounce {
	0%, 100% { transform: translateY(0); }
	50%       { transform: translateY(-8px); }
}

/* Animation Utility Classes */
.ama-animate-fade-in {
	animation: ama-fade-in 0.6s ease forwards;
}

.ama-animate-pulse {
	animation: ama-pulse-dot 2s infinite;
}

.ama-animate-spin {
	animation: ama-spin 1s linear infinite;
}

.ama-animate-bounce {
	animation: ama-bounce 1s ease infinite;
}

/* Animation delay utilities */
.ama-delay-100 { animation-delay: 100ms; }
.ama-delay-200 { animation-delay: 200ms; }
.ama-delay-300 { animation-delay: 300ms; }
.ama-delay-400 { animation-delay: 400ms; }
.ama-delay-500 { animation-delay: 500ms; }

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

.ama-skeleton-text {
	height:        14px;
	border-radius: 4px;
}

.ama-skeleton-title {
	height:        22px;
	border-radius: 4px;
}

.ama-skeleton-image {
	aspect-ratio:  1;
	border-radius: var(--ama-radius-card);
}

/* =============================================================================
   11. MOBILE BOTTOM NAV SPACING
   ============================================================================= */

@media (max-width: 768px) {
	.ama-has-bottom-nav {
		padding-bottom: 70px;
	}
}

.ama-bottom-nav {
	position:   fixed;
	bottom:     0;
	left:       0;
	right:      0;
	z-index:    100;
	background: var(--ama-white);
	border-top: 1px solid var(--ama-border);
	box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
	padding:    8px 16px;
	display:    none;
}

@media (max-width: 768px) {
	.ama-bottom-nav {
		display: flex;
	}
}

/* =============================================================================
   12. BREADCRUMB
   ============================================================================= */

.ama-breadcrumb {
	display:        flex;
	align-items:    center;
	gap:            8px;
	font-size:      11px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color:          var(--ama-text-light);
	flex-wrap:      wrap;
}

.ama-breadcrumb a {
	color:      var(--ama-text-light);
	transition: var(--ama-transition);
}

.ama-breadcrumb a:hover {
	color: var(--ama-ink);
}

.ama-breadcrumb__separator {
	color:      var(--ama-border-muted);
	font-style: normal;
	flex-shrink: 0;
}

.ama-breadcrumb__current {
	color: var(--ama-primary);
}

/* =============================================================================
   13. NO SCROLLBAR
   ============================================================================= */

.ama-no-scrollbar::-webkit-scrollbar {
	display: none;
}

.ama-no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width:    none;
}

/* =============================================================================
   14. OVERLAY
   ============================================================================= */

.ama-overlay {
	position:        fixed;
	inset:           0;
	background:      rgba(34, 34, 34, 0.7);
	backdrop-filter: blur(4px);
	z-index:         100;
	opacity:         0;
	pointer-events:  none;
	transition:      opacity 0.3s ease;
}

.ama-overlay.is-active {
	opacity:        1;
	pointer-events: auto;
}

/* =============================================================================
   15. TRUST BADGE BAR
   ============================================================================= */

.ama-trust-bar {
	display:               grid;
	grid-template-columns: repeat(4, 1fr);
	gap:                   48px;
	padding:               64px 0;
	border-top:            1px solid var(--ama-border);
	border-bottom:         1px solid var(--ama-border);
}

@media (max-width: 1024px) {
	.ama-trust-bar {
		grid-template-columns: repeat(2, 1fr);
		gap:                   32px;
		padding:               48px 0;
	}
}

@media (max-width: 640px) {
	.ama-trust-bar {
		grid-template-columns: repeat(2, 1fr);
		gap:                   24px;
		padding:               36px 0;
	}
}

.ama-trust-item {
	display:        flex;
	flex-direction: column;
	align-items:    center;
	text-align:     center;
	gap:            16px;
}

.ama-trust-item__icon {
	width:           64px;
	height:          64px;
	border-radius:   50%;
	background:      var(--ama-bg-muted);
	display:         flex;
	align-items:     center;
	justify-content: center;
	border:          1px solid var(--ama-border);
	transition:      all 0.5s ease;
	flex-shrink:     0;
}

.ama-trust-item:hover .ama-trust-item__icon {
	background:  var(--ama-primary);
	border-color: var(--ama-primary);
}

.ama-trust-item__icon svg {
	transition: var(--ama-transition);
}

.ama-trust-item__title {
	font-size:      13px;
	font-weight:    900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color:          var(--ama-ink);
	margin:         0;
}

.ama-trust-item__text {
	font-size:   12px;
	font-weight: 500;
	color:       var(--ama-text-muted);
	margin:      0;
	line-height: 1.5;
}

/* =============================================================================
   16. RESPONSIVE UTILITIES
   ============================================================================= */

/* Grid System */
.ama-grid {
	display: grid;
	gap:     24px;
}

.ama-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ama-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ama-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Product grid responsive */
.ama-products-grid {
	display:               grid;
	grid-template-columns: repeat(4, 1fr);
	gap:                   24px;
}

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

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

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

/* Flex utilities */
.ama-flex-center {
	display:         flex;
	align-items:     center;
	justify-content: center;
}

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

/* Display */
.ama-hidden-mobile { display: block; }
.ama-show-mobile   { display: none; }

@media (max-width: 768px) {
	.ama-hidden-mobile { display: none; }
	.ama-show-mobile   { display: block; }
}

/* Top bar: Track Order / Help Center / language / currency block.
   Previously this used the shared .ama-hidden-mobile utility, but an
   inline style="display:flex" on the element always won over that
   utility's media-query rule (inline styles beat external classes
   regardless of specificity), so it never actually hid on mobile and
   overlapped the centered announcement text. Handled here instead with
   its own class so nothing can out-rank the mobile @media rule. */
.ama-top-bar__right {
	display:   flex;
	position:  absolute;
	right:     32px;
	top:       50%;
	transform: translateY(-50%);
	align-items: center;
	gap:       24px;
}

@media (max-width: 768px) {
	.ama-top-bar__right {
		display: none;
	}
}

/* Back to top */
.ama-back-to-top {
	position:        fixed;
	bottom:          32px;
	right:           32px;
	width:           48px;
	height:          48px;
	background:      var(--ama-ink);
	color:           var(--ama-white);
	border-radius:   50%;
	display:         flex;
	align-items:     center;
	justify-content: center;
	cursor:          pointer;
	border:          none;
	box-shadow:      var(--ama-shadow-lg);
	z-index:         50;
	opacity:         0;
	transform:       translateY(16px);
	transition:      all 0.3s ease;
	pointer-events:  none;
}

.ama-back-to-top.is-visible {
	opacity:        1;
	transform:      translateY(0);
	pointer-events: auto;
}

.ama-back-to-top:hover {
	background: var(--ama-primary);
	color:      var(--ama-ink);
}

@media (max-width: 768px) {
	.ama-back-to-top {
		bottom: 90px;
		right:  16px;
	}
}

/* Mini Cart Sidebar */
.ama-mini-cart-sidebar {
	position:        fixed;
	top:             0;
	right:           0;
	bottom:          0;
	width:           420px;
	max-width:       100vw;
	background:      var(--ama-white);
	z-index:         110;
	display:         flex;
	flex-direction:  column;
	box-shadow:      -10px 0 40px rgba(0, 0, 0, 0.1);
	transform:       translateX(100%);
	transition:      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ama-mini-cart-sidebar.is-open {
	transform: translateX(0);
}

/* Announcement Bar */
.ama-announcement-bar {
	background:      var(--ama-ink);
	color:           var(--ama-white);
	text-align:      center;
	padding:         10px 16px;
	font-size:       10px;
	font-weight:     700;
	text-transform:  uppercase;
	letter-spacing:  0.2em;
	position:        relative;
}

.ama-announcement__close {
	position:        absolute;
	right:           16px;
	top:             50%;
	transform:       translateY(-50%);
	background:      none;
	border:          none;
	color:           var(--ama-white);
	cursor:          pointer;
	opacity:         0.6;
	padding:         4px;
	display:         flex;
	align-items:     center;
	justify-content: center;
	transition:      opacity 0.2s;
}

.ama-announcement__close:hover {
	opacity: 1;
}

/* =============================================================================
   17. PRINT STYLES
   ============================================================================= */

@media print {
	.ama-bottom-nav,
	.ama-back-to-top,
	.ama-mini-cart-sidebar,
	.ama-overlay,
	.ama-announcement-bar {
		display: none !important;
	}

	body {
		font-size:   12pt;
		line-height: 1.5;
		color:       #000;
		background:  #fff;
	}

	a {
		color:           #000;
		text-decoration: underline;
	}

	.ama-container {
		max-width: 100%;
		padding:   0;
	}
}

/* =============================================================================
   FIX: Product card image hover scale (handled in ama-shop.css)
   ============================================================================= */
/* Note: .ama-card-img styles are fully defined in ama-shop.css with object-fit:cover.
   Do NOT add object-fit or mix-blend-mode overrides here — they break the card layout. */

/* =============================================================================
   18. LINK FIX — kills the browser's default blue/underline on VISITED links
   ============================================================================= 
   Root cause: .ama-nav-menu (header) and .ama-footer-menu (footer, when a
   real WP menu is assigned to footer-col-1 / footer-col-2) are rendered by
   wp_nav_menu() with NO color/text-decoration on the <a> itself — every
   other link in the theme sets these inline. Tailwind's CDN <style> tag is
   injected into <head> before this stylesheet loads, but it re-injects
   itself as new classes are discovered further down the page, and can end
   up landing AFTER this file in the cascade — at which point its Preflight
   reset (`a{text-decoration:inherit}`) plus the browser's own default
   :visited color are the only things left touching these links, so any
   previously-clicked nav / footer / account link renders with the raw
   browser blue-underline look instead of the theme's design.
   The rules below pin color + text-decoration for every state (:link,
   :visited, :hover, :active, :focus) so this can't happen again, without
   touching the deliberate colors already set by Tailwind classes on
   Contact Support / Logout / Shop Collection / Continue Shopping — those
   only need text-decoration reset, not a color override.
   ============================================================================= */

/* Header primary navigation — was completely unstyled, relying on nothing */
#site-navigation .ama-nav-menu > li > a,
#site-navigation .ama-nav-menu > li > a:link,
#site-navigation .ama-nav-menu > li > a:visited {
	color:           #94A3B8 !important;
	text-decoration: none !important;
	font-size:       13px;
	font-weight:     900;
	letter-spacing:  0.1em;
	text-transform:  uppercase;
}
#site-navigation .ama-nav-menu > li > a:hover,
#site-navigation .ama-nav-menu > li > a:focus,
#site-navigation .ama-nav-menu > li > a:active,
#site-navigation .ama-nav-menu > li.current-menu-item > a,
#site-navigation .ama-nav-menu > li.current_page_item > a,
#site-navigation .ama-nav-menu > li > a[aria-current="page"] {
	color:           #222222 !important;
	text-decoration: none !important;
}

/* Footer "Quick Links" / "Customer Service" menus (wp_nav_menu, no inline style) */
.ama-footer-menu a,
.ama-footer-menu a:link,
.ama-footer-menu a:visited {
	color:           #94A3B8 !important;
	text-decoration: none !important;
	font-size:       13px;
	font-weight:     500;
	display:         flex;
	align-items:     center;
	gap:             8px;
}
.ama-footer-menu a:hover,
.ama-footer-menu a:focus,
.ama-footer-menu a:active {
	color:           #ffffff !important;
	text-decoration: none !important;
}

/* The Quick Links column (footer-col-1) renders its yellow dot via
   wp_nav_menu()'s `link_before` param — a plain <span> with no hover
   behavior attached, unlike the Customer Service fallback links which
   toggle it via inline onmouseover/onmouseout JS. Without this rule the
   dot just sits permanently scaled to 0 and never appears on hover. */
.ama-footer-menu a span {
	transform:  scale(0);
	transition: transform 0.2s;
}
.ama-footer-menu a:hover span {
	transform: scale(1);
}

/* Any other link inside the footer (address/phone/email, legal links, logo)
   that a visited state could otherwise tint blue/purple */
.ama-footer-columns a:link,
.ama-footer-columns a:visited,
.ama-footer-bottom a:link,
.ama-footer-bottom a:visited {
	text-decoration: none !important;
}

/* My Account: sidebar menu, "Contact Support", "Logout" — color already
   comes from Tailwind's utility classes, only the underline needs killing */
.ama-myaccount-wrap a:link,
.ama-myaccount-wrap a:visited,
.ama-myaccount-wrap a:hover,
.ama-myaccount-wrap a:active,
.ama-myaccount-wrap a:focus {
	text-decoration: none !important;
}

/* Wishlist page: "Continue Shopping" + "Add All To Cart" + row links */
#ama-wishlist-items a:link,
#ama-wishlist-items a:visited,
a[href*="wishlist"]:link,
a[href*="wishlist"]:visited {
	text-decoration: none;
}
.ama-wishlist-page a:link,
.ama-wishlist-page a:visited,
.ama-wishlist-page a:hover,
.ama-wishlist-page a:active,
.ama-wishlist-page a:focus,
a#ama-add-all-to-cart:link,
a#ama-add-all-to-cart:visited {
	text-decoration: none !important;
}

/* "Shop Collection" (Holiday Bonus banner) and any other bare Tailwind
   button link site-wide that only sets color via a utility class */
a.ama-btn-primary:link,   a.ama-btn-primary:visited,
a.ama-btn-dark:link,      a.ama-btn-dark:visited,
a.ama-btn-outline:link,   a.ama-btn-outline:visited,
a.ama-btn-pill:link,      a.ama-btn-pill:visited {
	text-decoration: none !important;
}

/* Hide native browser spin-button arrows on number inputs site-wide.
   Every quantity picker in this theme (product page, quick view, etc.)
   already has its own custom −/+ buttons, so the browser's built-in
   up/down arrows are redundant duplicate UI sitting next to them. */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}
