@charset "UTF-8";

/* ---------------------------------------------------------
	CSS Document load
--------------------------------------------------------- */

#load {
	width: 100%;
	height: 100vh;
	background: #fff;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
}

.wf-active #load {
	display: none;
}

:root {
	--primary-color: #2563eb;
	--primary-hover: #1d4ed8;
	--text-main: #1e293b;
	--text-sub: #64748b;
	--radius-sm: 8px;

  --primary: #2563eb;       /* Core Blue */
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  
  --text-main: #0f172a;     /* Dark Slate */
  --text-sub: #475569;      /* Adjusted for better readability */
  --text-light: #94a3b8;
  
  --bg-body: #f8fafc;       /* Very Light Blue/Gray Background */
  --bg-card: #ffffff;
  
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --container: 1280px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------
	CSS Document Common
--------------------------------------------------------- */

body {
	min-width: 1300px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	word-break: keep-all;
	color: var(--text-main);
}

* {
	outline: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-collapse: collapse;
	box-sizing: border-box;
	text-decoration: none;
	font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
	font-style: normal;
	list-style: none;
}

.sp {
	display: none;
}

.find {
	cursor: pointer;
	transition: .4s;
}

.clearfix:after {
	display: block;
	content: '';
	clear: both;
	height: 1px;
	overflow: hidden;
}

img {
	vertical-align: top;
	max-width: 100%;
}

/* ---------------------------------------------------------
	CSS Document form
--------------------------------------------------------- */

input, textarea, select, button {
	outline: 0;
	margin: 0;
	padding: 0;
	border-radius: 0;
	border: 0;
	box-shadow: none;
	box-sizing: border-box;
	font-size: 14px;
	color: var(--text-main);
}

select.invalid,
input.invalid,
textarea.invalid {
	box-shadow: 0 0 3px 0 #f00;
}

button,
input[type='button'],
input[type='submit'] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: .4s;
}

input[type='checkbox'],
input[type='radio'] {
	vertical-align: top;
	width: 22px;
	height: 22px;
	margin-right: 5px;
}

::-webkit-input-placeholder {
	color: #c8c8c8;
}

::-moz-placeholder {
	opacity: 1;
	color: #c8c8c8;
}

:-ms-input-placeholder {
	color: #c8c8c8;
}

/* ---------------------------------------------------------
	CSS Document layout
--------------------------------------------------------- */

#wrapper {
	overflow: hidden;
	padding-top: 120px;
}

.container {
	width: var(--container);
	margin: 0 auto;
}

.target {
	margin-top: -130px;
	padding-top: 130px;
}

/* ---------------------------------------------------------
	CSS Document header
--------------------------------------------------------- */

#sp_header,
#kalDrawer {
	display: none;
}

/* ---------------------------------------------------------
	CSS Document header > pc_header
--------------------------------------------------------- */

#pc_header {
	height: 44px;
	overflow: hidden;
	background: var(--text-main);
	font-weight: 400;
	line-height: 46px;
	color: #e5e7eb;
}

#pc_header .pc_header-inner {
	display: flex;
	justify-content: space-between;
	width: var(--container);
	margin: 0 auto;
}

#pc_header .pc_header-exchange {
	display: flex;
}

#pc_header .pc_header-exchange li {
	margin-right: 9px;
	padding-right: 11px;
	font-size: 11px;
	position: relative;
}

#pc_header .pc_header-exchange li:not(:last-of-type):after {
	content: '';
	width: 1px;
	height: 12px;
	background: var(--text-light);
	transform: translateY(-50%);
	position: absolute;
	top: 50%;
	right: 0;
}

#pc_header .pc_header-exchange a {
	text-decoration: none;
	color: #e5e7eb;
	opacity: 0.85;
	transition: opacity .2s;
}

#pc_header .pc_header-exchange a:hover {
	text-decoration: underline;
	opacity: 1;
}

#pc_header .pc_header-exchange .this a {
	font-weight: 600;
	color: #fff;
	opacity: 1;
}

#pc_header .pc_header-nav {
	display: flex;
}

