/*
Theme Name: AiMedico
Theme URI: https://aimedico.in
Author: AiMedico
Author URI: https://aimedico.in
Description: A modern, colourful custom theme for AiMedico.in — a digital ebook store for Medical, Nursing, Paramedical, AI in Healthcare, Research and Competitive Exam books. Designed as an Elementor-first canvas theme with a strong built-in design system for WooCommerce shop, product, and account pages.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aimedico
*/

/* ==========================================================================
   1. DESIGN TOKENS — colour palette, type scale, spacing
   ========================================================================== */
:root{
  /* Brand colours: deep navy/teal base + vibrant coral & electric-blue accents */
  --am-navy:        #0B2545;
  --am-navy-light:  #13375E;
  --am-teal:        #0E7C7B;
  --am-teal-light:  #17A2A0;
  --am-coral:       #FF6B5A;
  --am-coral-dark:  #E8503F;
  --am-blue:        #2D6CDF;
  --am-lime:        #B6E24D;
  --am-yellow:      #FFC94A;

  --am-bg:          #F7F9FC;
  --am-bg-alt:      #EEF3F8;
  --am-white:       #FFFFFF;
  --am-text:        #1B2635;
  --am-text-muted:  #5B6B82;
  --am-border:      #E2E8F0;

  --am-radius-sm:   8px;
  --am-radius-md:   14px;
  --am-radius-lg:   22px;
  --am-shadow-sm:   0 2px 8px rgba(11,37,69,0.06);
  --am-shadow-md:   0 8px 24px rgba(11,37,69,0.10);
  --am-shadow-lg:   0 16px 40px rgba(11,37,69,0.14);

  --am-font-head:   'Poppins', 'Manrope', sans-serif;
  --am-font-body:   'Manrope', 'Inter', sans-serif;

  --am-container:   1200px;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--am-font-body);
  color: var(--am-text);
  background: var(--am-bg);
  line-height: 1.65;
  font-size: 16px;
}
img{ max-width:100%; height:auto; display:block; }
a{ color: var(--am-teal); text-decoration:none; transition: color .2s ease; }
a:hover{ color: var(--am-coral); }

