/* ===== ODD SHOP — Front-end styles ===== */
.odd-product-grid { display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); margin: 40px 0; }
.odd-product-grid.odd-cols-3 { grid-template-columns: repeat(3, 1fr); }
.odd-product-grid.odd-cols-2 { grid-template-columns: repeat(2, 1fr); }

.odd-product-card { position: relative; text-align: center; transition: transform .4s cubic-bezier(.22,.61,.36,1); }
.odd-product-card:hover { transform: translateY(-6px); }
.odd-product-card:hover .odd-product-media { box-shadow: 0 22px 40px rgba(36,21,7,.12); }

.odd-product-media { position: relative; display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 3/4; background: var(--odd-surface, #FCEFE2); transition: box-shadow .4s ease, transform .15s ease-out; transform-style: preserve-3d; will-change: transform; }
.odd-img-front, .odd-img-back { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform .6s ease; }
.odd-img-back { opacity: 0; }
.odd-product-media:hover .odd-img-front { opacity: 0; transform: scale(1.04); }
.odd-product-media:hover .odd-img-back { opacity: 1; }

.odd-badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--odd-font-mono, monospace); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--odd-primary, #241507); color: #fff; }
.odd-badge-sale { background: var(--odd-accent-dark, #C9520F); }
.odd-badge-new { background: #2c6b4f; left: auto; right: 12px; }

.odd-product-title { margin: 16px 0 6px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.odd-product-title a { color: inherit; text-decoration: none; }
.odd-product-price { font-family: var(--odd-font-mono, monospace); font-size: 14px; margin-bottom: 12px; font-weight: 500; }
.odd-product-price:has(del) { color: var(--odd-accent-dark, #C9520F); }
.odd-product-price del { opacity: .45; margin-left: 8px; color: var(--odd-primary, #241507); font-weight: 400; }

.odd-btn { display: inline-block; padding: 13px 28px; background: var(--odd-accent, #F2661D); color: #fff; border: none; border-radius: 999px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .3s ease; text-decoration: none; }
.odd-btn:hover { background: var(--odd-accent-dark, #C9520F); transform: scale(1.03); }
.odd-btn-outline { background: transparent; border: 1px solid var(--odd-primary, #241507); color: var(--odd-primary, #241507); }
.odd-btn-lg { width: 100%; padding: 16px; font-size: 14px; }
.odd-btn:disabled { opacity: .4; cursor: not-allowed; }

.odd-add-to-cart { width: 100%; }

/* Cart */
.odd-cart-table { width: 100%; border-collapse: collapse; margin: 30px 0; }
.odd-cart-table th, .odd-cart-table td { padding: 14px 10px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.odd-cart-qty { width: 60px; padding: 6px; }
.odd-remove-item { background: none; border: none; cursor: pointer; font-size: 16px; opacity: .5; }
.odd-remove-item:hover { opacity: 1; color: var(--odd-accent-dark, #C9520F); }
.odd-cart-summary { max-width: 400px; margin-left: auto; text-align: right; }
.odd-coupon-form { display: flex; gap: 8px; margin-bottom: 16px; justify-content: flex-end; }
.odd-coupon-form input { padding: 10px; border: 1px solid #ddd; border-radius: 6px; }
.odd-cart-total { font-family: var(--odd-font-mono, monospace); font-size: 19px; margin-bottom: 16px; }

/* Checkout */
.odd-checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; margin-top: 30px; }

.odd-checkout-steps { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.odd-step { font-family: var(--odd-font-mono, monospace); font-size: 12px; letter-spacing: .04em; opacity: .4; }
.odd-step-active { opacity: 1; color: var(--odd-accent, #F2661D); font-weight: 600; }
.odd-step-done { opacity: .7; text-decoration: line-through; }
.odd-step-divider { width: 24px; height: 1px; background: #ddd; }

.odd-payment-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.odd-payment-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid #e5ded2; border-radius: 12px; cursor: pointer; transition: border-color .2s ease, background .2s ease; position: relative; }
.odd-payment-card input { position: absolute; opacity: 0; pointer-events: none; }
.odd-payment-card-icon { font-size: 22px; }
.odd-payment-card-text { display: flex; flex-direction: column; flex: 1; }
.odd-payment-card-text small { opacity: .55; font-size: 12px; margin-top: 2px; }
.odd-payment-card-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #ddd; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: transparent; transition: all .2s ease; }
.odd-payment-card:has(input:checked) { border-color: var(--odd-accent, #F2661D); background: var(--odd-surface, #FCEFE2); }
.odd-payment-card:has(input:checked) .odd-payment-card-check { background: var(--odd-accent, #F2661D); border-color: var(--odd-accent, #F2661D); color: #fff; }
.odd-payment-card:hover { border-color: var(--odd-accent-dark, #C9520F); }

.odd-gateway-suboptions { display: none; padding: 4px 4px 14px 44px; margin-top: -6px; margin-bottom: 6px; gap: 14px; flex-wrap: wrap; }
.odd-gateway-suboptions.odd-visible { display: flex; }
.odd-gateway-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; opacity: .8; }
.odd-gateway-radio:hover { opacity: 1; }
.odd-gateway-radio input { accent-color: var(--odd-accent, #F2661D); }
.odd-checkout-form input:not([type="radio"]):not([type="checkbox"]), .odd-checkout-form textarea { width: 100%; padding: 14px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.odd-checkout-form input:not([type="radio"]):not([type="checkbox"]):focus, .odd-checkout-form textarea:focus { outline: none; border-color: var(--odd-accent, #F2661D); box-shadow: 0 0 0 3px rgba(242,102,29,.12); }
.odd-checkout-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.odd-checkout-form h3 { margin-top: 24px; }
.odd-order-summary { background: #f7f4ef; padding: 24px; border-radius: 14px; height: fit-content; }
.odd-summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e5e0d8; }
.odd-summary-total { font-family: var(--odd-font-mono, monospace); font-weight: 500; font-size: 17px; border: none; margin-top: 8px; }

.odd-order-confirmation { text-align: center; padding: 60px 20px; }
.odd-order-confirmation h2 { font-size: 32px; }

/* ============================================================
   FIND YOUR SCENT — chat concierge
   ============================================================ */
.odd-quiz-chat {
	max-width: 480px; margin: 0 auto; border: 1px solid #eee; border-radius: 20px;
	overflow: hidden; box-shadow: 0 20px 50px rgba(36,21,7,.08); background: #fff;
}
.odd-chat-header { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--odd-primary, #241507); color: #fff; }
.odd-chat-avatar {
	width: 40px; height: 40px; border-radius: 50%; background: var(--odd-accent, #F2661D);
	display: flex; align-items: center; justify-content: center; font-family: var(--odd-font-display);
	font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.odd-chat-header-text { display: flex; flex-direction: column; }
.odd-chat-header-text strong { font-size: 14px; }
.odd-chat-status { font-size: 11px; opacity: .7; display: flex; align-items: center; gap: 5px; }
.odd-chat-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4caf50; display: inline-block; }
.odd-chat-popup-close { margin-left: auto; background: none; border: none; color: #fff; opacity: .7; cursor: pointer; font-size: 16px; padding: 4px; }
.odd-chat-popup-close:hover { opacity: 1; }

.odd-chat-messages { height: 460px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: #fafafa; }
.odd-chat-bubble { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; animation: odd-chat-pop .3s ease; }
@keyframes odd-chat-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.odd-chat-bot { align-self: flex-start; background: #fff; border: 1px solid #eee; border-bottom-left-radius: 4px; }
.odd-chat-bot a { color: var(--odd-accent-dark, #C9520F); }
.odd-chat-user { align-self: flex-end; background: var(--odd-accent, #F2661D); color: #fff; border-bottom-right-radius: 4px; }

.odd-chat-typing { display: flex; gap: 4px; align-items: center; padding: 16px; }
.odd-chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: #ccc; animation: odd-chat-typing-bounce 1.2s infinite ease-in-out; }
.odd-chat-typing span:nth-child(2) { animation-delay: .15s; }
.odd-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes odd-chat-typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.odd-chat-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; margin-top: 2px; }
.odd-chat-chip {
	padding: 10px 16px; border: 1.5px solid var(--odd-accent, #F2661D); border-radius: 999px;
	background: #fff; color: var(--odd-accent-dark, #C9520F); font-size: 13px; font-weight: 600;
	cursor: pointer; transition: all .2s ease;
}
.odd-chat-chip:hover { background: var(--odd-accent, #F2661D); color: #fff; transform: translateY(-1px); }

.odd-chat-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-self: center; width: 100%; margin: 4px 0; }
.odd-chat-result-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 10px; text-align: center; }
.odd-chat-result-media { display: block; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--odd-surface, #FCEFE2); margin-bottom: 8px; }
.odd-chat-result-media img { width: 100%; height: 100%; object-fit: cover; }
.odd-chat-result-card h3 { font-size: 11px; margin: 0 0 4px; line-height: 1.3; }
.odd-chat-result-card h3 a { text-decoration: none; color: inherit; }
.odd-chat-result-price { font-family: var(--odd-font-mono, monospace); font-size: 11px; margin-bottom: 8px; }
.odd-chat-result-card .odd-btn { padding: 8px 10px; font-size: 10px; width: 100%; }
.odd-chat-restart-link { background: none; border: none; padding: 0; color: var(--odd-accent-dark, #C9520F); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: inherit; }

@media (max-width: 600px) {
	.odd-quiz-chat { border-radius: 0; margin: 0 -20px; max-width: none; }
	.odd-chat-messages { height: 420px; }
	.odd-chat-results { grid-template-columns: repeat(2, 1fr); }
}

.odd-confirmation-icon { width: 64px; height: 64px; border-radius: 50%; background: #e8f5e9; color: #2e7d32; font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; animation: odd-confirmation-pop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes odd-confirmation-pop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ============================================================
   FIND YOUR SCENT — floating popup (site-wide chat bubble)
   ============================================================ */
.odd-quiz-fab {
	position: fixed; right: 24px; bottom: 24px; z-index: 9000;
	display: flex; align-items: center; gap: 10px;
	background: var(--odd-accent, #F2661D); color: #fff; border: none;
	border-radius: 999px; padding: 16px 22px; cursor: pointer;
	box-shadow: 0 12px 32px rgba(242,102,29,.35);
	font-size: 13px; font-weight: 700; letter-spacing: .03em;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
	animation: odd-fab-attention 3s ease-in-out 2s 2;
}
.odd-quiz-fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 40px rgba(242,102,29,.45); }
.odd-quiz-fab-icon-close { display: none; font-size: 16px; }
.odd-quiz-fab.odd-quiz-fab-open .odd-quiz-fab-icon-open { display: none; }
.odd-quiz-fab.odd-quiz-fab-open .odd-quiz-fab-icon-close { display: inline; }
.odd-quiz-fab.odd-quiz-fab-open .odd-quiz-fab-label { display: none; }
.odd-quiz-fab.odd-quiz-fab-open { background: var(--odd-primary, #241507); border-radius: 50%; padding: 16px; box-shadow: 0 12px 32px rgba(36,21,7,.35); }
@keyframes odd-fab-attention { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.08); } 20% { transform: scale(1); } }

.odd-quiz-popup-backdrop {
	position: fixed; inset: 0; background: rgba(36,21,7,.35); z-index: 8998;
	opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.odd-quiz-popup-backdrop.odd-quiz-popup-open { opacity: 1; visibility: visible; }

.odd-quiz-popup-panel {
	position: fixed; right: 24px; bottom: 96px; z-index: 8999;
	width: 380px; max-width: calc(100vw - 32px);
	transform: translateY(24px) scale(.96); opacity: 0; visibility: hidden; pointer-events: none;
	transition: transform .3s cubic-bezier(.22,.61,.36,1), opacity .25s ease, visibility .3s;
	transform-origin: bottom right;
}
.odd-quiz-popup-panel.odd-quiz-popup-open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; pointer-events: auto; }
.odd-quiz-popup-panel .odd-quiz-chat { max-width: none; }
.odd-quiz-popup-panel .odd-chat-messages { height: 420px; }

@media (max-width: 480px) {
	.odd-quiz-fab { right: 16px; bottom: 16px; padding: 14px 18px; }
	.odd-quiz-fab-label { display: none; }
	.odd-quiz-fab.odd-quiz-fab-open { padding: 14px; }
	.odd-quiz-popup-panel {
		right: 0; left: 0; bottom: 0; width: 100%; max-width: none;
		transform: translateY(100%); transform-origin: bottom center;
	}
	.odd-quiz-popup-panel.odd-quiz-popup-open { transform: translateY(0); }
	.odd-quiz-popup-panel .odd-quiz-chat { border-radius: 20px 20px 0 0; }
	.odd-quiz-popup-panel .odd-chat-messages { height: 60vh; }
}

/* Account: auth (login/register) */
.odd-auth-wrap { max-width: 420px; margin: 30px auto 0; }
.odd-auth-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid #eee; }
.odd-auth-tab { flex: 1; background: none; border: none; padding: 14px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; opacity: .45; cursor: pointer; border-bottom: 2px solid transparent; transition: all .25s ease; }
.odd-auth-tab.odd-active { opacity: 1; border-bottom-color: var(--odd-accent, #F2661D); color: var(--odd-accent-dark, #C9520F); }
.odd-auth-form { display: flex; flex-direction: column; gap: 12px; }
.odd-auth-form input[type="text"], .odd-auth-form input[type="email"], .odd-auth-form input[type="password"] { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.odd-auth-form input:focus { outline: none; border-color: var(--odd-accent, #F2661D); box-shadow: 0 0 0 3px rgba(242,102,29,.12); }
.odd-auth-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .75; }
.odd-auth-error { background: #fff0f0; color: #b5322c; padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; max-width: 420px; margin-left: auto; margin-right: auto; }

/* Account: dashboard */
.odd-account-dashboard { max-width: 700px; margin: 30px auto 0; }
.odd-account-profile { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--odd-surface, #FCEFE2); border-radius: 14px; margin-bottom: 34px; }
.odd-account-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--odd-accent, #F2661D); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--odd-font-display); font-size: 22px; flex-shrink: 0; }
.odd-account-profile h3 { margin: 0 0 2px; font-size: 17px; }
.odd-account-profile p { margin: 0; opacity: .6; font-size: 13px; }
.odd-account-profile .odd-btn { margin-left: auto; flex-shrink: 0; }
.odd-account-section-title { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.odd-account-orders { width: 100%; border-collapse: collapse; }
.odd-account-orders th { text-align: left; font-size: 11px; text-transform: uppercase; opacity: .5; padding: 8px 6px; border-bottom: 1px solid #eee; }
.odd-account-orders td { padding: 12px 6px; border-bottom: 1px solid #f3f3f3; font-size: 14px; }
.odd-account-empty { opacity: .65; }

.odd-account-tabs { margin-bottom: 24px; }
.odd-account-subtitle { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin: 28px 0 12px; }
.odd-account-subtitle:first-child { margin-top: 0; }
.odd-account-form { max-width: 420px; }
.odd-account-form label { font-size: 12px; font-weight: 600; opacity: .7; margin-top: 4px; }
.odd-account-form input:disabled { background: #f7f4ef; opacity: .6; cursor: not-allowed; }
.odd-account-form .odd-btn { align-self: flex-start; margin-top: 6px; }

.odd-order-row { cursor: pointer; }
.odd-order-row:hover { background: var(--odd-surface, #FCEFE2); }
.odd-order-expand { display: inline-block; opacity: .4; transition: transform .15s ease; }
.odd-order-detail-row td { padding: 0 6px 16px; border-bottom: 1px solid #f3f3f3; }
.odd-order-detail { background: var(--odd-surface, #FCEFE2); border-radius: 10px; padding: 16px 18px; }
.odd-order-detail-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.odd-order-detail-address { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.06); font-size: 13px; opacity: .8; }

.odd-auth-success { background: #e8f5e9; color: #2e7d32; padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }

/* Combo builder */
.odd-combo-sub { text-align: center; opacity: .75; margin-bottom: 8px; }
.odd-combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; margin: 28px 0; }
.odd-combo-item { position: relative; cursor: pointer; text-align: center; display: block; }
.odd-combo-item input { position: absolute; opacity: 0; pointer-events: none; }
.odd-combo-media { position: relative; display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 3/4; background: var(--odd-surface, #FCEFE2); border: 2px solid transparent; transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease; }
.odd-combo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.odd-combo-item:hover .odd-combo-media { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(36,21,7,.1); }
.odd-combo-item:has(input:checked) .odd-combo-media { border-color: var(--odd-accent, #F2661D); box-shadow: 0 12px 24px rgba(242,102,29,.18); }
.odd-combo-check {
	position: absolute; top: 10px; right: 10px; z-index: 2;
	width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.85);
	border: 1.5px solid #ddd; display: flex; align-items: center; justify-content: center;
	font-size: 12px; color: transparent; transition: all .2s ease;
}
.odd-combo-item:has(input:checked) .odd-combo-check { background: var(--odd-accent, #F2661D); border-color: var(--odd-accent, #F2661D); color: #fff; }
.odd-combo-name { display: block; margin-top: 10px; font-size: 13px; font-weight: 500; }

.odd-combo-footer { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 20px; }
.odd-combo-counter { font-family: var(--odd-font-mono, monospace); font-size: 13px; opacity: .7; margin: 0; }
.odd-combo-counter span { color: var(--odd-accent-dark, #C9520F); font-weight: 700; }
#odd-combo-add { max-width: 380px; width: 100%; }
#odd-combo-add:disabled { background: #e5ded2; color: #a89f8f; cursor: not-allowed; box-shadow: none; }
#odd-combo-add:disabled::before { display: none; }
#odd-combo-add:not(:disabled) { animation: odd-combo-ready-pulse 1.6s ease-in-out 1; }
@keyframes odd-combo-ready-pulse { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.04); } }

/* Toast */
.odd-toast { position: fixed; bottom: 30px; right: 30px; left: 30px; max-width: 420px; margin-left: auto; background: var(--odd-primary, #241507); color: #fff; padding: 14px 22px; border-radius: 10px; z-index: 9999; transform: translateY(20px); opacity: 0; transition: all .35s ease; word-wrap: break-word; }
.odd-toast.odd-show { transform: translateY(0); opacity: 1; }

@media (max-width: 860px) {
  .odd-product-grid, .odd-product-grid.odd-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .odd-checkout-grid { grid-template-columns: 1fr; }
}
