@font-face {
    font-family: "Bree Serif";
    src: url("atc-reference/bree-serif.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

:root {
    --background: #f1f6fc;
    --surface: #fff;
    --surface-raised: #f5f3ff;
    --line: #e2e4ec;
    --ink: #0f172a;
    --muted: #525c6d;
    --accent: #7367f0;
    --accent-dark: #5143c9;
    --accent-light: #f1efff;
    --input-border: #c9d3e5;
    --input-background: #fff;
    --glass: linear-gradient(130deg, #fff, #ffffffd9);
    --glass-shadow: 0 2px 8px #2b3a6b09;
    --atc-serif: "Noto Sans Bengali Taka", "Bree Serif", Georgia, "Times New Roman", "Noto Serif Bengali", serif;
}

body { background: var(--background); }
.container { width: min(1220px, calc(100% - 10px)); }
.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom-color: #dfe5ef;
    background: #f9fbfcef;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 97px;
    gap: 12px;
}
.wordmark { gap: 0; }
.brand-logo { width: 235px; height: auto; }
.site-nav { justify-self: end; gap: 20px; }
.site-nav a {
    min-height: 40px;
    padding: 0;
    background: transparent;
    color: #141a33;
    font: 700 14px var(--atc-serif);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: transparent; color: var(--accent-dark); }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 11px; }
.header-action.button-primary { min-width: 98px; min-height: 40px; padding-block: 7px; border-radius: 4px; font-size: 17px; }
.wallet-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 30px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.wallet-action:hover { background: var(--accent-dark); }
.wallet-action span:last-child { max-width: 104px; overflow: hidden; text-overflow: ellipsis; }
.wallet-icon { display: inline-block; width: 12px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; }
.account-action { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #eca42b; color: #231705; font-weight: 800; }

.home-content { padding-top: 12px; }
.notice-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 44px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff9;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}
.notice-label {
    display: flex;
    align-items: center;
    flex: none;
    gap: 7px;
    padding-inline: 14px;
    background: var(--accent);
    color: white;
    font-size: 12px;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.notice-label span, .recent-badge span {
    width: 9px;
    height: 9px;
    flex: none;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 2px #ffffff4a;
    animation: atc-pulse 1.8s ease-in-out infinite;
}
.notice-window { display: flex; align-items: center; flex: 1; min-width: 0; overflow: hidden; padding-inline: 12px; }
.notice-message { flex: none; color: #25324e; font: 700 13px/1.45 var(--atc-serif); white-space: nowrap; }
.notice-bar[data-overflow] .notice-message { animation: atc-marquee 52s linear infinite; }
.notice-bar:hover .notice-message, .notice-bar:focus-within .notice-message { animation-play-state: paused; }
.notice-dismiss {
    flex: none;
    align-self: center;
    width: 27px;
    height: 27px;
    margin-right: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    line-height: 1;
}
@keyframes atc-pulse { 50% { opacity: .65; box-shadow: 0 0 0 4px #ffffff25; } }
@keyframes atc-marquee { 12% { transform: translateX(0); } 100% { transform: translateX(calc(-100% + 4rem)); } }

.hero-slide {
    min-height: 0;
    border: 0;
    border-radius: 8px;
    background: #e5dbff;
    box-shadow: none;
    animation: atc-appear .32s ease both;
}
.hero-slide::after { content: none; }
.hero-banner { display: block; width: 100%; aspect-ratio: 3; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner:focus-visible { outline-offset: -4px; }
.carousel-controls { gap: 4px; padding: 6px 0 13px; }
.carousel-dots { gap: 4px; }
.carousel-dots button { width: 16px; height: 28px; border-radius: 0; }
.carousel-dots button::before, .carousel-dots button[aria-current="true"]::before { width: 12px; height: 4px; border-radius: 0; background: #7e8895; }
.carousel-dots button[aria-current="true"]::before { background: #12151d; }
.carousel-pause { height: 24px; width: 23px; border: 0; }
.pause-icon { width: 7px; height: 8px; }
@keyframes atc-appear { from { opacity: .65; } to { opacity: 1; } }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 64px;
}
.quick-action {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 56px;
    padding: 9px 12px;
    border-radius: 12px;
    background: linear-gradient(100deg, #7569f1, #8277e8);
    color: #fff;
    box-shadow: 0 3px 5px #33246427;
    transition: background .2s;
}
.quick-action:hover { background: var(--accent-dark); }
.quick-action small, .quick-action strong { display: block; }
.quick-action small { color: #fff; font-size: 10px; letter-spacing: .025em; text-transform: uppercase; }
.quick-action strong { font-size: 14px; line-height: 1.2; }
.quick-icon { position: relative; display: grid; flex: none; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #fff; color: var(--accent); }
.quick-icon--send::before { width: 15px; height: 14px; background: currentColor; clip-path: polygon(0 44%, 100% 0, 76% 100%, 46% 75%, 28% 92%, 33% 61%); content: ""; }
.quick-icon--group::before { width: 5px; height: 5px; margin-top: -6px; border-radius: 50%; background: currentColor; box-shadow: -6px 3px currentColor, 6px 3px currentColor; content: ""; }
.quick-icon--group::after { position: absolute; inset: auto 11px 7px; height: 6px; border-radius: 4px 4px 1px 1px; background: currentColor; content: ""; }
.quick-icon--chat::before { width: 14px; height: 12px; border-radius: 6px 6px 6px 2px; background: currentColor; content: ""; }

.category-section { margin-top: 0; scroll-margin-top: 106px; }
.category-section + .category-section { margin-top: 128px; padding: 0; border: 0; }
.category-section .section-heading { display: block; margin: 0 0 46px; text-align: center; }
.category-section .section-heading h2 { color: #0f3460; font: bold clamp(23px, 2.5vw, 30px)/1.14 var(--atc-serif); letter-spacing: -.025em; }
.category-section .section-heading p { margin: 7px 0 0; }
.product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 31px; }
.product-card {
    min-width: 0;
    padding: 0;
    border: 1px solid #dfe1ea;
    border-bottom-color: #a397e7;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 1px 0 #a796ed33;
    transition: transform .18s, border-color .18s;
}
.product-card:hover { transform: translateY(-2px); border-color: var(--accent); background: #fff; }
.product-cover { aspect-ratio: 1; border-radius: 8px 8px 6px 6px; }
.product-cover img { object-position: center; }
.product-card:hover .product-cover img { transform: none; }
.product-meta { justify-content: center; min-height: 58px; padding: 8px 7px; text-align: center; }
.product-meta h3 { color: #14161a; font: 700 14px/1.16 var(--atc-serif); letter-spacing: normal; }
.catalog-page .category-section + .category-section { margin-top: 64px; }
.catalog-page .category-section { margin-top: 42px; }
.catalog-page .section-heading { margin-bottom: 25px; }
.catalog-header { align-items: center; }

.recent-orders {
    margin: 88px 0 26px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--glass-shadow);
}
.recent-orders header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.recent-orders h2 { color: #0f3460; font: bold 23px var(--atc-serif); }
.recent-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 30px; background: #eaf8ef; color: #1d6b43; font-size: 12px; }
.recent-badge span { width: 6px; height: 6px; }
.recent-orders ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.recent-orders li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border: 1px solid #e5e8f0; border-radius: 8px; background: #f9fbff; font-size: 13px; animation: atc-appear .44s ease both; }
.recent-orders li div span { display: block; color: var(--muted); font-size: 12px; }
.recent-status { flex: none; color: #267047; font-weight: 700; }
.recent-status--pending { color: #9a5421; }
.store-support-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(100%, 610px); margin: 0 auto 34px; }
.store-partner-banner { display: block; margin-bottom: 24px; }
.store-partner-banner img { display: block; width: 100%; height: auto; }
.store-install { position: fixed; z-index: 20; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 20px); padding: 8px 12px; border-radius: 14px; border: 1px solid #e6e6f0; background: #fff; box-shadow: 0 6px 24px #19225d1d; font-size: 12px; }
.store-install-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: #eeebff; color: #6f5af5; font-size: 18px; }
.store-install small { display: block; color: var(--muted); }
.store-install a { padding: 6px 12px; border-radius: 8px; color: #fff; background: #7367f0; font-weight: 700; }
.store-install button { border: 0; background: transparent; color: var(--muted); font-size: 16px; }
.store-support-panels a { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.store-support-panels strong { color: #0f3460; font-family: var(--atc-serif); }
.store-support-panels span { color: var(--muted); font-size: 13px; }
.store-support-panels img { width: 100%; height: auto; border-radius: 6px; }
.store-support-panels a:has(img) { padding: 0; }

.help-float { position: fixed; right: 20px; bottom: 48px; z-index: 6; }
.help-float summary { display: flex; align-items: center; gap: 11px; cursor: pointer; list-style: none; }
.help-float summary::-webkit-details-marker { display: none; }
.help-float-label {
    padding: 9px 12px;
    border: 1px solid #e7e5f4;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 3px 16px #42367b14;
    font-size: 13px;
    font-weight: 700;
}
.help-float-icon {
    display: grid;
    place-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 5px #7367f02e, 0 4px 10px #453d812e;
}
.help-float-icon::before { width: 15px; height: 12px; border: 2px solid currentColor; border-radius: 6px 6px 6px 2px; content: ""; }
.help-float nav {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    display: grid;
    min-width: 150px;
    gap: 3px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 6px 22px #453d812e;
}
.help-float nav a { padding: 5px 8px; border-radius: 5px; font-size: 13px; }
.help-float nav a:hover { background: var(--accent-light); color: var(--accent-dark); }

.store-promo { position: fixed; overflow: visible; width: min(600px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 5px; color: var(--ink); }
.store-promo[open] { display: grid; grid-template-columns: 1fr 1fr; }
.store-promo::backdrop { background: #11182791; }
.store-promo > form { position: absolute; top: -29px; right: 0; }
.store-promo-close { display: grid; place-content: center; width: 27px; height: 27px; padding: 0; border: 0; border-radius: 50%; background: #fff; font-size: 23px; line-height: 1; }
.store-promo img { width: 100%; height: 100%; border-radius: 5px 0 0 5px; object-fit: cover; }
.store-promo > div { padding: 16px; }
.store-promo h2 { font: bold 21px var(--atc-serif); }
.store-promo p { margin: 8px 0; font-size: 14px; }
.store-promo .button-primary { min-height: 35px; }

.product-page { padding-top: 19px; }
.product-page .product-header {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 17px;
    min-height: 129px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #d9dceb;
    border-radius: 18px;
    background: radial-gradient(ellipse at right, #eee8ff, transparent 45%), #fff;
    box-shadow: 0 8px 22px #3842710d;
}
.product-header-art { aspect-ratio: 1; padding: 8px; border: 1px solid #e3e2ed; border-radius: 15px; background: #fff; box-shadow: var(--glass-shadow); }
.product-header-art img { border-radius: 9px; object-position: center; }
.product-header-art .cover-fallback { border-radius: 8px; background: var(--product-accent); font-size: 35px; }
.product-page .product-header h1 { font: 750 clamp(20px, 3vw, 25px)/1.18 var(--body-font); letter-spacing: -.02em; }
.product-header .product-category-badge { display: inline-block; width: fit-content; padding: 3px 9px; border-radius: 20px; background: var(--accent-light); color: var(--accent-dark); font: 700 12px/1.4 var(--atc-serif); }
.product-page .checkout-layout { grid-template-columns: minmax(0, 2fr) minmax(283px, 1fr); gap: 8px; }
.product-page .checkout-fields { gap: 8px; }
.product-page .checkout-step, .product-page .checkout-summary { min-width: 0; padding: 0 12px 13px; border: 1px solid #e0e3eb; border-radius: 6px; background: #fff; box-shadow: var(--glass-shadow); }
.product-page .checkout-packages { padding-inline: 16px; }
.product-page .checkout-step-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 -12px 12px;
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7ed;
    color: #101218;
    font: bold 17px/1.2 var(--atc-serif);
    letter-spacing: normal;
}
.product-page .checkout-packages .checkout-step-title { margin: 0 -16px 15px; padding-block: 16px; }
.checkout-step-title span { display: grid; place-content: center; flex: none; width: 23px; height: 23px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 13px var(--body-font); }
.product-page .package-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.product-page .package-option input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.product-page .package-label {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 7px 8px;
    border: 1px solid #dadde4;
    border-radius: 4px;
    background: #f9f9fb;
    text-align: center;
}
.product-page .package-label strong { font: bold 13px/1.15 var(--atc-serif); }
.product-page .package-label span { color: var(--accent-dark); font: bold 12px/1.12 var(--body-font); }
.product-page .package-option:has(:checked) .package-label { border-color: var(--accent); background: var(--accent-light); }
.product-page .package-option:has(:focus-visible) .package-label { outline: 2px solid var(--accent); outline-offset: 2px; }
.checkout-help { display: inline-block; margin-top: 12px; color: #9b6008; font: bold 14px/1.2 var(--atc-serif); }
.checkout-help:hover { text-decoration: underline; }
.product-page .form-field label { font: 700 14px/1.25 var(--atc-serif); }
.product-page .form-field input { min-height: 39px; border-radius: 6px; }
.product-page .checkout-channel:has(.channel-options) { padding-bottom: 12px; }
.channel-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr)); gap: 7px; }
.channel-card { position: relative; display: grid; overflow: hidden; border: 1px solid #e2e3ec; border-radius: 14px; cursor: pointer; }
.channel-card > input { position: absolute; z-index: 1; width: 22px; height: 22px; margin: 0; inset: 4px auto auto 5px; opacity: .8; accent-color: var(--accent); }
.channel-card:has(:checked) { border-color: #9c8de7; background: #f7f5ff; }
.channel-card:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.channel-card:has(:disabled) { border-style: dashed; cursor: default; }
.channel-card:has(:disabled) .channel-art { opacity: .55; }
.channel-art { display: grid; place-items: center; min-height: 91px; padding: 15px 12px 9px; }
.channel-art img { width: min(100%, 110px); height: auto; }
.channel-card > strong { display: block; padding: 5px 8px; background: #edf0f5; font-size: 12px; }
.channel-card:has(:checked) > strong { background: #e5e1f9; }
.product-page .checkout-summary dl { margin: 10px 0 7px; }
.product-page .checkout-summary dl div { grid-template-columns: 1fr auto; padding-block: 3px; }
.product-page .checkout-summary .checkout-wallet-login { display: block; }
.product-page .checkout-summary .summary-total { margin: 0; border: 0; }
.product-page .summary-total dd { font-size: 18px; }
.product-page .checkout-summary .button-primary { min-height: 39px; border-radius: 5px; font: 700 15px var(--body-font); }
.product-rules { margin-top: 22px; padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.product-rules h2 { margin-bottom: 8px; font: bold 20px var(--atc-serif); }
.product-rules p { white-space: pre-line; }
.product-rules ul { margin: 6px 0 0; padding-left: 19px; }

.site-footer { background: #f0f1f3; }
.footer-inner { grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr); }
.footer-contacts { align-self: start; }
.footer-contacts .footer-help-card { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-radius: 9px; background: #fff; box-shadow: 0 14px 32px #1218290a; }
.footer-help-card small { display: block; color: var(--muted); }
.footer-help-dot { border-radius: 50%; font-weight: 700; }
.footer-help-dot--whatsapp { color: #0abd48; }
.footer-help-dot--telegram { color: #0785c8; }
.footer-links h2 { color: #132c54; font: bold 18px var(--atc-serif); }
.footer-links p { color: var(--muted); font-size: 13px; }
.footer-bottom { justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover { color: var(--accent-dark); }
.footer-copyright { padding: 10px 12px; text-align: center; background: #eef2fa; color: var(--muted); font-size: 12px; }

@media (max-width: 850px) {
    .site-nav { gap: 12px; }
    .product-grid { gap: 14px 16px; }
    .quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 46px; }
    .quick-action { gap: 9px; }
    .category-section + .category-section { margin-top: 84px; }
    .category-section .section-heading { margin-bottom: 29px; }
    .product-page .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .container { width: calc(100% - 10px); }
    .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; min-height: 61px; padding-top: 0; }
    .brand-logo { width: min(159px, 37vw); }
    .site-nav { grid-area: auto; gap: 7px; padding: 0; }
    .site-nav a { min-height: 36px; padding: 0; font-size: 12px; }
    .header-tools { gap: 5px; }
    .header-action.button-primary { min-width: 53px; min-height: 32px; padding: 5px 8px; font-size: 13px; }
    .wallet-action { padding: 5px 7px; font-size: 11px; }
    .wallet-action .wallet-icon { display: none; }
    .wallet-action span:last-child { max-width: 70px; }
    .account-action { width: 30px; height: 30px; padding: 0; font-size: 12px; }
    .notice-bar { min-height: 35px; margin-bottom: 13px; }
    .notice-label { padding-inline: 9px; font-size: 9px; }
    .notice-message { font-size: 11px; }
    .notice-dismiss { width: 22px; height: 22px; }
    .hero-slide { border-radius: 7px; }
    .quick-actions { margin-bottom: 37px; }
    .quick-action { min-height: 44px; gap: 6px; padding: 5px; border-radius: 7px; }
    .quick-action small { font-size: 8px; }
    .quick-action strong { font-size: 10px; }
    .quick-icon { width: 22px; height: 22px; }
    .quick-icon--group::after { inset: auto 8px 3px; height: 5px; }
    .category-section { scroll-margin-top: 74px; }
    .category-section + .category-section { margin-top: 67px; }
    .category-section .section-heading { margin-bottom: 24px; }
    .product-grid { gap: 11px 14px; }
    .product-meta { min-height: 42px; padding: 5px; }
    .product-meta h3 { font-size: 11px; }
    .recent-orders { margin-top: 58px; padding: 12px; }
    .recent-orders ol { grid-template-columns: minmax(0, 1fr); }
    .product-page .product-header { min-height: 92px; grid-template-columns: 67px minmax(0, 1fr); padding: 10px; gap: 12px; }
    .product-header-art { padding: 5px; border-radius: 11px; }
    .product-page .checkout-layout { grid-template-columns: minmax(0, 1fr); }
    .product-page .package-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .help-float { right: 13px; bottom: 18px; }
    .help-float-label { display: none; }
    .help-float-icon { width: 38px; height: 38px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .product-page .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-promo[open] { grid-template-columns: minmax(0, 1fr); }
    .store-promo img { max-height: 43vh; border-radius: 5px 5px 0 0; }
}

@media (max-width: 360px) {
    .header-inner { gap: 4px; }
    .brand-logo { width: min(123px, 31vw); }
    .site-nav { gap: 5px; }
    .site-nav a { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .notice-label span, .recent-badge span, .notice-bar[data-overflow] .notice-message, .hero-slide, .recent-orders li { animation: none; }
}
