/* ═══════════════════════════════════════════════════
   Dazzelit Product Gallery — dz-gallery.css
   All selectors prefixed with .dz-pg- to avoid conflicts.
   No font-family declarations.
   No <button> tag styles — all interactive elements use
   <div>/<a> with role="button".
   ═══════════════════════════════════════════════════ */

/* ── Reset box-sizing inside gallery ── */
.dz-pg-wrapper,
.dz-pg-wrapper *,
.dz-pg-wrapper *::before,
.dz-pg-wrapper *::after,
.dz-pg-lightbox,
.dz-pg-lightbox *,
.dz-pg-lightbox *::before,
.dz-pg-lightbox *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Wrapper ── */
.dz-pg-wrapper {
    width: 100%;
    max-width: 700px;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Top area: icons + carousel ── */
.dz-pg-top {
    display: flex;
    gap: 0;
    align-items: stretch;
}

/* ── Icons Column ── */
.dz-pg-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    width: 46px;
    padding-top: 0;
}

.dz-pg-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-height: 24px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
    margin: 20px 0;
}

.dz-pg-icon-item:hover {
    opacity: 0.65;
}

.dz-pg-icon-item:focus-visible {
    outline: 2px solid #FDAA0F;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Rating item */
.dz-pg-rating {
    cursor: default;
    padding-top: 2px;
    min-height: auto;
    gap: 12px;
    margin-top: 0;
}

.dz-pg-rating:hover {
    opacity: 1;
}

.dz-pg-star-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dz-pg-star-icon svg {
    width: 24px;
    height: 24px;
}

.dz-pg-rating-number {
    font-size: 13px;
    font-weight: 600;
    color: #56585B;
    line-height: 1;
    margin-top: 2px;
}

/* Divider */
.dz-pg-icon-divider {
    width: 24px;
    height: 1px;
    background-color: #EFEFEF;
    margin: 20px auto;
    border-radius: 1px;
}

/* Icon SVGs */
.dz-pg-icon-item svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* ── Main Carousel ── */
.dz-pg-carousel {
    flex: 1;
    min-width: 0;
    background: #F9F9F9;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.dz-pg-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.dz-pg-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dz-pg-slide img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.dz-pg-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* ── Thumbnail Strip ── */
.dz-pg-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.dz-pg-thumb {
    width: 67px;
    height: 67px;
    flex-shrink: 0;
    border-radius: 16px;
    border: 1px solid #EFEFEF;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dz-pg-thumb:hover {
    border-color: #ccc;
}

.dz-pg-thumb:focus-visible {
    outline: 2px solid #FDAA0F;
    outline-offset: 2px;
}

.dz-pg-thumb-active {
    border-color: #bbb;
    box-shadow: 0 0 0 1px #bbb;
}

.dz-pg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Ellipsis "more" overlay on last thumb */
.dz-pg-thumb-more img {
    opacity: 0.6;
    filter: blur(2px);
}

.dz-pg-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
}

.dz-pg-ellipsis {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dz-pg-ellipsis span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #56585B;
    display: block;
}

/* Video Overlay */
.dz-pg-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
}

.dz-pg-lightbox-thumb .dz-pg-video-overlay {
    width: 24px;
    height: 24px;
}

.dz-pg-video-overlay svg {
    margin-left: 2px;
    /* Center the play triangle visually */
}

/* ═══════════════════════════════════════════════════
   Custom Video Player
   ═══════════════════════════════════════════════════ */

/* Video wrapper — contains everything */
.dz-pg-video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    cursor: pointer;
}

/* Poster image */
.dz-pg-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    z-index: 2;
    pointer-events: none !important;
}

/* Gradient overlay — bottom to top */
.dz-pg-video-gradient {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(11, 130, 88, 0) 100%);
}

/* Big play button container — centered */
.dz-pg-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Outer ring */
.dz-pg-video-play-ring {
    position: absolute;
    width: 95px;
    height: 95px;
}

