/* ------------------------------------------------------------------
   Home page widgets
   Styles shared by the widgets of «مدیریت ابزارک ها»
   ------------------------------------------------------------------ */

/* 5 column helper (bootstrap has no col-*-15) */
.col-md-15 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-15 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* ------------------------------------------------ generic helpers */
.widget-no-radius,
.widget-no-radius img {
    border-radius: 0 !important;
}

.widget-no-box {
    box-shadow: none !important;
    border: 0 !important;
}

.widget-full-width {
    width: 100vw;
    position: relative;
    right: 50%;
    margin-right: -50vw;
    max-width: 100vw;
}

.widget-grayscale img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.widget-grayscale img:hover {
    filter: grayscale(0);
}

.widget-section-head {
    text-align: center;
}

.widget-block-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.widget-block-subtitle {
    font-size: 13px;
    color: #7f7f7f;
    margin-bottom: 0;
}

.widget-banners-block .widget-banner img,
.widget-single-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.widget-banner-hover {
    overflow: hidden;
}

.widget-banner-hover img {
    transition: transform 0.4s ease;
}

.widget-banner-hover:hover img {
    transform: scale(1.04);
}

/* ------------------------------------------------ product grids */
.widget-products-grid > [class*='col-'] {
    display: flex;
}

.widget-products-grid .product-card {
    width: 100%;
}

.widget-more-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 220px;
    border: 1px dashed #d8d8d8;
    border-radius: 8px;
    color: #555;
    background: #fafafa;
    transition: all 0.2s ease;
}

.widget-more-card i {
    font-size: 32px;
    margin-bottom: 8px;
}

.widget-more-card:hover {
    border-color: #9e9e9e;
    color: #111;
}

.widget-category-circle img {
    border-radius: 50%;
}

/* ------------------------------------------------ faq */
.widget-faq {
    border-radius: 8px;
}

.widget-faq-item {
    border: 1px solid #ececec;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
}

.widget-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: none;
    border: 0;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
    color: inherit;
}

.widget-faq-question i {
    transition: transform 0.25s ease;
    font-size: 20px;
    color: #9e9e9e;
}

.widget-faq-item.open .widget-faq-question i {
    transform: rotate(180deg);
}

.widget-faq-answer {
    padding: 0 16px 14px;
    font-size: 13px;
    line-height: 2;
    color: #555;
}

/* ------------------------------------------------ features */
.widget-features {
    border-radius: 8px;
}

.widget-feature {
    display: block;
    height: 100%;
    text-align: center;
    padding: 18px 12px;
    color: inherit;
    transition: all 0.2s ease;
}

.widget-feature i {
    font-size: 38px;
    display: block;
    margin-bottom: 10px;
}

.widget-feature-image {
    max-height: 52px;
    margin-bottom: 10px;
}

.widget-feature h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.widget-feature p {
    font-size: 12px;
    color: #7c7c7c;
    margin-bottom: 0;
    line-height: 2;
}

.widget-feature-boxed {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.widget-feature-boxed:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.widget-feature-bordered {
    border: 1px solid #ececec;
    border-radius: 8px;
}

/* ------------------------------------------------ stats */
.widget-stats {
    border-radius: 8px;
}

.widget-stat-item {
    text-align: center;
    padding: 10px;
}

.widget-stat-item i {
    font-size: 34px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.85;
}

.widget-stat-number {
    font-size: 26px;
    font-weight: 800;
    direction: ltr;
}

.widget-stat-label {
    font-size: 13px;
    opacity: 0.85;
}

/* ------------------------------------------------ testimonials / reviews */
.widget-testimonials,
.widget-reviews {
    border-radius: 8px;
}

.widget-testimonial {
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 8px;
    padding: 16px;
    height: 100%;
}

.widget-testimonial-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.widget-testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 10px;
    flex-shrink: 0;
}

.widget-testimonial-avatar-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    color: #9e9e9e;
    font-size: 24px;
}

.widget-testimonial-rating {
    margin-bottom: 8px;
    direction: ltr;
    text-align: right;
}

.widget-testimonial-rating i {
    color: #dcdcdc;
    font-size: 16px;
}

.widget-testimonial-rating i.active {
    color: #ffc107;
}

.widget-testimonial-text {
    font-size: 13px;
    line-height: 2;
    color: #555;
    margin-bottom: 0;
}

