/* Product appearance is scoped to storefront product cards and the admin editor. */
#products-grid .product-card { flex-wrap: wrap; row-gap: 7px; }
#products-grid .product-card-main { flex: 1 1 auto; min-width: 0; }
#products-grid .product-card-copy { min-width: 0; }
#products-grid .product-card-title { display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: var(--product-title-lines, 2); overflow-wrap: anywhere; }
#products-grid .product-card-title[data-overflow="clip"] { text-overflow: clip; }
#products-grid .product-promo-badge-stack { display: flex; flex: 0 0 100%; flex-wrap: wrap; align-items: center; gap: 0; min-width: 0; }
#products-grid .product-promo-badge-stack[hidden] { display: none !important; }
#products-grid .product-promo-badge { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; padding: var(--product-badge-pad-y,3px) var(--product-badge-pad-x,8px); border: 1px solid var(--product-badge-border,#2563eb); border-radius: var(--product-badge-radius,14px); background: var(--product-badge-background,#2563eb); color: var(--product-badge-color,#fff); font-size: var(--product-badge-size,10px); font-weight: var(--product-badge-weight,800); line-height: 1.2; letter-spacing: .015em; text-align: center; overflow-wrap: anywhere; }
#products-grid .product-promo-badge[data-position="center"] { margin-inline: auto; }
#products-grid .product-promo-badge[data-position="right"] { margin-left: auto; }
#products-grid .product-promo-badge { margin: 0 var(--product-badge-gap,5px) 4px 0; }
#products-grid .product-promo-badge[data-shadow="1"] { box-shadow: 0 2px 5px rgba(15,23,42,.11); }
#products-grid .product-promo-badge[data-shadow="2"] { box-shadow: 0 3px 9px rgba(15,23,42,.17); }
#products-grid .product-promo-badge[data-shadow="3"] { box-shadow: 0 5px 13px rgba(15,23,42,.22); }
#products-grid .product-promo-badge.is-fade { animation: pp-product-fade .24s ease-out both; }
#products-grid .product-promo-badge.is-slide { animation: pp-product-slide .3s cubic-bezier(.2,.7,.2,1) both; }
#products-grid .product-promo-badge.is-scale { animation: pp-product-scale .26s cubic-bezier(.2,.8,.25,1.15) both; }
#products-grid .product-promo-badge.is-glow { animation: pp-product-glow 2.8s ease-in-out infinite alternate; }
#products-grid .product-promo-badge.is-pulse { animation: pp-product-pulse 2.6s ease-in-out infinite; }
#products-grid .product-promo-badge.is-shimmer { background-image: linear-gradient(110deg,transparent 0 36%,rgba(255,255,255,.34) 48%,transparent 61%),var(--product-badge-background); background-size: 220% 100%; animation: pp-product-shimmer 3.8s ease-in-out infinite; }
#products-grid .product-card-title.is-title-fade { animation: pp-product-fade .3s ease-out both; }
#products-grid .product-card-title.is-title-slide-up { animation: pp-title-slide-up .32s cubic-bezier(.2,.7,.2,1) both; }
#products-grid .product-card-title.is-title-slide-left { animation: pp-product-slide .32s cubic-bezier(.2,.7,.2,1) both; }
#products-grid .product-card-title.is-title-zoom { animation: pp-product-scale .28s cubic-bezier(.2,.8,.25,1.12) both; }
#products-grid .product-card-title.is-title-gradient-reveal { background-size: 220% 100%; animation: pp-product-shimmer 3.4s ease-in-out both; }
#products-grid .product-card-title.is-title-glow { animation: pp-title-glow 3s ease-in-out infinite alternate; }
#products-grid .product-card-title.is-title-shimmer { background-size: 220% 100%; animation: pp-product-shimmer 3.8s ease-in-out infinite; }
#products-grid .product-appearance-motion-off .product-promo-badge,
#products-grid .product-appearance-motion-off .product-card-title { animation: none !important; transition: none !important; }
@keyframes pp-product-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pp-product-slide { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pp-title-slide-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pp-product-scale { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes pp-product-glow { from { filter: drop-shadow(0 0 0 rgba(59,130,246,0)); } to { filter: drop-shadow(0 0 4px rgba(59,130,246,.28)); } }
@keyframes pp-title-glow { from { text-shadow: 0 0 0 rgba(59,130,246,0); } to { text-shadow: 0 0 7px rgba(59,130,246,.25); } }
@keyframes pp-product-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes pp-product-shimmer { 0%,18% { background-position: 110% 0; } 70%,100% { background-position: -120% 0; } }
html[data-theme="dark"] #products-grid .product-card-title:not([style*="color: transparent"]) { color: #e2e8f0; }
.contact-social-grid > a[hidden], .home-support-cards .support-card[hidden], #contact-whatsapp[hidden], #contact-telegram[hidden], #contact-facebook[hidden] { display: none !important; }
.contact-social-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.admin-appearance-manager { margin: 14px 0 18px; padding: 16px; border: 1px solid #dbe5f1; border-radius: 18px; background: linear-gradient(145deg,#f7fbff,#fff); box-shadow: 0 9px 24px rgba(27,48,79,.06); }
.admin-appearance-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-appearance-heading span { color: #497bb4; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.admin-appearance-heading h4 { margin: 3px 0 0; color: #1d293b; font-size: 15px; font-weight: 850; line-height: 1.35; }
.admin-appearance-heading p { margin: 6px 0 0; color: #64748b; font-size: 11px; line-height: 1.55; }
.admin-appearance-select-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; }
.admin-appearance-select-row > label { color: #45546a; font-size: 11px; font-weight: 800; }
.admin-appearance-select-row select, .admin-appearance-open { min-height: 40px; padding: 8px 10px; border: 1px solid #d5deea; border-radius: 10px; background: #fff; color: #263244; font: inherit; font-size: 11px; }
.admin-appearance-open { border-color: #a8c7ee; background: linear-gradient(130deg,#edf5ff,#f5f3ff); color: #2059a6; font-weight: 850; }
.admin-appearance-open:disabled { opacity: .55; cursor: not-allowed; }
.admin-product-appearance { min-height: 34px; padding: 7px 9px; border: 1px solid #c8d9f0; border-radius: 9px; background: #f1f7ff; color: #245a9f; font-size: 10px; font-weight: 800; }
.admin-social-options { margin: 12px 0 14px; padding: 13px; border: 1px solid #e2e8f0; border-radius: 13px; background: rgba(248,250,252,.85); }
.admin-social-options h5 { margin: 0; color: #334155; font-size: 12px; font-weight: 850; }
.admin-social-options > p { margin: 4px 0 10px; color: #64748b; font-size: 10px; line-height: 1.45; }
.admin-social-options-grid { display: grid; gap: 6px; }
.admin-social-option-row { display: grid; grid-template-columns: minmax(120px,1fr) minmax(70px,.8fr) 64px; gap: 7px; align-items: center; }
.admin-social-option-row label { display: flex; align-items: center; gap: 6px; color: #475569; font-size: 10px; font-weight: 750; }
.admin-social-option-row input:not([type="checkbox"]) { min-width: 0; width: 100%; height: 34px; padding: 6px 8px; border: 1px solid #dbe3ed; border-radius: 8px; background: #fff; color: #334155; font-size: 10px; }
.admin-social-option-row input[type="checkbox"] { accent-color: #2563eb; }
.admin-motion-setting { display: flex; align-items: flex-start; gap: 8px; color: #334155; font-size: 11px; font-weight: 800; }
.admin-motion-setting input { accent-color: #2563eb; }
.admin-motion-setting span { color: #64748b; font-size: 10px; font-weight: 500; }
.swal2-popup .product-appearance-dialog { max-height: min(67vh,680px); overflow: auto; padding: 2px 4px 8px; text-align: left; }
.swal2-popup .appearance-dialog-product { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #e3eaf3; border-radius: 11px; background: #f7faff; color: #334155; font-size: 12px; font-weight: 800; }
.swal2-popup .appearance-dialog-product span { color: #0c8060; }
.swal2-popup .appearance-dialog-section, .swal2-popup .appearance-preview-section { margin: 11px 0; padding: 13px; border: 1px solid #e2e8f0; border-radius: 13px; background: #fff; }
.swal2-popup .appearance-dialog-title { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.swal2-popup .appearance-dialog-title > span { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 9px; background: #edf5ff; color: #2563eb; font-size: 10px; font-weight: 900; }
.swal2-popup .appearance-dialog-title h3, .swal2-popup .appearance-preview-section h3 { margin: 0; color: #263244; font-size: 13px; font-weight: 850; }
.swal2-popup .appearance-dialog-title p { margin: 3px 0 0; color: #64748b; font-size: 10px; line-height: 1.5; }
.swal2-popup .appearance-inline-check { display: inline-flex; align-items: center; gap: 7px; color: #475569; font-size: 10px; font-weight: 750; }
.swal2-popup .appearance-inline-check input { accent-color: #2563eb; }
.swal2-popup .appearance-badge-row { margin: 8px 0; padding: 10px; border: 1px solid #e4eaf2; border-radius: 11px; background: #fbfdff; }
.swal2-popup .appearance-badge-row > header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: #334155; font-size: 11px; }
.swal2-popup .appearance-badge-row > header .appearance-inline-check { margin-left: auto; }
.swal2-popup .appearance-remove-badge { min-height: 30px; padding: 4px 8px; border: 1px solid #fecdd3; border-radius: 8px; background: #fff1f2; color: #be123c; font-size: 10px; font-weight: 800; }
.swal2-popup .appearance-form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.swal2-popup .appearance-form-grid > label { display: grid; align-content: start; gap: 4px; min-width: 0; color: #526176; font-size: 9px; font-weight: 750; }
.swal2-popup .appearance-form-grid input:not([type="checkbox"]), .swal2-popup .appearance-form-grid select { box-sizing: border-box; min-width: 0; width: 100%; min-height: 34px; padding: 6px 7px; border: 1px solid #dbe3ed; border-radius: 8px; background: #fff; color: #263244; font-size: 10px; }
.swal2-popup .appearance-form-grid input[type="color"] { height: 34px; padding: 3px; }
.swal2-popup .appearance-form-grid input[type="checkbox"] { accent-color: #2563eb; }
.swal2-popup .appearance-badge-design { margin-top: 9px; color: #40516a; font-size: 10px; }
.swal2-popup .appearance-badge-design summary { cursor: pointer; font-weight: 800; }
.swal2-popup .appearance-badge-design .appearance-form-grid { padding-top: 8px; }
.swal2-popup .appearance-add-badge { min-height: 36px; margin: 4px 0; padding: 7px 11px; border: 1px solid #cbdcf2; border-radius: 9px; background: #f1f7ff; color: #245a9f; font-size: 10px; font-weight: 850; }
.swal2-popup .appearance-discount-note, .swal2-popup .appearance-preview-note { display: block; margin: 7px 0 0; color: #64748b; font-size: 9px; line-height: 1.5; }
.swal2-popup .appearance-title-controls { margin-top: 9px; }
.swal2-popup .appearance-preview-section { background: linear-gradient(145deg,#f7faff,#fff); }
.swal2-popup .appearance-live-preview { display: grid; place-items: center; min-height: 84px; margin-top: 8px; padding: 9px; border: 1px dashed #c9d6e7; border-radius: 10px; background: #f8fafc; }
.swal2-popup .appearance-preview-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; row-gap: 7px; width: min(100%,420px); min-height: 55px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.swal2-popup .appearance-preview-title { display: block; min-width: 0; overflow: hidden; }
.swal2-popup .appearance-preview-card > .product-promo-badges { display: flex; flex: 0 0 100%; flex-wrap: wrap; gap: 5px; }
.swal2-popup .appearance-preview-card > .product-promo-badges { gap: 0; }
.swal2-popup .product-promo-badge { display: inline-flex; margin: 0 var(--badge-gap,5px) 4px 0; padding: var(--badge-padding-y,3px) var(--badge-padding-x,8px); border: 1px solid var(--badge-border,#2563eb); border-radius: var(--badge-radius,14px); background: var(--badge-bg,#2563eb); color: var(--badge-color,#fff); font-size: var(--badge-font-size,10px); font-weight: var(--badge-font-weight,800); line-height: 1.2; }
.swal2-popup .product-promo-badge[data-badge-position="center"] { margin-left: auto; margin-right: auto; }
.swal2-popup .product-promo-badge[data-badge-position="right"] { margin-left: auto; }
.swal2-popup .product-promo-badge[data-shadow="1"] { box-shadow: 0 2px 5px rgba(15,23,42,.11); }
.swal2-popup .product-promo-badge[data-shadow="2"] { box-shadow: 0 3px 9px rgba(15,23,42,.17); }
.swal2-popup .product-promo-badge[data-shadow="3"] { box-shadow: 0 5px 13px rgba(15,23,42,.22); }
.swal2-popup .product-promo-badge.is-fade { animation: pp-product-fade .24s ease-out both; }
.swal2-popup .product-promo-badge.is-slide { animation: pp-product-slide .3s cubic-bezier(.2,.7,.2,1) both; }
.swal2-popup .product-promo-badge.is-scale { animation: pp-product-scale .26s cubic-bezier(.2,.8,.25,1.15) both; }
.swal2-popup .product-promo-badge.is-glow { animation: pp-product-glow 2.8s ease-in-out infinite alternate; }
.swal2-popup .product-promo-badge.is-pulse { animation: pp-product-pulse 2.6s ease-in-out infinite; }
.swal2-popup .product-promo-badge.is-shimmer { background-image: linear-gradient(110deg,transparent 0 36%,rgba(255,255,255,.34) 48%,transparent 61%),var(--badge-bg); background-size: 220% 100%; animation: pp-product-shimmer 3.8s ease-in-out infinite; }
.swal2-popup .appearance-preview-title.is-title-fade { animation: pp-product-fade .3s ease-out both; }
.swal2-popup .appearance-preview-title.is-title-slide-up { animation: pp-title-slide-up .32s cubic-bezier(.2,.7,.2,1) both; }
.swal2-popup .appearance-preview-title.is-title-slide-left { animation: pp-product-slide .32s cubic-bezier(.2,.7,.2,1) both; }
.swal2-popup .appearance-preview-title.is-title-zoom { animation: pp-product-scale .28s cubic-bezier(.2,.8,.25,1.12) both; }
.swal2-popup .appearance-preview-title.is-title-gradient-reveal { background-size: 220% 100%; animation: pp-product-shimmer 3.4s ease-in-out both; }
.swal2-popup .appearance-preview-title.is-title-glow { animation: pp-title-glow 3s ease-in-out infinite alternate; }
.swal2-popup .appearance-preview-title.is-title-shimmer { background-size: 220% 100%; animation: pp-product-shimmer 3.8s ease-in-out infinite; }
.swal2-popup .product-appearance-motion-off .product-promo-badge,
.swal2-popup .product-appearance-motion-off .appearance-preview-title { animation: none !important; transition: none !important; }
.swal2-popup .appearance-preview-note { text-align: center; }
@media (max-width: 520px) {
  .admin-appearance-manager { padding: 12px; }
  .admin-appearance-select-row { grid-template-columns: 1fr; }
  .admin-appearance-select-row > label { margin-bottom: -4px; }
  .admin-social-option-row { grid-template-columns: minmax(0,1fr) 86px 54px; }
  .swal2-popup .appearance-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .swal2-popup .product-appearance-dialog { max-height: 64vh; }
}
@media (prefers-reduced-motion: reduce) {
  #products-grid .product-promo-badge, #products-grid .product-card-title { animation: none !important; transition: none !important; }
}
