/* S-AlgoL store. Look and colours taken from the Shopify "Dukamarket" theme
   (theme_08OCT2026_1143pm/config/settings_data.json and assets/*.css). */
@import url("fonts.css");

:root {
  --font: "Bai Jamjuree", "Segoe UI", Arial, sans-serif;
  --text: #788188;          /* color_body_text */
  --main: #212529;          /* color_main, headings and links */
  --accent: #2b38d1;        /* link hover, prices */
  --red: #dd3842;           /* color_secondary */
  --green: #008a00;
  --orange: #dc7633;        /* benefit strip, menu border */
  --orange-text: #e67e22;
  --btn: #5dade2;           /* color_btn */
  --btn-hover: #17769f;     /* color_btn_hover */
  --topbar: #0099da;        /* top header */
  --cream: #fdebd0;         /* header background, top bar text */
  --sky: #5bc0de;           /* welcome bar, breadcrumb bar */
  --grey-band: #d5dbdb;     /* product carousels, grey banner */
  --page: #f2f3f5;          /* page background inside the box */
  --line: #e5e8ec;
  --footer: #4682b4;
  --footer-bottom: #1f618d;
  --gold: #f8c471;
  --radius: 5px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 400 14px/1.7 var(--font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--main); font-weight: 600; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
p { margin: 0 0 1em; }

.box { max-width: 1200px; margin: 0 auto; background: var(--page); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.container { padding: 0 10px; }

/* Top bar */
.topbar { background: var(--topbar); color: var(--cream); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; flex-wrap: wrap; }
.topbar p { margin: 0; }
.topbar a { color: var(--cream); }
.topbar a:hover { color: #fff; }
.topbar .fa { margin-right: 5px; }
.topbar-right a + a { margin-left: 18px; }

/* Header */
.header { background: var(--cream); }
.header-top .container { display: flex; align-items: center; gap: 20px; min-height: 84px; }
.logo img { max-width: 190px; }
.logo .logo-text { font-size: 22px; font-weight: 700; color: var(--main); }
.header-contact { margin-left: auto; display: flex; gap: 28px; }
.header-contact a { display: flex; align-items: center; gap: 10px; color: var(--main); }
.header-contact .fa { font-size: 24px; color: var(--main); }
.header-contact small { display: block; font-size: 12px; color: var(--main); line-height: 1.2; }
.header-contact b { display: block; font-weight: 600; line-height: 1.3; }
.header-contact a:hover b { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 4px; cursor: pointer; }
.nav-toggle img { width: 26px; }

.navbar { border-top: 1px solid var(--orange); border-bottom: 1px solid var(--orange); }
.navbar .container { display: flex; align-items: center; min-height: 44px; }
.browse { position: relative; width: 25%; min-width: 230px; align-self: stretch; display: flex; align-items: center; border-right: 1px solid #ecd3ad; }
.browse-title { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--main); font-size: 14px; cursor: pointer; background: none; border: 0; font-family: inherit; padding: 0; }
.browse-list { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.browse:hover .browse-list, .browse:focus-within .browse-list { display: block; }
.main-nav { display: flex; gap: 2px; margin: 0 0 0 20px; padding: 0; list-style: none; flex-wrap: wrap; }
.main-nav a { display: block; padding: 10px 9px; font-weight: 500; color: var(--main); font-size: 14px; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.forum-link { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }

/* Vertical product list, used in the header dropdown and the home sidebar */
.vlist { list-style: none; margin: 0; padding: 6px 0; }
.vlist a { display: flex; align-items: center; gap: 10px; padding: 7px 18px; color: var(--main); font-size: 14px; }
.vlist a:hover { color: var(--accent); background: rgba(43,56,209,.04); }
.vlist img { width: 34px; height: 26px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.vlist .vlist-head { padding: 10px 18px 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text); }

/* Breadcrumb bar */
.breadcrumb { background: var(--sky); text-align: center; padding: 8px 10px; margin-bottom: 10px; font-size: 14px; color: var(--main); }
.breadcrumb a { color: #4f5a63; }
.breadcrumb a:hover { color: var(--main); }
.breadcrumb .sep { color: #4f5a63; margin: 0 6px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--btn); color: #fff; border: 1px solid var(--btn); border-radius: 25px;
  padding: 11px 28px; font: 600 12px/1.4 var(--font); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--btn-hover); border-color: var(--main); color: #fff; }
.btn-buy { background: linear-gradient(90deg, #2b38d1, #3d4ee6); border-color: #2b38d1; width: 100%; padding: 14px 28px; }
.btn-buy:hover { background: var(--btn-hover); }

/* Home */
.welcome { background: var(--sky); text-align: center; padding: 8px 10px; margin-bottom: 10px; }
.welcome h1 { margin: 0; color: var(--cream); font-size: 25px; font-weight: 600; }
.home-top { display: grid; grid-template-columns: 25% 1fr; gap: 20px; padding: 0 10px; }
.home-side { background: var(--cream); border: 1px solid #d9c6a5; border-radius: var(--radius); }
.home-side h2 { font-size: 14px; text-transform: uppercase; margin: 0; padding: 14px 18px 4px; }
.slider { position: relative; border: 1px solid var(--footer); border-radius: var(--radius); overflow: hidden; background: #fff; aspect-ratio: 16 / 9; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--main); font-size: 20px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.slider-arrow:hover { background: var(--accent); color: #fff; }
.slider-arrow.prev { left: 12px; } .slider-arrow.next { right: 12px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(33,37,41,.3); cursor: pointer; padding: 0; }
.slider-dots button.active { background: var(--accent); }
.static-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.static-banners a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #fff; }
.static-banners img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.static-banners a:hover img { transform: scale(1.04); }

.band { background: var(--grey-band); text-align: center; padding: 14px 10px; margin-top: 20px; }
.band h2 { color: var(--orange-text); font-size: 28px; font-weight: 600; text-transform: capitalize; margin: 0 0 4px; }
.band p { color: var(--green); font-size: 20px; font-weight: 500; text-transform: capitalize; margin: 0; }

.block { background: var(--grey-band); padding: 10px 10px 6px; }
.block + .block { padding-top: 4px; }
.block-head { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px 20px; margin-bottom: 10px; }
.block-head h2 { margin: 0; font-size: 16px; text-transform: uppercase; }
.block-head a { color: var(--text); font-size: 13px; }
.block-head a:hover { color: var(--accent); }
.block-head .fa { margin-left: 6px; }
.carousel-wrap { position: relative; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 5); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.carousel-btn { position: absolute; top: 40%; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; font-size: 18px; opacity: .9; }
.carousel-btn.prev { left: -6px; } .carousel-btn.next { right: -6px; }

.image-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 20px 10px 10px; }
.image-card { background: #e2e2e6; border: 1px solid #c9ccd2; border-radius: var(--radius); min-height: 180px; padding: 30px 36px; display: flex; flex-direction: column; justify-content: center; }
.image-card h3 { color: var(--red); font-size: 22px; font-weight: 500; margin: 0; }
.image-card .soon { color: var(--accent); font-size: 22px; font-weight: 500; margin: 0 0 14px; }
.image-card p { color: var(--green); font-weight: 500; margin: 0; }

.section { padding: 10px 10px 20px; }
.section-title { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px 20px; margin-bottom: 10px; }
.section-title h1, .section-title h2 { margin: 0; font-size: 16px; text-transform: uppercase; }
.section-title a { color: var(--text); font-size: 13px; }
.section-intro { padding: 0 4px 10px; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.card { background: #fff; border: 1px solid #fff; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.card-img { aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 18px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card h3 { font-size: 15px; font-weight: 500; margin: 0 0 4px; color: var(--main); }
.card:hover h3 { color: var(--accent); }
.card .short { font-size: 13px; margin: 0 0 12px; flex: 1; }
.price { color: var(--accent); font-weight: 600; font-size: 18px; }
.price small { font-size: 12px; font-weight: 500; color: var(--text); margin-left: 4px; }
.card .stock { font-size: 13px; color: var(--green); margin-top: 4px; }
.card .stock .fa { margin-right: 4px; }

/* Blog cards */
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card .post-img { aspect-ratio: 2 / 1; overflow: hidden; }
.post-card .post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-card .post-body { padding: 16px 18px 18px; }
.post-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.post-card:hover h3 { color: var(--accent); }
.post-card .read-more { color: var(--accent); font-weight: 600; font-size: 13px; text-transform: uppercase; }
.meta { font-size: 13px; color: #8d979e; margin-bottom: 8px; }
.meta .fa { margin-right: 4px; }
.post-card p.excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Product page */
.product-layout { display: grid; grid-template-columns: 25% 1fr; gap: 20px; padding: 0 10px 10px; }
.product-side .side-box { background: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 10px; }
.side-benefit { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.side-benefit + .side-benefit { border-top: 1px solid var(--line); }
.side-benefit img { width: 32px; height: 32px; }
.side-benefit b { display: block; color: var(--main); font-weight: 600; }
.side-benefit span { font-size: 13px; }
.side-box h3 { font-size: 15px; text-transform: uppercase; margin-bottom: 8px; }
.side-box .vlist { padding: 0; }
.side-box .vlist a { padding: 6px 0; }
.panel { background: #fff; border-radius: var(--radius); padding: 40px; margin-bottom: 20px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.gallery { display: flex; gap: 10px; align-items: flex-start; }
.gallery-main { flex: 1; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.thumbs { display: flex; flex-direction: column; gap: 10px; width: 56px; }
.thumb { padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; aspect-ratio: 1 / 1; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--accent); }
.product-info h1 { font-size: 24px; font-weight: 500; margin-bottom: 14px; }
.order-type { margin-bottom: 12px; }
.order-type label { display: block; font-size: 15px; margin-bottom: 4px; }
.order-type select { font: inherit; color: var(--main); padding: 4px 8px; border: 1px solid #c9ccd2; border-radius: 3px; background: #fff; }
.product-info .price { font-size: 26px; display: block; margin-bottom: 18px; }
.product-info .short-desc { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.buy-form fieldset { border: 0; padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.buy-form legend { padding: 0; margin-bottom: 10px; font-size: 14px; }
.edition { display: inline-block; margin: 0 6px 6px 0; cursor: pointer; position: relative; }
.edition input { position: absolute; opacity: 0; pointer-events: none; }
.edition span { display: inline-block; min-width: 56px; text-align: center; padding: 6px 16px; border: 1px solid var(--line); border-radius: 3px; color: var(--main); font-size: 15px; transition: border-color .2s; }
.edition input:checked + span { border-color: var(--accent); color: var(--accent); }
.edition input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.buy-note { background: #fff7e6; border: 1px solid #f6d58e; border-radius: 4px; padding: 10px 14px; margin-top: 12px; color: var(--main); }
.crosslink { margin-top: 14px; }
.product-meta { margin: 20px 0; padding: 0; list-style: none; }
.product-meta li { display: grid; grid-template-columns: 110px 1fr; padding: 3px 0; }
.product-meta li > span:first-child { color: var(--main); font-weight: 500; }
.secure-box { background: #f5f5f7; border-radius: var(--radius); padding: 20px; text-align: center; }
.secure-box h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.pay-icons { display: flex; justify-content: center; gap: 8px; font-size: 30px; color: #4f5a63; flex-wrap: wrap; }
.tabs-head { display: flex; justify-content: center; gap: 40px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.tabs-head span { padding: 0 0 10px; font-weight: 600; text-transform: uppercase; color: var(--accent); border-bottom: 2px solid var(--accent); margin-bottom: -1px; }
.tag { display: inline-block; font-size: 13px; padding: 2px 10px; margin: 0 6px 6px 0; border: 1px solid var(--line); border-radius: 15px; }

/* Text pages */
.page-panel { background: #fff; border-radius: var(--radius); padding: 40px; margin: 0 10px 20px; }
.page-panel.narrow > * { max-width: 860px; }
.page-panel h1 { font-size: 26px; }
.page-panel h2 { font-size: 18px; margin-top: 1.4em; }
.lead { font-size: 16px; }
.links { padding-left: 0; list-style: none; }
.links li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.links .fa { color: var(--accent); width: 22px; }
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; color: var(--main); }
details p { margin: 10px 0 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-item .fa { font-size: 22px; color: var(--accent); width: 26px; text-align: center; margin-top: 3px; }
.contact-item h3 { margin: 0 0 2px; font-size: 15px; }
.contact-item p { margin: 0; }
.contact-form label { display: block; margin-bottom: 12px; color: var(--main); }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; font: inherit; color: var(--main); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.small { font-size: 12px; }
.map { width: 100%; height: 360px; border: 0; margin-top: 30px; border-radius: var(--radius); }
.article figure { margin: 20px 0; }
.article figure img { border: 1px solid var(--line); border-radius: var(--radius); }
.video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); margin: 10px 0 20px; }

/* Footer */
.benefits { background: var(--orange); display: grid; grid-template-columns: repeat(5, 1fr); padding: 20px 10px; margin-top: 10px; }
.benefit { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 10px; }
.benefit + .benefit { border-left: 1px solid rgba(255,255,255,.55); }
.benefit img { width: 32px; height: 32px; }
.benefit h3 { margin: 0; color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.benefit p { margin: 0; color: #fff; font-size: 13px; line-height: 1.4; }
.footer { background: var(--footer); color: #fff; padding: 20px 10px 10px; }
.footer-cols { display: grid; grid-template-columns: 33% 16% 16% 1fr; gap: 20px; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; margin: 0 0 20px; }
.footer p { line-height: 1.75; }
.footer a { color: #fff; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer .feedback { color: #f5b041; margin: 26px 0 4px; }
.footer .btn-forum { display: inline-block; border: 2px solid var(--gold); background: #b3d4f5; color: var(--footer-bottom); font-weight: 600; padding: 0 6px; line-height: 1.5; }
.footer .btn-forum:hover { color: var(--red); }
.footer .phone { display: block; color: var(--gold); font-size: 30px; line-height: 1.3; margin: 6px 0 12px; }
.footer .social-title { color: #f5b041; margin: 12px 0 6px; }
.social { display: flex; gap: 8px; }
.social a { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.social a:hover { color: #fff; opacity: .85; }
.social .in { background: #29a9e1; } .social .fb { background: #3b5998; }
.footer-bottom { background: var(--footer-bottom); color: #fff; padding: 16px 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.25); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--gold); }
.footer-bottom .pay-icons { color: #fff; font-size: 26px; gap: 6px; align-items: center; }
.footer-bottom .pay-icons span { font-size: 14px; margin-right: 6px; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 30; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { color: #fff; background: var(--btn-hover); }

/* Tablet and phone */
@media (max-width: 1024px) {
  .carousel { grid-auto-columns: calc((100% - 20px) / 3); }
  .grid, .posts { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .benefit:nth-child(4) { border-left: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-top .container { min-height: 70px; }
  .logo img { max-width: 150px; }
  .header-contact { display: none; }
  .navbar { display: none; }
  body.nav-open .navbar { display: block; }
  .navbar .container { flex-direction: column; align-items: stretch; padding: 6px 10px; }
  .browse { display: none; }
  .main-nav { flex-direction: column; margin: 0; }
  .main-nav a { padding: 9px 4px; border-bottom: 1px solid #f0d9b5; }
  .forum-link { margin: 10px 4px; }
  .home-top, .product-layout { grid-template-columns: 1fr; }
  .home-side, .product-side { display: none; }
  .product-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .panel, .page-panel { padding: 22px 18px; }
  .image-cards { grid-template-columns: 1fr; }
  .band h2 { font-size: 18px; } .band p { font-size: 14px; }
  .topbar .container { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .carousel { grid-auto-columns: calc((100% - 10px) / 2); }
  .grid, .posts { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 12px; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit { justify-content: flex-start; border-left: 0 !important; }
  .footer-cols { grid-template-columns: 1fr; }
  .topbar-right { display: none; }
  .tabs-head { gap: 16px; }
  .gallery { flex-direction: column; }
  .thumbs { flex-direction: row; width: auto; }
  .thumb { width: 56px; }
}