.widget-review-product {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    font-size: 12px;
    color: #444;
}

.widget-review-product img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin-left: 8px;
}

/* ------------------------------------------------ cta / countdown / app */
.widget-cta,
.widget-countdown,
.widget-app,
.widget-search {
    padding: 26px;
    background-size: cover;
    background-position: center;
}

.widget-cta-inner,
.widget-countdown-inner,
.widget-app-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.widget-cta-content,
.widget-countdown-content,
.widget-app-content {
    flex: 1 1 320px;
}

.widget-cta h2,
.widget-countdown h2,
.widget-app h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.widget-cta p,
.widget-countdown p,
.widget-app p {
    font-size: 13px;
    line-height: 2;
    margin-bottom: 14px;
    opacity: 0.95;
}

.widget-cta-button {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.widget-cta-image img,
.widget-app-image img {
    max-height: 170px;
    max-width: 100%;
}

.widget-countdown-boxes {
    display: flex;
    gap: 10px;
    direction: ltr;
}

.widget-countdown-box {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    min-width: 66px;
}

.widget-countdown-box span {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
}

.widget-countdown-box small {
    font-size: 11px;
    opacity: 0.85;
}

.widget-countdown-expired {
    font-size: 15px;
    font-weight: 700;
}

.widget-app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget-app-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: inherit;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    margin-left: 8px;
}

.widget-app-links a i {
    margin-left: 5px;
    font-size: 17px;
}

.widget-app-links a:hover {
    background: rgba(255, 255, 255, 0.26);
    color: inherit;
}

/* ------------------------------------------------ inline timers */
.widget-inline-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    padding: 6px 0;
    direction: ltr;
}

.widget-inline-timer i {
    margin-left: 6px;
}

/* ------------------------------------------------ search box */
.widget-search-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.widget-search h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.widget-search p {
    font-size: 13px;
    margin-bottom: 14px;
    opacity: 0.9;
}

.widget-search-form {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.widget-search-form input {
    flex: 1;
    border: 0;
    padding: 12px 16px;
    font-size: 13px;
    outline: none;
    background: transparent;
}

.widget-search-form button {
    border: 0;
    background: #ef394e;
    color: #fff;
    padding: 0 20px;
    font-size: 22px;
    cursor: pointer;
}

.widget-search-keywords {
    margin-top: 12px;
    font-size: 12px;
}

.widget-search-keywords a {
    display: inline-block;
    margin: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
}

/* ------------------------------------------------ tags */
.widget-tags-list a {
    display: inline-block;
    margin: 4px;
    font-size: 12px;
    color: #444;
}

.widget-tags-pill a {
    padding: 5px 14px;
    border-radius: 20px;
    background: #f3f4f6;
}

.widget-tags-pill a:hover {
    background: #e5e7eb;
}

.widget-tags-simple a::before {
    content: '#';
    opacity: 0.5;
}

/* ------------------------------------------------ video */
.widget-video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.widget-video-frame::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.widget-ratio-4-3::before {
    padding-top: 75%;
}

.widget-ratio-21-9::before {
    padding-top: 42.85%;
}

.widget-video-frame iframe,
.widget-video-frame video,
.widget-video-frame embed,
.widget-video-frame object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------------------------------------------ text block */
.widget-text-block {
    line-height: 2.1;
    font-size: 13px;
}

.widget-text-content.collapsible {
    max-height: 170px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.widget-text-content.collapsible::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
}

.widget-text-content.expanded {
    max-height: none;
}

.widget-text-content.expanded::after {
    display: none;
}

.widget-text-toggle {
    border: 0;
    background: none;
    color: #ef394e;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
}

/* ------------------------------------------------ product tabs */
.widget-tabs-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
    padding-bottom: 6px;
}

.widget-tabs-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    flex: 1;
}

.widget-tabs-nav li {
    margin-left: 6px;
}

.widget-tab-button {
    border: 0;
    background: none;
    padding: 8px 14px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid transparent;
}

.widget-tab-button.active {
    color: #ef394e;
    font-weight: 700;
    border-bottom-color: #ef394e;
}

.widget-tabs-more {
    font-size: 12px;
}

.widget-tab-pane {
    display: none;
}

.widget-tab-pane.active {
    display: block;
}

.widget-tab-link {
    display: inline-block;
    font-size: 12px;
    padding: 6px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #555;
}

