/* ============================================
   GLOMAVIS POST TILES WIDGET
   ============================================ */

.glomavis-post-tiles {
    width: 100%;
    margin: 0 auto;
}

.glomavis-post-tiles-grid {
    display: grid;
    gap: 20px;
}

.glomavis-post-tile {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 400px;
    display: flex;
}

.glomavis-post-tile-link {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.glomavis-post-tile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.glomavis-post-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.glomavis-post-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 1;
}

.glomavis-post-tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glomavis-post-category {
    display: inline-block;
    padding: 6px 14px;
    background-color: #3b82f6;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.glomavis-post-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 56px;
}

.glomavis-post-title:hover {
    color: #3b82f6;
}

.glomavis-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.glomavis-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.glomavis-post-meta span::before {
    content: "•";
    margin-right: 5px;
}

.glomavis-post-meta span:first-child::before {
    content: none;
}

.glomavis-post-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 42px;
}

/* Card Style */
.glomavis-post-tiles-card .glomavis-post-tile {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: auto;
}

.glomavis-post-tiles-card .glomavis-post-tile-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.glomavis-post-tiles-card .glomavis-post-tile-image {
    position: relative;
    height: 250px;
    flex-shrink: 0;
}

.glomavis-post-tiles-card .glomavis-post-tile-overlay {
    display: none;
}

.glomavis-post-tiles-card .glomavis-post-tile-content {
    position: relative;
    background: #fff;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.glomavis-post-tiles-card .glomavis-post-category {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 0;
    align-self: flex-start;
}

.glomavis-post-tiles-card .glomavis-post-title {
    color: #1a1a1a;
    margin-top: 0;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: unset;
    max-height: none;
}

.glomavis-post-tiles-card .glomavis-post-meta {
    color: #666;
}

.glomavis-post-tiles-card .glomavis-post-meta span::before {
    color: #999;
}

.glomavis-post-tiles-card .glomavis-post-excerpt {
    color: #555;
    line-height: 1.7;
    -webkit-line-clamp: 3;
    max-height: 63px;
}

/* Minimal Style */
.glomavis-post-tiles-minimal .glomavis-post-tile-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
}

