/*
Theme Name: worksheetaid-digital
Theme URI: https://shop.worksheetaid.com/
Author: Tanvir
Description: Custom WooCommerce theme for digital products.
Version: 1.0
Text Domain: worksheetaid-digital
*/
/* -------------------------------------------------
   worksheetaid Theme Custom Styles
-------------------------------------------------- */

/* Global Body Styles */

/* =============================
   HEADER + MENU (COMPLETE)
   Works with your header.php
============================= */

@media screen and (min-width: 1280px) {
    .container {
        max-width: 1170px !important;
    }
}
img.custom-logo {
    width: 27%;
    height: auto;
}

.wa-cart-btn img.emoji {
    width: 30px !important;
    height: 30px !important;
}
a.btn.btn-outline-success.d-none.d-lg-inline-block.px-4 {
    padding-right: 5px !important;
    padding-left: 5px !important;
}

/* ===== Desktop Horizontal Menu Only ===== */
/* ===== Center Desktop Menu ===== */

/* ===== FORCE DESKTOP MENU HORIZONTAL ===== */
.wa-menubar.d-none.d-lg-block {
    padding: 11px 0;
    background-color: #0f55a5;
}

@media (min-width: 992px) {

  .wa-menubar ul {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;

    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .wa-menubar ul li {
    list-style: none !important;
    margin: 0 15px !important;   /* spacing between items */
  }

  .wa-menubar ul li a {
    display: block;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
    color: #fff;
  }

}

/* Hide sidebar widget area on WooCommerce pages */
.woocommerce-page #secondary,
.woocommerce-page .widget-area,
.woocommerce-page aside#secondary {
  display: none !important;
}

/* Make WooCommerce content aligned like your header/menu */
.woocommerce-page .woocommerce-breadcrumb,
.woocommerce-page .woocommerce-notices-wrapper,
.woocommerce-page div.product,
.woocommerce-page #primary,
.woocommerce-page main {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.all-feature li {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px 10px !important;
    margin-right: 17px !important;
    text-align: center;
    width: 23.5% !important;
}
.all-feature li:last-child {
    margin-right: 0px !important;
}

/* Cart & Checkout: sidebar should be MOBILE ONLY */
@media (min-width: 992px) {
  body.woocommerce-cart .ws-sidebar-mobile-only,
  body.woocommerce-checkout .ws-sidebar-mobile-only {
    display: none !important;
  }
}

/* Cart & Checkout: make content full width on desktop */
@media (min-width: 992px) {
  body.woocommerce-cart .ws-content,
  body.woocommerce-checkout .ws-content {
    width: 100%;
  }
}
/* Sidebar */

.ws-shop-layout{
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.ws-sidebar-box{
  background: #e9f3f6;
  border: 1px solid #cfe3ea;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}

.ws-sidebar-title{
  background: #0f55a5;
  color: #fff;
  padding: 12px 14px;
  font-weight: 700;
}

.ws-sidebar-menu{
  list-style: none;
  margin: 0;
  padding: 0;
}

.ws-sidebar-menu li a{
  display: block;
  padding: 10px 14px;
  border-top: 1px solid #cfe3ea;
  text-decoration: none;
}

.ws-sidebar-menu li a:hover{
  background: #d9eef3;
}

/* Mobile */
.ws-mobile-bar{
  display: none;
  margin-bottom: 12px;
}

.ws-menu-toggle{
  font-size: 22px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 900px){
  .ws-shop-layout{
    grid-template-columns: 1fr;
  }

  .ws-mobile-bar{
    display: flex;
    justify-content: flex-end;
  }

  .ws-sidebar{
    display: none;
  }

  .ws-sidebar.is-open{
    display: block;
  }
  .wa-mobile-links .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Full width layout (Cart, Checkout, Account) */
.ws-content-full {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Normal layout with sidebar */
.ws-shop-layout {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

.ws-sidebar {
  width: 260px;
  flex-shrink: 0;
}

.ws-content {
  flex: 1;
}

/* ========= Header base ========= */
.wa-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.wa-logo-link{ text-decoration:none; display:inline-flex; align-items:center; }
.wa-logo img.custom-logo{ max-height:52px; width:auto; }

.wa-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.wa-icon-btn{
  border:0;
  background:transparent;
  padding:6px 8px;
  font-size:20px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.wa-link{
    text-decoration: none;
    color: #202020;
    text-transform: capitalize;
    font-weight: 700;
    letter-spacing: .4px;
    font-size: 18px;
}

/* ========= Desktop: Row 1 logo centered ========= */
@media (min-width: 992px){
  .wa-topbar-inner{
    justify-content:center;
  }

}

/* ========= Desktop Row 2 layout ========= */
.wa-row2-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 0;
}

.wa-links-center{
  display:flex;
  justify-content:center;
  gap:30px;
}

/* Desktop Row 2 - everything centered together */
@media (min-width: 992px){

  .wa-row2-inner{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:30px;   /* space between all items */
  }

  .wa-links-center{
    display:flex;
    gap:30px;
  }

  .wa-row2-right{
    display:flex;
    gap:20px;
  }
}

/* ========= Mobile Row 2 ========= */
.wa-mobile-links-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* ========= Cart count ========= */
.wa-cart-btn{ position:relative; text-decoration:none; color:#111; }
.wa-cart-count{
  position:absolute;
  top:-6px;
  right:-10px;
  min-width:18px;
  height:18px;
  border-radius:999px;
  background:#16a34a;
  color:#fff;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
}

.badge {
    --bs-badge-padding-x: 0.35em !important;
    --bs-badge-padding-y: 0.20em !important;
    --bs-badge-font-size: 0.8em !important;
}
.wa-cart-count {
    min-width: 24px !important;
    height: 24px !important;
}
/* Desktop row 2 center layout */
.wa-row2-center{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  flex-wrap:wrap;
}

/* Keep search compact on desktop */
.wa-row2-search{
  min-width:320px;
  max-width:520px;
  width:38vw;
}

.wa-row2-search .wa-search-form{
  width:100%;
}

.ws-content li.product {
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px #ddd;
    padding-bottom: 20px !important;
}
h2.woocommerce-loop-product__title {
    font-size: 18px !important;
    color: #000;
    text-transform: capitalize;
}
span.price {
    color: black;
}
bdi {
    color: #000;
}
a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.add_to_cart_button.ajax_add_to_cart {
    background: #0f55a5;
    color: #fff;
}
h1.entry-title {
    font-size: 28px;
    color: #0f55a5;
}
.wp-block-uagb-container.uagb-block-d520170b.alignfull.uagb-is-root-container {
    padding: 10px 0;
}
main.ws-content {
    padding-left: 25px;
}

/* single product page*/

.wa-product-meta{
  margin:14px 0 18px;
  border-top:1px solid #eee;
  border-bottom:1px solid #eee;
}
.wa-meta-row{
  padding:12px 0;
  border-bottom:1px dotted #ddd;
  font-size:16px;
}
.wa-meta-row:last-child{border-bottom:none;}
.wa-meta-row strong{
  display:inline-block;
  width:120px;
}