/* ------------------------------------------------ brands */
.widget-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    height: 100%;
    color: #444;
    font-size: 12px;
    text-align: center;
}

.widget-brand-item img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

.widget-brand-item:hover {
    color: #111;
    border-color: #e0e0e0;
}

/* ------------------------------------------------ contact + map */
.widget-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.widget-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px dashed #eee;
    line-height: 2;
}

.widget-contact-list li i {
    font-size: 18px;
    color: #ef394e;
    margin-left: 8px;
}

.widget-contact-list a {
    color: inherit;
    direction: ltr;
}

.widget-map {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.widget-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------------------------------------------ misc */
.widget-post-excerpt {
    font-size: 12px;
    color: #7c7c7c;
    line-height: 2;
    margin: 6px 0 0;
}

.widget-spacer {
    display: flex;
    align-items: center;
}

.widget-spacer hr {
    width: 100%;
    margin: 0;
}

.amazing-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .widget-cta,
    .widget-countdown,
    .widget-app,
    .widget-search {
        padding: 18px;
    }

    .widget-countdown-box {
        min-width: 56px;
        padding: 8px 10px;
    }

    .widget-countdown-box span {
        font-size: 18px;
    }

    .widget-cta-inner,
    .widget-countdown-inner,
    .widget-app-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ==================================================================
   Stories (instagram style)
   ================================================================== */
.widget-stories {
    padding: 14px 10px;
    border-radius: 8px;
}

.widget-stories.boxed {
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.widget-stories-track {
    display: flex;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.widget-stories-track::-webkit-scrollbar {
    height: 4px;
}

.widget-stories-track::-webkit-scrollbar-thumb {
    background: #dcdcdc;
    border-radius: 4px;
}

.widget-story {
    --story-size: 76px;
    --story-ring: #ef394e;
    border: 0;
    background: none;
    padding: 0;
    margin-left: 14px;
    cursor: pointer;
    text-align: center;
    flex: 0 0 auto;
    width: calc(var(--story-size) + 12px);
}

.widget-stories-small .widget-story { --story-size: 58px; }
.widget-stories-large .widget-story { --story-size: 96px; }

.widget-story-ring {
    display: block;
    width: var(--story-size);
    height: var(--story-size);
    margin: 0 auto;
    padding: 3px;
    border-radius: 50%;
    background: var(--story-ring);
    transition: transform 0.2s ease;
}

.widget-story.ring-gradient .widget-story-ring {
    background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}

.widget-story.ring-none .widget-story-ring {
    background: #ececec;
}

.widget-story.seen .widget-story-ring {
    background: #d6d6d6;
}

.widget-story:hover .widget-story-ring {
    transform: scale(1.05);
}

.widget-story-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid #fff;
    color: #c4c4c4;
    font-size: 22px;
}

.widget-story-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-story-title {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------- viewer ---------------- */
.widget-story-viewer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    background: rgba(10, 10, 10, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.widget-story-viewer.open {
    opacity: 1;
}

.widget-story-stage {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 100%;
    max-height: 92vh;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-story-stage img,
.widget-story-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.widget-story-bars {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    display: flex;
    z-index: 3;
}

.widget-story-bar {
    flex: 1;
    height: 3px;
    margin-left: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.32);
    overflow: hidden;
}

.widget-story-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
}

.widget-story-bar.done span {
    width: 100%;
}

.widget-story-topbar {
    position: absolute;
    top: 22px;
    right: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 3;
    font-size: 13px;
}

.widget-story-topbar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.widget-story-close {
    margin-right: auto;
    background: none;
    border: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.widget-story-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32%;
    background: none;
    border: 0;
    cursor: pointer;
    z-index: 2;
}

.widget-story-nav.prev { right: 0; }
.widget-story-nav.next { left: 0; width: 68%; }

.widget-story-footer {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 18px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    color: #fff;
    z-index: 3;
    text-align: center;
}

.widget-story-caption {
    font-size: 13px;
    line-height: 2;
    margin-bottom: 10px;
}

.widget-story-cta {
    display: inline-block;
    background: #fff;
    color: #111;
    padding: 8px 22px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 700;
}

.widget-story-cta:hover {
    color: #111;
}

/* ==================================================================
   Hero banner
   ================================================================== */
.widget-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.widget-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.widget-hero-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    max-width: 620px;
}

.widget-hero-center {
    margin: 0 auto;
}

.widget-hero-left {
    margin-right: auto;
}

.widget-hero-subtitle {
    display: inline-block;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

.widget-hero h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.widget-hero p {
    font-size: 14px;
    line-height: 2.1;
    margin-bottom: 16px;
}

.widget-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: inherit;
}

.widget-hero-button {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 10px;
    margin-bottom: 6px;
}

.widget-hero-button.primary {
    background: #ef394e;
    color: #fff;
}

.widget-hero-button.ghost {
    border: 1px solid #fff;
}

/* ==================================================================
   Deal of the day
   ================================================================== */
.widget-deal {
    padding: 20px;
}

.widget-deal-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.widget-deal-head {
    flex: 0 0 230px;
    text-align: center;
    padding: 0 10px;
}

.widget-deal-head h2 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 6px;
}

.widget-deal-head p {
    font-size: 12px;
    opacity: 0.85;
}

.widget-deal-timer {
    justify-content: center;
    margin-top: 12px;
}

.widget-deal .widget-countdown-box {
    background: rgba(0, 0, 0, 0.06);
    min-width: 54px;
    padding: 6px 8px;
    margin-left: 6px;
}

.widget-deal .widget-countdown-box span {
    font-size: 17px;
}

.widget-deal-image {
    position: relative;
    flex: 0 0 210px;
    max-width: 210px;
    padding: 0 10px;
}

.widget-deal-image img {
    width: 100%;
    border-radius: 8px;
    background: #fff;
}

.widget-deal-badge {
    position: absolute;
    top: 8px;
    right: 18px;
    background: #ef394e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.widget-deal-body {
    flex: 1 1 260px;
    padding: 0 10px;
}

.widget-deal-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.widget-deal-category {
    font-size: 12px;
    color: #8a8a8a;
}

.widget-deal-description {
    font-size: 12px;
    line-height: 2;
    margin: 8px 0;
    opacity: 0.9;
}

.widget-deal-prices {
    display: flex;
    align-items: center;
    margin: 10px 0 14px;
    font-weight: 800;
    font-size: 17px;
}

.widget-deal-prices del {
    font-size: 13px;
    font-weight: 400;
    color: #9b9b9b;
    margin-right: 10px;
}

.widget-deal-button {
    display: inline-block;
    padding: 9px 26px;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.widget-deal-button:hover {
    color: #fff;
    opacity: 0.92;
}

/* ==================================================================
   Category showcase
   ================================================================== */
.widget-showcase-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.widget-showcase-head .widget-block-title {
    margin-left: 16px;
}

.widget-showcase-subs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    flex: 1;
}

.widget-showcase-subs li {
    margin-left: 8px;
}

.widget-showcase-subs a {
    display: inline-block;
    font-size: 12px;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f5f6f8;
}

.widget-showcase-subs a:hover {
    background: #ececec;
    color: #222;
}

.widget-showcase-more {
    font-size: 12px;
    white-space: nowrap;
}

.widget-showcase-banner img {
    width: 100%;
    border-radius: 8px;
}

/* ==================================================================
   Steps
   ================================================================== */
.widget-steps-row {
    position: relative;
}

.widget-step {
    display: block;
    text-align: center;
    color: inherit;
    padding: 6px;
    position: relative;
}

.widget-step-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 2px dashed;
    background: #fff;
    margin-bottom: 12px;
}