.glomavis-post-tiles-minimal .glomavis-post-category {
    background-color: transparent;
    padding: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

.glomavis-post-tiles-minimal .glomavis-post-title {
    font-size: 20px;
}

.glomavis-post-tiles-minimal .glomavis-post-excerpt {
    display: none;
}

/* Modern Style */
.glomavis-post-tiles-modern .glomavis-post-tile {
    border-radius: 12px;
}

.glomavis-post-tiles-modern .glomavis-post-tile-image img {
    border-radius: 12px;
}

.glomavis-post-tiles-modern .glomavis-post-category {
    border-radius: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glomavis-post-tiles-modern .glomavis-post-tile-overlay {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
}

/* Content Overlay Style */
.glomavis-post-tiles-content-overlay .glomavis-post-tile {
    border-radius: 0;
    height: 400px;
}

.glomavis-post-tiles-content-overlay .glomavis-post-tile-link {
    display: block;
}

.glomavis-post-tiles-content-overlay .glomavis-post-tile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glomavis-post-tiles-content-overlay .glomavis-post-tile-image img {
    border-radius: 0;
}

.glomavis-post-tiles-content-overlay .glomavis-post-tile-overlay {
    display: none;
}

.glomavis-post-tiles-content-overlay .glomavis-post-category {
    display: none;
}

.glomavis-post-tiles-content-overlay .glomavis-post-tile-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glomavis-post-tiles-content-overlay .glomavis-post-title {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: unset;
    max-height: none;
    margin-bottom: 5px;
}

.glomavis-post-tiles-content-overlay .glomavis-post-excerpt {
    display: none;
}

.glomavis-post-tiles-content-overlay .glomavis-post-meta {
    color: #666;
    font-size: 12px;
    gap: 12px;
    margin-bottom: 5px;
}

.glomavis-post-tiles-content-overlay .glomavis-post-meta span::before {
    color: #999;
}

.glomavis-post-tiles-content-overlay .glomavis-post-read-more {
    display: inline-block;
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.glomavis-post-tiles-content-overlay .glomavis-post-read-more::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.glomavis-post-tiles-content-overlay .glomavis-post-tile:hover .glomavis-post-read-more::after {
    margin-left: 10px;
}

.glomavis-post-tiles-content-overlay .glomavis-post-tile:hover .glomavis-post-read-more {
    color: #c0392b;
}

.glomavis-post-tiles-content-overlay .glomavis-post-tile:hover .glomavis-post-tile-content {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Read More Button */
.glomavis-post-read-more {
    display: none;
}

/* ============================================
   GLOMAVIS INSTAGRAM REELS WIDGET
   ============================================ */

.glomavis-instagram-reels {
    width: 100%;
}

.glomavis-instagram-reels-grid {
    display: grid;
    gap: 15px;
}

.glomavis-instagram-reel-item {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f0f0f0;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.glomavis-instagram-reel-item:hover {
    transform: scale(1.02);
}

.glomavis-instagram-reel-thumbnail {
    width: 100%;
    height: 100%;
}

.glomavis-instagram-reel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.glomavis-instagram-reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glomavis-instagram-reel-item:hover .glomavis-instagram-reel-overlay {
    opacity: 1;
}

.glomavis-instagram-reel-play-icon {
    margin-bottom: 20px;
}

.glomavis-instagram-reel-play-icon svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.glomavis-instagram-reel-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.glomavis-instagram-reel-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.glomavis-instagram-reel-stats svg {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.glomavis-instagram-error,
.glomavis-instagram-empty {
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .glomavis-instagram-reels-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   GLOMAVIS REVIEWS WIDGET
   ============================================ */

.glomavis-reviews {
    width: 100%;
}

.glomavis-reviews-grid {
    display: grid;
    gap: 20px;
}

.glomavis-reviews-list .glomavis-review-item {
    margin-bottom: 20px;
}

.glomavis-review-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glomavis-reviews-hover .glomavis-review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.glomavis-review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.glomavis-review-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.glomavis-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.glomavis-review-info {
    flex: 1;
}

.glomavis-reviewer-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.glomavis-reviewer-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 3px;
}

.glomavis-review-date {
    font-size: 12px;
    color: #aaa;
}

.glomavis-review-rating {
    font-size: 16px;
    color: #ffa500;
    margin-bottom: 15px;
}

.glomavis-review-text {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

.glomavis-reviews-list .glomavis-review-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.glomavis-reviews-list .glomavis-review-header {
    flex-direction: column;
    margin-bottom: 0;
    margin-right: 20px;
    min-width: 100px;
}

.glomavis-reviews-list .glomavis-review-content {
    flex: 1;
}

/* Reviews Carousel Layout */
.glomavis-reviews-widget {
    width: 100%;
    position: relative;
}

.glomavis-reviews-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.glomavis-reviews-carousel .glomavis-carousel-track {
    display: flex;
    gap: 20px;
    cursor: grab;
}

.glomavis-reviews-carousel .glomavis-carousel-track:active {
    cursor: grabbing;
}

.glomavis-reviews-carousel .glomavis-review-item {
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Reviews Carousel Arrows */
.glomavis-reviews-carousel .glomavis-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.glomavis-reviews-carousel .glomavis-carousel-arrow:hover:not(:disabled) {
    transform: translateY(-50%) !important;
}

.glomavis-reviews-carousel .glomavis-carousel-arrow:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.glomavis-reviews-carousel .glomavis-carousel-arrow svg {
    display: block;
}

/* Reviews Carousel Dots */
.glomavis-reviews-carousel .glomavis-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.glomavis-reviews-carousel .glomavis-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cccccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.glomavis-reviews-carousel .glomavis-carousel-dot.active {
    background: #333333;
    width: 12px;
    height: 12px;
}

.glomavis-reviews-carousel .glomavis-carousel-dot:hover {
    background: #666666;
}

/* Responsive */
@media (max-width: 768px) {
    .glomavis-reviews-grid {
        grid-template-columns: 1fr !important;
    }
    
    .glomavis-reviews-list .glomavis-review-item {
        flex-direction: column;
    }
    
    .glomavis-reviews-list .glomavis-review-header {
        flex-direction: row;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .glomavis-post-tiles-grid {
        grid-template-columns: 1fr !important;
    }
    
    .glomavis-post-tile {
        height: 350px !important;
    }
    
    .glomavis-post-tile-content {
        padding: 20px;
    }
    
    .glomavis-post-title {
        font-size: 20px;
    }
}

/* ============================================
   GLOMAVIS PRODUCT IMAGE WIDGET
   ============================================ */

/* Container - Force proper width */
.glomavis-widget-container {
    width: 100%;
    max-width: 100%;
    display: block;
    clear: both;
    overflow: visible;
    position: relative;
    padding-bottom: 20px; /* Add padding to container */
}

.glomavis-product-image-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

/* Main Image Wrapper */
.glomavis-main-image-wrapper {
    position: relative;
    width: 100%;
}

.glomavis-main-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.glomavis-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.glomavis-main-image.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

.glomavis-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    min-width: 100%;
    min-height: 100%;
}

/* Zoom functionality */
.glomavis-main-image-container[data-zoom="true"] .glomavis-main-image.active,
.glomavis-main-image-container[data-zoom="true"] .glomavis-main-image.active img {
    cursor: crosshair;
}

.glomavis-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.glomavis-main-image img {
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.glomavis-main-image.zooming img {
    transition: transform 0.05s ease-out;
}

/* Main Image Navigation Arrows */
.glomavis-main-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.glomavis-main-arrow:disabled {
    cursor: not-allowed;
}

.glomavis-main-arrow svg {
    display: block;
}

/* Thumbnails Carousel */
.glomavis-thumbnails-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.glomavis-thumbnails-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.glomavis-thumbnails {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}

.glomavis-thumbnail {
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.glomavis-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    min-width: 100%;
    min-height: 100%;
}

/* Thumbnail Navigation Arrows */
.glomavis-thumb-arrow {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
    margin-bottom: 5px; /* Align arrows with thumbnails */
}

.glomavis-thumb-arrow:disabled {
    cursor: not-allowed;
}

.glomavis-thumb-arrow svg {
    display: block;
}

/* Editor notice */
.glomavis-notice {
    padding: 20px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    text-align: center;
}

/* Force Elementor widget container to behave */
.elementor-widget-glomavis-product-image {
    width: 100%;
    position: relative;
    margin-bottom: 20px; /* Space after widget */
}

.elementor-widget-glomavis-product-image .elementor-widget-container {
    display: block;
    width: 100%;
    overflow: visible;
    position: relative;
    padding-bottom: 10px; /* Extra padding in Elementor container */
}

/* Responsive - Mobile Portrait (up to 767px) */
@media (max-width: 767px) {
    /* Force container to full width */
    .glomavis-widget-container {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        /* Bottom padding controlled by Elementor */
        float: none !important;
        clear: both !important;
    }
    
    /* Force widget to stack properly */
    .glomavis-product-image-widget {
        align-items: center;
        margin: 0 auto 25px auto !important; /* Increase bottom margin on mobile */
        clear: both !important;
        float: none !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 15px !important; /* More padding on mobile */
    }
    
    /* Main image wrapper mobile */
    .glomavis-main-image-wrapper {
        margin: 0 auto 15px auto; /* Increase spacing on mobile */
        clear: both;
        position: relative !important;
        display: block !important;
        width: 100% !important;
    }
    
    /* Thumbnails wrapper mobile */
    .glomavis-thumbnails-wrapper {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 15px !important; /* Increase bottom margin */
        padding-bottom: 20px !important; /* More padding on mobile */
        clear: both;
        position: relative !important;
        display: flex !important;
        width: 100% !important;
    }
    
    /* Thumbnails container mobile */
    /* Thumbnails mobile spacing - now controlled by Elementor */
    .glomavis-thumbnails-container {
        /* Removed hardcoded padding - use Elementor controls */
    }
    
    .glomavis-thumbnail {
        /* Removed hardcoded margin - use Elementor gap control */
    }
    
    /* Force Elementor column to stack */
    .elementor-widget-glomavis-product-image {
        position: relative !important;
        width: 100% !important;
        /* Margin controlled by Elementor */
        display: block !important;
        clear: both !important;
    }
    
    /* Target parent column */
    .elementor-column:has(.glomavis-product-image-widget) {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        /* Margin controlled by Elementor */
        position: relative !important;
        display: block !important;
    }
    
    /* Ensure section doesn't cause overlap */
    .elementor-section:has(.glomavis-product-image-widget) {
        position: relative !important;
        overflow: visible !important;
        padding-bottom: 20px !important; /* Add padding to section */
    }
    
    /* Fix inner section if exists */
    .elementor-inner-section:has(.glomavis-product-image-widget) {
        position: relative !important;
        display: block !important;
        padding-bottom: 20px !important;
    }
    
    /* Force row to stack */
    .elementor-row:has(.glomavis-product-image-widget) {
        display: block !important;
        flex-wrap: wrap !important;
        padding-bottom: 20px !important;
    }
}

/* Responsive - Tablet Portrait (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .glomavis-product-image-widget {
        align-items: flex-start;
        padding-bottom: 15px;
    }
    
    .glomavis-widget-container {
        width: 100%;
        max-width: 100%;
        /* Bottom padding controlled by Elementor */
    }
    
    .glomavis-thumbnails-wrapper {
        padding-bottom: 20px;
        margin-bottom: 15px;
    }
    
    .glomavis-main-image-wrapper {
        margin-bottom: 20px;
    }
}

/* Desktop (1025px and up) */
@media (min-width: 1025px) {
    .glomavis-product-image-widget {
        align-items: flex-start;
        padding-bottom: 15px;
    }
    
    .glomavis-thumbnails-wrapper {
        padding-bottom: 15px;
    }
    
    .glomavis-main-image-wrapper {
        margin-bottom: 20px;
    }
}

/* Additional Mobile Fixes for Common Elementor Layouts */
@media (max-width: 767px) {
    /* Two column layout fix */
    .elementor-column-gap-default > .elementor-column > .elementor-element-populated:has(.glomavis-product-image-widget) {
        padding: 10px 10px 20px 10px !important; /* Add bottom padding */
    }
    
    /* Remove negative margins that might cause overlap */
    .elementor-widget-glomavis-product-image .elementor-widget-container {
        margin: 0 !important;
        /* Padding controlled by Elementor */
    }
    
    /* Force proper spacing after widget */
    .glomavis-widget-container::after {
        content: "";
        display: block;
        clear: both;
        height: 0; /* Height controlled by Elementor spacing */
    }
    
    /* Prevent absolute positioning from parent */
    .elementor-column:has(.glomavis-product-image-widget) .elementor-element-populated {
        position: relative !important;
        padding-bottom: 20px !important;
    }
    
    /* Fix if widget is in a flexbox container */
    .elementor-widget-wrap:has(.glomavis-product-image-widget) {
        display: block !important;
        width: 100% !important;
        padding-bottom: 20px !important;
    }
}

/* Very small screens (below 480px) */
@media (max-width: 480px) {
    .glomavis-widget-container {
        padding: 0 5px 0 5px !important; /* Only horizontal padding, bottom controlled by Elementor */
    }
}

/* ========================================
   Product Carousel Widget Styles
   ======================================== */

.glomavis-product-carousel-widget {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: visible; /* Changed from hidden to visible for arrows */
}

.glomavis-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.glomavis-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    align-items: stretch;
}

.glomavis-carousel-slide {
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    box-sizing: border-box;
    transform: none !important;
    position: relative;
}

.glomavis-carousel-slide:hover {
    transform: none !important;
}

.glomavis-carousel-slide > * {
    width: 100%;
    box-sizing: border-box;
    transform: none !important;
}

.glomavis-carousel-slide:hover > * {
    transform: none !important;
}

/* Product Card */
.glomavis-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    transform: translate3d(0, 0, 0) !important; /* Force GPU acceleration and lock position */
    position: relative;
    will-change: box-shadow, border-color; /* Only allow these properties to change */
}

/* Glassmorphism Effect */
.glomavis-product-card.glassmorphism {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px) saturate(100%);
    -webkit-backdrop-filter: blur(10px) saturate(100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glomavis-product-card:hover {
    transform: translate3d(0, 0, 0) !important; /* Keep card in exact place on hover */
}

/* Override any Elementor or theme styles that might cause movement */
.glomavis-carousel-slide .glomavis-product-card {
    transform: translate3d(0, 0, 0) !important;
}

.glomavis-carousel-slide .glomavis-product-card:hover {
    transform: translate3d(0, 0, 0) !important;
}

/* Override WooCommerce product styles */
.woocommerce .glomavis-product-card,
.woocommerce .glomavis-product-card:hover,
.glomavis-carousel-slide:hover .glomavis-product-card {
    transform: translate3d(0, 0, 0) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    top: 0 !important;
}

/* Prevent ALL children from having transforms */
.glomavis-product-card *,
.glomavis-product-card *:hover {
    transform: none !important;
}

/* But allow only images to transform for zoom effect */
.glomavis-product-image img {
    transform: none; /* Will be overridden by inline styles if zoom is enabled */
}

/* Product Image */
.glomavis-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio */
    overflow: hidden;
    margin-bottom: 15px;
}

.glomavis-product-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glomavis-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Sale Badge */
.glomavis-sale-badge {
    position: absolute;
    /* Position, padding, border-radius, colors, and typography controlled by Elementor */
    text-transform: uppercase;
    z-index: 2;
}

/* Product Content */
.glomavis-product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    transform: none !important;
}

.glomavis-product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    transform: none !important;
}

.glomavis-product-title a {
    text-decoration: none;
    transition: color 0.3s ease;
    transform: none !important;
    display: block;
}

.glomavis-product-rating {
    margin-bottom: 8px;
    transform: none !important;
}

.glomavis-product-rating .star-rating {
    font-size: 14px;
}

.glomavis-product-price {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    transform: none !important;
}

.glomavis-product-price del {
    opacity: 0.6;
    font-weight: normal;
    font-size: 14px;
    margin-right: 5px;
}

.glomavis-product-price ins {
    text-decoration: none;
}

.glomavis-product-actions {
    margin-top: auto;
    transform: none !important;
    display: flex;
    width: 100%;
}

/* Button visibility control - Fix pointer events to allow hover on entire card */
.glomavis-product-actions.button-visibility-hover .glomavis-cart-button,
.glomavis-product-image.button-position-over_image .glomavis-product-actions.button-visibility-hover .glomavis-cart-button,
.glomavis-product-image.button-position-over_image_center .glomavis-product-actions.button-visibility-hover .glomavis-cart-button {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.glomavis-product-card:hover .glomavis-product-actions.button-visibility-hover .glomavis-cart-button,
.glomavis-carousel-slide:hover .glomavis-product-actions.button-visibility-hover .glomavis-cart-button {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ensure card hover area covers the whole card */
.glomavis-product-card,
.glomavis-carousel-slide {
    position: relative;
}

/* Button positioning over image */
.glomavis-product-image {
    position: relative;
}

.glomavis-product-image.button-position-over_image .glomavis-product-actions,
.glomavis-product-image.button-position-over_image_center .glomavis-product-actions {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 15px;
    z-index: 5;
    margin-top: 0;
}

.glomavis-product-image.button-position-over_image .glomavis-product-actions {
    bottom: 15px;
}

.glomavis-product-image.button-position-over_image_center .glomavis-product-actions {
    top: 50%;
    transform: translateY(-50%);
}

.glomavis-product-actions .button {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

.glomavis-product-actions .button:hover {
    transform: none !important;
}

/* Custom Cart Button Styles */
.glomavis-cart-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

/* Button width handling */
.glomavis-product-actions.button-width-full .glomavis-cart-button {
    width: 100%;
}

.glomavis-product-actions.button-width-auto .glomavis-cart-button {
    width: auto;
}

/* Custom width is handled by Elementor inline styles on .glomavis-cart-button */

/* Fix for button alignment when width is not 100% */
.glomavis-product-actions {
    flex-wrap: wrap;
}

/* Default full width, but allow inline styles to override */
.glomavis-product-actions .glomavis-cart-button:not([style*="width"]):not([style*="max-width"]) {
    width: 100%;
}

.glomavis-cart-button.icon-left {
    flex-direction: row;
}

.glomavis-cart-button.icon-right {
    flex-direction: row-reverse;
}

.glomavis-cart-button.icon-only {
    padding: 10px !important;
    width: auto;
    min-width: 40px;
}

.glomavis-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.glomavis-cart-icon svg {
    display: block;
}

.glomavis-cart-text {
    line-height: 1;
}

/* Loading state */
.glomavis-cart-button.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Out of stock */
.glomavis-cart-button.product_out_of_stock {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Carousel Arrows */
.glomavis-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    outline: none;
}

.glomavis-carousel-prev {
    left: -25px;
}

.glomavis-carousel-next {
    right: -25px;
}

.glomavis-carousel-arrow:hover:not(:disabled) {
    transform: translateY(-50%) !important; /* Keep in place on hover */
}

.glomavis-carousel-arrow:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
    pointer-events: none; /* Prevent interaction when disabled */
}

.glomavis-carousel-arrow svg {
    display: block;
}

/* Carousel Dots */
.glomavis-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.glomavis-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cccccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.glomavis-carousel-dot.active {
    background: #333333;
    width: 12px;
    height: 12px;
}

.glomavis-carousel-dot:hover {
    background: #666666;
}

/* Editor notice */
.glomavis-notice {
    padding: 20px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    text-align: center;
}

/* Force Elementor widget container to behave */
.elementor-widget-glomavis-product-carousel {
    width: 100%;
    max-width: 100%;
    position: relative;
}

.elementor-widget-glomavis-product-carousel .elementor-widget-container {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: relative;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .glomavis-carousel-prev {
        left: 10px;
    }
    
    .glomavis-carousel-next {
        right: 10px;
    }
    
    .glomavis-product-title {
        font-size: 15px;
    }
    
    .glomavis-product-price {
        font-size: 16px;
    }
}

/* Quick View Button */
.glomavis-quick-view-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: 40px;
    min-height: 40px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 8px;
    cursor: pointer;
}

.glomavis-quick-view-button:hover {
    background-color: #000;
    color: #fff;
}

.glomavis-quick-view-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
    transition: all 0.3s ease;
}

.glomavis-quick-view-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

/* Quick View Popup */
.glomavis-quick-view-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.glomavis-quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.glomavis-quick-view-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    overflow: auto;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -45%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.glomavis-quick-view-content.glassmorphism {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glomavis-quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.glomavis-quick-view-close:hover {
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.glomavis-quick-view-close svg {
    width: 18px;
    height: 18px;
    stroke: #333;
    transition: all 0.3s ease;
}

.glomavis-quick-view-loading {
    text-align: center;
    padding: 60px 20px;
}

.glomavis-quick-view-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glomavis-quick-view-product {
    display: flex;
    gap: 40px;
}

.glomavis-quick-view-images {
    flex: 1;
}

.glomavis-quick-view-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.glomavis-quick-view-summary {
    flex: 1;
}

.glomavis-quick-view-summary .product-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    line-height: 1.3;
}

.glomavis-quick-view-summary .product-rating {
    margin-bottom: 15px;
}

.glomavis-quick-view-summary .product-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.glomavis-quick-view-summary .product-short-description {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.glomavis-quick-view-summary .product-add-to-cart {
    margin-bottom: 20px;
}

.glomavis-quick-view-summary .glomavis-view-full-details {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.glomavis-quick-view-summary .glomavis-view-full-details:hover {
    background: #e0e0e0;
}

body.glomavis-quick-view-open {
    overflow: hidden;
}

/* WooCommerce Notices - Force Hide All Messages */
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
div.woocommerce-message,
div.woocommerce-error,
div.woocommerce-info {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide notices wrapper */
.woocommerce > .woocommerce-notices-wrapper,
.woocommerce-notices-wrapper {
    display: none !important;
    visibility: hidden !important;
}

/* Additional specific selectors */
.glomavis-carousel-container ~ .woocommerce-notices-wrapper,
.glomavis-carousel-container ~ .woocommerce-message,
.glomavis-carousel-container ~ .woocommerce-error,
.glomavis-carousel-container ~ .woocommerce-info,
body .woocommerce-message,
body .woocommerce-error,
body .woocommerce-info {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Styling for notices (if ever enabled by user) */
.show-woocommerce-notices .woocommerce-notices-wrapper {
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.show-woocommerce-notices .woocommerce-message,
.show-woocommerce-notices .woocommerce-error,
.show-woocommerce-notices .woocommerce-info {
    position: relative;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    left: auto !important;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
    align-items: center;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.show-woocommerce-notices .woocommerce-message {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.show-woocommerce-notices .woocommerce-error {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.show-woocommerce-notices .woocommerce-info {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.show-woocommerce-notices .woocommerce-message::before,
.show-woocommerce-notices .woocommerce-error::before,
.show-woocommerce-notices .woocommerce-info::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.show-woocommerce-notices .woocommerce-message a.button,
.show-woocommerce-notices .woocommerce-error a.button,
.show-woocommerce-notices .woocommerce-info a.button {
    margin-left: auto;
    padding: 8px 16px;
    background: currentColor;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.show-woocommerce-notices .woocommerce-message a.button:hover,
.show-woocommerce-notices .woocommerce-error a.button:hover,
.show-woocommerce-notices .woocommerce-info a.button:hover {
    opacity: 0.8;
}

/* Responsive Quick View */
@media (max-width: 767px) {
    .glomavis-quick-view-content {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
    }
    
    .glomavis-quick-view-product {
        flex-direction: column;
        gap: 20px;
    }
    
    .glomavis-quick-view-summary .product-title {
        font-size: 20px;
    }
    
    .glomavis-quick-view-summary .product-price {
        font-size: 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .glomavis-carousel-container {
        padding: 10px 0;
    }
    
    .glomavis-carousel-prev {
        left: 5px;
    }
    
    .glomavis-carousel-next {
        right: 5px;
    }
    
    .glomavis-product-title {
        font-size: 14px;
    }
    
    .glomavis-product-price {
        font-size: 16px;
    }
    
    .glomavis-sale-badge {
        /* All properties controlled by Elementor responsive controls */
    }
}

/* ========================================
   Product Tabs Widget Styles
   ======================================== */

.glomavis-product-tabs-widget {
    width: 100%;
    max-width: 100%;
}

/* Tabs Navigation */
.glomavis-tabs-navigation,
.glomavis-product-tabs-widget .wc-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.glomavis-tabs-navigation li,
.glomavis-product-tabs-widget .wc-tabs li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.glomavis-tabs-navigation li a,
.glomavis-product-tabs-widget .wc-tabs li a {
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.glomavis-tabs-navigation li.active a,
.glomavis-product-tabs-widget .wc-tabs li.active a {
    position: relative;
    z-index: 1;
    margin-bottom: -1px;
}

/* Tab Content */
.glomavis-tabs-content-wrapper {
    width: 100%;
}

.glomavis-tab-content,
.glomavis-product-tabs-widget .woocommerce-Tabs-panel {
    display: none;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.glomavis-tab-content.active,
.glomavis-product-tabs-widget .woocommerce-Tabs-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WooCommerce Reviews Section */
.glomavis-product-tabs-widget #reviews {
    width: 100%;
}

.glomavis-product-tabs-widget #comments {
    margin-bottom: 30px;
}

.glomavis-product-tabs-widget .commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.glomavis-product-tabs-widget .commentlist .review,
.glomavis-product-tabs-widget .commentlist .comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
    list-style: none;
}

.glomavis-product-tabs-widget .commentlist .review:last-child,
.glomavis-product-tabs-widget .commentlist .comment:last-child {
    border-bottom: none;
}

.glomavis-product-tabs-widget .comment_container,
.glomavis-product-tabs-widget .comment-text {
    padding: 0;
    margin: 0;
}

.glomavis-product-tabs-widget .star-rating {
    display: inline-flex;
    position: relative;
    font-size: 14px;
    line-height: 1;
    color: #ffa500;
    margin-bottom: 10px;
}

.glomavis-product-tabs-widget .star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.glomavis-product-tabs-widget .comment-text .meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.glomavis-product-tabs-widget .comment-text .description {
    margin-top: 10px;
    line-height: 1.6;
}

.glomavis-product-tabs-widget .woocommerce-noreviews {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Review Form Styles - FULL CONTROL */
.glomavis-product-tabs-widget #review_form_wrapper,
.glomavis-product-tabs-widget #review_form,
.glomavis-product-tabs-widget #respond,
.glomavis-product-tabs-widget #commentform,
.glomavis-product-tabs-widget .comment-form {
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Hide the dropdown rating selector - only use stars */
.glomavis-product-tabs-widget .comment-form-rating select,
.glomavis-product-tabs-widget .comment-form-rating select#rating,
.glomavis-product-tabs-widget #rating,
.glomavis-product-tabs-widget .comment-form-rating .select2-container,
.glomavis-product-tabs-widget select[name="rating"],
.glomavis-product-tabs-widget #respond select#rating,
.glomavis-product-tabs-widget #commentform select,
.glomavis-product-tabs-widget .comment-form select,
.woocommerce-Tabs-panel--reviews select#rating,
#reviews select#rating,
.glomavis-product-tabs-widget p.comment-form-rating select {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Keep the rating label visible */
.glomavis-product-tabs-widget .comment-form-rating {
    margin-bottom: 20px !important;
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.glomavis-product-tabs-widget .comment-reply-title,
.glomavis-product-tabs-widget #reply-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: block !important;
}

.glomavis-product-tabs-widget .comment-form-comment,
.glomavis-product-tabs-widget .comment-form-author,
.glomavis-product-tabs-widget .comment-form-email,
.glomavis-product-tabs-widget #commentform .comment-form-author,
.glomavis-product-tabs-widget #commentform .comment-form-email,
.glomavis-product-tabs-widget #commentform .comment-form-comment {
    margin-bottom: 20px !important;
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.glomavis-product-tabs-widget .comment-form-rating label,
.glomavis-product-tabs-widget .comment-form-comment label,
.glomavis-product-tabs-widget .comment-form-author label,
.glomavis-product-tabs-widget .comment-form-email label,
.glomavis-product-tabs-widget #commentform label {
    display: block !important;
    margin-bottom: 8px;
    font-weight: 600;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
    color: #333;
    font-size: 14px;
}

.glomavis-product-tabs-widget .comment-form-rating select,
.glomavis-product-tabs-widget .comment-form-rating select#rating,
.glomavis-product-tabs-widget #rating {
    display: block !important;
    width: 100% !important;
    max-width: 300px !important;
    padding: 10px 15px !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #333 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
    cursor: pointer !important;
    height: auto !important;
    min-height: 40px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.glomavis-product-tabs-widget .comment-form-comment textarea,
.glomavis-product-tabs-widget .comment-form-author input,
.glomavis-product-tabs-widget .comment-form-author input[type="text"],
.glomavis-product-tabs-widget .comment-form-email input,
.glomavis-product-tabs-widget .comment-form-email input[type="email"],
.glomavis-product-tabs-widget #commentform textarea,
.glomavis-product-tabs-widget #commentform input[type="text"],
.glomavis-product-tabs-widget #commentform input[type="email"],
.glomavis-product-tabs-widget #author,
.glomavis-product-tabs-widget #email,
.glomavis-product-tabs-widget #comment {
    display: block !important;
    width: 100% !important;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    visibility: visible !important;
    opacity: 1 !important;
    background: #fff;
    background-color: #fff;
    color: #333;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
    cursor: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    height: auto !important;
    min-height: 44px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.glomavis-product-tabs-widget .comment-form-comment textarea:focus,
.glomavis-product-tabs-widget .comment-form-author input:focus,
.glomavis-product-tabs-widget .comment-form-email input:focus,
.glomavis-product-tabs-widget .comment-form-rating select:focus,
.glomavis-product-tabs-widget #commentform input:focus,
.glomavis-product-tabs-widget #commentform textarea:focus,
.glomavis-product-tabs-widget #commentform select:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    border-color: #0073aa;
    background: #fff;
}

.glomavis-product-tabs-widget .comment-form-comment textarea,
.glomavis-product-tabs-widget #commentform textarea,
.glomavis-product-tabs-widget #comment {
    min-height: 120px !important;
    resize: vertical !important;
}

.glomavis-product-tabs-widget .form-submit {
    margin-top: 20px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.glomavis-product-tabs-widget .form-submit input[type="submit"],
.glomavis-product-tabs-widget .form-submit .submit,
.glomavis-product-tabs-widget #commentform input[type="submit"] {
    display: inline-block !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
    font-style: inherit !important;
}

/* Additional Information Table */
.glomavis-product-tabs-widget .woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
}

.glomavis-product-tabs-widget .woocommerce-product-attributes tr {
    border-bottom: 1px solid #e5e5e5;
}

.glomavis-product-tabs-widget .woocommerce-product-attributes th,
.glomavis-product-tabs-widget .woocommerce-product-attributes td {
    padding: 12px;
    text-align: left;
}

.glomavis-product-tabs-widget .woocommerce-product-attributes th {
    font-weight: 600;
    width: 30%;
}

/* Responsive Tabs */
@media (max-width: 767px) {
    .glomavis-tabs-navigation,
    .glomavis-product-tabs-widget .wc-tabs {
        flex-direction: column;
    }
    
    .glomavis-tabs-navigation li,
    .glomavis-product-tabs-widget .wc-tabs li {
        width: 100%;
    }
    
    .glomavis-tabs-navigation li a,
    .glomavis-product-tabs-widget .wc-tabs li a {
        width: 100%;
        border: 1px solid #e5e5e5;
        margin-bottom: 5px;
        border-radius: 4px;
    }
    
    .glomavis-tabs-navigation li.active a,
    .glomavis-product-tabs-widget .wc-tabs li.active a {
        margin-bottom: 15px;
    }
    
    .glomavis-product-tabs-widget .comment-form-rating select,
    .glomavis-product-tabs-widget .comment-form-author input,
    .glomavis-product-tabs-widget .comment-form-email input {
        max-width: 100% !important;
    }
}

/* Review Form Styles - FORCE VISIBILITY */
#review_form_wrapper,
#review_form,
#respond,
#commentform {
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.comment-form-rating {
    margin-bottom: 20px !important;
    display: block !important;
    width: 100% !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.comment-form-rating label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    visibility: visible !important;
    pointer-events: none !important;
    color: #333 !important;
}

.comment-form-rating select,
.comment-form-rating select#rating {
    display: block !important;
    width: 100% !important;
    max-width: 300px !important;
    padding: 10px 15px !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #333 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
    cursor: pointer !important;
    height: auto !important;
    min-height: 40px !important;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
#commentform .comment-form-author,
#commentform .comment-form-email,
#commentform .comment-form-comment {
    margin-bottom: 20px !important;
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
#commentform label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
    color: #333 !important;
    font-size: 14px !important;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-author input[type="text"],
.comment-form-email input,
.comment-form-email input[type="email"],
#commentform textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#author,
#email,
#comment {
    display: block !important;
    width: 100% !important;
    padding: 10px 15px !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #333 !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
    cursor: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    height: auto !important;
    min-height: 44px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-rating select:focus,
#commentform input:focus,
#commentform textarea:focus,
#commentform select:focus {
    outline: 2px solid #0073aa !important;
    outline-offset: 2px !important;
    border-color: #0073aa !important;
    background: #fff !important;
}

.comment-form-comment textarea,
#commentform textarea,
#comment {
    min-height: 120px !important;
    resize: vertical !important;
}

.form-submit {
    margin-top: 20px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.form-submit input[type="submit"],
.form-submit .submit,
#commentform input[type="submit"] {
    display: inline-block !important;
    
    cursor: pointer !important;
    transition: background 0.3s ease, color 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Star Rating Display */
.star-rating {
    display: inline-flex;
    position: relative;
    font-size: 14px;
    line-height: 1;
    color: #ffa500;
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

/* Review List */
.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.commentlist .review {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.commentlist .review:last-child {
    border-bottom: none;
}

.comment_container {
    padding: 0;
}

.comment-text {
    padding: 0;
}

.comment-text .meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.comment-text .description {
    margin-top: 10px;
    line-height: 1.6;
}

.woocommerce-noreviews {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Additional Information Table */
.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-product-attributes tr {
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
    padding: 12px;
    text-align: left;
}

.woocommerce-product-attributes th {
    font-weight: 600;
    width: 30%;
}

/* Responsive Tabs */
@media (max-width: 767px) {
    .glomavis-tabs-navigation {
        flex-direction: column;
    }
    
    .glomavis-tab-title {
        width: 100%;
        border: 1px solid #e5e5e5;
        margin-bottom: 5px;
        border-radius: 4px;
    }
    
    .glomavis-tab-title.active {
        margin-bottom: 15px;
    }
    
    .comment-form-rating select,
    .comment-form-author input,
    .comment-form-email input {
        max-width: 100% !important;
    }
}

/* ========================================
   Glomavis Custom Shape Dividers
   ======================================== */

/* Elementor applies color to .elementor-shape-fill class - this is handled by Elementor's core CSS */
/* No custom CSS needed - Elementor automatically styles shapes with class="elementor-shape-fill" */

/* ========================================
   GLOMAVIS REVIEW FORM WIDGET
   ======================================== */

.glomavis-review-form-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.glomavis-review-form-container[data-display-type="inline"] {
    max-width: 800px;
}

.glomavis-review-form-container[data-display-type="popup"] {
    max-width: 100%;
}

/* Popup Trigger Button */
.glomavis-review-popup-trigger {
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #2271b1;
    color: #fff;
    display: inline-block;
}

.glomavis-review-popup-trigger:hover {
    opacity: 0.9;
}

/* Popup Overlay */
.glomavis-review-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Popup Container */
.glomavis-review-popup {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: glomavis-popup-slide-in 0.3s ease-out;
}

@keyframes glomavis-popup-slide-in {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup Close Button */
.glomavis-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.glomavis-popup-close:hover {
    background: #e0e0e0;
}

.glomavis-popup-close svg {
    width: 24px;
    height: 24px;
    color: #333;
    display: block;
}

/* Popup Content */
.glomavis-popup-content {
    padding: 30px;
}

.glomavis-review-form-wrapper {
    position: relative;
}

.glomavis-review-form-title {
    margin-bottom: 15px;
}

.glomavis-review-form-description {
    margin-bottom: 25px;
    line-height: 1.6;
}

.glomavis-review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glomavis-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glomavis-form-row.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.glomavis-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glomavis-form-label {
    display: block;
    font-weight: 500;
}

.glomavis-form-label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.glomavis-form-input,
.glomavis-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.glomavis-form-input:focus,
.glomavis-form-textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.glomavis-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Star Rating */
.glomavis-rating-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.glomavis-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.glomavis-rating-input input[type="radio"] {
    display: none;
}

.glomavis-rating-input label {
    cursor: pointer;
    font-size: 30px;
    color: #ddd;
    transition: color 0.2s ease;
}

/* When a star is checked, that star and all following stars (to the left visually) become gold */
.glomavis-rating-input input[type="radio"]:checked ~ label {
    color: #ffc107;
}

/* Hover: light up hovered star and all following stars */
.glomavis-rating-input label:hover,
.glomavis-rating-input label:hover ~ label {
    color: #ffc107;
}

/* Old class name for backward compatibility */
.glomavis-rating-stars {
    display: flex;
    gap: 5px;
    direction: ltr;
}

.glomavis-rating-stars input[type="radio"] {
    display: none;
}

.glomavis-rating-stars label {
    cursor: pointer;
    font-size: 30px;
    color: #ddd;
    transition: color 0.2s ease;
}

.glomavis-rating-stars input[type="radio"]:checked ~ label {
    color: #ffc107;
}

.glomavis-rating-stars label:hover,
.glomavis-rating-stars label:hover ~ label {
    color: #ffc107;
}

/* File Upload */
.glomavis-file-upload {
    position: relative;
    display: inline-block;
}

.glomavis-file-input {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.glomavis-file-label {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glomavis-file-label:hover {
    background: #e9e9e9;
    border-color: #999;
}

.glomavis-file-name {
    margin-left: 10px;
    color: #666;
    font-size: 14px;
}

/* Submit Button */
.glomavis-submit-button {
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.glomavis-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.glomavis-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.glomavis-review-form-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.glomavis-review-form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.glomavis-review-form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.glomavis-review-form-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loader */
.glomavis-form-loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.glomavis-form-loader.active {
    display: flex;
}

.glomavis-loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: glomavis-spin 1s linear infinite;
}

@keyframes glomavis-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 767px) {
    .glomavis-form-row.two-columns {
        grid-template-columns: 1fr;
    }
    
    .glomavis-rating-stars label {
        font-size: 24px;
    }
    
    .glomavis-submit-button {
        width: 100%;
        align-self: stretch;
    }
}
