/*
 Theme Name:   Ofertas
 Theme URI:    https://wpastra.com/
 Description: Ofertas Theme 
 Author:      Your Name
 Author URI:  https://yourwebsite.com
 Template:    astra
 Version:     1.0.0
*/

/* Add your custom CSS below */



/* ===============================
   DEALS SECTION
=============================== */
.deals-section {
 margin: 0 0 40px 0;
}

.deals-heading {
  font-family: "Roboto", Sans-serif;
  font-weight: 600;
  text-align: center;
  font-size: 48px;
  margin-bottom: 40px;
}

/* ===============================
   FEED
=============================== */
.deals-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===============================
   CARD
=============================== */
.deal-row {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr 170px;
  gap: 18px;
  padding: 30px;
  background: linear-gradient(135deg, #f5faff, #ffffff);
  border-radius: 14px;
  border: 1px solid #e3eef9;
  box-shadow: 0 10px 30px rgba(11, 60, 93, 0.08);
}

/* ===============================
   IMAGE
=============================== */
.deal-media {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
}

.deal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===============================
   ⭐ DISCOUNT BADGE (ON CARD)
=============================== */
.deal-discount-badge {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 90px;
  height: 90px;
  background: #e53935;
  color: #fff;
  z-index: 10;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-weight: 900;
  text-align: center;

  box-shadow: 0 8px 22px rgba(0,0,0,0.35);

  clip-path: polygon(
    50% 0%, 60% 10%, 75% 5%, 80% 20%, 95% 25%, 85% 40%,
    100% 50%, 85% 60%, 95% 75%, 80% 80%, 75% 95%, 60% 90%,
    50% 100%, 40% 90%, 25% 95%, 20% 80%, 5% 75%, 15% 60%,
    0% 50%, 15% 40%, 5% 25%, 20% 20%, 25% 5%, 40% 10%
  );

  animation: badge-pulse 1.6s infinite;
}

.badge-small {
  font-size: 11px;
}

.badge-big {
  font-size: 20px;
  color: #ffeb3b;
  line-height: 1;
}

/* Pulse */
@keyframes badge-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ===============================
   BODY
=============================== */
.deal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #102a43;
}

/* FLAGS */
.flag {
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  margin-right: 6px;
  font-weight: 700;
}

