/**
 * Theme Name:     Koponzo
 * Author:         Abdullah Gamal
 * Template:       wp-coupon-pro
 * Text Domain:	   koponzo
 * Description:    Best WordPress Coupon and Deal Theme
 * Theme URI:      https://abdullah-g.com/
 * Author URI:     https://abdullah-g.com/
 * Version:        1.2
 * License:        GPL
 */

#header-search .header-search-input {
    width: 15em;
    margin: 0;
}

#site-header-nav {
	z-index: 111;
}

.sticky-header #site-header-nav {
	animation: slideDown 1.2s forwards ;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* @keyframes slideDown {
   from { transform: translateY(-100%); }
   to { transform: translateY(0); }
} */

.site-footer {
	padding: 50px 0 22px;
}

.primary-header .container .header_search {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
	width: auto;
}

.rtl #header-search input[type=text] {
	font-family: "Noto Kufi Arabic";
	border-radius: 8px;
}

.rtl .widget_newsletter .ui.action.icon.input > input {
	font-family: "Noto Kufi Arabic";
	font-size: 11px;
	width: 250px!important;
	max-width: 250px!important;
	min-width: 150px!important;
}

.content-area .widget-title,
.frontpage-before-main .widget-title,
.frontpage-after-main .widget-title {
	letter-spacing: 0;
	width: max-content;
}

.site-navigation {
	background: none;
	box-shadow: none;
	display: flex;
	align-items: center;
}

