        :root {
    --ink: #211c16;
    --ink-2: #3a332b;
    --muted: #6a6055;
    --muted-2: #94897b;
    --line: #ece4d8;
    --line-2: #f6f1e8;
    --bg: #fbf7f0;
    --card: #ffffff;
    --brand: #e8590c;
    --brand-2: #be440a;
    --brand-3: #fb8c3c;
    --brand-soft: #fff1e3;
    --brand-ring: #ffd9bb;
    --gold: #c6810f;
    --gold-soft: #fbefd6;
    --ok: #16794d;
    --ok-soft: #ecfbf3;
    --err: #d6452b;
    --err-soft: #fdf1ee;
    --radius: 18px;
    --radius-sm: 12px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
*:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 6px;
}
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    font-family:
        "Poppins",
        "Tajawal",
        system-ui,
        -apple-system,
        sans-serif;
    background: radial-gradient(1200px 560px at 100% -10%, rgba(232, 89, 12, 0.07), transparent 55%),
        radial-gradient(900px 480px at -10% 8%, rgba(198, 129, 15, 0.05), transparent 55%), var(--bg);
    background-attachment: fixed;
    color: var(--ink);
    line-height: 1.6;
    font-weight: 500;
    min-height: 100vh;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
}
img {
    max-width: 100%;
    display: block;
}
button {
    font-family: inherit;
}
.announcement-bar {
    position: relative;
    z-index: 1;
    width: 100%;
    background: linear-gradient(100deg, #1c1812 0%, #2a241b 50%, #1c1812 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 0;
    overflow: hidden;
    letter-spacing: 0.2px;
}
/* ---- scrolling announcement (moves to the right, loops seamlessly) ---- */
.marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
    display: flex;
    flex: 0 0 auto;
    width: max-content;
    will-change: transform;
    /* --mq-shift = exactly one group's width, set by JS so the loop never gaps.
       RTL note: copies stack to the LEFT, so the shift must be POSITIVE. */
    animation: marqueeRight var(--mq-dur, 20s) linear infinite;
}
.marquee-group {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 9px;
    flex: 0 0 auto;
}
@keyframes marqueeRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(var(--mq-shift, 100%));
    }
}
.marquee-sep {
    color: var(--brand-3);
    opacity: 0.75;
    font-weight: 900;
}
.announcement-bar .pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.announcement-bar i {
    color: var(--brand-3);
    font-size: 13px;
}
.announcement-bar .strong {
    color: #ffcf9e;
    font-weight: 900;
}
@media (max-width: 480px) {
    .marquee-group {
        gap: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        transform: none;
    }
}
.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    background: var(--card);
    min-height: 100vh;
    overflow-x: clip;
}
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line-2);
    background: rgba(255, 253, 250, 0.86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-wrap img {
    height: 34px;
    width: auto;
}
.header-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-3) 0%, var(--brand) 48%, var(--brand-2) 100%);
    padding: 9px 16px;
    border-radius: 999px;
    white-space: nowrap;
    border: 0;
    box-shadow: 0 4px 12px rgba(232, 89, 12, 0.28);
}
.header-tagline i {
  color: #fff;
  font-size: 12px;
  display: inline-block;      /* transforms need this on inline elements */
  animation: heartbeat 1.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heartbeat {
  0%   { transform: scale(1); }
  14%  { transform: scale(1.3); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.3); }
  56%  { transform: scale(1); }
  100% { transform: scale(1); }
}
.gallery {
    padding: 18px 20px 0;
}
.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #fffdfa 0%, #f4eee4 100%);
    border: 1px solid var(--line);
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-head {
    padding: 24px 20px 0;
}
h1.product-title {
    font-size: clamp(22px, 6vw, 27px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.4px;
    color: var(--ink);
}
.price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.price-main {
    font-size: clamp(32px, 9vw, 38px);
    font-weight: 900;
    color: var(--brand);
    letter-spacing: -1px;
    font-feature-settings: "tnum";
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}
.price-main .ccy {
    font-size: 18px;
    font-weight: 800;
    margin-right: 4px;
    color: var(--muted);
}
.price-old {
    font-size: 18px;
    font-weight: 700;
    color: var(--muted-2);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(148, 137, 123, 0.7);
}

.section {
    padding: 10px 20px;
    position: relative;
}
.section-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: -0.3px;
}
.cat-entry {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    position: relative;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}
.cat-entry:focus-within {
    border-color: var(--brand);
}
.cat-entry.new-entry {
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
        max-height: 600px;
        margin-bottom: 14px;
        padding: 18px;
    }
    to {
        transform: translateX(-20px);
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
        padding: 0;
    }
}
.cat-entry.flash {
    animation: catFlash 1s ease;
}
@keyframes catFlash {
    0% {
        border-color: var(--brand);
    }
    60% {
        border-color: var(--brand);
    }
    100% {
        border-color: var(--line);
    }
}
.entry-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
#catsContainer.multi .entry-header {
    display: flex;
}
#catsContainer.multi .cat-entry {
    border-color: var(--brand-ring);
}
.cat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 15px;
    color: var(--ink);
}
.cat-price-tag {
    background: linear-gradient(135deg, var(--brand-soft), #fff);
    color: var(--brand-2);
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 12px;
}
.remove-btn {
    background: transparent;
    border: none;
    color: var(--muted-2);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 9px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.remove-btn:hover:not(:disabled) {
    background: var(--err-soft);
    color: var(--err);
}
.remove-btn[data-remove-hidden="true"] {
    display: none;
}
.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.field {
    position: relative;
}
.field label {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ink);
    display: block;
    margin-bottom: 7px;
}
.field label .required {
    color: var(--brand);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fffefc;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    font-family: inherit;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.field input::placeholder {
    color: #aba192;
    font-weight: 500;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand);
    outline: none;
    background: #fff;
}
.field input[dir="ltr"] {
    text-align: right;
}
.field.has-error input,
.field.has-error select {
    border-color: var(--err);
    background: var(--err-soft);
}
.field .error-msg {
    display: none;
    color: var(--err);
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    align-items: center;
    gap: 4px;
}
.field.has-error .error-msg {
    display: flex;
}
.add-cat-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #d6409f 50%, #f97316 100%);
    background-size: 180% 180%;
    border: none;
    color: #fff;
    font-weight: 800;
    font-family: inherit;
    font-size: 14px;
    padding: 16px;
    border-radius: var(--radius);
    width: 100%;
    cursor: pointer;
    margin-top: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    box-shadow: 0 8px 22px rgba(214, 64, 159, 0.34), 0 0 0 0 rgba(214, 64, 159, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    animation: addBtnPulse 2.2s ease-in-out infinite, addBtnHue 6s ease-in-out infinite;
}
.add-cat-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    animation: addBtnSheen 3.2s ease-in-out infinite;
}
.add-cat-btn:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #c026a3 50%, #ea580c 100%);
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 12px 28px rgba(214, 64, 159, 0.42);
}
.add-cat-btn > * {
    position: relative;
    z-index: 1;
}
.add-cat-btn .next-price {
    background: #fff;
    color: #b1228a;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
@keyframes addBtnPulse {
    0%,
    100% {
        box-shadow: 0 8px 22px rgba(214, 64, 159, 0.34), 0 0 0 0 rgba(214, 64, 159, 0.45);
    }
    50% {
        box-shadow: 0 8px 22px rgba(214, 64, 159, 0.34), 0 0 0 9px rgba(214, 64, 159, 0);
    }
}
@keyframes addBtnHue {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
@keyframes addBtnSheen {
    0%,
    55% {
        left: -130%;
    }
    100% {
        left: 150%;
    }
}

.cta-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-3) 0%, var(--brand) 48%, var(--brand-2) 100%);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    padding: 17px 18px;
    width: 100%;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
    letter-spacing: 0.2px;
    transition:
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.2s ease;
}
@keyframes ctaSheen {
    0%,
    60% {
        left: -60%;
    }
    100% {
        left: 130%;
    }
}
.cta-primary:hover {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    transform: translateY(-2px);
}
.cta-primary:active {
    transform: translateY(0);
}
.cta-primary i {
    font-size: 14px;
    position: relative;
    z-index: 1;
}
.cta-primary > * {
    position: relative;
    z-index: 1;
}
.cta-dark {
    background: linear-gradient(135deg, var(--ink-2), var(--ink));
    color: #fff;
}
.cta-dark::after {
    display: none;
}
.cta-dark:hover {
    background: linear-gradient(135deg, var(--ink), #15110c);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}
.trust-cell {
    background: #fff;
    padding: 18px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}
.trust-cell:hover {
    background: #fffdf9;
}
.trust-cell i {
    font-size: 19px;
    color: var(--brand);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-soft), #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.trust-cell strong {
    font-size: 13px;
    font-weight: 900;
    color: var(--ink);
}
.trust-cell small {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}
.benefits {
    background: linear-gradient(180deg, #fffdf9, var(--bg));
    border-radius: var(--radius);
    padding: 8px 18px;
    border: 1px solid var(--line);
}
.benefit-row {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 14px 0;
    font-size: 14px;
}
.benefit-row + .benefit-row {
    border-top: 1px dashed var(--line);
}
.benefit-row i {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #fff, var(--brand-soft));
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.benefit-content strong {
    display: block;
    font-weight: 900;
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 3px;
}
.benefit-content span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}
.faq-item {
    border-bottom: 1px solid var(--line-2);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-q {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    transition: color 0.2s ease;
}
.faq-q:hover {
    color: var(--brand);
}
.faq-q:hover .faq-icon {
    background: var(--brand-soft);
    color: var(--brand);
}
.faq-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--line-2);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-a-inner {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.75;
    padding-bottom: 18px;
}
.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
    color: #fff;
}
.faq-item.is-open .faq-a {
    max-height: 260px;
}
.success-card {
    display: none;
    text-align: center;
    padding: 34px 22px;
    background: linear-gradient(135deg, #ecfbf3 0%, #d2f3e0 100%);
    border: 1px solid #b8eac9;
    border-radius: var(--radius);
    margin: 20px;
}
.success-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1c8a57, var(--ok));
    color: #fff;
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    animation: pop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pop {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}
.success-card h2 {
    font-size: 22px;
    color: #0a4a30;
    margin-bottom: 8px;
    font-weight: 900;
}
.success-card p {
    color: #15603f;
    font-size: 14px;
    line-height: 1.65;
    max-width: 360px;
    margin: 0 auto;
    font-weight: 600;
}
.success-order-num {
    display: inline-block;
    margin-top: 16px;
    background: #fff;
    border: 1px dashed #b8eac9;
    padding: 9px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ok);
    font-family: "Poppins", "Tajawal", sans-serif;
    font-variant-numeric: tabular-nums;
}
.success-reorder-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto 0;
    padding: 13px 22px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(232, 89, 12, 0.3);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.success-reorder-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}
