/*
Theme Name: AL SALWA BOOKS
Theme URI: https://simplixi.com
Description: Simplix Innovations is proud to present the AL SALWA BOOKS STORE THEME, one of the most advanced themes available, fully responsive and optimized for mobile devices. Designed to deliver an exceptional eCommerce user experience across all platforms—including desktops, tablets, and smartphones—this theme features striking animations and supports multilingual translations for a truly global reach.
Author: Simplix Innovations
Author URI: https://simplixi.com
Template: elessi-theme
Text Domain: alsalwa-theme
Version: 1.0
*/

/* For all headings */
@font-face {
    font-family: 'Kharabeesh';
    src: url('fonts/Kharabeesh.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* For all other body */
@font-face {
    font-family: 'IBMPlexSans';
    src: url('fonts/IBMPlexSans.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Kharabeesh', sans-serif;
}

body, p, span, div, section, article, aside, footer, header, nav, buttons {
  font-family: 'IBMPlexSans', sans-serif;
}

#masthead {
    padding: 20px 0;
}

.nasa-stclose:before, 
.nasa-stclose:after, 
.nasa-search-icon .modern .ns-clear-text:before, 
.nasa-search-icon .modern .ns-clear-text:after {
    border-top: 1px solid #F44336;
}

.sub-menu .sale-label > a.nasa-title-menu:after, 
.sub-menu .new-label > a.nasa-title-menu:after, 
.sub-menu .hot-label > a.nasa-title-menu:after {
    line-height: 0.8;
}

.topBar-information {
  	display: inline-flex;
  	align-items: center;
  	flex-wrap: wrap;
	width: 100%;
  	gap: 10px;
	justify-content: space-evenly;
}

.topBar-information a {
  	text-decoration: none;
  	white-space: nowrap;
}

.separatorTopBar {
  	display: inline-block;
  	width: 1px;
  	height: 40%;
  	background-color: #D8D8D8;
  	margin: 0 10px;
}

.woocommerce-MyAccount-content .woocommerce-info {
    -webkit-box-pack: space-between !important;
    -ms-flex-pack: space-between !important;
    justify-content: space-between !important;
}

#top-bar .topbar-menu-container ul:last-child>li:last-child.nasa-select-languages .nasa-list-languages, 
#top-bar .topbar-menu-container ul:last-child>li:last-child .wcml-dropdown li.wcml-cs-active-currency>ul {
    left: -15px !important;
    right: 0 !important;
}

#top-bar ul {
    border-radius: 15px;
	background-color: #FDFCFA;
	font-family: system-ui;
}

.nasa-select-languages .nasa-list-languages {
    min-width: 100px !important;
}

.entry-image img,
.entry-image.nasa-blog-img-masonry-isotope,
.col-sidebar .widget, 
.nasa-side-sidebar .widget,
.blog-image-attachment img,
.nasa-meta-categories {
    border-radius: 15px;
}

.cat-links-archive.nasa-archive-info a {
    border-radius: 15px;
    color: #fff;
    padding: 2px 14px;
    background-color: var(--e-global-color-primary);
}

.nasa-single-blog  .wp-block-image img {
    border-radius: 15px;
	margin: 20px 0;
}

.size-auto, .size-full, .size-large, .size-medium, .size-thumbnail,
.nasa-post-navigation .nasa-post-archive a .nasa-icon {
	border-radius: 6px;
}

.woocommerce-tabs #reviews .woocommerce-verification-required {
    color: red;
}

.product-info-wrap.info .price {
	float: right;
}

/* Age Group Color Scheme */
.shop-product-age-group {
    display: inline-block;
    font-weight: 600;
	margin-top: 5px;
    font-size: 0.875rem;
    padding: 0.2em 0.6em;
    border-radius: 0.25em;
    color: #fff;
}

/* Specific age group colors */
.age-group-age-0-3 {
    background-color: #FCCC14; /* Yellow */
    color: #000; /* Better contrast on yellow */
}

.age-group-age-3-5 {
    background-color: #49B4DA; /* Light Blue */
}

.age-group-age-5-7 {
    background-color: #F2582C; /* Orange */
}

.age-group-age-7-9 {
    background-color: #2DA39A; /* Teal */
}

.age-group-age-9-11 {
    background-color: #3C63AE; /* Blue */
}

.age-group-age-11plus {
    background-color: #8064AA; /* Purple */
}

/* Optional: visually separate age group under product title */
ul.products li.product .shop-product-age-group {
    margin-top: 0.4em;
}

.wfacp_elementor_template {
	overflow: hidden;
}

body .wfacp-qty-count {
    background-color: #4CAF50 !important;
}

.wfacp_delete_item_wrap a svg {
    color: #F44336 !important;
}

/* Authors and Illustrators */
.contributor-page-title,
.contributors-count {
    text-align: center;
}

nav.az-filter-nav .filter-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-weight: 700;
    border-bottom: 1px solid #ececec;
}

a.az-filter-link.active {
    color: var(--e-global-color-primary);
    font-size: 20px;
}

.contributor-page-inner {
    margin: 40px auto 60px;
}

.contributor-avatar a img {
	border: 2px solid #ffffff;
    border-radius: 15px;
    transition: all 0.4s;
    width: 192px;
    height: 192px;
}

.contributor-avatar a img:hover {
    border: 2px solid var(--e-global-color-primary);
    padding: 4px;
	transform: scale(0.98);
}

.contributors-archive-list {
    display: flex;
	flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
	row-gap: 40px;
	gap: 20px;
}

.contributors-archive-list .contributor-archive-item {
	text-align: center;
	flex: 1 1 calc((100% - 40px) / 3);
  	max-width: calc((100% - 40px) / 3);
}

.contributor-info-details {
	display: inline-flex;
	margin: 14px 0 10px;
	border-radius: 15px;
    padding: 2px 12px;
    background: #ddf2fb;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.contributor-header .contributor-role {
    display: inline-flex;
    border-radius: 15px;
    padding: 2px 12px;
    background: #ddf2fb;
}

.contributor-role {
    margin: 0;
}

.contributor-book-count::before {
    content: "\2014";
    padding-left: 5px;
    padding-right: 5px;
}

.contributor-book-count:empty::before {
    content: "";
}

.contributor-card {
    display: flex;
    gap: 40px;
    align-content: center;
    align-items: center;
}
.contributor-avatar-image {
    width: 30%;
}

.contributor-header {
	width: 70%;
}

.contributor-avatar-image img {
	border: 2px solid #ffffff;
    border-radius: 15px;
    transition: all 0.4s;
    width: 100%;
    height: 100%;
}

.nasa-social-profiles {
  list-style: none;        
  padding: 0;             
  margin: 0;               
  display: flex;          
  gap: 15px;              
}

.nasa-social-profiles li {
  display: inline-flex;
  align-items: center;
}

li.contributor-book-item {
    border: 1px solid #ececec;
    border-radius: 15px;
	padding: 20px;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 767px) {
	nav.az-filter-nav {
        gap: 15px;
        padding: 15px 0;
        overflow: auto;
        margin: 15px;
    }
	
	  .contributors-archive-list {
		flex-direction: column;
		gap: 20px;
		margin: 40px 10px 60px;
	  }

  	.contributors-archive-list .contributor-archive-item {
		flex: none;
		max-width: 100%;
		width: 100%;
	  }
}

@media only screen and (min-width: 768px) {
    .nasa-top-cat-filter-wrap .cat-item.root-item.nasa-current-top>.children {
        background: #f8f8f8;
        padding: 32px;
    }
	
	.nasa-modern-9 .product-item .info {
        background-color: #f8f8f8 !important;
    }
}