#pc_header .pc_header-nav li {
	margin-left: 15px;
	font-size: 13px;
}

#pc_header .pc_header-nav a {
	color: #fff;
	opacity: 0.8;
	transition: opacity .2s;
}

#pc_header .pc_header-nav a:hover {
	opacity: 1;
}

#pc_header .pc_header-nav .this a {
	font-weight: 600;
	color: #93c5fd;
	opacity: 1;
}

/* ---------------------------------------------------------
	CSS Document navi
--------------------------------------------------------- */

#navi {
	min-width: var(--container);
	width: 100%;
	height: 70px;
	border-bottom: solid 1px #d2d8e5;
	background: #fff;
	position: sticky;
	top: 0;
	left: 0;
	z-index: 99;
}

#navi .navi-inner {
	display: flex;
	justify-content: space-between;
	width: var(--container);
	margin: 0 auto;
}

#navi .navi-brand a {
	display: flex;
	padding-top: 9px;
	font-weight: 400;
	font-size: 12px;
	line-height: 1;
	color: #5f6f8f;
}

#navi .navi-brand img {
	height: 45px;
}

#navi .navi-brand_sub {
	margin-left: 20px;
	line-height: 50px;
}

#navi .navi-menu {
	display: flex;
	align-items: center;
}

#navi .menu {
	display: flex;
	align-items: center;
}

#navi .menu li {
	margin-left: 30px;
}

#navi .nav-link {
	display: block;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	line-height: 70px;
	color: var(--text-main);
	position: relative;
	transition: color .2s;
}
#navi .nav-link:hover { color: var(--primary); }
#navi .nav-link.active { color: var(--primary); }
#navi .nav-link.active::after { content:''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; }

#navi .buy {
	display: block;
	height: 36px;
	padding: 0 20px;
	border-radius: 36px;
	background: var(--text-main);
	font-weight: 700;
	font-size: 14px;
	line-height: 36px;
	color: #fff; 
	transition: var(--transition);
	position: relative;
}

#navi .buy:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); color: #fff; }
#navi .buy.active { background: var(--primary); transform: translateY(0); box-shadow: none; color: #fff; }
#navi .buy.active::after { content:''; position: absolute; bottom: -17px; left: 0; width: 100%; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; }

#navi .util-box {
	display: none;
}

#navi .util-box.active {
	display: block;
}

#navi .header-cart-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 34px;
	height: 30px;
	margin-left: 15px;
	padding-top: 2px;
	border-radius: 4px;
	background: transparent;
	font-size: 18px;
	color: var(--text-main);
	transition: color 0.2s;
	position: relative;
}

#navi .header-cart-btn:hover {
	color: var(--primary);
}

#navi .header-cart-count {
	min-width: 16px;
	padding: 2px 5px;
	border-radius: 10px;
	background: #dc2626;
	text-align: center;
	font-weight: 700;
	font-size: 10px;
	color: #fff;
	position: absolute;
	top: -2px;
	right: -4px;
}

/* ---------------------------------------------------------
	CSS Document header > navi_software
--------------------------------------------------------- */

.mega {
	display: none;
	width: 100%;
	position: absolute;
	top: 70px;
	left: 0;
	z-index: 99;
}

.menu>li:hover .mega, .menu>li.open .mega { display: block; }
.mega-panel {
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
  padding: 40px 0;
}
.mega-grid { display: grid; grid-template-columns: 280px repeat(3, 1fr); gap: 40px; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
/* === NEW MEGA MENU STYLES === */

/* Design 1: headline pills + clean grid */
.mega-style-1 .mega-headline-row {
  display: flex;
  gap: 8px;
  max-width: var(--container);
  margin: 0 auto 16px;
  padding: 0 24px;
}
.mega-headline-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--text-sub);
  font-size: 12px;
}
.mega-headline-pill.is-primary {
  background: var(--primary);
  color: #fff;
}
.mega-style-1-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px 0;
}
.mega-style-1-grid > div {
  border-right: 1px solid var(--border);
  padding-right: 16px;
  margin-right: 16px;
}
.mega-style-1-grid > div:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