.success-reorder-btn:active {
    transform: translateY(0) scale(0.98);
}
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 680px;
    background: rgba(255, 253, 250, 0.95);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
    padding: 11px 16px;
    padding-bottom: calc(11px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 40;
    transition:
        transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1),
        opacity 0.2s ease;
    will-change: transform;
}
.sticky-cta.is-hidden {
    transform: translateX(-50%) translateY(130%);
    opacity: 0;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .sticky-cta {
        transition: none;
    }
}
.sticky-btn {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-3), var(--brand) 55%, var(--brand-2));
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    padding: 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform 0.15s ease;
}
.sticky-btn:hover {
    transform: translateY(-1px);
}
.sticky-btn:active {
    transform: translateY(0);
}
.sticky-btn i {
    font-size: 13px;
}
.site-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    background: linear-gradient(180deg, #2a241b, var(--ink));
    color: rgba(255, 255, 255, 0.72);
    padding: 26px 20px calc(26px + var(--sticky-h, 70px));
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    margin-top: 20px;
    overflow: hidden;
}
.site-footer strong {
    color: #fff;
    font-weight: 900;
    position: relative;
}
@media (max-width: 600px) {
    .gallery {
        padding: 14px 14px 0;
    }
    .section {
        padding: 20px 16px;
    }
    .product-head {
        padding: 22px 16px 0;
    }
}
@media (max-width: 480px) {
    .site-header {
        padding: 12px 16px;
    }
    .logo-wrap img {
        height: 30px;
    }
    .header-tagline {
        font-size: 11.5px;
        padding: 8px 13px;
        gap: 6px;
    }
    .price-old {
        font-size: 16px;
    }
    .cat-entry {
        padding: 16px;
    }
    .field input,
    .field select,
    .field textarea {
        padding: 13px 14px;
    }
    .cta-primary {
        font-size: 15px;
        padding: 16px;
    }
    .trust-cell {
        padding: 15px 7px;
    }
    .trust-cell i {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }
    .trust-cell strong {
        font-size: 12px;
    }
    .trust-cell small {
        font-size: 10.5px;
    }
    .sticky-btn {
        font-size: 14px;
        padding: 13px;
    }
}
@media (max-width: 360px) {
    h1.product-title {
        font-size: 20px;
    }
    .two-col {
        grid-template-columns: 1fr;
    }
    .header-tagline {
        font-size: 11px;
        padding: 8px 11px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .cta-primary::after {
        animation: none;
        display: none;
    }
    .gallery-main img {
        transition: opacity 0.4s ease;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}
.page {
    border-radius: 0;
}
@media (min-width: 720px) {
    .page {
        margin-top: 18px;
        margin-bottom: 18px;
        border-radius: 22px;
        overflow: hidden;
    }
}
.price-block {
    gap: 9px 10px;
    align-items: center;
}
.trust-cell,
.benefit-row {
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}
.trust-cell:hover {
    transform: translateY(-2px);
}
.section-title {
    position: relative;
}
@keyframes addIconNudge {
    0%,
    100% {
        transform: scale(1) rotate(0);
    }
    50% {
        transform: scale(1.18) rotate(90deg);
    }
}
@keyframes chipBob {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-1px) scale(1.07);
    }
}
@keyframes savedPopIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    60% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.add-cat-btn i {
    animation: addIconNudge 2.4s ease-in-out infinite;
}
.add-cat-btn .next-price {
    animation: chipBob 1.8s ease-in-out infinite;
}
.saved-pill {
    animation: savedPopIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-dark::after {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    animation: ctaSheen 4.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .add-cat-btn,.add-cat-btn i,.add-cat-btn::before,.add-cat-btn .next-price, .saved-pill,.cta-dark,.cta-dark::after,.sticky-btn{
        animation: none !important;
    }
}
.submit-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
::selection {
    background: var(--brand-ring);
    color: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
    .gallery-main {
        transition: none;
    }
    .trust-cell {
        transition:
            transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
            background 0.2s ease,
            border-color 0.2s ease;
    }
    .trust-cell:hover {
        transform: translateY(-3px);
        border-color: var(--brand-ring);
    }
    .trust-cell:hover i {
        transform: scale(1.06);
    }
    .trust-cell i {
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .add-cat-btn {
        transition:
            transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
            background 0.2s ease,
            border-color 0.2s ease;
    }
    .add-cat-btn:hover {
        transform: translateY(-2px);
    }
    .cat-entry {
        transition:
            border-color 0.25s ease,
            transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .faq-icon {
        transition:
            transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
            background 0.25s ease,
            color 0.2s ease;
    }
}
.cta-primary:focus-visible,
.cta-dark:focus-visible,
.sticky-btn:focus-visible,
.add-cat-btn:focus-visible {
    outline: 3px solid var(--brand-ring);
    outline-offset: 3px;
}
.collar-select {
    margin-top: 4px;
}
.collar-label {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ink);
    display: block;
    margin-bottom: 9px;
}
.collar-label .required {
    color: var(--brand);
}
.collar-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.collar-swatch {
    width: 35px;
    height: 35px;
    background: var(--sw, #1c1c1c);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1.5px var(--line), 0 1px 3px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    -webkit-appearance: none;
    appearance: none;
}
.collar-swatch:hover {
    transform: scale(1.08);
}
.collar-swatch.is-selected {
    box-shadow: 0 0 0 2px var(--brand), 0 1px 4px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}
.collar-swatch i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    opacity: 0.92;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}
.collar-swatch.is-selected i {
    opacity: 1;
}
.collar-current {
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}
.collar-current strong {
    color: var(--ink);
    font-weight: 800;
}
.cta-primary:not(.cta-dark) {
    box-shadow: 0 8px 22px rgba(232, 89, 12, 0.32);
}
@keyframes ctaGlowBrand {
    0%,
    100% {
        box-shadow: 0 8px 22px rgba(232, 89, 12, 0.32), 0 0 0 0 rgba(232, 89, 12, 0.45);
    }
    50% {
        box-shadow: 0 8px 26px rgba(232, 89, 12, 0.4), 0 0 0 11px rgba(232, 89, 12, 0);
    }
}
.cta-dark {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #ec4899 100%);
    background-size: 180% 180%;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.34);
    animation: ctaGlowShip 2.4s ease-in-out infinite, ctaHueShip 6s ease-in-out infinite;
}
.cta-dark:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #db2777 100%);
}
.cta-dark::after {
    display: block;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}
