/**
 * Astra Hook Theme — Layout & Global Theme CSS (PC & Mobile Master Edition)
 */

/* ─── shovaas.com স্টাইল স্লিম ১-রো হেডার ────────────────────────────── */
.ah-site-header.ah-shovaas-nav {
  background: #ffffff;
  border-bottom: 1px solid #eef0f3;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.ah-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative;
}

/* ১. হ্যামবার্গার বাটন */
.ah-hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.ah-hamburger-btn:hover {
  background: #f1f2f6;
}

.ah-hamburger-btn .ah-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #2f3542;
  border-radius: 2px;
}

/* ২. সেন্টার্ড লোগো এরিয়া */
.ah-logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ah-logo-area .ah-site-title {
  font-size: 24px;
  font-weight: 900;
  color: #1e272e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.ah-logo-area img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

/* ৩. শপিং ব্যাগ আইকন বাটন */
.ah-header-cart {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ah-cart-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 42px;
  height: 42px;
  color: #2f3542;
  text-decoration: none;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.ah-cart-icon-btn:hover {
  background: #f1f2f6;
  color: var(--ah-primary, #ff5722);
}

.ah-bag-svg {
  stroke: currentColor;
}

.ah-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--ah-primary, #ff5722);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(255, 87, 34, 0.4);
}

/* ─── shovaas.com স্টাইল ফুল-উইডথ সার্চ বার ──────────────────────────── */
.ah-sub-header-search {
  background: #ffffff;
  padding: 10px 0 14px;
  border-bottom: 1px solid #f1f2f6;
}

.ah-shovaas-search-form {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #dcdde1;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  max-width: 700px;
  margin: 0 auto;
}

.ah-shovaas-search-form input.search-field {
  border: none;
  outline: none;
  padding: 11px 16px;
  font-size: 14px;
  color: #2f3542;
  flex: 1;
  width: 100%;
  background: transparent;
}

.ah-shovaas-search-form .ah-search-submit-btn {
  background: #1e272e;
  color: #ffffff;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.2s ease;
}

.ah-shovaas-search-form .ah-search-submit-btn:hover {
  background: var(--ah-primary, #ff5722);
}

/* ─── স্লাইড-আউট ক্যাটাগরি মেনু ড্রয়ার ──────────────────────────────── */
.ah-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ah-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ah-side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 10001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 25px rgba(0,0,0,0.15);
  overflow-y: auto;
}

.ah-side-drawer.active {
  transform: translateX(0);
}

.ah-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eef0f3;
  background: #f8f9fa;
}

.ah-drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e272e;
  margin: 0;
}

.ah-drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #718093;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.ah-drawer-close-btn:hover {
  color: #ff4757;
}

.ah-drawer-body {
  padding: 20px;
  flex: 1;
}

.ah-cat-heading {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #a4b0be;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}

.ah-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ah-cat-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #2f3542;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #fdfdfd;
  border: 1px solid #f1f2f6;
  transition: all 0.2s ease;
}

