/* AIWizard Software Storefront & WooCommerce Product Theme (v2)
   100% Native Match to aiwizard.me Visual Spirit:
   - Canvas: #EFF8F7 (Soft Mint)
   - Cards: #FFFFFF squircle (28px), 1px solid #D5E5E3, shadow 0 12px 32px rgba(15,62,58,0.04)
   - Panels: #E3F1EF (Workbench Mint)
   - Primary CTA: #FFD23F (Golden Yellow Pill) + #262209 ink
   - Accents: #147E78 / #2BA8A2 (Brand Teal), #EF6C4A (Coral), #1E8C86 (Deep Teal)
   - Typography: 'Cairo', Tahoma, Arial, sans-serif (explicit px units — Bricks sets html 62.5%)
*/

.aw-store,
.aw-pdp {
  font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
  direction: rtl;
  text-align: right;
  color: #172322;
  line-height: 1.8;
  box-sizing: border-box;
}

.aw-store *,
.aw-pdp * {
  box-sizing: border-box;
  font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
}

.aw-store a,
.aw-pdp a {
  text-decoration: none;
}

/* =========================================================
   STOREFRONT SHELL (/apps/)
   ========================================================= */
.aw-store {
  max-width: 1220px;
  margin: 0 auto 48px auto;
  padding: 28px 24px 44px 24px;
  background: #EFF8F7;
  border-radius: 32px;
  border: 1px solid #D5E5E3;
}

/* Hero Section — Airy Mint + White, Matching Homepage */
.aw-store-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5FBFA 100%);
  border: 1px solid #D5E5E3;
  border-radius: 28px;
  padding: 40px 36px 34px 36px;
  box-shadow: 0 12px 32px rgba(15, 62, 58, 0.04);
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}

.aw-store-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #2BA8A2 0%, #FFD23F 52%, #EF6C4A 100%);
}

.aw-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E7F5F2;
  color: #176A65;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid #CBE7E2;
}

.aw-pill-badge.gold {
  background: #FFF6D6;
  color: #7A5C00;
  border-color: #F4DE8A;
}

.aw-pill-badge.coral {
  background: #FEF0EC;
  color: #B84222;
  border-color: #F8D0C4;
}

.aw-store-hero h1 {
  font-size: clamp(28px, 3.6vw, 44px) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: #172322 !important;
  margin: 0 0 14px 0 !important;
}

.aw-store-hero h1 .aw-hl {
  color: #147E78;
}

.aw-store-hero p.aw-lead {
  font-size: 17px !important;
  color: #556A67 !important;
  max-width: 820px;
  margin: 0 0 24px 0 !important;
  line-height: 1.85 !important;
}

.aw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

/* Native aiwizard.me Pill Buttons */
.aw-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFD23F !important;
  color: #262209 !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  padding: 13px 28px !important;
  border-radius: 100px !important;
  box-shadow: 0 7px 16px rgba(111, 86, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}

.aw-btn-primary:hover {
  transform: translateY(-2px);
  background: #FFC91A !important;
  box-shadow: 0 12px 24px rgba(111, 86, 0, 0.18);
  color: #262209 !important;
}

.aw-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #E7F5F2 !important;
  color: #126D67 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 100px !important;
  border: 1px solid #CBE7E2 !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.aw-btn-secondary:hover {
  transform: translateY(-2px);
  background: #D8EEEB !important;
  color: #0E5853 !important;
}

/* Workbench Trust Strip (Matching Homepage .aw-workbench + .aw-step) */
.aw-workbench {
  background: rgba(227, 241, 239, 0.72);
  border: 1px solid #D5E5E3;
  border-radius: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.aw-wb-step {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid #DFECEA;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.aw-wb-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 13px;
  font-weight: 800;
  color: #147E78;
  background: #E7F5F2;
  padding: 4px 8px;
  border-radius: 10px;
  flex-shrink: 0;
  line-height: 1.2;
}

.aw-wb-step strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #172322;
  margin-bottom: 2px;
}

.aw-wb-step span {
  display: block;
  font-size: 12.5px;
  color: #617572;
  line-height: 1.5;
}

/* Section Headers */
.aw-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 18px 0;
}

.aw-sec-head h2 {
  font-size: clamp(23px, 2.5vw, 31px) !important;
  font-weight: 800 !important;
  color: #172322 !important;
  margin: 0 !important;
  line-height: 1.35 !important;
}

.aw-sec-head p {
  font-size: 15px !important;
  color: #556A67 !important;
  margin: 4px 0 0 0 !important;
}

/* =========================================================
   BALANCED 6-PRODUCT GRID (2x3 on Desktop — ZERO Orphan)
   ========================================================= */