@keyframes ctaGlowShip {
    0%,
    100% {
        box-shadow: 0 8px 22px rgba(124, 58, 237, 0.34), 0 0 0 0 rgba(124, 58, 237, 0.45);
    }
    50% {
        box-shadow: 0 8px 26px rgba(124, 58, 237, 0.42), 0 0 0 11px rgba(124, 58, 237, 0);
    }
}
@keyframes ctaHueShip {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
.sticky-btn {
    box-shadow: 0 4px 16px rgba(232, 89, 12, 0.3);
    animation: ctaGlowBrand 2.1s ease-in-out infinite;
}
.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.rating-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--gold);
    font-size: 15px;
}
.rating-score {
    font-size: 15px;
    font-weight: 900;
    color: var(--ink);
}
.rating-count {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
}
.proof-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #fffdfa 0%, #f4eee4 100%);
}
.proof-track {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    touch-action: pan-y;
}
.proof-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.proof-slide.is-active {
    opacity: 1;
    z-index: 2;
}
.proof-slide.is-leaving {
    opacity: 0;
    z-index: 1;
}
.proof-slide:not(.is-active):not(.is-leaving) {
    transition: none;
}
.proof-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}
.proof-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    transition: background 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.proof-nav:hover {
    background: #fff;
    color: var(--brand);
}
.proof-nav:active {
    transform: translateY(-50%) scale(0.92);
}
.proof-nav.prev {
    right: 10px;
}
.proof-nav.next {
    left: 10px;
}
.proof-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.proof-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(33, 28, 22, 0.28);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}
.proof-dot.is-active {
    width: 20px;
    border-radius: 999px;
    background: var(--brand);
}
/* 8px dots are too small to tap reliably — widen the hit area only */
.proof-dot {
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.proof-dot::before {
    content: "";
    position: absolute;
    inset: -9px -5px;
}
.location-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    border: 1px dashed var(--brand-ring);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    line-height: 1.75;
}
.location-note i {
    flex-shrink: 0;
    margin-top: 4px;
    font-size: 14px;
    color: var(--brand);
}
@media (max-width: 480px) {
    .location-note {
        gap: 9px;
        padding: 10px 11px;
        font-size: 11.5px;
        line-height: 1.7;
    }
}

