/* ==========================================================================
   Static/info pages — About, Contact, Privacy, Shipping, Returns, Terms
   Mobile-first, built on the Americana design tokens defined in styles.css.
   ========================================================================== */

/* ====== Page Banner ====== */
.page_banner{
  background: var(--primary);
  color: var(--on-primary);
  text-align: center;
  padding: 48px 20px;
}
.page_banner h1{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 5vw, 36px);
  margin: 0 0 10px;
  color: var(--on-primary);
}
.page_banner span{ font-size: 14px; opacity: .85; }
.page_banner span a{ color: var(--on-primary); font-weight: 600; text-decoration: underline; }

@media (min-width: 640px){
  .page_banner{ padding: 64px 20px; }
  .page_banner span{ font-size: 15px; }
}

/* ====== Page container ====== */
.page_container{ max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ====== Section Padding ====== */
.section_padding{ padding: 32px 20px; max-width: 1080px; margin: 0 auto; }
.section_padding h2{ font-family: var(--font-display); color: var(--primary); font-size: clamp(20px, 3vw, 24px); font-weight: 700; margin-bottom: 16px; }
.section_padding h3, .section_padding h4{ font-family: var(--font-display); color: var(--primary); font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.section_padding p{ color: var(--text); font-size: 15.5px; line-height: 1.7; margin-bottom: 16px; }

@media (min-width: 768px){
  .section_padding{ padding: 48px 20px; }
  .section_padding p{ font-size: 16px; }
  .section_padding h3, .section_padding h4{ font-size: 19px; }
}

/* ====== Content Box ====== */
.content_box{
  background: var(--surface);
  border-left: 5px solid var(--danger);
  padding: 22px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
@media (min-width: 640px){ .content_box{ padding: 28px; margin-bottom: 32px; } }

/* ====== Checklist styling ====== */
.why-chose-about ul,
.privcacy-section-2 ul{ list-style: none; padding-left: 0; margin: 0 0 8px; }
.why-chose-about ul li,
.privcacy-section-2 ul li{ padding: 8px 0 8px 26px; position: relative; color: var(--text); font-size: 15px; line-height: 1.6; }
.why-chose-about ul li::before,
.privcacy-section-2 ul li::before{ content: "\2714"; color: var(--danger); position: absolute; left: 0; font-weight: 700; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact_box{
  background: var(--surface);
  border-left: 5px solid var(--danger);
  padding: 20px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.contact_box h2{ color: var(--primary); font-family: var(--font-display); font-size: 20px; margin-bottom: 10px; }
.contact_box p{ margin: 0; }
.contact_box a{ color: var(--primary); font-weight: 600; }
@media (min-width: 640px){ .contact_box{ padding: 26px; } .contact_box h2{ font-size: 22px; } }

.contact{ padding: 8px 20px 48px; }
.contact .section-title{ max-width: 1080px; margin: 0 auto 28px; padding: 0; text-align: left; }
.contact .section-title h2{ color: var(--primary); font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; }
.contact .section-title p{ color: var(--text-muted); margin: 0; }

.contact__grid{
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px){
  .contact__grid{ grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 40px; }
}

.contact__info{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 480px) and (max-width: 899px){
  .contact__info{ grid-template-columns: repeat(2, 1fr); }
}

.info-item{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
  transition: .25s ease;
  height: 100%;
}
.info-item i{ font-size: 26px; color: var(--danger); margin-bottom: 8px; display: inline-block; }
.info-item__icon{ color: var(--danger); margin-bottom: 8px; }
.info-item h3{ font-family: var(--font-display); color: var(--primary); font-size: 16px; margin: 0 0 6px; }
.info-item p{ color: var(--text-muted); margin: 0; font-size: 14.5px; line-height: 1.5; }
.info-item a{ color: inherit; }
.info-item:hover{ background: var(--primary-tint); border-color: var(--primary); }

/* ====== Contact Form ====== */
.php-email-form{
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px){ .php-email-form{ padding: 28px; } }

.form-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px){
  .form-grid{ grid-template-columns: 1fr 1fr; }
  .form-grid .form-field--full{ grid-column: 1 / -1; }
}

.form-field label{
  display: block;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control{
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  color: var(--text);
  background: var(--bg);
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.form-control{ resize: vertical; min-height: 130px; }
.form-control::placeholder{ color: var(--text-muted); }
.form-control:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
  outline: none;
  background: var(--surface);
}

.php-email-form .form-submit{ margin-top: 4px; text-align: center; }
.php-email-form .form-submit .btn{ width: 100%; }
@media (min-width: 560px){ .php-email-form .form-submit .btn{ width: auto; } }

.form-alert{
  text-align: center;
  border-radius: var(--radius-input);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 18px;
}
.form-alert--success{ background: var(--primary-tint); color: var(--primary); border: 1px solid var(--primary); }
.form-alert--error{ background: var(--danger-tint); color: var(--danger); border: 1px solid var(--danger); }

/* ====== Accordion (FAQ-style) ====== */
.accordion-item{ border: 1px solid var(--border); border-radius: var(--radius-input); margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.accordion-button{ background: var(--primary-tint); color: var(--primary); font-weight: 600; border: none; padding: 15px; transition: .25s; width: 100%; text-align: left; font-size: 15px; }
.accordion-button:not(.collapsed){ background: var(--primary); color: var(--on-primary); }
.accordion-button:focus{ box-shadow: 0 0 0 3px var(--primary-tint); }
.accordion-body{ background: var(--surface); color: var(--text); padding: 15px 20px; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.6; }

/* ==========================================================================
   Policy pages (Returns & Refunds)
   ========================================================================== */
.policy-section{ max-width: 1080px; margin: 0 auto; padding: 32px 20px; }
.policy-section h2{ font-family: var(--font-display); font-size: 1.15rem; color: var(--primary); margin-top: 26px; margin-bottom: 10px; }
.policy-section p, .policy-section li{ font-size: 15px; color: var(--text); line-height: 1.7; }
.policy-section ul{ padding-left: 20px; margin-bottom: 18px; }
.policy-section ul li{ list-style-type: disc; }
.policy-section strong{ color: var(--text); }
.policy-section a{ color: var(--primary); font-weight: 600; overflow-wrap: anywhere; }
.contact-box{
  background: var(--primary-tint);
  border-left: 4px solid var(--primary);
  padding: 16px 18px;
  margin: 20px 0;
  border-radius: var(--radius-input);
}
@media (min-width: 768px){ .policy-section{ padding: 48px 20px; } .policy-section h2{ font-size: 1.3rem; } }

/* ==========================================================================
   Policy pages (Shipping)
   ========================================================================== */
.policy-page{ padding: 32px 0 48px; background: var(--bg); color: var(--text); }
.policy-page .container{ max-width: 1080px; margin: 0 auto; padding: 0 20px; line-height: 1.75; }
.policy-page h2{ font-family: var(--font-display); font-size: 20px; color: var(--primary); margin-top: 26px; margin-bottom: 10px; }
.policy-page h3{ font-family: var(--font-display); font-size: 18px; color: var(--primary); margin-top: 22px; }
.policy-page p{ font-size: 15.5px; }
.policy-page ul{ margin: 10px 0 10px 20px; }
.policy-page ul li{ list-style: disc; font-size: 15px; }
.policy-page a{ color: var(--primary); text-decoration: underline; overflow-wrap: anywhere; }

.table-scroll{ overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 15px 0; border-radius: var(--radius-input); }
.policy-page table{ width: 100%; min-width: 480px; border-collapse: collapse; margin: 0; background: var(--surface); }
.policy-page table, .policy-page th, .policy-page td{ border: 1px solid var(--border); }
.policy-page th, .policy-page td{ padding: 10px 14px; text-align: left; font-size: 14.5px; white-space: nowrap; }
.policy-page th{ background: var(--primary-tint); color: var(--primary); }

@media (min-width: 768px){ .policy-page{ padding: 48px 0 64px; } .policy-page h2{ font-size: 22px; } .policy-page h3{ font-size: 19px; } }

/* ==========================================================================
   Terms & conditions
   ========================================================================== */
.terms-section{ max-width: 1080px; margin: 0 auto; padding: 32px 20px 48px; color: var(--text); line-height: 1.75; }
.terms-section h2{ font-family: var(--font-display); font-size: 1.3rem; color: var(--primary); margin-top: 32px; border-bottom: 2px solid var(--border); padding-bottom: 6px; }
.terms-section h3, .terms-section h4{ font-family: var(--font-display); font-size: 1.1rem; color: var(--primary); margin-top: 22px; }
.terms-section p{ margin-bottom: 15px; font-size: 15.5px; }
.terms-section ul.terms-list{ list-style: disc; margin: 10px 0 15px 26px; padding: 0; }
.terms-section ul.terms-list li{ margin-bottom: 8px; font-size: 15px; }
.terms-section a{ color: var(--primary); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.terms-section a:hover{ text-decoration: underline; }

@media (min-width: 768px){
  .terms-section{ padding: 48px 20px 64px; }
  .terms-section h2{ font-size: 1.5rem; }
  .terms-section h3, .terms-section h4{ font-size: 1.2rem; }
}

/* ==========================================================================
   Auth pages — Login, Register, Forgot/Reset password
   ========================================================================== */
.auth-section{
  padding: 48px 0 72px;
  background:
    radial-gradient(1100px 420px at 12% -10%, var(--primary-tint) 0%, transparent 60%),
    radial-gradient(900px 360px at 100% 0%, var(--danger-tint) 0%, transparent 55%),
    var(--bg);
}
.auth-grid{
  max-width: 1000px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 860px){
  .auth-grid{ grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: stretch; }
}

.auth-card{
  position: relative;
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-md); padding: 28px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  animation: authCardIn .5s cubic-bezier(.16,1,.3,1);
}
@keyframes authCardIn{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce){ .auth-card{ animation: none; } }
@media (min-width: 640px){ .auth-card{ padding: 38px; } }
.auth-card h1{ font-family: var(--font-display); color: var(--primary); font-size: clamp(22px, 3vw, 27px); margin: 0 0 22px; letter-spacing: -.01em; }

.auth-tabs{ display: flex; gap: 28px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.auth-tabs a{
  position: relative;
  padding: 4px 2px 13px; font-weight: 700; font-size: 15px;
  color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent;
  transition: color .2s ease;
}
.auth-tabs a::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--danger); transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.auth-tabs a.is-active, .auth-tabs a:hover{ color: var(--primary); }
.auth-tabs a.is-active::after{ transform: scaleX(1); }

.auth-card .form-group{ margin-bottom: 18px; }

/* Icon-prefixed inputs */
.input-icon{ position: relative; }
.input-icon svg{
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none; transition: color .2s ease;
}
.input-icon .form-control{ padding-left: 44px; }
.input-icon:focus-within svg{ color: var(--primary); }

.auth-card .btn--block{ margin-top: 6px; box-shadow: var(--shadow-md); }

.auth-row{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.auth-link{ font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.auth-link:hover{ color: var(--primary-dark); text-decoration: underline; }

.auth-side{
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 30px; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow-md);
}
.auth-side::before{
  content: ""; position: absolute; inset: 0;
  background: var(--flag-stripe); opacity: .12;
}
.auth-side > *{ position: relative; }
@media (min-width: 640px){ .auth-side{ padding: 36px; } }
.auth-side h2{ font-family: var(--font-display); color: #fff; font-size: 20px; margin: 0 0 12px; }
.auth-side p{ color: rgba(255,255,255,0.82); font-size: 14.5px; line-height: 1.6; margin: 0 0 20px; }

.auth-side__perks{ list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-side__perks li{ display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #fff; }
.auth-side__perks svg{ flex-shrink: 0; color: #fff; background: rgba(255,255,255,0.16); border-radius: 50%; padding: 4px; box-sizing: content-box; }

.auth-side .btn--ghost{ background: #fff; color: var(--primary); border-color: #fff; font-weight: 700; }
.auth-side .btn--ghost:hover{ background: rgba(255,255,255,0.9); border-color: #fff; color: var(--primary-dark); }

/* Signup form (two-column field groups) */
.signup-content{
  position: relative;
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-md); border: 1px solid var(--border); border-top: 4px solid var(--danger);
  padding: 28px; max-width: 640px; margin: 0 auto;
  animation: authCardIn .5s cubic-bezier(.16,1,.3,1);
}
@media (prefers-reduced-motion: reduce){ .signup-content{ animation: none; } }
@media (min-width: 640px){ .signup-content{ padding: 38px; } }
.signup-content h1{ font-family: var(--font-display); color: var(--primary); font-size: clamp(22px, 3vw, 27px); text-align: center; margin: 0 0 6px; letter-spacing: -.01em; }
.signup-content h2{ color: var(--text-muted); font-weight: 500; font-size: 14px; text-align: center; margin: 0 0 26px; }
.signup-content .form_main{ display: flex; flex-direction: column; gap: 16px; margin-bottom: 4px; }
@media (min-width: 640px){ .signup-content .form_main{ flex-direction: row; gap: 18px; } }
.signup-content .form-group{ width: 100%; }
.signup-content .form-group label{ display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 7px; }
.signup-content .btn--primary{ box-shadow: var(--shadow-md); }
.signup-content .return-store{ display: block; text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--text); }
.signup-content .return-store span{ color: var(--text-muted); }

/* ==========================================================================
   Account dashboard — Dashboard, Orders, Edit profile, Change password
   ========================================================================== */
.account-section{ padding: 32px 0 64px; background: var(--bg); }
.account-layout{
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 860px){
  .account-layout{ flex-direction: row; align-items: flex-start; }
  .account-sidebar{ flex: 0 0 260px; position: sticky; top: 100px; }
  .account-content{ flex: 1 1 0; min-width: 0; }
}

.account-sidebar{ background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); border: 1px solid var(--border); overflow: hidden; }
.account-sidebar__profile{
  display: flex; align-items: center; gap: 12px; padding: 22px 20px;
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff;
}
.account-sidebar__profile img{ width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.5); }
.account-sidebar__profile strong{ display: block; font-size: 14.5px; }
.account-sidebar__profile span{ display: block; font-size: 12.5px; color: rgba(255,255,255,0.75); overflow-wrap: anywhere; }

.account-sidebar__nav{ display: flex; flex-direction: column; padding: 10px; gap: 2px; }
.account-sidebar__nav a{
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: var(--radius-input); color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 14.5px; transition: background .15s ease, color .15s ease, transform .15s ease;
}
.account-sidebar__nav a svg{ flex-shrink: 0; color: var(--text-muted); transition: color .15s ease; }
.account-sidebar__nav a:hover{ background: var(--bg-alt); transform: translateX(2px); }
.account-sidebar__nav a.is-active{ background: var(--primary-tint); color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
.account-sidebar__nav a.is-active svg{ color: var(--primary); }
.account-sidebar__logout{ margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--danger) !important; }
.account-sidebar__logout:hover{ background: var(--danger-tint) !important; }
.account-sidebar__logout svg{ color: var(--danger) !important; }

.account-card{ background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); border: 1px solid var(--border); border-top: 4px solid var(--primary); padding: 24px; }
@media (min-width: 640px){ .account-card{ padding: 32px; } }
.account-card h1{ font-family: var(--font-display); color: var(--primary); font-size: clamp(20px, 3vw, 24px); margin: 0 0 4px; letter-spacing: -.01em; }
.account-card__subtitle{ color: var(--text-muted); font-size: 14px; margin: 0 0 26px; }

.account-stats{ display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px){ .account-stats{ grid-template-columns: 1fr 1fr; } }
.stat-tile{
  position: relative; overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 24px; text-align: center; transition: transform .2s ease, box-shadow .2s ease;
}
.stat-tile:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-tile img{ display: block; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); border: 3px solid var(--surface); }
.stat-tile__label{ font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 8px; }
.stat-tile__value{ font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--primary); margin: 0 0 12px; line-height: 1; }
.stat-tile a{ display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--primary); text-decoration: none; }
.stat-tile a:hover{ color: var(--danger); }
.stat-tile p{ margin: 0 0 4px; color: var(--text); font-size: 14.5px; }

.account-table-wrap{ overflow-x: auto; border-radius: var(--radius-input); border: 1px solid var(--border); }
.account-table{ width: 100%; border-collapse: collapse; min-width: 520px; }
.account-table th{ background: var(--primary-tint); color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 13px 14px; }
.account-table td{ padding: 13px 14px; border-top: 1px solid var(--border); color: var(--text); font-size: 14.5px; }
.account-table tbody tr{ transition: background .15s ease; }
.account-table tbody tr:nth-child(even){ background: var(--bg-alt); }
.account-table tbody tr:hover{ background: var(--primary-tint); }
.account-table td a{ color: var(--primary); font-weight: 700; text-decoration: none; }
.account-table td a:hover{ text-decoration: underline; }
.account-table-empty{ text-align: center; padding: 48px 16px; color: var(--text-muted); }
.account-table-empty p{ margin: 0 0 16px; font-size: 15px; }

.account-form-row{ display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px){ .account-form-row{ flex-direction: row; } .account-form-row .form-field{ flex: 1 1 0; min-width: 0; } }
.account-form-row .form-field{ width: 100%; }
.account-avatar{ display: flex; justify-content: center; margin-bottom: 26px; }
.account-avatar img{ width: 100px; height: 100px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-md); border: 3px solid var(--surface); outline: 3px solid var(--primary-tint); }

/* Order invoice (order_detail) */
.invoice-card{ background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); padding: 24px; }
@media (min-width: 640px){ .invoice-card{ padding: 32px; } }
.invoice-head{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.invoice-head .brand{ font-family: var(--font-display); color: var(--primary); font-weight: 800; font-size: 18px; }
.invoice-to{ text-align: right; font-size: 14px; color: var(--text); line-height: 1.6; }
.invoice-to strong{ display: block; color: var(--primary); margin-bottom: 4px; }
.invoice-meta{ background: var(--bg-alt); border-radius: var(--radius-input); padding: 14px 16px; margin-bottom: 20px; font-size: 14px; color: var(--text); display: flex; flex-wrap: wrap; gap: 6px 20px; }
.invoice-meta strong{ color: var(--primary); }
.invoice-footer{ text-align: center; color: var(--text-muted); font-size: 14px; margin-top: 20px; }

/* ==========================================================================
   Checkout page
   ========================================================================== */
.checkout-section{ padding: 32px 0 64px; background: var(--bg); }
.checkout-wrap{ max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.checkout-returning{
  display: flex; align-items: center; gap: 10px;
  background: var(--primary-tint); color: var(--primary);
  border-radius: var(--radius-input); padding: 14px 16px;
  font-size: 14px; font-weight: 600; margin-bottom: 24px;
}
.checkout-returning svg{ flex-shrink: 0; }
.checkout-returning a{ color: var(--primary); font-weight: 700; text-decoration: underline; }

.checkout-grid{ display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 960px){
  .checkout-grid{ flex-direction: row; align-items: flex-start; }
  .checkout-billing{ flex: 1 1 0; min-width: 0; }
  .checkout-order{ flex: 0 0 420px; }
}

.checkout-card{
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
  padding: 24px;
}
@media (min-width: 640px){ .checkout-card{ padding: 30px; } }
.checkout-card h3{ font-family: var(--font-display); color: var(--primary); font-size: 20px; font-weight: 800; margin: 0 0 22px; }

.checkout-card .form-field{ margin-bottom: 16px; }
.checkout-card .form-field:last-child{ margin-bottom: 0; }
.checkout-card .form-field label{ display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.checkout-card .required{ color: var(--danger); }
.checkout-card select.form-control{ cursor: pointer; }
.checkout-card textarea.form-control{ resize: vertical; min-height: 100px; }

.checkout-form-row{ display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
@media (min-width: 560px){
  .checkout-form-row{ flex-direction: row; }
  .checkout-form-row .form-field{ flex: 1 1 0; min-width: 0; margin-bottom: 0; }
}

/* Order summary — flex line-items, never needs horizontal scroll */
.order-summary{ margin-bottom: 22px; }
.order-summary__items{
  list-style: none; margin: 0 0 16px; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-input); overflow: hidden;
}
.order-summary__item{
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px; border-top: 1px solid var(--border);
}
.order-summary__item:first-child{ border-top: none; }
.order-summary__item-info{ display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.order-summary__item-info a{ color: var(--text); font-weight: 700; font-size: 14.5px; text-decoration: none; overflow-wrap: anywhere; }
.order-summary__item-info a:hover{ color: var(--primary); }
.order-summary__variation{ font-size: 12.5px; color: var(--text-muted); }
.order-summary__qty{ font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.order-summary__item-total{ flex-shrink: 0; font-weight: 700; font-size: 14.5px; color: var(--text); white-space: nowrap; }

.order-summary__totals{
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-input); padding: 14px;
  background: var(--bg-alt);
}
.order-summary__row{
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.order-summary__row--grand{
  margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--border);
  font-size: 16px; font-weight: 800; color: var(--primary);
}

/* Payment method selector */
.payment-method{ display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.payment-method p{
  display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 13px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-input);
  font-weight: 600; font-size: 14px; color: var(--text);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.payment-method p:has(input:checked){ border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }
.payment-method input[type="radio"]{ accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.payment-method label{ flex: 1; cursor: pointer; }

.payment-form-box{
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-input);
  padding: 18px; margin-bottom: 18px;
}
.payment-form-box .form-field{ margin-bottom: 14px; }
.payment-form-box .form-field:last-child{ margin-bottom: 0; }
.payment-form-box.hidden{ display: none; }

.field-error{ display: none; color: var(--danger); font-size: 12.5px; margin-top: 6px; }

.checkout-submit{ margin-top: 4px; box-shadow: var(--shadow-md); }

@media (max-width: 640px){
  .checkout-section{ padding: 20px 0 48px; }
  .checkout-wrap{ padding: 0 14px; }
  .checkout-card{ padding: 16px; }
  .checkout-card h3{ font-size: 17px; margin-bottom: 18px; }
  .checkout-returning{ font-size: 13px; padding: 12px 14px; }

  .order-summary__item{ flex-direction: column; gap: 4px; padding: 12px; }
  .order-summary__item-total{ align-self: flex-end; }

  .payment-method p{ padding: 12px; font-size: 13.5px; }
  .payment-form-box{ padding: 14px; }
}

/* ==========================================================================
   Blog listing page
   ========================================================================== */
.blog-listing{ padding: 40px 0 64px; background: var(--bg); }
.blog-listing__layout{
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; gap: 32px;
}
@media (min-width: 960px){
  .blog-listing__layout{ flex-direction: row; align-items: flex-start; }
  .blog-listing__main{ flex: 1 1 0; min-width: 0; }
  .blog-listing__sidebar{ flex: 0 0 300px; position: sticky; top: 100px; }
}

.blog-listing__grid{ display: flex; flex-direction: column; gap: 24px; }
.blog-listing__card{
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.blog-listing__card:hover{ box-shadow: var(--shadow-md); border-color: var(--primary); }
/* @media (min-width: 640px){ .blog-listing__card{ flex-direction: row; } } */

.blog-listing__media{ position: relative; display: block; flex-shrink: 0; overflow: hidden; background: var(--bg-alt); }
.blog-listing__media img{
  width: 100%; height: 100%; object-fit: contain; background: var(--bg-alt); display: block;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.blog-listing__card:hover .blog-listing__media img{ transform: scale(1.05); }
/* @media (min-width: 640px){ .blog-listing__media{ width: 280px; aspect-ratio: auto; } .blog-listing__media img{ height: 100%; } } */
.blog-listing__tag{
  position: absolute; top: 14px; left: 14px;
  background: var(--surface); color: var(--primary);
  font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill);
}

.blog-listing__body{ padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-listing__meta{ font-size: 12.5px; color: var(--text-muted); margin: 0; }
.blog-listing__body h2{ font-size: 19px; font-weight: 700; margin: 0; line-height: 1.3; }
.blog-listing__body h2 a{ color: var(--text); text-decoration: none; }
.blog-listing__body h2 a:hover{ color: var(--primary); }
.blog-listing__excerpt{ font-size: 14.5px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.blog-listing__link{
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--primary); text-decoration: none;
  align-self: flex-start; transition: gap .2s ease, color .2s ease;
}
.blog-listing__link:hover{ color: var(--primary-dark); gap: 9px; }

.blog-listing__empty{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 56px 20px; text-align: center; color: var(--text-muted);
}

.blog-sidebar-widget{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); padding: 22px; margin-bottom: 24px;
}
.blog-sidebar-widget h3{ font-family: var(--font-display); color: var(--primary); font-size: 16px; font-weight: 800; margin: 0 0 16px; }
.blog-sidebar-widget__item{ padding: 12px 0; border-top: 1px solid var(--border); }
.blog-sidebar-widget__item:first-child{ border-top: none; padding-top: 0; }
.blog-sidebar-widget__date{ display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.blog-sidebar-widget__item a{ color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; line-height: 1.4; }
.blog-sidebar-widget__item a:hover{ color: var(--primary); }

.blog-sidebar-widget__links{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.blog-sidebar-widget__links a{
  display: block; padding: 10px 14px; background: var(--bg-alt);
  border-radius: var(--radius-input); color: var(--text); font-weight: 600; font-size: 14px;
  text-decoration: none; transition: background .2s ease, color .2s ease;
}
.blog-sidebar-widget__links a:hover{ background: var(--primary-tint); color: var(--primary); }

/* ==========================================================================
   Single blog article page
   ========================================================================== */
.blog-article-page{ padding: 40px 0 64px; background: var(--bg); }

.blog-article{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 24px;
}
.blog-article__media{ aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.blog-article__media img{ width: 100%; height: 100%;  display: block; }

.blog-article__meta{
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  padding: 20px 24px 0; font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.blog-article__meta span{ display: inline-flex; align-items: center; gap: 6px; }
.blog-article__meta svg{ color: var(--danger); flex-shrink: 0; }

/* Article body — typography for CKEditor-rendered rich text */
.blog-article__body{ padding: 22px 24px 26px; color: var(--text); font-size: 15.5px; line-height: 1.75; }
.blog-article__body h2{ font-family: var(--font-display); color: var(--primary); font-size: clamp(19px, 2.4vw, 23px); margin: 32px 0 14px; }
.blog-article__body h3{ font-family: var(--font-display); color: var(--primary); font-size: clamp(17px, 2vw, 19px); margin: 26px 0 12px; }
.blog-article__body h4{ color: var(--text); font-size: 16px; margin: 20px 0 10px; }
.blog-article__body p{ margin: 0 0 16px; }
.blog-article__body a{ color: var(--primary); font-weight: 600; text-decoration: underline; }
.blog-article__body img{ max-width: 100%; height: auto; border-radius: var(--radius-input); margin: 8px 0 20px; }
.blog-article__body ul, .blog-article__body ol{ margin: 0 0 18px; padding-left: 22px; }
.blog-article__body ul li{ list-style: disc; margin-bottom: 8px; }
.blog-article__body ol li{ list-style: decimal; margin-bottom: 8px; }
.blog-article__body blockquote{
  margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--danger);
  background: var(--bg-alt); color: var(--text-muted); font-style: italic; border-radius: 0 var(--radius-input) var(--radius-input) 0;
}

/* Rich-text tables: horizontal scroll on the table itself, no wrapper markup needed */
.blog-article__body table{
  display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-collapse: collapse; margin: 8px 0 22px;
  border: 1px solid var(--border); border-radius: var(--radius-input);
}
.blog-article__body table th, .blog-article__body table td{
  padding: 10px 14px; border: 1px solid var(--border); font-size: 14px; white-space: nowrap; text-align: left;
}
.blog-article__body table th{ background: var(--primary-tint); color: var(--primary); font-weight: 700; }
.blog-article__body table td{ color: var(--text); background: var(--surface); }

.blog-article__faq{ padding: 4px 24px 26px; border-top: 1px solid var(--border); }
.blog-article__faq h2{ font-family: var(--font-display); color: var(--primary); font-size: clamp(19px, 2.4vw, 23px); margin: 24px 0 10px; }

.blog-author-box{
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  margin: 4px 24px 26px; padding: 20px; background: var(--bg-alt);
  border-radius: var(--radius-input);
}
@media (min-width: 560px){ .blog-author-box{ flex-direction: row; align-items: flex-start; } }
.blog-author-box__photo{ flex-shrink: 0; }
.blog-author-box__photo img{ width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.blog-author-box__info span{ display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 4px; }
.blog-author-box__info h3{ font-family: var(--font-display); color: var(--primary); font-size: 17px; margin: 0 0 8px; }
.blog-author-box__info h3:hover{ text-decoration: underline; }
.blog-author-box__info p{ margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.blog-comments{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); padding: 22px; margin-bottom: 24px;
}
.blog-comments h4{ font-family: var(--font-display); color: var(--primary); font-size: 18px; margin: 0 0 16px; }
.blog-comments__empty{ color: var(--text-muted); font-size: 14.5px; margin: 0; }
.blog-comments__list{ list-style: none; margin: 0; padding: 0; }
.blog-comments__list li{ padding: 16px 0; border-top: 1px solid var(--border); }
.blog-comments__list li:first-child{ border-top: none; padding-top: 0; }
.blog-comments__head{ display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.blog-comments__head h5{ font-size: 14.5px; color: var(--text); margin: 0; }
.blog-comments__head span{ font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.blog-comments__list p{ margin: 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

.blog-comment-form{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); padding: 22px;
}
.blog-comment-form h4{ font-family: var(--font-display); color: var(--primary); font-size: 18px; margin: 0 0 16px; }
.blog-comment-form .form-field{ margin-bottom: 16px; }
.blog-comment-form p{ margin: 0; color: var(--text-muted); font-size: 14.5px; }
.blog-comment-form p a{ color: var(--primary); font-weight: 700; text-decoration: none; }
.blog-comment-form p a:hover{ text-decoration: underline; }

@media (max-width: 640px){
  .blog-article-page{ padding: 24px 0 48px; }
  .blog-article__meta{ padding: 16px 16px 0; font-size: 12px; gap: 6px 14px; }
  .blog-article__body{ padding: 16px; font-size: 15px; }
  .blog-article__faq{ padding: 4px 16px 20px; }
  .blog-author-box{ margin: 4px 16px 20px; padding: 16px; }
  .blog-comments, .blog-comment-form{ padding: 16px; }
}
