/**
 * SiteNests - Master Responsive CSS Architecture & Global Design Tokens
 * Brand System: Royal Blue (#3157D5) • Deep Navy (#101828) • Warm White (#FAFAF8)
 */

:root {
  /* 1. Global Brand & Action Colors */
  --color-primary: #3157D5;
  --color-primary-hover: #2447B8;

  /* 2. Typography Hierarchy */
  --color-text-primary: #101828;
  --color-text-secondary: #475467;
  --color-text-muted: #667085;
  --color-text-on-dark: #FFFFFF;

  /* 3. Surfaces & Backgrounds */
  --color-bg-main: #FAFAF8;
  --color-bg-card: #FFFFFF;
  --color-bg-light-blue: #F2F5FF;

  /* 4. Borders & Dividers */
  --color-border: #E4E7EC;
  --color-border-light: #F2F4F7;

  /* 5. Footer Specific */
  --color-footer: #101828;
  --color-footer-blue: #172554;
  --color-footer-accent: #1D4ED8;

  /* 6. Feedback & Special Indicators */
  --color-sale-bg: #FFF1F2;
  --color-sale-text: #D92D20;
  --color-success-bg: #ECFDF3;
  --color-success-text: #027A48;

  /* 7. Backward Compatibility Aliases */
  --primary-color: var(--color-primary);
  --primary-hover: var(--color-primary-hover);
  --color-brand-primary: var(--color-primary);
  --color-brand-primary-hover: var(--color-primary-hover);
  --color-brand-accent: var(--color-primary);
  --color-brand-accent-hover: var(--color-primary-hover);
  --color-brand-light: var(--color-bg-light-blue);
  --bg-main: var(--color-bg-main);
  --bg-secondary: var(--color-bg-main);
  --bg-card: var(--color-bg-card);
  --border-normal: var(--color-border);
  --border-strong: var(--color-border);
  --border-active: var(--color-primary);
  --color-surface-border: var(--color-border);
  --color-surface-body: var(--color-bg-main);
  --color-surface-card: var(--color-bg-card);
  --text-heading: var(--color-text-primary);
  --text-normal: var(--color-text-secondary);
  --text-secondary: var(--color-text-muted);
  --link-color: var(--color-primary);

  /* Fluid Clamped Spacing Tokens */
  --card-padding: clamp(20px, 2.5vw, 32px);
  --card-padding-lg: clamp(36px, 3vw, 48px);
  --section-spacing-y: clamp(48px, 6vw, 90px);
  --container-gutter: clamp(16px, 3vw, 32px);

  /* Radius Tokens */
  --btn-radius: 8px;
  --radius-button: 8px;
  --radius-card: 12px;
  --radius-card-sm: 8px;
  --radius-badge: 20px;
  --radius-input: 8px;

  /* Elevation Shadows */
  --shadow-card: 0 4px 20px rgba(16, 24, 40, 0.05);
  --shadow-card-hover: 0 8px 30px rgba(16, 24, 40, 0.08);
  --shadow-button-primary: 0 4px 14px rgba(49, 87, 213, 0.3);
  --shadow-header: 0 1px 3px rgba(16, 24, 40, 0.04);

  /* Motion & Easing Tokens */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.65s;
  --duration-entrance: 0.85s;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  background-color: var(--color-bg-main) !important;
  color: var(--color-text-secondary) !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary) !important;
  font-weight: 800 !important;
}

/* Base Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
  background-color: var(--color-bg-card) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text-primary) !important;
  border-radius: var(--radius-input) !important;
}

/* Hero Search Input Clean Reset (No Inner Box/Borders) */
.hero-anim-search input[type="text"],
.hero-search-input {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.15) !important;
}