.aw-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.aw-app-card {
  background: #FFFFFF;
  border: 1px solid #D5E5E3;
  border-radius: 28px;
  padding: 22px 22px 24px 22px;
  box-shadow: 0 12px 32px rgba(15, 62, 58, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.aw-app-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: #2BA8A2;
}

.aw-app-card.accent-coral::before { background: #EF6C4A; }
.aw-app-card.accent-gold::before  { background: #FFD23F; }
.aw-app-card.accent-deep::before  { background: #1E8C86; }

.aw-app-card.featured-bundle {
  background: linear-gradient(180deg, #FFFDF4 0%, #FFFFFF 45%, #F4FBF9 100%);
  border: 2px solid #F2D264;
  box-shadow: 0 14px 36px rgba(111, 86, 0, 0.08);
}

.aw-app-card.featured-bundle::before {
  height: 6px;
  background: linear-gradient(90deg, #FFD23F 0%, #2BA8A2 100%);
}

.aw-app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 62, 58, 0.09);
  border-color: #B4DAD4;
}

.aw-card-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #D8EEEB, #FFF4C6);
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border: 1px solid #E3F1EF;
}

.aw-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.aw-app-card:hover .aw-card-media img {
  transform: scale(1.03);
}

.aw-card-media-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #176A65;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(15, 62, 58, 0.12);
}

.aw-card-media-tag.gold {
  background: #FFD23F;
  color: #262209;
}

.aw-card-topmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.aw-card-cat {
  font-size: 12.5px;
  font-weight: 700;
  color: #176A65;
  background: #E7F5F2;
  padding: 4px 12px;
  border-radius: 100px;
}

.aw-card-ver {
  font-size: 12px;
  font-weight: 700;
  color: #617572;
}

.aw-app-card h3 {
  font-size: 21px !important;
  font-weight: 800 !important;
  color: #172A29 !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.4 !important;
}

.aw-app-desc {
  font-size: 14.5px !important;
  color: #556A67 !important;
  margin: 0 0 14px 0 !important;
  line-height: 1.75 !important;
}

.aw-feat-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 18px 0 !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  flex-grow: 1;
}

.aw-feat-list li {
  position: relative;
  padding-right: 24px;
  font-size: 13.5px;
  color: #2A3F3D;
  line-height: 1.6;
}

.aw-feat-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E7F5F2;
  color: #147E78;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aw-app-card.featured-bundle .aw-feat-list li::before {
  background: #FFF2BE;
  color: #8A6500;
}

.aw-card-footer {
  border-top: 1px solid #E8F2F0;
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aw-price-box {
  display: flex;
  flex-direction: column;
}

.aw-price-now {
  font-size: 23px;
  font-weight: 900;
  color: #147E78;
  line-height: 1.2;
}

.aw-price-old {
  font-size: 13px;
  color: #8A9D9A;
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 600;
}

.aw-price-note {
  font-size: 12px;
  color: #617572;
}

.aw-card-footer .aw-btn-primary {
  padding: 11px 22px !important;
  font-size: 14.5px !important;
}

/* Bundle Collage Preview */
.aw-bundle-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  width: 100%;
  height: 100%;
  background: #E3F1EF;
  padding: 4px;
}

.aw-bundle-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.aw-bundle-collage .aw-bundle-badge-tile {
  background: linear-gradient(135deg, #147E78 0%, #2BA8A2 100%);
  color: #FFFFFF;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
}

.aw-bundle-badge-tile strong {
  font-size: 20px;
  font-weight: 900;
  color: #FFD23F;
  line-height: 1.1;
}

.aw-bundle-badge-tile span {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
}

/* =========================================================
   COMPARISON TABLE & FAQ (White Squircle 28px)
   ========================================================= */
.aw-panel-card {
  background: #FFFFFF;
  border: 1px solid #D5E5E3;
  border-radius: 28px;
  padding: 26px 26px;
  box-shadow: 0 12px 32px rgba(15, 62, 58, 0.04);
  margin-top: 26px;
}

.aw-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid #DFECEA;
}

.aw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #FFFFFF;
}

.aw-table thead th {
  background: #E3F1EF;
  color: #172322;
  font-weight: 800;
  padding: 13px 14px;
  text-align: right;
  border-bottom: 1px solid #CDE2DF;
  white-space: nowrap;
}

.aw-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #EDF5F4;
  color: #2A3F3D;
  vertical-align: middle;
}

.aw-table tbody tr:last-child td {
  border-bottom: none;
}

.aw-table tbody tr:hover td {
  background: #F7FCFB;
}

.aw-table .aw-t-link {
  color: #126D67;
  font-weight: 800;
}