/* Design 2: horizontal bands with chips */
.mega-style-2 {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mega-band {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mega-band-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.mega-band-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}
.mega-band-desc {
  font-size: 11px;
  color: var(--text-light);
}
.mega-band-body {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mega-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  border: 1px solid var(--border);
  background: #f9fafb;
  color: var(--text-sub);
  text-decoration: none;
}
.mega-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}

/* Design 3: product tiles grid */
.mega-style-3 {
	width: var(--container);
	margin: 0 auto;
}
.mega-tile-flex {
	display: flex;
	justify-content: space-between;
}
.mega-tag-legend {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}
.mega-tag-pill {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9fafb;
  color: var(--text-sub);
}
.mega-tag-pill.is-support { border-color: #e2e8f0; }
.mega-tag-pill.is-normal { border-color: #bfdbfe; }
.mega-tag-pill.is-plugin { border-color: #4338ca; }
.mega-tag-pill.is-forensic { border-color: #fbbf24; }

.mega-tile-grid {
	display: flex;
	align-items: center;
}
.mega-tile-icon {
	margin-right: 12px;
}
.mega-tile-icon img {
	height: 36px;
}
.mega-col {
	width: 305px;
}
.mega-col-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.mega-tile-support-icon {
	margin-bottom: 8px;
	flex-shrink: 0;
}
.mega-tile-support-icon img {
	height: 26px;
}
.mega-tile-support-text .mega-tile-title {
	margin-bottom: 4px;
}

.mega-tile {
	display: flex;
	align-items: center;
	height: 90px;
	background: #ffffff;
	border-radius: 12px;
	margin-top: 10px;
	padding: 0 12px;
	border: 1px solid #e5e7eb;
	transition: var(--transition);
}
.mega-tile:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  transform: translateY(-1px);
}
.mega-tile-tag {
  font-size: 10px;
  margin-bottom: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  display: inline-block;
  background: #f9fafb;
  color: var(--text-light);
}
.mega-tile-tag.is-normal { background: #eff6ff; color: #1d4ed8; }
.mega-tile-tag.is-plugin { background: #eef2ff; color: #4338ca; }
.mega-tile-tag.is-forensic { background: #fef3c7; color: #b45309; }
.mega-tile-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}
.mega-tile-desc {
	font-size: 11px;
	letter-spacing: 0.05em;
	color: var(--text-light);
}

.mega-col-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-light); margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.mega-quick-item {
  display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px;
  background: var(--bg-body); border-radius: 12px; transition: var(--transition);
}
.mega-quick-item:hover { background: var(--primary-light); }
.mega-quick-item-icon { font-size: 20px; }
.mega-quick-item-title { font-size: 14px; font-weight: 700; color: var(--text-main); display: block;}
.mega-quick-item-desc { font-size: 12px; color: var(--text-sub); display: block; margin-top: 2px; }

.mega-link { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; color: var(--text-main); transition: var(--transition); }
.mega-link:hover { transform: translateX(4px); }
.mega-link:hover .mega-link-title { color: var(--primary); }
.mega-link-icon { color: var(--primary); font-size: 18px; width: 24px; display: flex; justify-content: center; margin-top: 2px; }
.mega-link-text { display: flex; flex-direction: column; }
.mega-link-title { font-size: 14px; font-weight: 600; }
.mega-link-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ---------------------------------------------------------
	CSS Document visual
--------------------------------------------------------- */

#visual {
	height: 250px;
	overflow: hidden;
	background: #000 no-repeat center;
	font-size: 0;
	line-height: 244px;
	color: #fff;
}

@media only screen and (min-width: 1921px) {
	#visual {
		background-size: 100% auto;
	}
}

#visual .container {
	display: inline-block;
	vertical-align: middle;
	line-height: 1;
}

#visual .h1 {
	font-weight: 800;
	font-size: 55px;
}

#visual .h1 + p {
	margin-top: 20px;
	font-size: 17px;
	line-height: 1.8;
}

/* ---------------------------------------------------------
	CSS Document bread
--------------------------------------------------------- */