.flag.hot { background: #ff7043; color: #fff; }
.flag.verified { background: #2e7d32; color: #fff; }

/* ===============================
   PRICES
=============================== */
.price-old {
  text-decoration: line-through;
  color: #9ca3af;
  margin-right: 8px;
}

.price-new {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.deal-savings-box {
  display: inline-flex;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  background: #e8fff1;
  border-left: 4px solid #16a34a;
  border-radius: 4px;
  font-weight: 700;
}

/* ===============================
   CTA
=============================== */
.deal-cta {
  display: flex;
  align-items: center;
}
.deal-cta a:hover {
	color: #fff !important;
}

.btn-deal {
  width: 100%;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 768px) {

  .deals-heading {
    font-size: 26px;
  }

  .deal-row {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .deal-media {
    border-radius: 0;
  }

  .deal-discount-badge {
    top: 10px;
    left: 10px;
    width: 75px;
    height: 75px;
  }

  .badge-big {
    font-size: 24px;
  }

  .deal-body {
    padding: 14px;
  }

  .deal-cta {
    padding: 14px;
  }
}

/* ===============================
   EXPIRED
=============================== */
.is-expired {
  opacity: 0.55;
}

.expired-label {
  font-weight: 700;
  color: #999;
}
.set-img-width img { 
	height: 350px !important; 
}
/* ===============================
   ICON ACTIONS (ALIEXPRESS STYLE)
=============================== */
.deal-body {
    position: relative;
}

.deal-actions-icons {
    position: absolute;
    top: 0;
    right: 0;
	left:115%;
    display: flex;
    gap: 14px;
    color: #6b7280;
}

.deal-icon {
    cursor: pointer;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
}

.deal-icon:hover {
    color: #111827;
}

/* Mobile */
@media (max-width: 768px) {
    .deal-actions-icons {
        position: static !important;
        margin-bottom: 10px;
        justify-content: flex-end;
    }
}
/* ===============================
   SHARE POPUP
=============================== */
.deal-actions {
    position: relative;
}

.deal-share-popup {
    position: absolute;
    top: 30px;
    width: 120px;
    display: none;
    gap: 10px;
    background: #fff;
    padding: 6px 8px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 50;
}

.deal-share-popup a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-share-popup a.whatsapp {
    background: #25D366;
    color: #fff;
	padding:8px;
}

.deal-share-popup a.telegram {
    background: #229ED9;
    color: #fff;
	padding:8px;
}
.deal-share-popup a.facebook {
    background: #229ED9;
    color: #fff;
	padding:8px;
}

.deal-share-popup.show {
    display: flex;
}

.deal-bookmark svg {
    fill: none;
    stroke: #6b7280;/* optional outline */
    transition: fill 0.2s ease;
}

.deal-bookmark.saved svg {
    fill: #6b7280; 
}

.elementor-element-67f7a9db .deal-actions {
    display: flex;
    gap: 12px;
	 left: 0 !important;
    margin-top: 14px;
    position: relative;
}

.deal-icon {
    cursor: pointer;
    color: #111;
}

.deal-icon:hover {
    color: #000;
}

.deal-bookmark.saved {
    color: #e63946;
}

.deal-share-popup {
    position: absolute;
    top: 22px;
    left: 0;
    display: none;
    gap: 8px;
    background: #fff;
    padding: 6px 8px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.deal-share-popup.show {
    display: flex;
}

.deal-share {
    color: #111;
}
.elementor-element-67f7a9db .deal-share-popup.show {
    display: flex !important;
}


/* ======================================================
   FILTER BAR (SEARCH + STORE + BUTTON)
====================================================== */

.deals-filter-bar {
    max-width: 900px;
    margin: 0 auto 35px;
    display: flex;
    gap: 14px;
    align-items: center;
    background: #f8fafc;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e5edff;
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.filter-field {
    flex: 1;
}

.filter-field.search input,
.filter-field.select select {
    width: 100%;
/*     padding: 14px 16px; */
    border-radius: 12px;
    border: 1px solid #dbeafe;
    font-size: 15px;
    font-weight: 600;
    background: #ffffff;
    outline: none;
}

.filter-field.search input::placeholder {
    color: #9ca3af;
}

.filter-field.search input:focus,
.filter-field.select select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Button */
.filter-btn {
    padding: 14px 22px;
    border-radius: 999px;
    border: none;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    color: #111827;
    background: linear-gradient(135deg, #fde047, #facc15);
    box-shadow: 0 10px 20px rgba(250,204,21,.4);
    transition: transform .2s ease, box-shadow .2s ease;
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(250,204,21,.6);
}

/* ======================================================
   MOBILE FILTER
====================================================== */

@media (max-width: 768px) {

    .deals-filter-bar {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .filter-btn {
        width: 100%;
        border-radius: 12px;
    }
	.filter-field.select {
		width: 100%;
	}

	.filter-field.search {
		width: 100%;
	}
}

/* ======================================================
   PAGINATION
====================================================== */
.deals-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.deals-pagination a,
.deals-pagination span {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    border: 1px solid #dbeafe;
    background: #f8fafc;
	 color: black;
    padding: 5px;
}

.deals-pagination .current {
    background: #ff641b;
    color: #fff;
    border-color: #ff8908;
}
.deal-savings {
    margin-top: 4px;
    font-weight: 600;
    color: #0a8f3c;
}


.deal-time-ago {
    position: absolute;
    top: 10px;
    right: 40px;
    font-size: 12px;
    color: #777;
    /* bottom: 30px; */
    padding: 60px 0px;
}

.deal-store {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0b5ed7;              /* text */
  background: #e7f1ff;         /* light blue bg */
  border-radius: 999px;
  line-height: 1.2;
}

.flag.time {
    background: #1976d2; /* blue tone for time */
    color: #fff;
}
/*  single deals page*/

.deal-single-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
}

.deal-single-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.deal-single-image {
    position: relative;
}

.deal-single-image img {
    width: 100%;
    border-radius: 12px;
}

.deal-single-page .deal-discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #e53935;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
}

.deal-single-page .deal-discount-badge strong {
    font-size: 18px;
    display: block;
}

.deal-single-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.deal-single-page .deal-flags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.deal-single-page .flag {
    background: #f1f3f5;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.deal-single-page .flag.time {
    background: #1976d2 !important;
    color: #fff;
}

.deal-single-page .flag.hot { background: #fff3e0; color: #ef6c00; }
.deal-single-page .flag.verified { background: #e8f5e9; color: #2e7d32; }

.deal-single-page .deal-store {
    margin: 12px 0;
    font-size: 14px;
}

.deal-single-page .deal-prices {
    display: flex;
    gap: 12px;
    align-items: center;
}

.deal-single-page .price-old {
    text-decoration: line-through;
    color: #999;
}

.deal-single-page .price-new {
    font-size: 30px;
    font-weight: 800;
}

.deal-single-page .deal-savings {
    color: #2e7d32;
    font-weight: 600;
    margin: 10px 0;
}

.deal-single-page .deal-coupon {
    background: #fef7e0;
    padding: 10px 14px;
    border-radius: 10px;
    margin: 14px 0;
}

.deal-single-page .btn-deal {
    display: inline-block;
    background: linear-gradient(135deg, #ff8f00, #ff6f00);
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
}

.deal-single-page .expired-label {
    color: #d32f2f;
    font-weight: 700;
}

.deal-single-page .deal-single-content {
    margin-top: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

@media (max-width: 768px) {
    .deal-single-hero {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}
/* ======================================
   DEAL SINGLE – IMAGE SLIDER STYLES
   (Scoped – will not affect deal list)
====================================== */

/* -------------------------------
   IMAGE COLUMN
-------------------------------- */
.deal-single-page .deal-single-image {
    width: 100%;
    min-width: 0; /* 🔑 IMPORTANT for Slick */
}

/* Wrapper REQUIRED for Slick */
.deal-single-page .deal-slider-wrap {
    width: 100%;
    min-width: 0; /* 🔑 CRITICAL FIX */
}

/* -------------------------------
   MAIN SLIDER
-------------------------------- */
.deal-single-page .deal-slider-main {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    overflow: hidden;
}

.deal-single-page .deal-slider-main .slick-list {
    overflow: hidden;
}

.deal-single-page .deal-slider-main .slick-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.deal-single-page .deal-slider-main img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    display: block;
}

/* Slick arrows */
.deal-single-page .deal-slider-main .slick-prev,
.deal-single-page .deal-slider-main .slick-next {
    width: 42px;
    height: 42px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    z-index: 5;
	right: 0 !important;
}

.deal-single-page .deal-slider-main .slick-prev:hover,
.deal-single-page .deal-slider-main .slick-next:hover {
    background: rgba(0,0,0,0.75);
}

.deal-single-page .deal-slider-main .slick-prev:before,
.deal-single-page .deal-slider-main .slick-next:before {
    font-size: 18px;
    color: #fff;
}

/* -------------------------------
   THUMBNAIL SLIDER
-------------------------------- */
.deal-single-page .deal-slider-thumbs {
    margin-top: 14px;
    width: 100%;
}

.deal-single-page .deal-slider-thumbs .slick-track {
    display: flex;
    gap: 12px;
}

.deal-single-page .deal-slider-thumbs .slick-slide {
    outline: none;
}

.deal-single-page .deal-slider-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    padding: 8px;
    background: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.deal-single-page .deal-slider-thumbs img:hover {
    transform: translateY(-2px);
}

/* Active thumbnail */
.deal-single-page .deal-slider-thumbs .slick-current img {
    border-color: #ff9800;
    box-shadow: 0 6px 18px rgba(255,152,0,0.35);
}

/* -------------------------------
   SINGLE IMAGE (NO SLIDER)
-------------------------------- */
.deal-single-page .deal-single-image-only {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.deal-single-page .deal-single-image-only img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    display: block;
}

/* -------------------------------
   RESPONSIVE BREAKPOINTS
-------------------------------- */

/* Laptop */
@media (max-width: 1024px) {
    .deal-single-page .deal-slider-main img,
    .deal-single-page .deal-single-image-only img {
        height: 360px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .deal-single-page .deal-slider-main {
        padding: 16px;
    }

    .deal-single-page .deal-slider-main img,
    .deal-single-page .deal-single-image-only img {
        height: 300px;
    }

    .deal-single-page .deal-slider-thumbs img {
        width: 64px;
        height: 64px;
    }

    .deal-single-page .deal-slider-main .slick-prev,
    .deal-single-page .deal-slider-main .slick-next {
        width: 36px;
        height: 36px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .deal-single-page .deal-slider-main img,
    .deal-single-page .deal-single-image-only img {
        height: 240px;
    }

    .deal-single-page .deal-slider-thumbs img {
        width: 56px;
        height: 56px;
        padding: 6px;
    }
}

/*  deal single page share buttons*/
.deal-share-inline {
    display: flex;
    gap: 12px;
    margin-top: 30px;
	justify-content: center;
}

.deal-share-inline .share {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.deal-share-inline svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.share.whatsapp { background: #25D366; }
.share.telegram { background: #229ED9; }
.share.facebook { background: #1877F2; }

.share-heading {
    justify-content: center;
    align-items: center;
    padding: 10px 0px;
}