/*
Theme Name: Tasawwq Woodmart Child
Theme URI: https://tasawwq.com/
Description: Tasawwq custom child theme for Woodmart. Includes red/white marketplace styling and a 24-hour Flash Deals page without plugins.
Author: Tasawwq
Template: woodmart
Version: 1.0.0
Text Domain: tasawwq-woodmart-child
*/

:root{
  --tasawwq-red:#FE3A3C;
  --tasawwq-dark:#111827;
  --tasawwq-soft:#fff5f5;
  --tasawwq-border:#fee2e2;
}

body{background:#fff!important;}

/* General Tasawwq polish */
.wd-header-nav a,
.main-nav a{font-weight:800;}

.product-grid-item,
.wd-product,
.product-wrapper{
  border-radius:18px;
}

.wd-product .product-image-link img,
.product-grid-item img{
  border-radius:16px;
}

.price ins,
.woocommerce-Price-amount,
.wd-product .price{
  font-weight:900;
}

button.single_add_to_cart_button,
.add_to_cart_button,
.checkout-button,
.wc-forward,
button.button,
input.button{
  border-radius:14px!important;
}

/* Flash Deals */
.tasawwq-flash-page{
  direction:rtl;
  max-width:1280px;
  margin:0 auto;
  padding:28px 15px 50px;
}

.tasawwq-flash-hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,var(--tasawwq-red),#b91c1c);
  color:#fff;
  border-radius:30px;
  padding:34px 28px;
  margin-bottom:24px;
  box-shadow:0 20px 50px rgba(254,58,60,.25);
}

.tasawwq-flash-hero:before{
  content:"";
  position:absolute;
  width:260px;height:260px;
  background:rgba(255,255,255,.13);
  border-radius:999px;
  left:-80px;top:-90px;
}

.tasawwq-flash-hero h1{
  position:relative;
  margin:0 0 10px;
  font-size:clamp(28px,4vw,48px);
  line-height:1.2;
  font-weight:1000;
  color:#fff;
}

.tasawwq-flash-hero p{
  position:relative;
  margin:0;
  font-weight:800;
  font-size:17px;
  opacity:.96;
}

.tasawwq-flash-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.tasawwq-flash-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#fff;
  color:var(--tasawwq-red);
  border:1px solid var(--tasawwq-border);
  border-radius:999px;
  padding:10px 14px;
  font-weight:1000;
  box-shadow:0 10px 28px rgba(17,24,39,.06);
}

.tasawwq-flash-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.tasawwq-flash-card{
  position:relative;
  background:#fff;
  border:1px solid var(--tasawwq-border);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 12px 34px rgba(17,24,39,.08);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tasawwq-flash-card:hover{
  transform:translateY(-4px);
  border-color:var(--tasawwq-red);
  box-shadow:0 18px 45px rgba(17,24,39,.12);
}

.tasawwq-flash-sale-label{
  position:absolute;
  z-index:2;
  top:12px;right:12px;
  background:var(--tasawwq-red);
  color:#fff;
  border-radius:999px;
  padding:7px 11px;
  font-weight:1000;
  font-size:13px;
}

.tasawwq-flash-img{
  display:block;
  aspect-ratio:1/1;
  background:#fff7f7;
  overflow:hidden;
}

.tasawwq-flash-img img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .22s ease;
}

.tasawwq-flash-card:hover .tasawwq-flash-img img{transform:scale(1.04)}

.tasawwq-flash-body{padding:15px;}

.tasawwq-flash-title{
  min-height:48px;
  margin:0 0 10px;
  color:var(--tasawwq-dark);
  font-size:15px;
  line-height:1.6;
  font-weight:900;
}

.tasawwq-flash-title a{color:inherit;text-decoration:none;}

.tasawwq-flash-price{
  margin-bottom:11px;
  font-size:16px;
  font-weight:1000;
}

.tasawwq-flash-price del{opacity:.55;margin-inline-end:6px;}
.tasawwq-flash-price ins{color:var(--tasawwq-red);text-decoration:none;}

.tasawwq-countdown{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px;
  margin:10px 0 14px;
}

.tasawwq-countdown span{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:var(--tasawwq-soft);
  border:1px solid var(--tasawwq-border);
  border-radius:14px;
  padding:8px 4px;
  font-weight:1000;
  color:var(--tasawwq-dark);
}

.tasawwq-countdown small{
  font-size:10px;
  color:#6b7280;
  margin-top:2px;
}

.tasawwq-flash-actions .button,
.tasawwq-flash-actions a.button{
  width:100%;
  text-align:center;
  border-radius:16px!important;
  background:var(--tasawwq-red)!important;
  color:#fff!important;
  border:none!important;
  font-weight:1000!important;
  padding:12px 10px!important;
}

.tasawwq-flash-empty{
  background:#fff;
  border:1px solid var(--tasawwq-border);
  border-radius:24px;
  padding:28px;
  text-align:center;
  font-weight:900;
  color:#6b7280;
}

@media(max-width:1100px){.tasawwq-flash-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:780px){.tasawwq-flash-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){
  .tasawwq-flash-page{padding:18px 10px 40px}
  .tasawwq-flash-hero{padding:26px 18px;border-radius:24px}
  .tasawwq-flash-grid{grid-template-columns:1fr 1fr;gap:10px}
  .tasawwq-flash-body{padding:11px}
  .tasawwq-flash-title{font-size:13px;min-height:58px}
  .tasawwq-countdown{gap:4px}
  .tasawwq-countdown span{font-size:12px;border-radius:10px;padding:6px 2px}
}