.widget-step-icon i {
    font-size: 32px;
}

.widget-step-icon img {
    max-width: 42px;
    max-height: 42px;
}

.widget-step-number {
    position: absolute;
    bottom: -4px;
    left: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.widget-step h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.widget-step p {
    font-size: 12px;
    color: #7c7c7c;
    line-height: 2;
    margin: 0;
}

@media (min-width: 768px) {
    .widget-steps.has-connector .widget-steps-row > [class*='col-']:not(:last-child) .widget-step::after {
        content: '';
        position: absolute;
        top: 38px;
        left: -50%;
        width: 100%;
        border-top: 2px dashed #e3e3e3;
        z-index: 0;
    }

    .widget-steps.has-connector .widget-step-icon {
        z-index: 1;
    }
}

/* ==================================================================
   Gallery
   ================================================================== */
.widget-gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
}

.widget-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.widget-gallery-item:hover img {
    transform: scale(1.06);
}

.widget-gallery-item.ratio-square { aspect-ratio: 1 / 1; }
.widget-gallery-item.ratio-landscape { aspect-ratio: 4 / 3; }
.widget-gallery-item.ratio-portrait { aspect-ratio: 3 / 4; }
.widget-gallery-item.ratio-auto { aspect-ratio: auto; }

.widget-gallery-caption {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 18px 10px 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    font-size: 12px;
}