.content-area .widget-title::after,
.frontpage-before-main .widget-title::after,
.frontpage-after-main .widget-title::after {
	content: "";
	display: block;
	width: -webkit-fill-available;
	height: 6px;
	background: linear-gradient(90deg, #f16e2ea1 0%, #d64600 100%);
	border-radius: 4px;
}

.content-area .widget-title,
.frontpage-before-main .widget-title,
.frontpage-after-main .widget-title{
	position: relative;
}

.store-listing-item .coupon-title-loop a,
.store-listing-item .coupon-title-loop{
	text-align: left;
	color: #000000a6;
	font-size: 1em;
	font-weight: 500;
	margin-top: 0px;
}

.store-listing-item .coupon-title-loop a:hover {
	color: #000;
}

.coupon-listing-item .c-type{
	display:none;
	visibility: hidden;
}

.coupon_available p {
	text-align: center
}

.store-listing-item .store-thumb-link .store-thumb {
	margin-bottom: 12px;
	border-radius: 14px;
}

.sidebar .header-thumb img {
	width: 100%;
	border-radius: 14px;
	border: 4px solid rgb(0 0 0 / 5%);
}

.coupon_available span b {
	font-style: normal;
	font-size: 36px;
	position: absolute;
	left: 10%;
	top: 40%;
	width: 70px;
	display: inline-block;
	text-align: center;
}

.coupon_available span {
	border-width: 4px;
}

.coupon_available {
	width: 100%;
	text-align: center;
	margin-top: 20px;
	border: 4px dashed #e6e6e6;
	border-radius: 14px;
	padding: 10px 0;
}

.site-footer .footer_copy ul li a{
	color:#fff!important;
}

.rtl .ui.action.input:not([class*="left action"]) > .button:last-child,
.rtl .ui.action.input:not([class*="left action"]) > .buttons:last-child > .button,
.rtl .ui.action.input:not([class*="left action"]) > .dropdown:last-child{
	border-radius: .28571429rem 0 0 .28571429rem;
}

.rtl .ui.button {
	font-family: "Noto Kufi Arabic";
}

.rtl .coupon-modal .coupon-content .go-store {
	float: left;
}

.rtl .coupon-modal .coupon-content .modal-code .code-text {
	text-align: right;
}

.rtl i.angle.right.icon {
	transform: rotate(180deg);
}

.coupon-modal .coupon-content .coupon-popup-detail > p {
	display: none;
	visibility: hidden;
}

.coupon-modal .coupon-content .show-detail {
	margin-right: 0px;
}

.coupon-modal .coupon-content p.coupon-type-text {
	letter-spacing: 0;
}

.coupon-modal .coupon-content .go-store .go-to-btn a {
	background-color: #ffffff;
	color: #000;
	border: 1px solid #F16D2F;
}

.coupon-modal .coupon-content .go-store .go-to-btn a:hover {
	color: #F16D2F!important;
}

.coupon-modal .coupon-content .go-store {
	width: 100%;
}

.frontpage-container .store-listings .coupon-footer,
.frontpage-container .store-listings .coupon-exclusive{
	display: none
}

.home-slider-wrapper {
	padding: 0px 0;
}

.store-listing-item {
	padding: 1.5em 2em;
}

.coupon-item,
.store-thumb {
	transition: all 0.6s ease-in-out;
}

.frontpage-container .coupon-item {
	border-radius: 14px;
}

.frontpage-container .coupon-item:hover, .coupon-item:hover,
.store-thumb:hover {
	box-shadow: 0px 5px 16px 6px #61616124;
}

.home-slider-wrapper,
.owl-carousel .owl-item img{
	max-height: 300px;
	object-fit: cover;
}

.content-area .page_content {
	background-color: #fff;
	padding: 1.4em;
}

.widget_popular_stores .ui.grid > .column:not(.row) {
	padding: 0px;
}

.store-thumb a, .store-thumb .thumb-padding {
	padding: 5px;
}

.stores-page .store-thumb .str-title {
	top: 3px;
}

.stores-page .store-thumb {
	padding-bottom: 4px;
	background-color: black;
	border-radius: 14px;
}

h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child {
	margin-top: 10px;
}

.frontpage-container .store-listings {
	column-gap: 20px;
	row-gap: 20px;
}

.coupons-tab-contents {
	padding-top: 5px;
}

.coupon-filter .filter-coupons-buttons .coupons-types-wrap {
	float: none;
}

p { line-height: normal; }

.cat-page-with-icon .cate-item {
	box-shadow: 0px 0px 20px 0px #0000000f;
	border-width: 1px;
	border-style: dashed;
	border-color: #a9a9a9 !important;
	border-radius: 14px;
}

.cat-page-with-icon .cate-item:hover  {
	background: #fff;
	border-style: solid;
}

.frontpage-container .content-area {
	width: 100%;
	background-color: #f5f5f5;
}

.frontpage-container .front_page_content {
	padding: 1.4rem;
	background-color: #fff;
	border-radius: 14px;
	box-shadow: 0px 0px 20px 0px #0000000f;
}

.frontpage-container .coupon-item:hover, .coupon-item:hover, .store-thumb:hover {
	box-shadow: 0px 5px 16px 6px #61616124;
}

.store-thumb {
	border: 0px solid #fff;
	border-radius: 14px;
	padding: 0px;
}

.store-thumb a img{
	border-radius: 14px;
}

.store-sidebar .widget-title {
	margin-top: 50px;
	font-size: 18px;
	border-bottom: 2px solid #f26d30;
	padding-bottom: 10px;
}

.newsletter-wrapper {
	padding-block: 40px;
	margin-block-end: 50px;
}

.newsletter-wrapper .newsletter {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	background-color: black;
	border-radius: 14px;
    margin-bottom: 20px !important;
}

.newsletter-wrapper .newsletter .subscribe {
	flex: 0 0 40%;
	color:#fff;
}

.newsletter-wrapper .newsletter .subscribe h3  {
	color:#fff;
	font-size: 2em;
}

.newsletter-wrapper .newsletter .subscribe p{
	color: #ffffffb8;
}

.newsletter-box-wrapper.shadow-box {
	padding: 0;
	background: #000;
}

.newsletter-box-wrapper.shadow-box .input .ui.button {
	letter-spacing: 0px;
}

.site-footer .footer_copy {
	padding-top: 20px;
	padding-bottom: 10px;
	margin-top: 10px;
	display: flex;
	text-align: center;
}

.site-footer a.wp-block-social-link-anchor{
	font-size: 20px
}

p.afiliate_notice {
	text-align: center;
	padding: 10px;
	background: #ffffff33;
	max-width: 55vw;
	margin: auto;
	border-radius: 14px;
	margin-top: 2rem;
}

.frontpage-before-main .st-slider-widget {
	margin-bottom: 0px
}

.front_title_box {
	text-align: center;
	background-color: #fff;
	padding: 1em;
	margin-bottom: 40px;
	border-radius: 0 0 15px 15px;
	box-shadow: 0 0 1px #0001, 0 0 15px #0001;
}

.front_title_box h1 {
	text-align: center; 
	margin-top: 0px;
	font-size: 1.7em;
}

.st-menu a:hover, .st-menu li.current-menu-item a {
	color: #000!important;
}

.rtl .site-footer .widget_nav_menu ul li a:before {
	transform: rotate(180deg);
}

.site-content {
	transition: padding-top 0.6s ease;
	will-change: padding-top;
}

.logo_area img {
	display: block;
	height: auto;
	max-width: 100%;
}

/* ========== MOBILE (<= 790px) ========== */
@media screen and (max-width: 790px) {
	.primary-header .container .header_search {
		width: 100% !important;
		height: max-content;
		transition: all 0.6s ease-in-out;
	}

	.primary-header .container {
		display: grid; 
		grid-template-columns: 1fr 1fr; 
		grid-template-rows: max-content; 
		gap: 0px 0px; 
		grid-template-areas: 
			"logo_area site-navigation"
			"header_search header_search"; 
		margin:auto;	
		align-items: center;
	}

	.logo_area { grid-area: logo_area; }
	.site-navigation { grid-area: site-navigation; }
	.header_search { grid-area: header_search; }

	.site-navigation { justify-content: flex-end; }

	.primary-header .ui.search .results { left: 0%; }

	#header-search .header-search-input { width: 92vw; }

	/* ✅ make the header sticky on mobile (no JS needed) */
	.site-header {
		display: block;
		position: sticky;    /* was: relative */
		top: 0;
		z-index: 1000;
		width: 100%;
		background: #fff;    /* ensure it covers content beneath */
		box-shadow: 0 1px 8px rgba(0,0,0,.06); /* optional */
	}
	/* if admin bar shows on mobile */
	body.admin-bar .site-header { top: 46px; }

	/* ensure no ancestor blocks sticky with overflow */
	.primary-header, .site-header { overflow: visible !important; }

	.primary-header { padding: 4px 0; }

	/* remove old padding-top hack */
	.site-content { padding-top: 0; }

	.newsletter-wrapper .newsletter {
		flex-direction: column-reverse;
		padding: 1.2em;
	}

	.site-header .logo_area {
		margin-bottom: 0px;
		transition: all 0.6s ease-in-out;
	}

	.front_title_box h1 { font-size: 1.2em; }

	.nav-toggle { color: #fff!important; }

	.primary-navigation .st-menu > li > a { color: #000!important; }

	.site-footer .container .footer_copy {
		flex-direction: column;
		align-items: center;
	}

	p.afiliate_notice { max-width: 90vw; }

	.site-footer .container .footer_copy {
		flex-direction: column;
		align-items: center;
	}
}

/* ========== small desktop rules ========== */
@media screen and (min-width: 500px) {
	.rtl  .coupon-modal .coupon-header .coupon-store-thumb {
		float: right;
		margin-right: 10px;
	}
	.rtl  .coupon-modal .coupon-header .coupon-title {
		float: right;
		max-width: 73%;
		font-weight: 700;
	}
	.rtl .coupon-modal .coupon-header .close {
		position: absolute;
		left: 25px;
		right: auto;
	}
}

/* ===== Custom Store Header (desktop stays the same) ===== */
.custom-single-store-header{
  border:1px solid #eee;
  border-radius:12px;
  padding:20px;
  margin-bottom:30px;
}

.custom-single-store-header .store-header-desktop{
  display:flex;
  align-items:flex-start;
  gap:20px;
}
.custom-single-store-header .store-header-desktop .header-thumb{
  flex:0 0 25%;
  max-width:25%;
  text-align:center;
}
.custom-single-store-header .store-header-desktop .store-info{ flex:1; }
.custom-single-store-header .store-header-desktop h1{ font-weight:700; margin-top:0; }
.custom-single-store-header img{ border:none!important; box-shadow:none!important; outline:none!important; }

/* mobile version hidden by default on large screens */
.custom-single-store-header .store-header-mobile{ display:none; }

/* ===== Mobile/Tablet for Custom Store Header (<=991px) ===== */
@media (max-width:991px){
  /* swap: hide desktop, show mobile */
  .custom-single-store-header .store-header-desktop{ display:none!important; }
  .custom-single-store-header .store-header-mobile{ display:block!important; }

  /* first row: logo + title + arrow */
  .custom-single-store-header .store-header-mobile .store-header-top{
    display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%;
  }
  .custom-single-store-header .store-header-mobile .header-thumb{ flex:0 0 60px; max-width:60px; margin:0; }
  .custom-single-store-header .store-header-mobile .header-thumb img{
    display:block; width:100%!important; height:auto!important; object-fit:contain;
  }
  .custom-single-store-header .store-header-mobile h1{
    flex:1; margin:0; font-size:16px; font-weight:700;
  }
  .custom-single-store-header .store-header-mobile .toggle-arrow{
    width:24px; height:24px; cursor:pointer; transition:transform .3s; flex-shrink:0;
  }
  .custom-single-store-header .store-header-mobile .toggle-arrow.rotated{ transform:rotate(180deg); }

  /* details row: full width under row 1; closed by default */
  .custom-single-store-header .store-header-mobile .store-header-details{
    display:none; margin-top:10px; width:100%;
  }
  .custom-single-store-header .store-header-mobile .store-header-details.open{ display:block!important; }
}