.ah-cat-list li a:hover {
  background: #fff5f2;
  border-color: var(--ah-primary, #ff5722);
  color: var(--ah-primary, #ff5722);
  padding-left: 16px;
}

/* ─── মেইন কন্টেন্ট এরিয়া ─────────────────────────────────────────────── */
.ah-site-main {
  padding: 15px 0 40px;
  min-height: 55vh;
}

/* ─── উকমার্স প্রোডাক্ট ট্যাব স্টাইল ──────────────────────────────────── */
.woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 8px !important;
  border-bottom: 2px solid #e4e7eb !important;
  padding: 0 !important;
  margin: 30px 0 20px !important;
  list-style: none !important;
  overflow-x: auto;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after {
  display: none !important;
}

.woocommerce-tabs ul.tabs li {
  background: #f8f9fa !important;
  border: 1px solid #e4e7eb !important;
  border-bottom: none !important;
  border-radius: 8px 8px 0 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-tabs ul.tabs li.active {
  background: #ffffff !important;
  border-color: var(--ah-primary, #ff5722) !important;
  border-bottom: 2px solid #fff !important;
  margin-bottom: -2px !important;
}

.woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 12px 18px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #2f3640 !important;
  text-decoration: none !important;
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--ah-primary, #ff5722) !important;
}

.woocommerce-tabs .panel {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e4e7eb;
}

.ah-tab-policy-content h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.ah-policy-body {
  line-height: 1.8;
  font-size: 15px;
  color: #2f3640;
}

/* ─── niorashopping.com স্টাইল আধুনিক ডার্ক ফুটার (PC ৪-কলাম লেআউট) ─── */
.ah-dark-footer {
  background: #0d1522;
  color: #d1d8e0;
  margin-top: 50px;
  border-top: none;
}

.ah-footer-main {
  padding: 55px 0 40px;
}

.ah-footer-grid-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 35px;
  align-items: start;
}

.ah-f-site-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.ah-f-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #a4b0be;
  margin: 0 0 20px;
  max-width: 320px;
}

.ah-f-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ah-f-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.ah-f-contact-list li a {
  color: #d1d8e0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ah-f-contact-list li a:hover {
  color: var(--ah-primary, #ff5722);
}

.ah-f-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 8px;
}

.ah-f-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2.5px;
  background: var(--ah-primary, #ff5722);
}

.ah-f-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ah-f-menu li a {
  color: #a4b0be;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.ah-f-menu li a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.ah-f-pay-desc {
  font-size: 13px;
  color: #a4b0be;
  line-height: 1.6;
  margin: 0 0 14px;
}

.ah-f-pay-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ah-pay-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.ah-pay-bkash  { background: #e2136e; }
.ah-pay-nagad  { background: #f7941d; }
.ah-pay-rocket { background: #8c3494; }
.ah-pay-cod    { background: #27ae60; }

.ah-dark-bottom {
  background: #080d15;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  font-size: 13px;
  color: #747d8c;
}

.ah-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ah-footer-bottom p {
  margin: 0;
}

.ah-rayhan-link {
  font-weight: 800;
  color: #2ed573 !important;
  text-decoration: none;
  background: rgba(46, 213, 115, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #2ed573;
  transition: all 0.2s ease;
}

.ah-rayhan-link:hover {
  background: #27ae60;
  color: #ffffff !important;
}

/* স্ক্রোল টু টপ বাটন */
.ah-scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ah-primary, #ff5722);
  color: #ffffff;
  border: none;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform 0.2s ease;
}

.ah-scroll-top-btn:hover {
  transform: translateY(-4px);
}

/* ─── ট্যাবলেট ও মোবাইল রেসপন্সিভ ───────────────────────────────────── */
@media (max-width: 1024px) {
  .ah-footer-grid-layout {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .ah-footer-grid-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .ah-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .ah-scroll-top-btn {
    bottom: 130px;
    right: 15px;
    width: 38px;
    height: 38px;
  }
}

/* ─── ফ্লোটিং হোয়াটসঅ্যাপ বাটন (Floating WhatsApp Button) ──────────────── */
.ah-floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  text-decoration: none;
  animation: ah-wa-pulse 2.5s infinite;
}

.ah-floating-whatsapp-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.ah-floating-whatsapp-btn .ah-wa-svg {
  width: 32px;
  height: 32px;
}

@keyframes ah-wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 767px) {
  .ah-floating-whatsapp-btn {
    bottom: 75px;
    right: 15px;
    width: 48px;
    height: 48px;
  }
  .ah-floating-whatsapp-btn .ah-wa-svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   shovaas.com স্টাইল Cart Items পপআপ মোডাল (Exact Screenshot UI)
   ========================================================================== */
.ah-cart-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ah-cart-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ah-cart-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 92%;
  max-width: 440px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ah-cart-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.ah-cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1.5px solid #edf0f2;
}

.ah-cart-modal-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #2d3436;
}

.ah-cart-modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #636e72;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s ease;
}

.ah-cart-modal-close:hover {
  color: #d63031;
}

.ah-cart-modal-body {
  padding: 16px 18px 20px;
  overflow-y: auto;
}

.ah-modal-item-table {
  border: 1px solid #e1e8ed;
  border-radius: 4px;
  margin-bottom: 16px;
  background: #ffffff;
}

.ah-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f2;
  font-size: 14px;
}

.ah-modal-row:last-child {
  border-bottom: none;
}

.ah-modal-label {
  color: #636e72;
  font-weight: 600;
  width: 90px;
  flex-shrink: 0;
}

.ah-modal-val {
  color: #2d3436;
  font-weight: 700;
  text-align: right;
  flex: 1;
}

.ah-modal-prod-row {
  align-items: flex-start;
}

.ah-modal-prod-val {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
  text-align: right;
}

.ah-modal-thumb img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e1e8ed;
}