.aw-table .aw-t-link:hover {
  text-decoration: underline;
}

.aw-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.aw-faq-item {
  background: #F5FBFA;
  border: 1px solid #DFECEA;
  border-radius: 18px;
  padding: 16px 18px;
}

.aw-faq-item h4 {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #172322 !important;
  margin: 0 0 6px 0 !important;
}

.aw-faq-item p {
  font-size: 14px !important;
  color: #556A67 !important;
  margin: 0 !important;
  line-height: 1.7 !important;
}

/* Support Banner */
.aw-support-bar {
  background: #E3F1EF;
  border: 1px solid #CBE3E0;
  border-radius: 24px;
  padding: 22px 26px;
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.aw-support-bar h3 {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #172322 !important;
  margin: 0 0 4px 0 !important;
}

.aw-support-bar p {
  font-size: 14.5px !important;
  color: #556A67 !important;
  margin: 0 !important;
}

/* =========================================================
   WOOCOMMERCE PRODUCT DESCRIPTION THEME (.aw-pdp)
   ========================================================= */
.aw-pdp {
  background: #EFF8F7;
  border: 1px solid #D5E5E3;
  border-radius: 28px;
  padding: 28px 24px;
  margin: 12px 0 28px 0;
}

.aw-pdp-callout {
  background: #FFFFFF;
  border: 1px solid #D5E5E3;
  border-right: 5px solid #2BA8A2;
  border-radius: 22px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 24px rgba(15, 62, 58, 0.04);
}

.aw-pdp-callout h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #172322 !important;
  margin: 0 0 8px 0 !important;
}

.aw-pdp-callout p {
  font-size: 15.5px !important;
  color: #556A67 !important;
  margin: 0 !important;
  line-height: 1.85 !important;
}

.aw-pdp-title {
  font-size: 21px !important;
  font-weight: 800 !important;
  color: #172322 !important;
  margin: 26px 0 14px 0 !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.aw-pdp-title::before {
  content: '';
  width: 6px;
  height: 22px;
  border-radius: 10px;
  background: #147E78;
  display: inline-block;
  flex-shrink: 0;
}

.aw-pdp-feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.aw-pdp-feat {
  background: #FFFFFF;
  border: 1px solid #D5E5E3;
  border-radius: 20px;
  padding: 18px 18px;
  box-shadow: 0 8px 20px rgba(15, 62, 58, 0.035);
  position: relative;
  overflow: hidden;
}

.aw-pdp-feat::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #2BA8A2;
}

.aw-pdp-feat:nth-child(3n+2)::before { background: #FFD23F; }
.aw-pdp-feat:nth-child(3n+3)::before { background: #EF6C4A; }

.aw-pdp-feat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.aw-pdp-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 12px;
  font-weight: 800;
  color: #147E78;
  background: #E7F5F2;
  padding: 3px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.aw-pdp-feat h3 {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #172A29 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.aw-pdp-feat p {
  font-size: 14px !important;
  color: #556A67 !important;
  margin: 0 !important;
  line-height: 1.7 !important;
}

.aw-pdp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.aw-pdp-step {
  background: #FFFFFF;
  border: 1px solid #D5E5E3;
  border-radius: 20px;
  padding: 18px;
}

.aw-pdp-step .aw-wb-num {
  margin-bottom: 10px;
  display: inline-block;
}

.aw-pdp-step h4 {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #172322 !important;
  margin: 0 0 6px 0 !important;
}

.aw-pdp-step p {
  font-size: 13.5px !important;
  color: #556A67 !important;
  margin: 0 !important;
  line-height: 1.65 !important;
}

.aw-pdp-audience {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.aw-pdp-chip {
  background: #FFFFFF;
  border: 1px solid #CBE3E0;
  color: #176A65;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
}

.aw-pdp-upsell {
  background: linear-gradient(135deg, #FFF9DF 0%, #E7F5F2 100%);
  border: 1px solid #EBD37A;
  border-radius: 22px;
  padding: 20px 22px;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.aw-pdp-upsell strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #172322;
  margin-bottom: 4px;
}

.aw-pdp-upsell span {
  display: block;
  font-size: 14px;
  color: #556A67;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 960px) {
  .aw-workbench {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .aw-apps-grid,
  .aw-pdp-feats,
  .aw-faq-grid {
    grid-template-columns: 1fr;
  }
  .aw-pdp-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .aw-store {
    padding: 16px 14px 28px 14px;
    border-radius: 22px;
  }
  .aw-store-hero {
    padding: 26px 18px 22px 18px;
  }
  .aw-workbench {
    grid-template-columns: 1fr;
  }
  .aw-pdp {
    padding: 18px 14px;
  }
}