/* ---------------- lightbox ---------------- */
.widget-lightbox-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    background: rgba(8, 8, 8, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.widget-lightbox-overlay.open {
    opacity: 1;
}

.widget-lightbox-overlay img {
    max-width: 92vw;
    max-height: 84vh;
    border-radius: 6px;
}

.widget-lightbox-caption {
    position: absolute;
    bottom: 26px;
    right: 0;
    left: 0;
    text-align: center;
    color: #fff;
    font-size: 13px;
}

.widget-lightbox-overlay button {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.widget-lightbox-close { top: 18px; left: 18px; }
.widget-lightbox-prev { right: 18px; top: 50%; transform: translateY(-50%); }
.widget-lightbox-next { left: 18px; top: 50%; transform: translateY(-50%); }

/* ==================================================================
   Announcement bar
   ================================================================== */
.widget-announcement {
    position: relative;
    display: flex;
    align-items: center;
    padding: 9px 14px;
    font-size: 13px;
    overflow: hidden;
}

.widget-announcement-viewport {
    flex: 1;
    overflow: hidden;
}

.widget-announcement-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.widget-announcement-item {
    display: inline-flex;
    align-items: center;
    padding: 0 26px;
}

.widget-announcement-item i {
    margin-left: 6px;
    font-size: 17px;
}

.widget-announcement-marquee .widget-announcement-track {
    width: max-content;
    animation-name: widget-marquee;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.widget-announcement-marquee:hover .widget-announcement-track {
    animation-play-state: paused;
}

@keyframes widget-marquee {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.widget-announcement-fade .widget-announcement-track,
.widget-announcement-static .widget-announcement-track {
    justify-content: center;
    width: 100%;
}

.widget-announcement-fade .widget-announcement-item {
    display: none;
}

.widget-announcement-fade .widget-announcement-item.active {
    display: inline-flex;
    animation: widget-fade-in 0.4s ease;
}

@keyframes widget-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.widget-announcement-close {
    background: none;
    border: 0;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    margin-right: 8px;
}

/* ==================================================================
   Coupon
   ================================================================== */
.widget-coupon {
    padding: 22px 26px;
}

.widget-coupon-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.widget-coupon h2 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 6px;
}

.widget-coupon p {
    font-size: 13px;
    line-height: 2;
    margin-bottom: 4px;
    opacity: 0.95;
}

.widget-coupon-note {
    opacity: 0.8;
    font-size: 12px;
}

.widget-coupon-code-box {
    text-align: center;
}

.widget-coupon-code {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    color: #222;
}

.widget-coupon-value {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
    direction: ltr;
    margin-left: 14px;
}

.widget-coupon-action {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
    border-right: 1px solid #eee;
    padding-right: 14px;
}

.widget-coupon-action i {
    margin-left: 4px;
}

.widget-coupon-code.copied .widget-coupon-action {
    color: #16a34a;
    font-weight: 700;
}

.widget-coupon-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
}

/* ==================================================================
   Social grid
   ================================================================== */
.widget-social-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.widget-social-username {
    font-size: 12px;
    color: #8a8a8a;
    direction: ltr;
    display: inline-block;
}

.widget-social-follow {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888);
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.widget-social-follow i {
    margin-left: 5px;
    font-size: 17px;
}

.widget-social-follow:hover {
    color: #fff;
    opacity: 0.93;
}

.widget-social-item {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f4f4;
}

.widget-social-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-social-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 26px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.widget-social-item:hover .widget-social-overlay {
    opacity: 1;
}

@media (max-width: 767px) {
    .widget-hero-content { padding: 20px; }
    .widget-hero h2 { font-size: 20px; }
    .widget-deal-head { flex: 1 1 100%; }
    .widget-deal-image { flex: 0 0 150px; max-width: 150px; }
    .widget-coupon-inner { justify-content: center; text-align: center; }
    .widget-story-stage { max-height: 100vh; border-radius: 0; }
}