.ah-modal-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #2d3436;
  line-height: 1.35;
}

.ah-modal-qty-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 4px;
  overflow: hidden;
}

.ah-popup-qty-btn {
  background: #007bff;
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.ah-popup-qty-btn:hover {
  background: #0056b3;
}

.ah-popup-qty-val {
  width: 36px;
  height: 32px;
  text-align: center;
  border: 1px solid #007bff;
  border-left: none;
  border-right: none;
  background: #ffffff;
  font-weight: 700;
  font-size: 14px;
  color: #2d3436;
  outline: none;
}

.ah-popup-remove-btn {
  background: transparent;
  border: none;
  font-size: 17px;
  cursor: pointer;
  padding: 4px;
  color: #e74c3c;
  transition: transform 0.15s ease;
}

.ah-popup-remove-btn:hover {
  transform: scale(1.15);
}

.ah-modal-summary {
  padding: 10px 4px 16px;
  border-top: 1px dashed #dcdde1;
  margin-top: 6px;
}

.ah-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14.5px;
  color: #2d3436;
}

.ah-summary-label {
  color: #2d3436;
  font-weight: 500;
}

.ah-summary-val {
  font-weight: 700;
}

.ah-summary-grand-total {
  font-size: 16px;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid #edf0f2;
}

.ah-total-red {
  color: #ff0018 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.ah-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.ah-modal-btn {
  width: 100%;
  display: block;
  text-align: center;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ah-modal-continue-btn {
  background: #00c0f3;
  color: #ffffff;
}

.ah-modal-continue-btn:hover {
  background: #00a8d6;
  color: #ffffff;
}

.ah-modal-checkout-btn {
  background: #ff0018;
  color: #ffffff;
}

.ah-modal-checkout-btn:hover {
  background: #d60014;
  color: #ffffff;
}

.ah-cart-empty-box {
  text-align: center;
  padding: 30px 10px;
}

.ah-cart-empty-text {
  font-size: 15px;
  color: #636e72;
  margin-bottom: 18px;
}

body.ah-modal-open {
  overflow: hidden !important;
}

/* ==========================================================================
   shovaas.com স্টাইল খালি কার্ট কার্ড (Exact Screenshot UI)
   ========================================================================== */
.ah-empty-cart-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 15px 60px;
  width: 100%;
}

.ah-empty-cart-card {
  background: #ffffff;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  padding: 55px 30px 60px;
  text-align: center;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.ah-empty-cart-title {
  font-size: 26px;
  font-weight: 800;
  color: #1e272e;
  margin: 0 0 24px;
}

.ah-empty-cart-btn {
  display: inline-block;
  background: #007bff;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.ah-empty-cart-btn:hover {
  background: #0056b3;
  color: #ffffff !important;
  transform: translateY(-1px);
}