/* ================= discount badge + savings + inline order CTA ================= */
.price-off {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: center;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    padding: 7px 12px;
    border-radius: 999px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e11d48 0%, #f0470c 55%, #f97316 100%);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
    animation: offPop 2s ease-in-out infinite;
}
.price-off i {
    font-size: 11px;
}
.price-off b {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-weight: 900;
}
.price-off::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.55) 50%, transparent 75%);
    transform: translateX(-120%);
    animation: offShine 2.8s ease-in-out infinite;
}
@keyframes offPop {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 6px 18px rgba(225, 29, 72, 0.48);
    }
}
@keyframes offShine {
    0%,
    55% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}
/* flash the first tag card when an order button sends the user here */
.cat-entry.is-targeted {
    animation: targetFlash 1.1s ease-out 1;
}
@keyframes targetFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 89, 12, 0.5);
    }
    100% {
        box-shadow: 0 0 0 16px rgba(232, 89, 12, 0);
    }
}
@media (max-width: 480px) {
    .price-off {
        font-size: 12px;
        padding: 6px 10px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .price-off,
    .price-off::after,
    .cat-entry.is-targeted {
        animation: none;
    }
}

/* ---- "التالي" button inside a collar entry ---- */
.cat-entry .next-btn {
    margin-top: 16px;
}
/* only the last entry needs it: the ones above are followed by another collar */
#catsContainer .cat-entry:not(:last-child) .next-btn {
    display: none;
}

/* ---- discount offer on the confirmation screen ---- */
.success-reorder-btn {
    max-width: 100%;
    flex-wrap: wrap;
    text-align: center;
    line-height: 1.5;
}

/* ---- shipping form: same solid card as a collar entry ---- */
.shipping-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    position: relative;
}
.shipping-card:focus-within {
    border-color: var(--brand);
}
