/* Aura Store — Frontend Styles v1.0.0 */
/* Minimal base — Aura Theme handles the heavy lifting */

:root {
	--as-primary: #1a1a2e;
	--as-accent: #e94560;
	--as-success: #2ecc71;
	--as-warning: #f39c12;
	--as-danger: #e74c3c;
	--as-bg: #fafafa;
	--as-text: #333;
	--as-border: #e0e0e0;
	--as-radius: 8px;
	--as-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Add to Cart Button */
.as-btn-cart {
	background: var(--as-accent);
	color: #fff;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: var(--as-radius);
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.as-btn-cart:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

/* Price Display */
.as-price {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--as-primary);
}

.as-price--sale {
	color: var(--as-accent);
}

.as-price--original {
	text-decoration: line-through;
	opacity: 0.5;
	font-size: 0.9rem;
	font-weight: 400;
}

/* Product Grid */
.as-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
}

.as-product-card {
	background: #fff;
	border-radius: var(--as-radius);
	overflow: hidden;
	box-shadow: var(--as-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.as-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.as-product-card__image {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.as-product-card__body {
	padding: 1rem;
}

.as-product-card__name {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
}

/* Cart Badge */
.as-cart-badge {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	background: var(--as-accent);
	color: #fff;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(233, 69, 96, 0.4);
	cursor: pointer;
	z-index: 999;
	transition: transform 0.3s ease;
}

.as-cart-badge:hover {
	transform: scale(1.1);
}

.as-cart-badge__count {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--as-primary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ─── Shop Page ─────────────────────────────────── */
.as-shop { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }
.as-shop__header { margin-bottom: 2rem; }
.as-shop__title { font-size: 2rem; font-weight: 700; margin: 0; }
.as-shop__count { color: #888; font-size: 0.9rem; }

.as-product-card__placeholder {
	display: flex; align-items: center; justify-content: center;
	background: #f5f5f5; aspect-ratio: 1;
}
.as-product-card__pricing { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.75rem; }
.as-product-card__name a { color: inherit; text-decoration: none; }

/* ─── Single Product ────────────────────────────── */
.as-single-product { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .as-single-product { grid-template-columns: 1fr 1fr; } }
.as-single-product__main-image { width: 100%; border-radius: var(--as-radius); }
.as-single-product__thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.as-single-product__thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.as-single-product__thumb:hover { border-color: var(--as-accent); }
.as-single-product__pricing { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; }
.as-single-product__stock { margin-bottom: 1rem; font-size: 0.9rem; }
.as-single-product__short-desc { margin-bottom: 1.5rem; color: #555; line-height: 1.7; }
.as-single-product__actions { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.as-single-product__meta { font-size: 0.85rem; color: #888; margin-bottom: 1rem; }
.as-single-product__description { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--as-border); }
.as-single-product__description h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.as-btn-cart--large { padding: 1rem 2rem; font-size: 1rem; }

/* ─── Quantity Selector ─────────────────────────── */
.as-qty-selector { display: flex; border: 1px solid var(--as-border); border-radius: var(--as-radius); overflow: hidden; }
.as-qty-btn { width: 40px; height: 40px; border: none; background: #f5f5f5; cursor: pointer; font-size: 1.2rem; font-weight: 600; }
.as-qty-btn:hover { background: #eee; }
.as-qty-input { width: 50px; border: none; text-align: center; font-size: 1rem; font-weight: 600; -moz-appearance: textfield; }
.as-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ─── Cart Page ─────────────────────────────────── */
.as-cart { max-width: 700px; margin: 0 auto; padding: 2rem 1rem; }
.as-cart h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.as-cart-item { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--as-border); border-radius: var(--as-radius); margin-bottom: 0.75rem; }
.as-cart-item__image { width: 64px; height: 64px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.as-cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.as-cart-item__info { flex: 1; }
.as-cart-item__name { font-weight: 600; }
.as-cart-item__price { color: #888; font-size: 0.85rem; margin-top: 0.25rem; }
.as-cart-item__remove { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: #999; padding: 0.5rem; }
.as-cart-item__remove:hover { color: var(--as-danger); }
.as-cart__summary { margin-top: 1.5rem; padding: 1.25rem; background: #f9f9f9; border-radius: var(--as-radius); }
.as-cart__row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; }
.as-cart__coupon { gap: 0.5rem; }
.as-cart__coupon input { flex: 1; padding: 0.5rem; border: 1px solid var(--as-border); border-radius: 6px; }

/* ─── Checkout ──────────────────────────────────── */
.as-checkout { max-width: 700px; margin: 0 auto; padding: 2rem 1rem; }
.as-checkout h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.as-checkout__section { border: 1px solid var(--as-border); border-radius: var(--as-radius); padding: 1.25rem; margin-bottom: 1rem; }
.as-checkout__section legend { font-weight: 700; font-size: 1rem; padding: 0 0.5rem; }
.as-checkout__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.as-checkout__payment-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border: 1px solid var(--as-border); border-radius: 6px; margin-bottom: 0.5rem; cursor: pointer; }
.as-checkout__payment-option input:checked + span { font-weight: 600; color: var(--as-accent); }
.as-checkout__summary { padding: 1.25rem; background: #f9f9f9; border-radius: var(--as-radius); }

/* ─── Account ───────────────────────────────────── */
.as-account { max-width: 700px; margin: 0 auto; padding: 2rem 1rem; }
.as-account__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.as-account__avatar img { border-radius: 50%; }
.as-account__tabs { display: flex; gap: 0; border-bottom: 2px solid var(--as-border); margin-bottom: 1.5rem; }
.as-account__tab { padding: 0.75rem 1.25rem; background: none; border: none; cursor: pointer; font-weight: 600; color: #888; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.as-account__tab.active { color: var(--as-accent); border-bottom-color: var(--as-accent); }

/* ─── Pagination ────────────────────────────────── */
.as-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.as-pagination__link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--as-border); color: var(--as-text); font-weight: 600; font-size: 0.85rem; transition: all 0.2s; }
.as-pagination__link:hover { border-color: var(--as-accent); color: var(--as-accent); }
.as-pagination__link.active { background: var(--as-accent); color: #fff; border-color: var(--as-accent); }

/* ─── Badges (storefront) ───────────────────────── */
.as-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
.as-badge--active, .as-badge--in_stock { background: rgba(46,204,113,0.15); color: var(--as-success); }
.as-badge--pending { background: rgba(243,156,18,0.15); color: var(--as-warning); }
.as-badge--processing { background: rgba(26,26,46,0.1); color: var(--as-primary); }
.as-badge--completed, .as-badge--delivered { background: rgba(46,204,113,0.15); color: var(--as-success); }
.as-badge--cancelled, .as-badge--failed { background: rgba(231,76,60,0.15); color: var(--as-danger); }

/* ─── Empty State ───────────────────────────────── */
.as-empty { text-align: center; padding: 3rem 1rem; color: #888; }
.as-text-dim { color: #888; }