/* Inner green circle */
.dz-pg-video-play-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(11, 130, 88, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 120px rgba(19, 208, 144, 1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.dz-pg-video-play-btn:hover .dz-pg-video-play-circle {
    transform: scale(1.08);
    background: rgba(11, 130, 88, 0.8);
}

.dz-pg-video-play-circle svg {
    margin-left: 3px;
    /* Visually center play triangle */
}

/* Duration badge — bottom center pill */
.dz-pg-video-duration {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 20px;
    border-radius: 17.5px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Actual video element — hidden behind poster by default */
.dz-pg-video-wrap .dz-pg-video-player {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    display: block;
    background: #000;
}

/* Custom controls bar — hidden by default */
.dz-pg-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: none;
    /* shown via .dz-pg-video-playing */
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

/* Play/Pause button */
.dz-pg-video-playpause-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dz-pg-video-playpause-btn svg {
    height: 36px;
}

.dz-pg-video-playpause-btn:hover {
    transform: translatey(-2px);
}

/* Show/hide play vs pause icons */
.dz-pg-video-playpause-btn .dz-pg-ctl-pause {
    display: none;
}

.dz-pg-video-playing .dz-pg-video-playpause-btn .dz-pg-ctl-play {
    display: none;
}

.dz-pg-video-playing .dz-pg-video-playpause-btn .dz-pg-ctl-pause {
    display: block;
}

/* Seekbar track */
.dz-pg-video-seekbar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dz-pg-video-seekbar-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.dz-pg-video-seekbar:hover {
    height: 5px;
}

/* Time display */
.dz-pg-video-time {
    background: rgb(255 255 255 / 10%);
    color: #fff;
    font-size: 18px;
    line-height: 30px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Playing state ── */
.dz-pg-video-playing .dz-pg-video-poster {
    display: none !important;
}

.dz-pg-video-playing .dz-pg-video-gradient {
    display: none !important;
}

.dz-pg-video-playing .dz-pg-video-play-btn {
    display: none !important;
}

.dz-pg-video-playing .dz-pg-video-duration {
    display: none !important;
}

.dz-pg-video-playing .dz-pg-video-controls {
    display: flex;
}

/* When paused (not playing), hide controls and show overlay again */
.dz-pg-video-paused .dz-pg-video-controls {
    display: flex;
}

.dz-pg-video-paused .dz-pg-video-poster {
    display: none;
}

.dz-pg-video-paused .dz-pg-video-gradient {
    display: block;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

.dz-pg-video-paused .dz-pg-video-play-btn {
    display: flex;
}

.dz-pg-video-paused .dz-pg-video-duration {
    display: none;
}

/* Lightbox specific video styles */
.dz-pg-lightbox-slide .dz-pg-video-wrap {
    border-radius: 16px;
    max-width: 100%;
    width: auto !important;
    max-height: calc(90vh - 100px);
    aspect-ratio: 16/9;
}

.dz-pg-lightbox-slide .dz-pg-video-wrap .dz-pg-video-player {
    object-fit: contain;
    border-radius: 16px;
}

.dz-pg-lightbox-slide .dz-pg-video-poster {
    border-radius: 16px;
}

/* ═══════════════════════════════════════════════════
   Lightbox
   ═══════════════════════════════════════════════════ */

.dz-pg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.dz-pg-lightbox[aria-hidden="false"] {
    display: flex;
}

.dz-pg-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
}

.dz-pg-lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
}

.dz-pg-lightbox-close {
    position: absolute;
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
}

.dz-pg-lightbox-close {
    right: 0;
}

.dz-pg-lightbox-close:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.dz-pg-lightbox-close:focus-visible {
    outline: 2px solid #FDAA0F;
    outline-offset: 2px;
}

/* Lightbox slides */
.dz-pg-lightbox-slides {
    display: flex;
    width: 100%;
    max-height: calc(90vh - 100px);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.dz-pg-lightbox-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.dz-pg-lightbox-slide img {
    max-width: 100% !important;
    max-height: calc(90vh - 100px);
    object-fit: cover;
    display: block;
    pointer-events: none;
    border-radius: 8px !important;
    background: #F9F9F9;
    height: 100% !important;
}

.dz-pg-lightbox-slide video {
    width: auto !important;
    height: 100%;
    max-height: calc(90vh - 100px);
    object-fit: contain;
    display: block;
    border-radius: 8px !important;
    background: #F9F9F9;
}

/* Lightbox thumbnails */
.dz-pg-lightbox-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 90vw;
    padding: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.dz-pg-lightbox-thumbs::-webkit-scrollbar {
    display: none;
}

.dz-pg-lightbox-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
}

.dz-pg-lightbox-thumb:hover {
    opacity: 0.85;
}

.dz-pg-lightbox-thumb:focus-visible {
    outline: 2px solid #FDAA0F;
    outline-offset: 2px;
}

.dz-pg-lightbox-thumb-active {
    border-color: #fff;
    opacity: 1;
}

.dz-pg-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    background: #F9F9F9;
}

/* ═══════════════════════════════════════════════════
   Share Modal
   ═══════════════════════════════════════════════════ */

.dz-pg-share-modal {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.dz-pg-share-modal[aria-hidden="false"] {
    display: flex;
}

.dz-pg-share-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.dz-pg-share-modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px 24px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.dz-pg-share-modal-close {
    position: absolute;
    top: 16px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

[dir="rtl"] .dz-pg-share-modal-close,
.dz-pg-share-modal-close {
    left: 16px;
}

[dir="ltr"] .dz-pg-share-modal-close {
    right: 16px;
    left: auto;
}

.dz-pg-share-modal-close:hover {
    background: #f0f0f0;
}

.dz-pg-share-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
    text-align: center;
}

.dz-pg-share-modal-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0 0 20px;
    text-align: center;
}

.dz-pg-share-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.dz-pg-share-social-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    color: #333;
    text-decoration: none;
}

.dz-pg-share-social-item:hover {
    border-color: #bbb;
    background: #f7f7f7;
    transform: scale(1.08);
}

.dz-pg-share-social-item:focus-visible {
    outline: 2px solid #FDAA0F;
    outline-offset: 2px;
}

.dz-pg-share-social-item svg {
    width: 22px;
    height: 22px;
}

.dz-pg-share-modal-link-label {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px;
    text-align: center;
}

.dz-pg-share-url-box {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.dz-pg-share-url-text {
    font-size: 14px;
    color: #888;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
    text-align: left;
}

.dz-pg-share-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #333;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.1s ease;
    user-select: none;
    -webkit-user-select: none;
}

.dz-pg-share-copy-btn:hover {
    background: #222;
}

.dz-pg-share-copy-btn:active {
    transform: scale(0.97);
}

.dz-pg-share-copy-btn:focus-visible {
    outline: 2px solid #FDAA0F;
    outline-offset: 2px;
}

.dz-pg-share-copy-btn svg {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */

@media (max-width: 600px) {
    .dz-pg-icons {
        width: 36px;
    }

    .dz-pg-icon-item {
        width: 36px;
        min-height: 44px;
    }

    .dz-pg-icon-item svg {
        width: 20px;
        height: 20px;
    }

    .dz-pg-star-icon svg {
        width: 20px;
        height: 20px;
    }

    .dz-pg-rating-number {
        font-size: 11px;
    }

    .dz-pg-icon-divider {
        width: 18px;
        margin: 4px auto;
    }

    .dz-pg-thumb {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .dz-pg-thumbs {
        gap: 8px;
        margin-top: 10px;
    }

    .dz-pg-lightbox-thumb {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    .dz-pg-lightbox-thumbs {
        gap: 6px;
        margin-top: 10px;
    }
}

/* ═══════════════════════════════════════════════════
   Wishlist Styles
   ═══════════════════════════════════════════════════ */

/* Wishlist Icon SVGs Toggle */
.dz-pg-icon-wishlist .dz-pg-wishlist-active,
.dz-pg-icon-wishlist .dz-pg-wishlist-hover-remove {
    display: none;
}

.dz-pg-icon-wishlist.dz-pg-in-wishlist .dz-pg-wishlist-default {
    display: none;
}

.dz-pg-icon-wishlist.dz-pg-in-wishlist .dz-pg-wishlist-active {
    display: block;
}

/* On hover when in wishlist: show remove icon, hide active icon */
.dz-pg-icon-wishlist.dz-pg-in-wishlist:hover .dz-pg-wishlist-active {
    display: none;
}

.dz-pg-icon-wishlist.dz-pg-in-wishlist:hover .dz-pg-wishlist-hover-remove {
    display: block;
}

.dz-pg-icon-wishlist.dz-pg-adding {
    animation: dz-pg-pulse 0.4s ease;
}

/* Compare Icon SVGs Toggle */
.dz-pg-icon-compare .dz-pg-compare-active,
.dz-pg-icon-compare .dz-pg-compare-hover-remove {
    display: none;
}

.dz-pg-icon-compare.dz-pg-in-compare .dz-pg-compare-default {
    display: none;
}

.dz-pg-icon-compare.dz-pg-in-compare .dz-pg-compare-active {
    display: block;
}

/* On hover when in compare: show remove icon, hide active icon */
.dz-pg-icon-compare.dz-pg-in-compare:hover .dz-pg-compare-active {
    display: none;
}

.dz-pg-icon-compare.dz-pg-in-compare:hover .dz-pg-compare-hover-remove {
    display: block;
}

.dz-pg-icon-compare.dz-pg-adding {
    animation: dz-pg-pulse 0.4s ease;
}

@keyframes dz-pg-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* My Account Wishlist Table */
table.dz-wishlist-table {
    width: 100%;
    border-collapse: collapse;
}

table.dz-wishlist-table th,
table.dz-wishlist-table td {
    padding: 12px;
    vertical-align: middle;
    text-align: left;
}

[dir="rtl"] table.dz-wishlist-table th,
[dir="rtl"] table.dz-wishlist-table td {
    text-align: right;
}

table.dz-wishlist-table .dz-wl-remove a {
    color: #e2401c;
    font-size: 24px;
    text-decoration: none;
    font-weight: bold;
}

table.dz-wishlist-table .dz-wl-remove a:hover {
    color: #000;
}

table.dz-wishlist-table .dz-wl-thumbnail img {
    max-width: 60px;
    height: auto;
    border-radius: 6px;
}

table.dz-wishlist-table .dz-wl-name a {
    font-weight: 600;
    text-decoration: none;
    color: #333;
}

table.dz-wishlist-table .dz-wl-name a:hover {
    text-decoration: underline;
}

table.dz-wishlist-table .dz-wl-action .button {
    white-space: nowrap;
}

/* My Account Compare Layout */
.dz-compare-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.dz-cp-item {
    width: calc(33.333% - 14px);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .dz-cp-item {
        width: calc(50% - 10px);
    }

    .dz-pg-lightbox-close {
        top: -60px;
    }
}

@media (max-width: 480px) {
    .dz-cp-item {
        width: 100%;
    }
}

.dz-cp-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

[dir="rtl"] .dz-cp-remove {
    right: auto;
    left: 10px;
}

.dz-cp-remove a {
    color: #e2401c;
    font-size: 20px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.dz-cp-remove a:hover {
    color: #000;
}

.dz-cp-thumbnail {
    text-align: center;
    margin-bottom: 12px;
}

.dz-cp-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.dz-cp-name {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.dz-cp-name a {
    color: #333;
    text-decoration: none;
}

.dz-cp-name a:hover {
    text-decoration: underline;
}

.dz-cp-rating {
    margin-bottom: 8px;
    font-size: 12px;
}

.dz-cp-price {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
}

.dz-cp-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    flex-grow: 1;
}

.dz-cp-action {
    margin-top: auto;
}

.dz-cp-action .button {
    width: 100%;
    text-align: center;
}

/* ═══════════════════════════════════════════════════
   Elementor Loop Grid Media Styles (Video / Poster)
   ═══════════════════════════════════════════════════ */

.dz-loop-media-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16/9;
    background-color: #f7f7f7;
}

.dz-loop-media-poster,
.dz-loop-media-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.dz-loop-media-video {
    z-index: 1;
    opacity: 0;
    height: 100% !important;
}

.dz-loop-media-video.dz-playing {
    opacity: 1;
}

.dz-loop-media-poster {
    z-index: 2;
}

img.dz-loop-media-poster {
    height: 100% !important;
}

.dz-loop-media-poster.dz-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Content Overlay & Dark Gradient */
.dz-loop-media-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 16px 20px;
    pointer-events: none;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
}

.dz-loop-media-overlay * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Featured Badge matching mockup */
.dz-loop-media-badge {
    background-color: #007446;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 8px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 116, 70, 0.35);
    line-height: 1;
}

/* Subtitle style */
.dz-loop-media-subtitle {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    word-break: break-word;
}

/* ═══════════════════════════════════════════════════
   Custom Product Video Player Styles
   ═══════════════════════════════════════════════════ */

.dz-product-video-player {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16/9;
    background-color: #000000;
}

.dz-player-poster,
.dz-player-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.dz-player-poster {
    z-index: 2;
}

.dz-player-poster.dz-hidden {
    opacity: 0;
    pointer-events: none;
}

.dz-player-video {
    z-index: 1;
    opacity: 0;
}

.dz-player-video.dz-playing {
    opacity: 1;
}

.dz-player-toggle-btn {
    position: absolute;
    bottom: 36px;
    right: 36px;
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dz-player-toggle-btn:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

.dz-player-toggle-btn svg {
    display: block;
    width: 68px;
    height: 44px;
}