/**
 * Global CSS.
 * 
 * It holds all the repeatitive style.
 *
 * @package wp-theme-boilerplate
 * @author Store Boost Kit <storeboostkit@gmail.com>
 * @version 1.0
 */

:root {
  /* Font Family */
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-secondary: 'Inter', serif;

  /* Font Sizes */
  --fs-xs: 0.75rem;   /* 12px */
  --fs-sm: 0.875rem;  /* 14px */
  --fs-base: 1rem;    /* 16px */
  --fs-md: 1.125rem;  /* 18px */
  --fs-lg: 1.25rem;   /* 20px */
  --fs-xl: 1.5rem;    /* 24px */
  --fs-xl-plus: 1.75rem; /* 28px */
  --fs-xxl: 2rem;     /* 32px */
  --fs-huge: 3rem;    /* 48px */

  /* Font Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi-bold: 600;
  --fw-bold: 700;

  /* Colors */
  --color-primary: #6366F1;
  --color-secondary: #6c757d;
  --color-success: #28a745;
  --color-danger: #dc3545;
  --color-warning: #ffc107;
  --color-info: #17a2b8;
  --color-text: #2d2f45;
  --color-description: #676993;
  --color-heading: #1a1a2e;
  --color-light-bg: #F8FAFC;
  --color-bg: #ffffff;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-round: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.2);

  /* Border */
  --border-light: 1px solid #d1d1ff45;
  --border-dark: 1px solid #1a1a2e;

  /* Form */
  --form-input-bg: #fff;
  --form-input-color: #1a1a2e;
  --form-input-font-size: 16px;
  --form-input-padding: 10px 14px;
  --form-input-radius: 6px;
  --form-input-border: 2px solid #d1d1ff45;
  --form-input-border-focus: 2px solid #d1d1ff;
  --form-input-transition: all 0.2s ease;
  --form-input-placeholder: #999;

  --form-button-bg: #6366F1;
  --form-button-color: #fff;
  --form-button-radius: 6px;
  --form-button-hover-bg: #6366F1;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-position: outside;
  list-style-type: none;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  font-size: 16px;
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75em 0;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

h3 span {
  display: block;
}

h3 span.highlight {
  display: inline-block;
}

strong {
  font-weight: var(--fw-semi-bold);
}

p {
  font-size: 1rem;
  margin: 0 0 1em 0;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-style: none;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 30px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

/* Basic Column Classes */
.col {
  flex: 1 0 0%;
  padding: 0 15px;
}

.col-auto {
  flex: 0 0 auto;
  width: auto;
  padding: 0 15px;
}

/* Fixed Width Columns (1-12) */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; padding: 0 15px; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; padding: 0 15px; }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 15px; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; padding: 0 15px; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; padding: 0 15px; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0 15px; }
.col-9 { flex: 0 0 75%; max-width: 75%; padding: 0 15px; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; padding: 0 15px; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; padding: 0 15px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }

/** 
 * ------------------------------
 *  Global 
 * ------------------------------
*/

.font-primary {
  font-family: var(--font-primary);
}

.font-secondary {
  font-family: var(--font-secondary);
}

.text-center {
  text-align: center;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.shrink {
  max-width: 1200px;
  margin: 0 auto;
}

.highlight {
  color: var(--color-primary);
}

.underline { text-decoration: underline; }

.fs-xs        { font-size: var(--fs-xs); }
.fs-sm        { font-size: var(--fs-sm); }
.fs-base      { font-size: var(--fs-base); }
.fs-md        { font-size: var(--fs-md); }
.fs-lg        { font-size: var(--fs-lg); }
.fs-xl        { font-size: var(--fs-xl); }
.fs-xl-plus   { font-size: var(--fs-xl-plus); }
.fs-xxl       { font-size: var(--fs-xxl); }
.fs-huge      { font-size: var(--fs-huge); }

.fw-regular   { font-weight: var(--fw-regular); }
.fw-medium    { font-weight: var(--fw-medium); }
.fw-semi-bold { font-weight: var(--fw-semi-bold); }
.fw-bold      { font-weight: var(--fw-bold); }

.tt-uppercase  { text-transform: uppercase; }
.tt-lowercase  { text-transform: lowercase; }
.tt-capitalize { text-transform: capitalize; }
.tt-normal     { text-transform: none; }

/** 
 * ------------------------------
 *  Button 
 * ------------------------------
*/

.btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-bg);
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-simple {
  border-bottom: var(--border-dark);
}

/* Disabled */
.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Variants */
.btn-secondary {
  background-color: #fff;
  color: var(--color-text);
  border: 1px solid #D1D1FF;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-small {
  padding: 0.4em 0.8em;
  font-size: var(--fs-xs);
}

.btn-large {
  padding: 0.8em 1.6em;
  font-size: var(--fs-md);
}

.btn-fullwidth {
  width: 100%;
  padding: 0.8em 0;
  font-size: var(--fs-md);
  border-radius: 12px;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none; /* hidden by default */
}

.btn .btn-text {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi-bold);
  color: var(--color-bg);
}

.btn.loading .btn-text {
  display: none; /* hide text when loading */
}

.btn.loading .btn-loader {
  display: inline-block; /* show loader */
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/** 
 * ------------------------------
 *  Form 
 * ------------------------------
*/

/* === Input, Select, Textarea Reset === */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea,
.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form input[type=email], .wp-block-edd-checkout #edd_purchase_form .edd-blocks-form input[type=password], .wp-block-edd-checkout #edd_purchase_form .edd-blocks-form input[type=tel], .wp-block-edd-checkout #edd_purchase_form .edd-blocks-form input[type=text], .wp-block-edd-checkout #edd_purchase_form .edd-blocks-form select {
  appearance: none;
  background-color: var(--form-input-bg);
  color: var(--form-input-color);
  font-size: var(--form-input-font-size);
  padding: var(--form-input-padding);
  border: var(--form-input-border);
  border-radius: var(--form-input-radius);
  width: 100%;
  box-sizing: border-box;
  transition: var(--form-input-transition);
  line-height: 40px;
	padding: 0 16px !important;
	height: 40px;
}

textarea {
  min-height: 160px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border: var(--form-input-border-focus);
}

/* === Placeholder Styling === */
::placeholder {
  color: var(--form-input-placeholder);
  opacity: 1;
}

/* === Button & Submit === */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
#edd-purchase-button,
.edd-submit,
[type=submit].edd-submit,
.edd-submit.button.blue,
.edd-submit.button.blue.active,
.edd-submit.button.blue:focus,
.edd-submit.button.blue:hover,
#edd_checkout_cart_form .edd-button-secondary,
#edd_checkout_form_wrap.wp-block-edd-checkout #edd_purchase_form .edd-button-secondary,
#edd_checkout_form_wrap.wp-block-edd-checkout #edd_purchase_form .edd-button-secondary:hover {
  background-color: var(--form-button-bg);
  color: var(--form-button-color);
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--form-button-radius);
  cursor: pointer;
  transition: var(--form-input-transition);
  display: inline-block;
outline: none;
border: 0;
}

#edd_checkout_form_wrap #edd_purchase_form .edd-blocks__checkout-forms button:disabled {
  display: none;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background-color: var(--form-button-hover-bg);
}

/* === Label Reset === */
label {
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
  color: var(--form-input-color);
}