/* Button System */
.button.primary,
.button.btn-checkout,
.btn-primary,
button[type="submit"].button.primary {
  background: var(--color-primary) !important;
  background-color: var(--color-primary) !important;
  color: #FFFFFF !important;
  border-radius: var(--radius-button) !important;
  box-shadow: var(--shadow-button-primary) !important;
  border: none !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.button.primary:hover,
.button.btn-checkout:hover,
.btn-primary:hover,
button[type="submit"].button.primary:hover {
  background: var(--color-primary-hover) !important;
  background-color: var(--color-primary-hover) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 87, 213, 0.4) !important;
}

.button.secondary,
.btn-secondary {
  background: var(--color-bg-card) !important;
  color: var(--color-text-primary) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-button) !important;
  font-weight: 600 !important;
}

.button.secondary:hover,
.btn-secondary:hover {
  background: var(--color-bg-light-blue) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

/* Standardized Cards */
.product-item,
.card,
.prod-details-card,
.prod-preview-card,
.prod-details-box,
.builder-actions-item,
.product-card-motion {
  background: var(--color-bg-card) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-card) !important;
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo),
              border-color 0.35s var(--ease-out-expo) !important;
}

.product-card-motion:hover,
.builder-actions-item:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-card-hover) !important;
  border-color: rgba(49, 87, 213, 0.35) !important;
}

/* Pill Controls & Badges */
.badge-sale {
  background: var(--color-sale-bg) !important;
  color: var(--color-sale-text) !important;
  font-weight: 700 !important;
}

.badge-success {
  background: var(--color-success-bg) !important;
  color: var(--color-success-text) !important;
  font-weight: 700 !important;
}

.category-pill,
.filter-pill {
  border-radius: 9999px !important;
  transition: all 0.25s var(--ease-out-expo) !important;
  background: var(--color-bg-card) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text-secondary) !important;
}

.category-pill:hover,
.filter-pill:hover {
  transform: translateY(-2px) !important;
  background-color: var(--color-bg-light-blue) !important;
  color: var(--color-primary) !important;
  border-color: rgba(49, 87, 213, 0.3) !important;
}

.category-pill.active,
.filter-pill.active {
  background-color: var(--color-bg-light-blue) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  font-weight: 700 !important;
}