#bread {
	height: 32px;
	overflow: hidden;
	border-bottom: solid 1px #d2d8e5;
	font-size: 12px;
	color: var(--text-light);
}

#bread ol {
	display: flex;
	align-items: center;
	width: var(--container);
	height: 32px;
	margin: 0 auto;
}

#bread li:first-of-type a {
	display: inline-block;
	vertical-align: 0;
	height: 20px;
	padding: 0 1em;
	border-radius: 20px;
	background: #e5e7eb;
	font-weight: 500;
	line-height: 20px;
	color: var(--text-sub);
	transition: .2s;
}

#bread li:first-of-type a:hover {
	background: var(--primary-light);
	color: var(--primary);
}

#bread li:not(:last-of-type):after {
	content: '/';
	margin: 0 0.5em;
}

#bread li a {
	color: var(--text-light);
}

/* ---------------------------------------------------------
	CSS Document anchor
--------------------------------------------------------- */

#anchor {
	margin-bottom: 40px;
	text-align: center;
	font-size: 0;
}

#anchor li {
	display: inline-block;
	vertical-align: top;
	width: 20%;
}

#anchor li:not(:last-of-type) {
	border-right: solid 1px #c4c6c7;
}

#anchor li div,
#anchor li a {
	display: block;
	height: 60px;
	background: #aaadaf;
	text-decoration: none;
	font-size: 16px;
	line-height: 60px;
	color: #fff;
}

#anchor li.this div,
#anchor li.this a {
	background: #0b89da;
	position: relative;
	z-index: 0;
}

#anchor li.this div:after,
#anchor li.this a:after {
	content: '';
	width: 0;
	height: 0;
	border: solid 10px transparent;
	border-top: solid 12px #0b89da;
	transform: translateX(-50%);
	position: absolute;
	left: 50%;
	bottom: -22px;
}

/* ---------------------------------------------------------
	CSS Document footer
--------------------------------------------------------- */

#footer {
	padding: 60px 0 40px;
	background: #020617;
}

/* ---------------------------------------------------------
	CSS Document footer > f_gnavi
--------------------------------------------------------- */

#footer .f_gnavi {
	display: flex;
	justify-content: space-between;
	margin-bottom: 30px;
}

#footer .f_gnavi .section {
	width: 394px;
	padding: 20px;
	border-radius: 24px;
	border: solid 1px var(--text-light);
	background: #fff;
	color: #0d2341;
}

#footer .f_gnavi .caption {
	margin-bottom: 15px;
	text-align: left;
	font-weight: 700;
	font-size: 18px;
}

#footer .f_gnavi .memo {
	margin-bottom: 15px;
	font-size: 12px;
	color: var(--text-light);
}

#footer .f_gnavi .find {
	display: flex;
	align-items: center;
	width: 100%;
	height: 82px;
	margin-bottom: 10px;
	padding: 0 20px;
	border-radius: 24px;
	border: solid 1px #e2e8f0;
	background: #f9fafb;
	transition: var(--transition);
}

#footer .f_gnavi .find:hover {
	border-color: var(--primary);
	box-shadow: 0 8px 24px rgba(15,23,42,0.08);
	transform: translateY(-1px);
}

#footer .f_gnavi .row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

#footer .f_gnavi .f_gnavi_img img {
	height: 40px;
}

#footer .f_gnavi .f_gnavi_02 .f_gnavi_img img {
	height: 34px;
}

#footer .f_gnavi .f_gnavi_03 .f_gnavi_img img {
	height: 41px;
}

#footer .f_gnavi .dl {
	line-height: 1.8;
}

#footer .f_gnavi .f_gnavi_03 .dl {
	text-align: right;
	line-height: 1.8;
}

#footer .f_gnavi .dt {
	font-size: 12px;
	color: var(--text-light);
}

#footer .f_gnavi .dt a {
	display: block;
	color: var(--text-light);
}

#footer .f_gnavi .dd {
	font-weight: 700;
	font-size: 15px;
}

#footer .f_gnavi .dd a {
	display: block;
	color: var(--text-main);
}

#footer .f_gnavi .dd a.tel {
	font-size: 24px;
	line-height: 1.2;
}