h1,h2,h3,h4,h5,h6{
  font-family: var(--am-font-head);
  color: var(--am-navy);
  line-height:1.25;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1{ font-size: clamp(2rem, 4vw, 3.2rem); }
h2{ font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3{ font-size: 1.4rem; }
p{ margin: 0 0 1em; }

.am-container{
  max-width: var(--am-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   3. HEADER / NAVIGATION
   ========================================================================== */
.am-header{
  background: var(--am-white);
  border-bottom: 1px solid var(--am-border);
  position: sticky;
  top: 0;
  z-index: 999;
}
.am-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 24px;
  max-width: var(--am-container);
  margin: 0 auto;
  gap: 24px;
}
.am-logo{
  font-family: var(--am-font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--am-navy);
  display:flex;
  align-items:center;
  gap:8px;
}
.am-logo span{ color: var(--am-coral); }
.am-logo img{ max-height: 44px; width:auto; }

.am-primary-nav ul{
  display:flex;
  gap: 28px;
  list-style:none;
  margin:0; padding:0;
}
.am-primary-nav a{
  color: var(--am-navy);
  font-weight: 600;
  font-size: .95rem;
}
.am-primary-nav a:hover{ color: var(--am-coral); }

.am-header-actions{ display:flex; align-items:center; gap:16px; }
.am-icon-btn{
  width:40px; height:40px;
  border-radius:50%;
  background: var(--am-bg-alt);
  display:flex; align-items:center; justify-content:center;
  color: var(--am-navy);
  position: relative;
}
.am-icon-btn .am-count{
  position:absolute; top:-4px; right:-4px;
  background: var(--am-coral);
  color:#fff; font-size:.65rem; font-weight:700;
  width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.am-menu-toggle{ display:none; background:none; border:none; font-size:1.6rem; color:var(--am-navy); cursor:pointer; }

@media (max-width: 900px){
  .am-primary-nav{ display:none; }
  .am-menu-toggle{ display:block; }
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.am-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 13px 28px;
  border-radius: var(--am-radius-sm);
  font-weight: 700;
  font-family: var(--am-font-head);
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.am-btn-primary{
  background: var(--am-coral);
  color: #fff;
  box-shadow: var(--am-shadow-sm);
}
.am-btn-primary:hover{ background: var(--am-coral-dark); transform: translateY(-2px); box-shadow: var(--am-shadow-md); color:#fff; }

.am-btn-secondary{
  background: var(--am-navy);
  color: #fff;
}
.am-btn-secondary:hover{ background: var(--am-navy-light); color:#fff; transform: translateY(-2px); }

.am-btn-outline{
  background: transparent;
  border: 2px solid var(--am-teal);
  color: var(--am-teal);
}
.am-btn-outline:hover{ background: var(--am-teal); color:#fff; }

/* ==========================================================================
   5. HERO
   ========================================================================== */
.am-hero{
  background: linear-gradient(135deg, var(--am-navy) 0%, var(--am-teal) 100%);
  color: #fff;
  padding: 90px 24px;
  border-radius: 0 0 var(--am-radius-lg) var(--am-radius-lg);
  overflow: hidden;
  position: relative;
}
.am-hero h1{ color:#fff; }
.am-hero p{ color: rgba(255,255,255,.85); font-size:1.15rem; max-width:600px; }
.am-hero-badge{
  display:inline-block;
  background: rgba(255,255,255,.15);
  color:#fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size:.8rem;
  font-weight:700;
  margin-bottom: 18px;
}
.am-search-bar{
  display:flex;
  max-width: 520px;
  background:#fff;
  border-radius: var(--am-radius-sm);
  padding: 6px;
  box-shadow: var(--am-shadow-lg);
  margin-top: 28px;
}
.am-search-bar input{
  flex:1;
  border:none;
  outline:none;
  padding: 12px 16px;
  font-size:.95rem;
  border-radius: var(--am-radius-sm);
}
.am-search-bar button{
  background: var(--am-coral);
  color:#fff;
  border:none;
  border-radius: var(--am-radius-sm);
  padding: 0 22px;
  font-weight:700;
  cursor:pointer;
}

/* ==========================================================================
   6. CATEGORY TILES
   ========================================================================== */
.am-cat-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
  margin: 40px 0;
}
.am-cat-card{
  background:#fff;
  border-radius: var(--am-radius-md);
  padding: 28px 20px;
  text-align:center;
  box-shadow: var(--am-shadow-sm);
  border: 1px solid var(--am-border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.am-cat-card:hover{ transform: translateY(-6px); box-shadow: var(--am-shadow-md); }
.am-cat-card .am-cat-icon{
  width:56px; height:56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-size: 1.6rem;
  color:#fff;
}
.am-cat-card:nth-child(1) .am-cat-icon{ background: var(--am-coral); }
.am-cat-card:nth-child(2) .am-cat-icon{ background: var(--am-blue); }
.am-cat-card:nth-child(3) .am-cat-icon{ background: var(--am-teal); }
.am-cat-card:nth-child(4) .am-cat-icon{ background: var(--am-yellow); color:var(--am-navy); }
.am-cat-card:nth-child(5) .am-cat-icon{ background: var(--am-lime); color:var(--am-navy); }
.am-cat-card:nth-child(6) .am-cat-icon{ background: var(--am-navy); }
.am-cat-card h3{ font-size:1.05rem; margin:0; }

/* ==========================================================================
   7. WOOCOMMERCE — shop grid, product cards, single product, cart
   ========================================================================== */
.woocommerce ul.products{
  display:grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px,1fr));
  gap: 26px;
  list-style:none;
  margin: 30px 0 !important;
  padding:0 !important;
}
.woocommerce ul.products li.product{
  background:#fff;
  border-radius: var(--am-radius-md);
  padding: 16px;
  box-shadow: var(--am-shadow-sm);
  border: 1px solid var(--am-border);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.woocommerce ul.products li.product:hover{
  transform: translateY(-6px);
  box-shadow: var(--am-shadow-md);
}
.woocommerce ul.products li.product img{
  border-radius: var(--am-radius-sm);
  aspect-ratio: 3/4;
  object-fit: cover;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family: var(--am-font-head);
  font-size: 1rem;
  color: var(--am-navy);
  margin: 12px 0 4px;
}
.woocommerce ul.products li.product .price{
  color: var(--am-coral) !important;
  font-weight: 800;
  font-size: 1.1rem;
}
.woocommerce ul.products li.product .price del{ color: var(--am-text-muted); font-weight:400; }
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button{
  background: var(--am-navy) !important;
  color:#fff !important;
  border-radius: var(--am-radius-sm) !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  border: none !important;
  font-family: var(--am-font-head);
  transition: background .2s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover{ background: var(--am-coral) !important; }

.am-badge-format{
  position:absolute; top:14px; left:14px;
  background: var(--am-teal);
  color:#fff;
  font-size:.7rem;
  font-weight:800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing:.03em;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li{ font-family: var(--am-font-head); font-weight:700; }
.woocommerce span.onsale{
  background: var(--am-coral) !important;
  border-radius: 999px !important;
}

.woocommerce-checkout #payment,
.woocommerce-cart table.cart, .woocommerce table.shop_table{
  border-radius: var(--am-radius-md);
  overflow:hidden;
  border: 1px solid var(--am-border) !important;
}
.woocommerce table.shop_table thead th{
  background: var(--am-bg-alt);
  font-family: var(--am-font-head);
  color: var(--am-navy);
}

/* ==========================================================================
   8. SECTIONS — trust strip, testimonials, footer
   ========================================================================== */
.am-trust-strip{
  display:flex;
  justify-content:space-around;
  flex-wrap:wrap;
  gap: 20px;
  background: var(--am-bg-alt);
  padding: 26px 20px;
  border-radius: var(--am-radius-md);
  margin: 30px 0;
}
.am-trust-item{ display:flex; align-items:center; gap:10px; font-weight:700; color: var(--am-navy); font-size:.9rem; }

.am-testimonial{
  background:#fff;
  border-radius: var(--am-radius-md);
  padding: 26px;
  box-shadow: var(--am-shadow-sm);
  border: 1px solid var(--am-border);
}
.am-testimonial .am-stars{ color: var(--am-yellow); margin-bottom:10px; }

.am-footer{
  background: var(--am-navy);
  color: rgba(255,255,255,.8);
  padding: 60px 24px 24px;
  margin-top: 60px;
}
.am-footer h4{ color:#fff; font-size:1rem; margin-bottom:16px; }
.am-footer a{ color: rgba(255,255,255,.75); }
.am-footer a:hover{ color: var(--am-coral); }
.am-footer-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 30px;
  max-width: var(--am-container);
  margin: 0 auto 30px;
}
.am-footer-bottom{
  text-align:center;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  font-size:.85rem;
  color: rgba(255,255,255,.55);
}

/* ==========================================================================
   9. UTILITIES
   ========================================================================== */
.am-text-center{ text-align:center; }
.am-mt-0{ margin-top:0; }
.am-section{ padding: 60px 0; }
.am-bg-alt{ background: var(--am-bg-alt); }
