/* ── Text block title underline decoration ─────────────────── */
.text-block-content h3 {
    display: block;
    width: fit-content;
    /* fit-content resolves to max-content — a pasted URL has no break points and
       would push the page wider than the viewport. Cap it and allow wrapping. */
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 1px;
    padding-bottom: 8px;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
}

/* Long unbreakable strings anywhere in a text block must not widen the page. */
.text-block-content,
.text-block-content p,
.text-block-content li,
.text-block-content span {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.text-block-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1.5px;
    background-color: #ddd;
}

/* Make only card title responsive to status indicator */
	.card-button .card-title {
		margin-left: 70px;
	}
	
	.card-button:not(:has(.status-indicator)) .card-title {
		margin-left: 0;
	}
/* Image inside button-main icon container */
.button-main .img-icon {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 5px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
/* Update this part in your CSS */
.button-main.card-button {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch; /* Changed from center to stretch */
    padding: 0;
    overflow: hidden;
    /*  max-width: 530px; */
   /* width: auto; */
    margin-left: auto;
    margin-right: auto;
}
.card-content {
    display: flex;
    flex-direction: column;
    text-align: right;
    padding: 15px 8px;
    flex-grow: 1;
    justify-content: center;
    max-width: calc(100% - 150px); /* Ensure content doesn't push icon */
	gap: 5px;
}
.card-title {
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.card-description {
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-wrap: break-word; /* Breaks words only when they would overflow */
    word-wrap: break-word; /* Legacy property for compatibility */
    hyphens: auto; /* Adds hyphens when breaking words - optional */

    
}
.card-image-container {
    width: 150px;
    min-width: 150px;
    flex-shrink: 0;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
	background-color: rgba(0, 0, 0, 0.05);
 
}
.card-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    display: block;
    border-radius: 5px;
}
/* Mobile adjustments for card */
@media (max-width: 600px) {
    .button-main.card-button {
        width: 100%;
        box-sizing: border-box;
    }
    
    .card-image-container {
        width: 120px;
        min-width: 120px;
        height: auto;
        padding: 5px 5px 5px 5px;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .card-description {
        font-size: 0.85rem;
    }
}
/* Card Button with Icon instead of Image */
.card-icon-container {
   width: 150px;
   min-width: 150px;
   height: auto;
   display: flex;
   justify-content: center;
   align-items: center;
   background-color: rgba(0,0,0,0.05);
   flex-shrink: 0;
}
.card-icon-container i {
   font-size: 3.5rem;
 
}
/* Mobile adjustments for card icon */
@media (max-width: 600px) {
   .card-icon-container {
       width: 130px;
       min-width: 120px;
       height: auto;
   }
   .card-icon-container i {
       font-size: 2.8rem;
   }
}

/* Product card style START */

/* Product Card Specific Background */
.button-main.card-button.product-card {
    background-color: rgb(255 255 255) !important;
	color: #000;
	transition: all 0.3s ease;
}

/* Product Card Hover State */
.button-main.card-button.product-card:hover {
    color: #545454 !important;
}

/* Product Card Title Special Style */
.product-card-title {
    font-size: 1.1rem; /* Adjust size as needed */
    font-weight: 600;
    margin-bottom: 10px;
}

/* Product Card Description Special Style */
.product-card-description {
    font-size: 0.8rem;
    color: #777; /* Adjust color as needed */
    line-height: 1.4;
    margin-bottom: 8px;
}

.shop-now-button-outline {
display: inline-block;
margin-top: 10px;
padding: 5px 13px;
background-color: transparent;
color: #555555;
border-radius: 20px;
font-size: 0.8rem;
font-weight: bold;
text-align: center;
transition: all 0.2s ease;
border: 1px solid #aaaaaa;
}

.shop-now-button-outline:hover {
border-color: #555555;
color: #333333;
}

.price-container {
display: flex;
align-items: center;
justify-content: flex-start;
margin-top: 8px;
direction: rtl;
gap: 10px;
}

.regular-price {
    font-weight: bold;
    font-size: 1rem;
}

.original-price {
text-decoration: line-through;
color: #999;
margin-left: 8px;
font-size: 0.9rem;
}

.discount-price {
color: #e74c3c;
font-weight: bold;
font-size: 1.1rem;
}

/* Unique product image container */
.product-image-container {
    width: 150px;
    min-width: 150px;
    aspect-ratio: 1 / 1; /* Ensure 1:1 aspect ratio */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f91c;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}

/* Unique product card image */
.product-card-image {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 10px;
}

/* Remove width from base card-button styles */
.button-main.card-button {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    /* width: 520px;  */
   /* max-width: 100%; */
    margin-left: auto;
    margin-right: auto;
}


.card-content {
display: flex;
flex-direction: column;
text-align: right;
padding: 15px 25px;
flex-grow: 1;
justify-content: center;
}

/* Timer Styles */
.timer-container {
margin-top: 6px;
padding: 8px 0;
direction: rtl;
}

.timer-label {
font-size: 0.75rem;
color: #777;
margin-bottom: 8px;
border-bottom: 1px solid #f0f0f0;
padding-bottom: 5px;
}

.countdown-timer {
display: flex;
justify-content: space-around;
}

.countdown-item {
text-align: center;
position: relative;
}

.countdown-item span {
font-weight: bold;
color: #444;
font-size: 1rem;
letter-spacing: 0.5px;
}

.countdown-item .countdown-label {
font-size: 0.6rem;
color: #999;
display: block;
margin-top: 3px;
}

.countdown-item:not(:last-child):after {
content: "•";
position: absolute;
top: 3px;
left: -15px;
color: #ccc;
font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
.price-container {
    margin-top: 10px;
}
.card-content {
    padding: 15px 10px;
}

.original-price {
    font-size: 0.8rem;
}

.discount-price {
    font-size: 1rem;
}

.product-image-container {
    width: 120px;
    min-width: 120px;
  /*  height: 120px; */
 }


.countdown-item span {
    font-size: 0.9rem;
}

.countdown-item .countdown-label {
    font-size: 0.55rem;
}

.countdown-item:not(:last-child):after {
    left: -10px;
}
}

.carousel-title {
	text-align: center;
	margin-bottom: 10px;
	font-size: 1.5rem;
}

/* Expand Swiper clip region so product card box-shadow is not cut off */
.product-swiper {
	padding: 4px 12px 12px;
	margin: -4px -12px -12px;
}

.product-swiper .swiper-slide {
	display: flex;
	justify-content: center;
}
.product-swiper .swiper-pagination {
	bottom: 10px;
}
.product-swiper .swiper-pagination-bullet-active {
	opacity: 1;
	background: #007aff;
}

.swiper {
    padding-top: 2px;
}

.product-swiper .swiper-pagination {
    margin-top: -5px; 
	margin-bottom: 15px;

}

/* Product shop link styling */
.product-card .shop-now-link {
    display: block;
    color: #2a2a2a;
    text-decoration: none;
    border-bottom: 1px dashed #2a2a2a;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: fit-content;
    margin-top: 8px;
    margin-bottom: 10px;
}

.product-card .shop-now-link:hover {
    color: #7f7f7f;
    border-bottom-color: #acacac;
}

/* Product card style END */

/* Skeleton loading effect For products, link images  START */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* Skeleton loading effect For products, link images  END */


/* Profile picture skeleton animation  START */
.profile-picture-lazy {
  transition: opacity 0.3s ease;
  border-radius: 1%; /* If your profile picture is circular */
}

.profile-picture-lazy.skeleton {
  opacity: 0.7;
}
/* Profile picture skeleton animation  END */



/* ===== START: OPEN/CLOSED STATUS INDICATOR STYLES ===== */
.status-indicator {
    display: flex;
    align-items: center;
    margin-left: 5px;
    padding-right: 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 70px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.card-button .status-indicator {
    top: 35px;
}
.status-text {
    font-size: 0.85rem;
    font-weight: bold;
}
/* Both statuses have dots now */
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    position: relative; /* Add position relative for pseudo-element */
}
.status-open .status-text {
    color: #28a745;
}
.status-closed .status-text {
    color: #dc3545;
}
.status-open .status-dot {
    background-color: #28a745;
}
.status-closed .status-dot {
    background-color: #dc3545; /* Red dot for closed status */
}
/* Use pseudo-element for more precise circular animation, only for open */
.status-open .status-dot:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #28a745;
    z-index: -1;
    animation: pulse-green-fixed 2s infinite;
}
/* Add extra padding to the button to accommodate the status indicator */
.button-main {
    padding-left: 100px;
}
/* The predefined templates restyle .button-main from an inline <style> that
   loads after this sheet, and their `padding: var(...) 0` shorthand zeroes
   the reserve above — the text then runs under the absolutely-positioned
   indicator on narrow screens. The reserve is re-asserted on the INNER text
   span, not the button: padding on the button itself changes its outer width
   (templates size it content-box) or its height (border-box vs min-height),
   so the button box must stay untouched. Scoped with :has() to buttons that
   actually hold an indicator; card buttons reserve room via .card-title
   margin instead (see top of this file).
   NB: hand-mirrored in ltr-overrides.css — keep both in sync. */
.button-main:not(.card-button):has(.status-indicator) .overflow-wrap {
    padding-left: 100px !important;
}
/* Fixed animation that maintains circular shape */
@keyframes pulse-green-fixed {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}
/* Responsive adjustments */
@media (max-width: 600px) {
    .status-indicator {
        min-width: 60px;
        left: 2px;
    }
    /* Special positioning for card-button style - MOBILE ONLY */
    .card-button .status-indicator {
        top: 25px; /* Align with the title instead of center */
        transform: none; /* Remove the vertical centering */
    }
    .button-main {
        padding-left: 80px;
    }
    .button-main:not(.card-button):has(.status-indicator) .overflow-wrap {
        padding-left: 80px !important;
    }
    .status-text {
        font-size: 0.70rem;
    }
}

/* ===== END: OPEN/CLOSED STATUS INDICATOR STYLES ===== */

/* ===== SPACING ADJUSTMENT WHEN NO PAGE DESCRIPTION ===== */
body.no-page-description .page-title {
    margin-bottom: 30px;
}

body.no-page-description .profile-container {
    margin-bottom: 30px;
}
/* ===== END: SPACING ADJUSTMENT ===== */

/* ===== SPACING ADJUSTMENT WHEN NO SOCIAL ICONS ===== */
body.no-social-icons .page-description {
    margin-bottom: 25px;
}
/* ===== END: SPACING ADJUSTMENT ===== */

/* ===== VERIFIED BADGE TOOLTIP FONT ===== */
.badge-tooltip {
    font-family: var(--app-font, 'Cairo', 'Segoe UI', system-ui, sans-serif) !important;
}
/* ===== END: VERIFIED BADGE TOOLTIP FONT ===== */