#footer .f_gnavi .buy {
	margin-top: 15px;
}

#footer .f_gnavi .buy a {
	display: inline-block;
	vertical-align: top;
	width: 94px;
	height: 40px;
	border-radius: 99px;
	background: var(--primary);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
	text-align: center;
	font-weight: 700;
	font-size: 12px;
	line-height: 40px;
	color: #fff;
	transition: var(--transition);
}

#footer .f_gnavi .buy a:hover {
	background: var(--text-main);
	transform: translateY(-2px);
	box-shadow: none;
	color: #fff;
}

#footer .f_gnavi .buy a .icon {
	font-size: 14px;
}

/* ---------------------------------------------------------
	CSS Document footer > f_license
--------------------------------------------------------- */

#footer .f_license {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 80px;
	margin-bottom: 60px;
	padding: 0 20px 0 25px;
	border-radius: 20px;
	border: solid 1px #d2d8e5;
	background: linear-gradient(to right, #f9fafb 0%, #e5ecfa 100%);
}

#footer .f_license-start {
	font-weight: 400;
	font-size: 14px;
	line-height: 1.7;
}

#footer .f_license-en {
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.15em;
	color: var(--text-sub);
}

#footer .f_license ul {
	display: flex;
}

#footer .f_license ul li {
	margin-left: 10px;
}

#footer .f_license ul a {
	display: inline-block;
	vertical-align: top;
	height: 40px;
	padding: 0 2em;
	border-radius: 40px;
	background: #fff;
	font-weight: 600;
	font-size: 12px;
	line-height: 40px;
	color: var(--text-main);
	transition: var(--transition);
}

#footer .f_license ul a:hover {
	background: var(--primary);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
	transform: translateY(-2px);
	color: #fff;
}

/* ---------------------------------------------------------
	CSS Document footer > f_company
--------------------------------------------------------- */

#footer .f_company {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

#footer .f_company .f_sitemap {
	display: flex;
	font-weight: 400;
	font-size: 11px;
	color: #e5e7eb;
}

#footer .f_company .f_sitemap li:not(:last-of-type):after {
	content: '・';
	margin: 0 1em;
}

#footer .f_company .f_sitemap a {
	color: #fff;
	opacity: 0.8;
	transition: .4s;
}

#footer .f_company .f_sitemap a:hover {
	text-decoration: underline;
	opacity: 1;
}

#footer .f_company .f_sns {
	display: flex;
	align-items: center;
}

#footer .f_company .f_sns .icon {
	margin-left: 6px;
}

#footer .f_company .f_sns .icon a {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: solid 1px var(--text-sub);
	background: var(--text-main);
	transition: var(--transition);
}

#footer .f_company .f_sns .icon a:hover {
	background: var(--text-sub);
}

#footer .f_company .f_sns .map {
	margin-right: 20px;
}

#footer .f_company .f_sns .map a {
	display: inline-block;
	vertical-align: top;
	width: 102px;
	height: 36px;
	border-radius: 36px;
	background: var(--primary);
	text-align: center;
	font-weight: 700;
	font-size: 12px;
	line-height: 36px;
	color: #fff;
	transition: var(--transition);
}

#footer .f_company .f_sns .map a:hover {
	background: #fff;
	transform: translateY(-2px);
	color: var(--primary);
}

#footer .f_company .f_sns .map .icon {
	margin: 0 0.2em 0 -0.3em;
}

/* ---------------------------------------------------------
	CSS Document footer > f_copyright
--------------------------------------------------------- */

#footer .f_copyright {
	display: flex;
	align-items: flex-start;
	color: #9ca3af;
}

#footer .f_copyright-logo {
	display: flex;
	align-items: center;
	margin-right: 20px;
}

#footer .f_copyright-logo img {
	height: 32px;
}

#footer .f_copyright-content {
	margin-top: 4px;
	font-weight: 400;
	font-size: 11px;
	line-height: 1.8;
}

#footer .f_copyright-company {
	font-weight: 700;
}

#footer .f_copyright-content_row {
	display: flex;
	flex-wrap: wrap;
	width: 800px;
}