/* Clean Hero on #FAFAF8 */
.hero-clean-white-wrap {
  background: var(--color-bg-main) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

/* ============================================================
   1. GLOBAL UNIVERSAL MOBILE SAFEGUARDS
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box !important;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

/* Media elements must never overflow their containers */
img, video, canvas, svg {
  max-width: 100% !important;
  height: auto;
}

/* Word breaking to prevent rigid URLs or tokens from breaking layout */
p, h1, h2, h3, h4, h5, h6, span, a, label, li, td, th {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

/* Ensure inputs on mobile use at least 16px to prevent iOS auto-zoom */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}


/* ============================================================
   2. FLUID CONTAINER SYSTEM
   ============================================================ */
.site-container,
.main-container,
.header-main-container,
.header-nav-container,
.footer-top,
.footer-bottom-inner,
.widget-line {
  box-sizing: border-box !important;
}

@media screen and (max-width: 768px) {
  .site-container,
  .main-container,
  .header-main-container,
  .header-nav-container,
  .prod-main-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

@media screen and (max-width: 360px) {
  .site-container,
  .main-container,
  .header-main-container,
  .header-nav-container,
  .prod-main-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

@media screen and (max-width: 330px) {
  .site-container,
  .main-container,
  .header-main-container,
  .header-nav-container,
  .prod-main-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}


/* ============================================================
   3. HEADER, LOGO & ACTION ICONS (320px - 430px FLUIDITY)
   ============================================================ */
.header-main-row {
  width: 100% !important;
  box-sizing: border-box !important;
}

.navigation.header-main-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
}

.header-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.header-logo-text {
  white-space: nowrap !important;
}

/* Header Action Buttons */
.header-action-icons {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

.header-action-btn,
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  user-select: none !important;
}

/* 390px - 430px (iPhone standard & Pro Max) */
@media screen and (max-width: 480px) {
  .header-logo-text {
    font-size: 19px !important;
  }
  .header-logo-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }
  .header-action-btn,
  .mobile-menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  .header-action-icons {
    gap: 8px !important;
  }
}

/* 360px (Standard Android) */
@media screen and (max-width: 360px) {
  .header-logo-text {
    font-size: 17px !important;
    letter-spacing: -0.3px !important;
  }
  .header-logo-icon {
    width: 29px !important;
    height: 29px !important;
    font-size: 14.5px !important;
    border-radius: 7px !important;
  }
  .header-action-btn,
  .mobile-menu-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
  .header-action-icons {
    gap: 6px !important;
  }
}

/* 320px (iPhone SE 1st gen & ultra compact) */
@media screen and (max-width: 330px) {
  .header-logo-text {
    font-size: 15.5px !important;
    letter-spacing: -0.4px !important;
  }
  .header-logo-icon {
    width: 26px !important;
    height: 26px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
  }
  .header-action-btn,
  .mobile-menu-toggle {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
  .header-action-icons {
    gap: 4px !important;
  }
  .hide-on-tiny {
    display: none !important;
  }
}


/* ============================================================
   4. MOBILE NAVIGATION DRAWER
   ============================================================ */
.mobile-nav-drawer {
  width: min(320px, 86vw) !important;
  max-width: 86vw !important;
  box-sizing: border-box !important;
}

.mobile-drawer-header {
  padding: 14px 16px !important;
}

.mobile-drawer-body {
  padding: 16px 14px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.mobile-drawer-search input {
  width: 100% !important;
  box-sizing: border-box !important;
}

.mobile-drawer-link {
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
}

.mobile-category-submenu {
  list-style: none !important;
  padding: 4px 0 6px 14px !important;
  margin: 0 !important;
}

.category-pills,
.category-pill-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.mobile-drawer-footer {
  padding: 14px 16px !important;
}

.mobile-drawer-social-btn {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
}


/* ============================================================
   5. HERO & SEARCH SECTION
   ============================================================ */
@media screen and (max-width: 640px) {
  .banner-wrap {
    padding: 40px 0 50px !important;
  }
  .banner-wrap h1 {
    font-size: clamp(23px, 6vw, 32px) !important;
    margin: 16px auto !important;
    line-height: 1.25 !important;
  }
  .banner-wrap p {
    font-size: 14.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 24px !important;
  }

  /* Hero search bar: stacks input and button on narrow screens */
  .banner-wrap form[action="shop.php"] {
    flex-direction: column !important;
    border-radius: 14px !important;
    padding: 8px !important;
    margin-top: 22px !important;
    gap: 8px !important;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08) !important;
  }
  .banner-wrap form[action="shop.php"] input[name="search"] {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
    text-align: center !important;
  }
  .banner-wrap form[action="shop.php"] button[type="submit"] {
    width: 100% !important;
    border-radius: 8px !important;
    padding: 12px 18px !important;
    font-size: 14.5px !important;
    min-height: 44px !important;
  }
}


/* ============================================================
   6. CATEGORY CARDS (.builder-actions)
   Stack 3 columns into 1 clean vertical column on mobile
   ============================================================ */
@media screen and (max-width: 768px) {
  .builder-actions.column-full-3-wrap {
    display: flex !important;
    flex-direction: column !important;
    margin: -20px auto 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  .builder-actions-item-wrap.column {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
  .builder-actions-item-wrap.column:last-child {
    border-bottom: none !important;
  }
  .builder-actions-item {
    padding: 20px 16px !important;
    text-align: center !important;
  }
  .builder-category-img-box {
    max-width: 220px !important;
    height: 130px !important;
    margin: 0 auto 12px !important;
  }
}


/* ============================================================
   7. PRODUCT CARDS & GRID LAYOUT
   ============================================================ */
/* Tablet (581px - 1024px): 2 balanced, full-width columns */
@media screen and (min-width: 581px) and (max-width: 1024px) {
  .product-list-grid,
  .featured-grid-wrap {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
    width: 100% !important;
  }
  .product-col,
  .shop-item-col,
  .product-list-grid .product-col,
  .product-list-grid .shop-item-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
  }
  .product-col h3,
  .product-col h3 a,
  .shop-item-col h3,
  .shop-item-col h3 a {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

/* Mobile (<= 580px): 1 clean full-width column */
@media screen and (max-width: 580px) {
  .product-list-grid,
  .featured-grid-wrap {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .product-col,
  .shop-item-col,
  .related-col,
  .column-full-4 .column,
  .column-full-3 .column,
  .product-list-grid .product-col,
  .product-list-grid .shop-item-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .product-col h3,
  .product-col h3 a,
  .shop-item-col h3,
  .shop-item-col h3 a {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

.site-product-card,
.product-item {
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 16px !important;
}

.site-product-card img,
.product-item img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}


/* ============================================================
   8. PRODUCT DETAILS PAGE (product.php)
   ============================================================ */
@media screen and (max-width: 768px) {
  .prod-layout-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .prod-left-col {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    top: auto !important;
    width: 100% !important;
  }
  .prod-preview-card {
    padding: 14px !important;
  }
  .prod-purchase-col {
    width: 100% !important;
  }
  .prod-details-card {
    padding: 16px 14px !important;
  }
  .prod-main-container {
    padding-bottom: 84px !important;
  }
}

/* License cards on small screens */
.license-card {
  width: 100% !important;
  box-sizing: border-box !important;
}

@media screen and (max-width: 480px) {
  .license-card {
    padding: 12px 14px !important;
  }
  .license-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .license-card-header > div:last-child {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
}

/* Buy Now & Add to Cart Action Buttons on Mobile */
@media screen and (max-width: 480px) {
  .flow-buy div[style*="display: flex; gap: 12px; flex-wrap: wrap;"] {
    flex-direction: column !important;
    gap: 10px !important;
  }
  #btnBuyNow,
  #btnAddToCart {
    width: 100% !important;
    flex: 1 1 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    font-size: 15px !important;
  }
}

/* Technical Specification Grid: adapt cleanly from 320px up */
.spec-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)) !important;
  gap: 12px !important;
}

/* Features Grid */
.features-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
  gap: 10px 16px !important;
}

/* Mobile Sticky Buy Bar */
@media screen and (max-width: 768px) {
  .mobile-sticky-buy-bar {
    display: block !important;
    padding: 8px 12px !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .mobile-sticky-buy-content {
    gap: 8px !important;
  }
  .mobile-sticky-right .btn-sticky-buy {
    min-height: 42px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }
}


/* ============================================================
   9. SHOPPING CART (cart.php)
   ============================================================ */
@media screen and (max-width: 860px) {
  .cart-left-col,
  .cart-right-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .cart-right-col {
    margin-top: 24px !important;
  }

  /* Table becomes responsive horizontal scroll or card flow */
  .cart-left-col table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media screen and (max-width: 540px) {
  .cart-left-col table,
  .cart-left-col thead,
  .cart-left-col tbody,
  .cart-left-col tr,
  .cart-left-col td,
  .cart-left-col th {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cart-left-col thead {
    display: none !important;
  }
  .cart-left-col tr {
    padding: 16px 14px !important;
    border-bottom: 1px solid #E5E7EB !important;
  }
  .cart-left-col td {
    padding: 6px 0 !important;
    text-align: left !important;
  }
  .cart-left-col td[style*="text-align: right;"] {
    text-align: left !important;
    font-size: 16px !important;
    font-weight: 800 !important;
  }
}


/* ============================================================
   10. CHECKOUT PAGE (checkout.php)
   ============================================================ */
@media screen and (max-width: 860px) {
  .checkout-left,
  .checkout-right {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .checkout-right {
    margin-top: 24px !important;
  }
  .col-half {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .checkout-left > div {
    padding: 20px 16px !important;
  }
  .checkout-right > div {
    padding: 20px 16px !important;
  }
}

/* Payment method cards */
.payment-method-card {
  width: 100% !important;
  box-sizing: border-box !important;
}

@media screen and (max-width: 480px) {
  .payment-method-card div[style*="justify-content: space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .payment-method-card p,
  .payment-method-card div[id*="instructions"] {
    margin-left: 0 !important;
  }
}


/* ============================================================
   11. ORDER SUCCESS & RECEIPT (order-success.php)
   ============================================================ */
@media screen and (max-width: 640px) {
  .order-success-card {
    padding: 24px 14px !important;
  }
  .order-item-download-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .order-item-download-card > div:last-child {
    width: 100% !important;
  }
  .order-item-download-card .button {
    width: 100% !important;
    justify-content: center !important;
  }
}


/* ============================================================
   12. CUSTOMER PROFILE & DASHBOARD (user-profile.php)
   ============================================================ */
@media screen and (max-width: 768px) {
  .profile-layout-wrap {
    flex-direction: column !important;
  }
  .profile-sidebar-col,
  .profile-content-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .profile-hero-card {
    padding: 20px 16px !important;
  }
}


/* ============================================================
   13. CUSTOM WEBSITES (custom-website.php)
   ============================================================ */
@media screen and (max-width: 768px) {
  .custom-site-layout {
    flex-direction: column !important;
  }
  .custom-site-left,
  .custom-site-right {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}


/* ============================================================
   14. CONTACT & FORMS (contact.php)
   ============================================================ */
@media screen and (max-width: 768px) {
  .contact-layout {
    flex-direction: column !important;
  }
  .contact-left,
  .contact-right {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}


/* ============================================================
   15. BLOG & ARTICLES (blog.php, blog-post.php)
   ============================================================ */
@media screen and (max-width: 768px) {
  .blog-layout {
    flex-direction: column !important;
  }
  .blog-main-col,
  .blog-sidebar-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .blog-post-card img {
    max-height: 220px !important;
  }
}


/* ============================================================
   16. FOOTER RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media screen and (max-width: 640px) {
  .footer-wrap {
    padding: 0 !important;
  }
  .footer-top {
    padding: 35px 14px 25px !important;
    gap: 26px !important;
  }
  .footer-payments-list {
    gap: 6px !important;
  }
  .payment-pill {
    padding: 3px 8px !important;
    font-size: 11px !important;
  }
}


/* ============================================================
   17. ADMIN & AUTH PAGES (admin/login.php, login.php, register.php)
   ============================================================ */
@media screen and (max-width: 480px) {
  .login-box,
  .auth-card {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 12px !important;
  }
  .login-header {
    padding: 22px 16px !important;
  }
  .login-body {
    padding: 22px 16px !important;
  }
  .btn-login {
    min-height: 46px !important;
    font-size: 15px !important;
  }
}


/* ============================================================
   18. TARGETED 320px - 430px HARDENING FOR ALL CHECKLIST ITEMS
   ============================================================ */

/* Cart Actions Row & Buttons */
@media screen and (max-width: 540px) {
  .cart-buttons-row {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .cart-buttons-group {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .cart-buttons-group button {
    flex: 1 1 calc(50% - 4px) !important;
    justify-content: center !important;
  }
}

/* Custom Website Page Responsive Grids */
@media screen and (max-width: 640px) {
  div[style*="grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Blog Responsive Grid & Content */
@media screen and (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

.article-content-body img,
.article-content-body iframe,
.article-content-body video {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
}

.article-content-body pre,
.article-content-body code {
  max-width: 100% !important;
  overflow-x: auto !important;
  word-break: break-word !important;
  white-space: pre-wrap !important;
}

/* Payment Method Remittance code block */
div[id*="instructions"] pre,
div[id*="instructions"] div[style*="monospace"] {
  max-width: 100% !important;
  overflow-x: auto !important;
  word-break: break-word !important;
  white-space: pre-wrap !important;
  box-sizing: border-box !important;
}



/* ============================================================
   SITENESTS - PREMIUM MOTION & ANIMATION SYSTEM
   Brand Colors: Royal Blue (#3157D5) • Dark Navy (#111827) • Light (#F7F8FC)
   ============================================================ */

:root {
  /* Brand Colors */
  --primary-color: #3157D5;
  --primary-hover: #2446B8;
  --color-brand-primary: #3157D5;
  --color-brand-primary-hover: #2446B8;
  --color-brand-accent: #3157D5;
  --color-brand-accent-hover: #2446B8;
  --color-brand-accent-subtle: rgba(49, 87, 213, 0.12);
  --color-brand-light: #EEF3FF;
  --color-brand-light-hover: #E0EBFF;
  --purple-accent: #635BFF;
  --purple-hover: #5148E5;
  --dark-navy: #111827;
  --secondary-color: #111827;
  --accent-color: #635BFF;

  /* Surfaces & Backgrounds */
  --bg-main: #F7F8FC;
  --bg-secondary: #FAFAF8;
  --bg-card: #FFFFFF;
  --bg-dark: #111827;
  --color-surface-body: #F7F8FC;
  --color-surface-card: #FFFFFF;
  --color-surface-muted: #FAFAF8;
  --color-surface-dark: #111827;
  --color-surface-elevated: #FFFFFF;

  /* Borders */
  --border-normal: #E5E7EB;
  --border-strong: #D1D5DB;
  --border-active: #3157D5;
  --color-surface-border: #E5E7EB;
  --color-surface-border-subtle: #F3F4F6;
  --color-surface-border-focus: #3157D5;

  /* Typography */
  --text-heading: #111827;
  --text-normal: #374151;
  --text-secondary: #69707D;
  --text-muted: #9CA3AF;
  --link-color: #3157D5;
  --color-text-primary: #111827;
  --color-text-body: #374151;
  --color-text-secondary: #69707D;
  --color-text-muted: #9CA3AF;
  --color-text-on-dark: #FFFFFF;

  /* Motion & Easing Tokens */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.65s;
  --duration-entrance: 0.85s;
}

/* --- 1. HERO ANIMATION & CLEAN MINIMAL WHITE BACKGROUND --- */
@keyframes heroFadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroRevealUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-clean-white-wrap,
.hero-navy-wrap,
.hero-warm-gradient-wrap,
.hero-aurora-wrap {
  position: relative !important;
  background: #FFFFFF !important;
  background-image: none !important;
  color: #101828 !important;
  overflow: hidden !important;
  border-bottom: 1px solid #E4E7EC !important;
}

/* Remove any background glow or particles on clean white hero */
.hero-clean-white-wrap::before,
.hero-clean-white-wrap::after,
.hero-navy-wrap::before,
.hero-navy-wrap::after,
.hero-warm-gradient-wrap::before,
.hero-warm-gradient-wrap::after,
.hero-aurora-wrap::before,
.hero-aurora-wrap::after {
  display: none !important;
  content: none !important;
}

.hero-anim-eyebrow {
  opacity: 1;
  animation: heroFadeSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  will-change: transform, opacity;
}

.hero-anim-title {
  opacity: 1;
  animation: heroRevealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  will-change: transform, opacity;
}

.hero-anim-desc {
  opacity: 1;
  animation: heroRevealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  will-change: transform, opacity;
}

.hero-anim-btn {
  opacity: 1;
  animation: heroRevealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  will-change: transform, opacity;
}

.hero-anim-search {
  opacity: 1;
  animation: heroRevealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
  will-change: transform, opacity;
}

/* --- 2. SCROLL REVEALS & STAGGER --- */
.motion-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s var(--ease-out-expo),
              transform 0.65s var(--ease-out-expo);
  will-change: opacity, transform;
}

.motion-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.motion-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.motion-stagger > *:nth-child(2) { transition-delay: 0.10s; }
.motion-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.motion-stagger > *:nth-child(4) { transition-delay: 0.22s; }
.motion-stagger > *:nth-child(5) { transition-delay: 0.28s; }
.motion-stagger > *:nth-child(6) { transition-delay: 0.34s; }
.motion-stagger > *:nth-child(7) { transition-delay: 0.40s; }
.motion-stagger > *:nth-child(8) { transition-delay: 0.46s; }

/* --- 3. PRODUCT CARD HOVER --- */
.product-card-motion {
  background: #FFFFFF !important;
  border: 1px solid var(--border-normal, #E5E7EB) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo),
              border-color 0.35s var(--ease-out-expo) !important;
  will-change: transform, box-shadow;
}

.product-card-motion:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.10), 0 4px 12px rgba(17, 24, 39, 0.04) !important;
  border-color: rgba(49, 87, 213, 0.35) !important;
}

.product-card-motion .card-img-wrap {
  overflow: hidden !important;
  position: relative !important;
}

.product-card-motion .card-img-wrap img {
  transition: transform 0.45s var(--ease-out-expo) !important;
  will-change: transform;
}

.product-card-motion:hover .card-img-wrap img {
  transform: scale(1.03) !important;
}

/* --- 4. CATEGORY NAVIGATION --- */
.builder-actions-item {
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo),
              border-color 0.3s var(--ease-out-expo) !important;
  border-radius: 14px !important;
  border: 1px solid var(--border-normal, #E5E7EB) !important;
  will-change: transform;
}

.builder-actions-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08) !important;
  border-color: rgba(49, 87, 213, 0.3) !important;
}

.category-pill,
.filter-pill {
  border-radius: 9999px !important;
  transition: all 0.25s var(--ease-out-expo) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.category-pill:hover,
.filter-pill:hover {
  transform: translateY(-2px) !important;
  background-color: #EEF3FF !important;
  color: #3157D5 !important;
}

.category-pill.active,
.filter-pill.active {
  background-color: #3157D5 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(49, 87, 213, 0.25) !important;
}

.website-type-card {
  border-radius: 12px !important;
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.25s var(--ease-out-expo),
              border-color 0.25s var(--ease-out-expo) !important;
  will-change: transform;
}

.website-type-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07) !important;
  border-color: rgba(49, 87, 213, 0.3) !important;
}

.website-type-card:hover .website-type-icon-box {
  background: #3157D5 !important;
  color: #FFFFFF !important;
  transform: scale(1.06) !important;
}

/* --- 5. CTA SECTIONS & BUTTONS --- */
.button.primary,
.btn-primary,
.cta-button {
  background: #3157D5 !important;
  color: #FFFFFF !important;
  transition: transform 0.22s var(--ease-out-expo),
              background-color 0.22s ease,
              box-shadow 0.22s ease !important;
  will-change: transform;
}

.button.primary:hover,
.btn-primary:hover,
.cta-button:hover {
  background: #2446B8 !important;
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 8px 20px rgba(49, 87, 213, 0.3) !important;
}

.button.primary:active,
.btn-primary:active {
  transform: translateY(0) scale(0.99) !important;
}

/* --- 6. ACCESSIBILITY & REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-anim-eyebrow,
  .hero-anim-title,
  .hero-anim-desc,
  .hero-anim-btn,
  .hero-anim-search,
  .motion-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  
  .hero-aurora-wrap::before,
  .hero-aurora-wrap::after {
    animation: none !important;
  }
}

/* --- 7. MOBILE OPTIMIZATIONS (<= 767px) --- */
@media (max-width: 767px) {
  .motion-reveal {
    transform: translateY(12px) !important;
    transition-duration: 0.45s !important;
  }

  .product-card-motion:hover {
    transform: none !important;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06) !important;
  }
  
  .product-card-motion:hover .card-img-wrap img {
    transform: none !important;
  }
  
  .builder-actions-item:hover,
  .website-type-card:hover {
    transform: none !important;
  }
  
  .hero-aurora-wrap::before {
    width: 350px !important;
    height: 350px !important;
  }
  
  .hero-aurora-wrap::after {
    width: 300px !important;
    height: 300px !important;
  }
}

/* ==========================================================
   FOOTER BOTTOM - UNIFIED 100% WIDTH DARK NAVY BAR (#101828)
   ========================================================== */
.footer-bottom,
.widget-line-wrap.widget-line-copy {
  background: #101828 !important;
  background-color: #101828 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* ==========================================================
   MODERN FRONT-END UPGRADE: PRODUCT CARDS, TRUST GRID & MOBILE
   ========================================================== */

/* Modern Hero Trust Badges */
.hero-trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(228, 231, 236, 0.9);
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.04);
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}
.hero-trust-icon {
  color: #3157D5;
  font-size: 14px;
}

/* Value Props / Trust Section Grid */
.trust-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.trust-feature-card {
  background: #FFFFFF;
  border: 1px solid #E4E7EC;
  border-radius: 14px;
  padding: 28px 22px;
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.03);
}
.trust-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
  border-color: #3157D5;
}
.trust-feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #F2F5FF;
  color: #3157D5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  transition: all 0.2s ease;
}
.trust-feature-card:hover .trust-feature-icon-box {
  background: #3157D5;
  color: #FFFFFF;
  transform: scale(1.06);
}

/* Modern Upgraded Product Card Styles */
.product-card-modern {
  background: #FFFFFF;
  border: 1px solid #E4E7EC;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 12px rgba(16, 24, 40, 0.03);
}
.product-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.09);
  border-color: #CBD5E1;
}
.product-card-modern .card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F8FAFC;
}
.product-card-modern .card-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card-modern:hover .card-media-wrap img {
  transform: scale(1.05);
}
.product-card-modern .card-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.22s ease;
  z-index: 4;
}
.product-card-modern:hover .card-media-overlay {
  opacity: 1;
}
.card-overlay-btn {
  background: #FFFFFF;
  color: #101828;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}
.card-overlay-btn:hover {
  background: #3157D5;
  color: #FFFFFF;
  transform: scale(1.05);
}

/* Category Feature Cards Elevation */
.builder-actions-item {
  background: #FFFFFF !important;
  border: 1px solid #E4E7EC !important;
  border-radius: 14px !important;
  padding: 24px 18px !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.03) !important;
}
.builder-actions-item:hover {
  transform: translateY(-5px) !important;
  border-color: #3157D5 !important;
  box-shadow: 0 12px 30px rgba(49, 87, 213, 0.1) !important;
}

/* Shop Mobile Filter Drawer & Toggle */
.mobile-filter-bar {
  display: none;
  margin-bottom: 20px;
}
.mobile-filter-trigger {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E4E7EC;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #101828;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
  transition: all 0.2s ease;
}
.mobile-filter-trigger:hover,
.mobile-filter-trigger.is-active {
  border-color: #3157D5;
  background: #F2F5FF;
  color: #3157D5;
}

/* Mobile Sticky Purchase Bar for product.php */
.mobile-sticky-buy-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid #E4E7EC;
  padding: 12px 16px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(16, 24, 40, 0.1);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-sticky-buy-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mobile-sticky-buy-price {
  font-size: 18px;
  font-weight: 800;
  color: #101828;
  line-height: 1.1;
}
.mobile-sticky-buy-label {
  font-size: 11px;
  color: #667085;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.mobile-sticky-buy-btn {
  background: #3157D5;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(49, 87, 213, 0.3);
}

/* Breakpoint rules for modern front-end additions */
@media (max-width: 991px) {
  .trust-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .mobile-filter-bar {
    display: block;
  }
  .shop-sidebar {
    display: none;
  }
  .shop-sidebar.filter-drawer-open {
    display: block !important;
    animation: fadeInDown 0.25s ease;
  }
  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 767px) {
  .hero-trust-bar {
    gap: 12px;
    padding: 10px 16px;
    border-radius: 16px;
  }
  .hero-trust-item {
    font-size: 12px;
  }
  .trust-features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mobile-sticky-buy-bar {
    display: flex;
  }
  body.has-sticky-buy-bar {
    padding-bottom: 74px !important;
  }
}
