/*
Theme Name: DigiStore
Theme URI: https://example.local/digistore
Author: DigiStore
Description: DigiStore WooCommerce theme (website + APP shell).
Version: 0.18.9
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: digistore
*/

/* Shared reset - Website polish lives in assets/css/storefront.css */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

/* ????APP chrome (CDK=APP) ??keep Stage 2 look ????*/
:root {
  --dgs-bg: #f4f5f7;
  --dgs-fg: #1a1d23;
  --dgs-muted: #5c6573;
  --dgs-line: #d8dde6;
  --dgs-accent: #1f6feb;
  --dgs-app-bg: #0f1218;
  --dgs-app-fg: #e8ecf2;
  --dgs-safe-bottom: env(safe-area-inset-bottom, 0px);
}

.dgs-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px calc(24px + var(--dgs-safe-bottom));
}

.dgs-site-header,
.dgs-site-footer {
  border-bottom: 1px solid var(--dgs-line);
  background: #fff;
}

.dgs-site-footer {
  border-bottom: 0;
  border-top: 1px solid var(--dgs-line);
  margin-top: 40px;
}

.dgs-site-header .dgs-wrap,
.dgs-site-footer .dgs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.dgs-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: inherit;
  text-decoration: none;
}

.dgs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 0.95rem;
}

.dgs-nav a {
  text-decoration: none;
  color: var(--dgs-muted);
}

.dgs-nav a:hover,
.dgs-nav a.is-active {
  color: var(--dgs-fg);
}

.dgs-card {
  background: #fff;
  border: 1px solid var(--dgs-line);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 16px 0;
}

.dgs-muted {
  color: var(--dgs-muted);
  font-size: 0.9rem;
}

.dgs-list {
  margin: 0;
  padding-left: 1.2rem;
}

.dgs-list li {
  margin: 0.35rem 0;
}

.dgs-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8eef9;
  color: #1f4b99;
}

body.dgs-mode-app {
  background: var(--dgs-app-bg);
  color: var(--dgs-app-fg);
}

body.dgs-mode-app .dgs-site-header,
body.dgs-mode-app .dgs-site-footer,
body.dgs-mode-app .dgs-card {
  background: #171b24;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dgs-mode-app .dgs-nav a {
  color: #9aa3b2;
}

body.dgs-mode-app .dgs-nav a:hover,
body.dgs-mode-app .dgs-nav a.is-active {
  color: var(--dgs-app-fg);
}

body.dgs-mode-app .dgs-muted {
  color: #9aa3b2;
}

body.dgs-mode-app .dgs-badge {
  background: rgba(61, 139, 253, 0.18);
  color: #9ec1ff;
}

.dgs-app-nav {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 10px 12px calc(10px + var(--dgs-safe-bottom));
  background: rgba(15, 18, 24, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dgs-app-nav a {
  color: #9aa3b2;
  text-decoration: none;
  font-size: 0.8rem;
}

.dgs-withdrawal {
  max-width: 40rem;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.dgs-withdrawal h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.dgs-withdrawal__intro,
.dgs-withdrawal__error,
.dgs-withdrawal__receipt {
  margin: 0 0 16px;
}

.dgs-withdrawal__error {
  color: #8a2b2b;
}

.dgs-withdrawal label {
  display: block;
  margin: 0 0 12px;
  font-weight: 600;
}

.dgs-withdrawal input[type="text"],
.dgs-withdrawal input[type="email"],
.dgs-withdrawal textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 10px 14px;
  border-style: solid;
  border-width: 1px;
  border-color: #E3E8EF;
  border-radius: 8px;
  background: #fff;
  color: #1A2433;
  font: inherit;
  font-weight: 400;
  line-height: 1.4;
}

.dgs-withdrawal__hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.dgs-withdrawal button,
a.dgs-withdrawal-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #0B6BCB;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.dgs-withdrawal button:hover,
a.dgs-withdrawal-entry:hover {
  background: #0957A6;
  color: #fff;
}

.dgs-withdrawal-order {
  margin: 12px 0;
}

.dgs-page-head {
  background: #F5F7FA;
  padding: 28px 0;
  margin: 0 0 24px;
}

.dgs-page-head__inner {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.dgs-page-head__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #5C6B7A;
}

.dgs-page-head__crumb a {
  color: inherit;
  text-decoration: none;
}

.dgs-page-head__crumb a:hover {
  color: #0B6BCB;
}

.dgs-page-head__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #1A2433;
}

.dgs-page-head__sub {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #5C6B7A;
}

@media (max-width: 767px) {
  .dgs-page-head {
    padding: 20px 0;
  }

  .dgs-page-head__title {
    font-size: 26px;
  }
}

.dgs-product__desc-raw {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: normal;
  word-break: normal;
}

.dgs-product__keyspecs {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 6px;
  margin: 8px 0 14px;
}
.dgs-product__keyspecs dt,
.dgs-product__keyspecs dd {
  margin: 0;
}
.dgs-product__keyspecs dt {
  font-size: 14px;
  font-weight: 400;
  color: #5C6B7A;
}
.dgs-product__keyspecs dd {
  font-size: 15px;
}
.dgs-product__keyspecs dt.is-single {
  grid-column: 1 / -1;
}
.dgs-pc__lead {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #5C6B7A;
}
.dgs-discount {
  display: inline-flex;
  align-items: center;
  background: #C8102E;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}
[data-dgs-topbar-price] .dgs-discount,
[data-dgs-buybar-price] .dgs-discount,
.rra-buybar__price .dgs-discount {
  display: none;
}
.dgs-pc__badge--sale,
.dgs-archive__badge--sale,
.dgs-design-home__product-badge--sale {
  white-space: nowrap;
}
.dgs-welcome {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--dgs-design-brand, var(--dgs-accent, #1f6feb));
  color: #fff;
}
.dgs-welcome__headline {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.dgs-welcome__line,
.dgs-welcome__action {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}
.dgs-welcome__action {
  margin-top: 10px;
}
.dgs-welcome a {
  color: #fff;
}
.dgs-welcome .dgs-welcome__btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--dgs-design-brand, var(--dgs-accent, #1f6feb));
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.dgs-welcome-line,
.dgs-welcome-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #5C6B7A;
}
.dgs-welcome-note {
  margin: 0 0 12px;
  font-size: 14px;
}
.dgs-welcome-home .dgs-welcome {
  margin: 0;
}
body.dgs-mode-app .dgs-welcome-home {
  margin: 22px 0;
}