#footer .f_copyright-content div:after {
	display: inline-block;
	vertical-align: 0.1em;
	content: '|';
	margin: 0 10px;
	font-weight: 400;
}

#footer .f_copyright-content div:last-of-type:after {
	display: none;
}

#footer .f_copyright-content a {
	color: #9ca3af;
}

/* ---------------------------------------------------------
	CSS Document cart-backdrop
--------------------------------------------------------- */

.cart-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(3px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.cart-backdrop.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: -420px; bottom: 0; width: 400px; max-width: 90vw;
  background: #fff; z-index: 2001; transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -5px 0 25px rgba(0,0,0,0.15); display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }

.cd-header { padding: 16px 20px; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; }
.cd-header h3 { font-size: 18px; font-weight: 800; color: var(--color-primary); margin: 0; display: flex; align-items: center; gap: 8px; }
.cd-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #999; padding: 4px; transition: color 0.2s; }
.cd-close:hover { color: #333; }

.cd-body { flex: 1; overflow-y: auto; padding: 20px; background: #fafafa; }
.empty-cart-msg { text-align: center; color: #999; font-size: 14px; margin-top: 60px; }

.cd-item { 
  background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 16px; margin-bottom: 12px;
  position: relative; transition: all 0.2s; 
}
.cd-item:hover { border-color: #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.cd-item-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.cd-name { font-size: 14px; font-weight: 700; color: #333; line-height: 1.4; padding-right: 20px; }
.cd-del { position: absolute; top: 12px; right: 12px; color: #ccc; cursor: pointer; font-size: 14px; }
.cd-del:hover { color: #ff5555; }
.cd-opt { font-size: 12px; color: #777; margin-bottom: 12px; background: #f8f9fa; display: inline-block; padding: 2px 6px; border-radius: 4px; }
.cd-action-row { display: flex; align-items: center; justify-content: space-between; }
.cd-qty-ctrl { display: flex; align-items: center; border: 1px solid #eee; border-radius: 4px; overflow: hidden; height: 32px; background: #fff; }
.cd-qty-btn { width: 28px; height: 100%; display: flex; align-items: center; justify-content: center; background: #fdfdfd; cursor: pointer; font-size: 11px; color: #555; }
.cd-qty-btn:hover { background: #eee; }
.cd-qty-val { width: 34px; text-align: center; font-size: 13px; font-weight: 600; border: none; outline: none; background: transparent; pointer-events: none; }
.cd-price { font-size: 15px; font-weight: 700; color: var(--color-primary); }

.cd-footer { padding: 20px; border-top: 1px solid #eee; background: #fff; }
.cd-sum-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: #666; }
.cd-total-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 2px solid #333; font-weight: 800; font-size: 18px; color: var(--color-primary); }
.cd-checkout-btn { 
  display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 20px; 
  height: 50px; background: #172554; color: #fff; font-weight: 700; border-radius: 6px; 
  font-size: 16px; border: none; cursor: pointer; transition: background 0.2s;
}
.cd-checkout-btn:hover { background: #1e3a8a; }

/* ---------------------------------------------------------
	CSS Document pagetop
--------------------------------------------------------- */

#pagetop {
	display: none;
	width: 64px;
	height: 30px;
	overflow: hidden;
	border-radius: 30px;
	background: #1e3a8a;
	text-align: center;
	font-weight: 400;
	font-size: 11px;
	line-height: 30px;
	letter-spacing: 0.05em;
	color: #fff;
	position: fixed;
	bottom: 40px;
	right: 40px;
	z-index: 9;
	cursor: pointer;
	transition: .4s;
}

#pagetop:hover {
	background: var(--primary-color);
}

/* ---------------------------------------------------------
	CSS Document modal
--------------------------------------------------------- */

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(17, 24, 39, 0.4); /* ??? ???? */
      backdrop-filter: blur(4px); /* ?? ?? ?? */
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 100;
      opacity: 0;
      transition: opacity 0.2s ease-in-out;
    }
    .modal-backdrop.active {
      display: flex;
      opacity: 1;
    }

    .modal {
      width: 100%;
      max-width: 520px;
      background: #ffffff;
      border-radius: 20px;
      padding: 24px;
      box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1), 
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
      position: relative;
      transform: scale(0.95) translateY(10px);
      transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .modal-backdrop.active .modal {
      transform: scale(1) translateY(0);
    }

    /* ?? ?? */
    .btn-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 28px;
      height: 28px;
      background: transparent;
      border: none;
      border-radius: 50%;
      color: #9ca3af;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: bold;
      transition: background 0.2s;
    }
    .btn-close:hover {
      background: #f3f4f6;
      color: #4b5563;
    }

    /* ?? ?? */
    .modal-header {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 16px;
    }

    /* ??? ??? ?? (Soft Tint) */
    .modal-icon {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
    }
    
    .icon-success {
      background: #d1fae5;
      color: #059669;
      /* Checkmark ?? */
      font-weight: bold;
    }
    .icon-error {
      background: #fee2e2;
      color: #dc2626;
      font-weight: 800;
    }
    .icon-info {
      background: #eff6ff;
      color: #2563eb;
    }

    .modal-title {
      font-size: 16px;
      font-weight: 700;
      color: #111827;
      margin-bottom: 4px;
      line-height: 1.4;
      padding-top: 2px;
    }
    .modal-sub {
      font-size: 13px;
      color: #6b7280;
      line-height: 1.4;
    }

    .divider {
      height: 1px;
      background: #f3f4f6;
      margin: 0 -24px 16px; /* ?? ?? ?? */
    }

    .modal-body {
      font-size: 14px;
      color: #374151;
      line-height: 1.6;
      margin-bottom: 24px;
    }
    .modal-body strong {
      color: #111827;
      font-weight: 600;
    }


    /* ?? ??? */
    .hint {
      margin-top: 12px;
      font-size: 12px;
      color: #9ca3af;
      padding-left: 2px;
    }

    /* ?? ?? */
    .modal-body code {
      display: block;
      font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
      font-size: 12px;
      background: #1e293b; /* Dark Mode Code Block */
      color: #e2e8f0;
      padding: 12px;
      border-radius: 8px;
      margin: 8px 0;
      word-break: break-all;
    }
    
    /* ?? ?? ?? */
    .code-row {
      display: flex;
      align-items: stretch;
      gap: 0;
      margin-top: 8px;
      background: #f3f4f6;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid #e5e7eb;
    }
    .code-row code {
      background: transparent;
      color: #1f2937;
      border: none;
      margin: 0;
      flex: 1;
      display: flex;
      align-items: center;
    }
    .btn-copy {
      background: #ffffff;
      border: none;
      border-left: 1px solid #e5e7eb;
      padding: 0 16px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 600;
      color: var(--primary-dark);
      transition: background 0.2s;
    }
    .btn-copy:hover {
      background: #eff6ff;
    }

    /* ?? ?? (?? ??) */
    .modal-footer {
      display: flex;
      justify-content: flex-end;
      gap: 10px; /* ?? ?? ?? */
    }


    /* =========================================
       NEW MODAL ACTION BUTTONS STYLES
       ========================================= */
    .btn-modal-action {
      border-radius: 10px;
      padding: 10px 20px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.2s ease;
      border: 1px solid transparent;
    }
    .btn-modal-action:active {
      transform: scale(0.98);
    }

    /* Secondary Action (e.g., Close, Cancel) */
    .btn-modal-secondary {
      background: #ffffff;
      border-color: #e5e7eb;
      color: #374151;
    }
    .btn-modal-secondary:hover {
      background: #f9fafb;
      border-color: #d1d5db;
    }

    /* Primary Action (e.g., Confirm, OK, Go to Main) */
    .btn-modal-primary {
      background: var(--primary);
      color: #ffffff;
      box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    }
    .btn-modal-primary:hover {
      background: var(--primary-dark);
      box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    }
    
    /* ?? ?? ??? ?? (?? ?? ????) */
    .modal-footer .btn {
      border-radius: 8px;
      padding: 10px 18px;
      font-size: 13px;
    }