/*
Theme Name:   world of games
Theme URI:    https://taraboot.com/
Description:  Child theme for world-of-games
Author:       ترابط
Author URI:   https://taraboot.com/
Template:     astra
Version:      1.0.0
*/
@import url("../astra/style.css");


.elementor-icon:hover {
    color: #69727d;
    background: #5CC3EB;
    padding: 4px;
    border-radius: 5px;
}

.elementor-slides-wrapper.elementor-main-swiper.swiper {
    border-radius: 16px 16px 16px 16px;
}

img.swiper-slide-image {
    width: 100%;
    height: 400px !important;
    object-fit: cover !important;
}

.elementor-image-carousel-wrapper.swiper.swiper-initialized.swiper-horizontal.swiper-pointer-events.swiper-backface-hidden {
    padding-bottom: 0px !important;
}

.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
    margin-bottom: 14px;
}

img.ag-sub-icon {
    border-radius: 8px !important;

}

img.ag-popup-game-thumb {
    border-radius: 50% !important;
}

/* Container for the grid */
.ag-product-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    font-family: 'Inter', sans-serif;
}

@media(max-width: 768px) {

    .ag-product-grid-container,
    .ag-offers-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding-bottom: 15px;
        /* Space for scrollbar */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        grid-template-columns: none !important;
    }

    .ag-product-grid-container .ag-product-card,
    .ag-offers-grid .ag-offer-card {
        min-width: 280px;
        max-width: 280px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    /* Hide Scrollbar for cleaner look */
    .ag-product-grid-container::-webkit-scrollbar,
    .ag-offers-grid::-webkit-scrollbar {
        display: none;
    }

    .ag-price-badge {
        width: 40px !important;
        height: 24px !important;
        font-size: 12px !important;
    }
}

/* Card Style */
.ag-product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.ag-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background-color: #5cc3eb;
}

/* Header */
.ag-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

/* Hover Effects Details */
.ag-product-card:hover .ag-header-right i,
.ag-product-card:hover .ag-main-name {
    color: #fff !important;
}

.ag-product-card:hover .ag-price-badge {
    background-color: #fff !important;
}

.ag-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ag-sub-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    /* Slightly rounded square */
    object-fit: cover;
}

.ag-cat-info {
    display: flex;
    flex-direction: column;
}

.ag-sub-name {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.2;
}

.ag-main-name {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.ag-header-right i {
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.ag-header-right i:hover {
    color: #ff4545;
}

/* Visual / Gallery */
.ag-card-visual-link {
    display: block;
    /* Ensure anchor wraps div correctly */
    text-decoration: none;
}

.ag-card-visual {
    width: 100%;
    height: 156px;
    /* Fixed height */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f5f5f5;
    position: relative;
}

.ag-gallery-track {
    display: flex;
    height: 100%;
    width: 100%;
    /* Ensure width is constrained */
}

.ag-gallery-img {
    min-width: 100%;
    /* Take full width of card */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Hover Slideshow Effect */
/* When hovering the card, cycle the track */
.ag-product-card:hover .ag-gallery-track,
.ag-offer-card:hover .ag-gallery-track {
    animation: agSlideshow 2s step-end infinite;
}

@keyframes agSlideshow {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-100%);
    }

    /* You can add more steps here if you have more than 2 images always, e.g. 
       0% { transform: translateX(0); }
       33% { transform: translateX(-100%); }
       66% { transform: translateX(-200%); } 
       But since we don't know count, 2-step is safe default or needs JS for dynamic steps.
       For user requirement "1 sec per image", 2s total for 2 images is correct.
    */
}

.ag-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    /* Prevent squishing */
}

/* Product Name */
.ag-product-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ag-product-title a {
    text-decoration: none;
    color: #000;
}

/* Tags */
.ag-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.ag-tag {
    background: #f0f2f5;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Price Section */
.ag-price-box {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    flex-wrap: wrap;
}

/* Current Price */
.ag-price-current {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #000000;
}

.ag-price-current .amount {
    color: #000000;
}

/* Badge */
.ag-price-badge {
    width: 53px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #64D4FF;
    color: #000000;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    border-radius: 8px;
    padding: 0;
}

/* Old Price */
.ag-price-old {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
}

.ag-price-old del {
    text-decoration: line-through;
    color: #000000;
}

.ag-price-old .amount {
    color: #000000;
}

/* Hide Currency Symbol (EGP) */
.ag-price-box .woocommerce-Price-currencySymbol {
    display: none;
}

/* Removed: .ag-price-main, .ag-discount-info, .ag-price-diff as they are deprecated in new layout */






/* =========================================
   SHORTCODE STYLES (Moved from functions.php)
   ========================================= */

/* --- ag_games_grid --- */
.ag-games-grid-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    padding: 20px 0;
    width: 100%;
    max-width: 100%;
}

.ag-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.ag-game-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background-color: #f0f0f0;
    margin-bottom: 8px;
    /* Spacing between image and text */
}

.ag-game-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ag-game-item:hover .ag-game-circle {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ag-game-item:hover .ag-game-circle img {
    transform: scale(1.1);
}

.ag-game-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    /* Regular */
    font-style: normal;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0%;
    text-align: center;
    color: #333;
    max-width: 90px;
    /* Slightly wider than image specifically for text flow */
    word-wrap: break-word;
}

.ag-game-more .ag-game-circle {
    background-color: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.ag-more-icon {
    font-size: 24px;
    /* Scaled down for 80px circle */
    font-weight: bold;
    line-height: 1;
    margin-bottom: 2px;
}

.ag-more-text {
    font-size: 10px;
    color: #ccc;
    line-height: 1.2;
}

/* Responsive adjustments */
@media(max-width: 1024px) {
    .ag-games-grid-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media(max-width: 768px) {
    .ag-games-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(max-width: 480px) {
    .ag-games-grid-container {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .ag-game-circle {
        width: 70px;
        height: 70px;
    }
}

/* --- ag_latest_games_grid --- */
.ag-latest-games-grid-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px 0;
    width: 100%;
    max-width: 100%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    scrollbar-width: none;
    /* Firefox: hide scrollbar */
    cursor: grab;
    /* Cursor indicates draggable */
    user-select: none;
    /* Prevent text selection while dragging */
}

.ag-latest-games-grid-container.active {
    cursor: grabbing;
    scroll-snap-type: none;
    /* Disable snap while dragging for smoothness */
}

/* Hide scrollbar for Chrome/Safari */
.ag-latest-games-grid-container::-webkit-scrollbar {
    display: none;
}

.ag-latest-games-grid-container .ag-game-item {
    flex: 0 0 27%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    -webkit-user-drag: none;
    /* Prevent default image dragging */
}

.ag-latest-games-grid-container .ag-game-item img {
    pointer-events: none;
    /* Prevent image drag interactions interfering with scroll */
}

.ag-latest-games-grid-container .ag-game-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    color: #FFFFFF;
    margin-top: 8px;
    text-align: center;
    line-height: 1.2;
}

/* Responsive */
@media(max-width: 768px) {
    .ag-latest-games-grid-container .ag-game-item {
        flex: 0 0 40%;
    }
}

/* --- ag_search_bar --- */
.ag-search-bar-wrapper {
    display: flex;
    align-items: center;
    background-color: #ecf0f3;
    border-radius: 16px;
    padding: 0 20px;
    width: 100%;
    max-width: 1016px;
    height: 64px;
    margin: 0 auto;
    cursor: pointer;
    transition: background 0.3s;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    opacity: 1;
}

.ag-search-bar-wrapper:hover {
    background-color: #e2e6ea;
}

.ag-menu-btn {
    background-color: #64d4ff;
    color: #000000;
    border-radius: 30px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 20px;
    white-space: nowrap;
}

.ag-burger-line {
    display: block;
    height: 2px;
    width: 14px;
    background-color: #000000;
    border-radius: 1px;
}

.ag-search-text {
    flex-grow: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.ag-search-icon {
    padding-left: 15px;
}

/* Popup Overlay & Content */
.ag-search-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dimmed background */
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    /* Center visually */
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.ag-search-popup-overlay.ag-open {
    display: flex;
    opacity: 1;
}

.ag-search-popup-content {
    background: #000;
    /* Black background */
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    /* Manage internal scroll */
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    font-family: 'Roboto', sans-serif;
    color: #fff;
}

/* Close Button */
.ag-popup-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 30px;
    height: 30px;
    background: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
}

@media(max-width: 768px) {
    .ag-popup-close-btn {
        right: auto;
        left: 20px;
        top: 20px;
    }
}

.ag-popup-close-btn span {
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

/* Header Search Input */
.ag-popup-header {
    margin-bottom: 20px;
}

.ag-popup-search-box {
    position: relative;
    width: 100%;
}

.ag-popup-search-input {
    width: 100% !important;
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    height: 55px !important;
    padding: 0 50px 0 20px !important;
    color: #fff !important;
    font-size: 16px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.ag-popup-search-input:focus {
    border-color: #555;
}

.ag-popup-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    opacity: 0.7;
}

/* Alphabet Filter */
.ag-alphabet-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 10px;
    flex-wrap: wrap;
    gap: 5px;
}

.ag-char-filter {
    color: #888;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
    text-transform: uppercase;
}

.ag-char-filter:hover,
.ag-char-filter.active {
    color: #fff;
}

/* Scrollable Body */
.ag-popup-body {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
    /* Space for scrollbar */
}

/* Custom Scrollbar */
.ag-popup-body::-webkit-scrollbar {
    width: 6px;
}

.ag-popup-body::-webkit-scrollbar-track {
    background: #111;
    border-radius: 3px;
}

.ag-popup-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

/* Popular Games Section */
.ag-popular-section {
    background-color: #0d0d0d;
    /* Slightly lighter black section */
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #222;
}

.ag-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ag-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.ag-nav-arrows {
    display: flex;
    gap: 10px;
}

.ag-nav-arrow {
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

.ag-nav-arrow:hover {
    color: #fff;
}

.ag-popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* All Games List */
.ag-all-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns of listing */
    gap: 25px;
    padding-bottom: 40px;
}

/* Shared Card Styles */
.ag-popup-game-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.ag-popup-game-thumb {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    /* Rounded Square */
    object-fit: cover;
    flex-shrink: 0;
    background: #222;
}

.ag-popup-game-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ag-popup-game-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ag-popup-game-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media(max-width: 1024px) {

    .ag-popular-grid,
    .ag-all-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 768px) {
    .ag-search-popup-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 20px;
    }

    .ag-popup-header {
        padding-left: 40px;
        /* Make space for X button */
    }

    .ag-popup-close-btn {
        left: 15px;
        top: 25px;
        /* Slightly adjusted to align better */
        width: 36px;
        /* Slightly larger area */
        height: 36px;
        background: rgba(255, 255, 255, 0.1);
        /* Glassy Back */
        backdrop-filter: blur(8px);
        /* Blur effect */
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        /* Glassy Border */
        border-radius: 12px;
        /* Smooth rounded corners */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .ag-popular-grid,
    .ag-all-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ag-alphabet-row {
        /* display: none; - Removing to show on mobile */
        overflow-x: auto;
        /* Enable scroll if needed */
        justify-content: flex-start;
        /* Align start to scroll */
        flex-wrap: nowrap;
        /* Prevent wrapping to force scroll row */
        padding-bottom: 5px;
        /* Space for scrollbar if any */
        flex-shrink: 0;
        /* Prevent shrinking */
        min-height: 30px;
        /* Ensure visibility */
    }
}

@media(max-width: 480px) {

    .ag-popular-grid,
    .ag-all-games-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ag_official_games_catalog --- */
.ag-catalog-container {
    width: 100%;
    max-width: 1256px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
}

.ag-catalog-search-bar {
    background-color: #2b2b2b;
    /* Dark background per image */
    border-radius: 12px;
    padding: 0 25px;
    height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.ag-catalog-search-input {
    background: transparent !important;
    border: none !important;
    color: #ccc !important;
    font-size: 14px !important;
    flex-grow: 1 !important;
    font-family: inherit !important;
    outline: none !important;
    height: 100% !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.ag-catalog-search-input::placeholder {
    color: #ccc;
    opacity: 1;
}

.ag-catalog-search-icon {
    width: 20px;
    opacity: 0.8;
    filter: invert(1);
    /* Make white */
}

.ag-catalog-alpha-row {
    display: flex;
    justify-content: space-between;
    /* Space out evenly */
    margin-bottom: 40px;
    padding: 0 10px;
    flex-wrap: wrap;
}

.ag-catalog-char {
    color: #555;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.2s;
}

.ag-catalog-char:hover,
.ag-catalog-char.active {
    color: #000;
    font-weight: 800;
}

.ag-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ag-catalog-card {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    transition: transform 0.2s;
}

.ag-catalog-card:hover {
    transform: translateY(-2px);
}

@media(max-width: 480px) {
    .ag-catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.ag-catalog-thumb {
    width: 56px;
    height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover;
    background: #f0f0f0;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.ag-catalog-info {
    display: flex;
    flex-direction: column;
}

.ag-catalog-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
    line-height: 1.2;
}

.ag-catalog-meta {
    font-size: 12px;
    color: #999;
}

/* Responsive */
@media(max-width: 1024px) {
    .ag-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 768px) {
    .ag-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ag-catalog-alpha-row {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 15px;
    }
}

@media(max-width: 480px) {
    .ag-catalog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ag_brand_offers & ag_brand_accounts --- */
.ag-offers-grid {
    display: grid;
    /* Grid template columns often overlaid by inline styles but this is fallback */
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    font-family: 'Roboto', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.ag-offer-card {
    background: #fff;
    border: 1px solid #dbebf9;
    /* Light blueish border per image */
    border-radius: 24px;
    /* Large radius */
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ag-offer-card:hover {
    box-shadow: 0 12px 24px rgba(99, 211, 255, 0.25);
    transform: translateY(-4px);
    border-color: #63d3ff;
    background: #63d3ff;
}

.ag-offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    min-height: 40px;
    /* Consistent height for titles */
}

.ag-offer-title {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.ag-offer-wishlist {
    width: 32px;
    height: 32px;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4facfe;
    /* Blue heart outline */
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    background: #fff;
    transition: background 0.2s;
}

.ag-offer-wishlist:hover {
    background-color: #f0f8ff;
}

.ag-offer-image-box {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f4f4f4;
}

.ag-offer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.ag-offer-card:hover .ag-offer-img {
    transform: scale(1.05);
}

.ag-offer-img-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000000CC;
    color: #fff;
    width: 38px;
    height: 26px;
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    backdrop-filter: blur(2px);
    gap: 4px;
    /* Space between icon and text */
}

.ag-gallery-icon-svg {
    width: 14px;
    height: 14px;
    object-fit: contain;
    /* Optional: if you need to colorize SVG via CSS filter (requires knowing original color)
       filter: invert(1);
    */
}

.ag-offer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.ag-offer-tag {
    background: #f7f8fa;
    color: #9aa5b1;
    /* Muted text */
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.ag-offer-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

.ag-offer-price {
    font-size: 22px;
    font-weight: 800;
    /* Bold price */
    color: #000;
    letter-spacing: -0.5px;
}

.ag-offer-price .amount {
    color: #000;
}

.ag-offer-badge {
    background: #6bd1ff;
    /* Sky blue badge */
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.ag-offer-old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 500;
}

.ag-offer-old-price .amount {
    color: #999;
}

/* Responsive */
@media(max-width: 1200px) {
    .ag-offers-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px;
    }
}

@media(max-width: 991px) {
    .ag-offers-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media(max-width: 767px) {
    .ag-offers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .ag-offer-card {
        padding: 12px;
    }

    .ag-offer-price {
        font-size: 16px;
    }
}

@media(max-width: 320px) {
    /* Only on very small devices revert to 1 if needed, 
       but user asked for 2 on phone generally. 
       We will stick to 2 for most phones as requested. */
}

/* --- ag_brands_tags --- */
.ag-brands-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ag-brand-tag-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 104px;
    height: 36px;
    background: #FFFFFF;
    border: 1px solid #EAEDEE;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    color: #000000;
    text-decoration: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 4px;
}

.ag-brand-tag-item:hover {
    background: #64d4ff;
    color: #000000;
    border-color: #64d4ff;
}

/* --- ag_menu_stats --- */
.ag-stats-menu-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ag-menu-stats-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 96.5px;
    height: 32px;
    background: #EAEDEE;
    border-radius: 40px;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
    gap: 4px;
    line-height: 16px;
    border: none;
}

/* Text Styles */
.ag-menu-label {
    font-size: 12px;
    font-weight: 400;
    color: #000000;
}

.ag-menu-count {
    font-size: 12px;
    font-weight: 400;
    color: #A7B0BA;
}

/* Active / Hover State */
.ag-menu-stats-item:hover,
.ag-menu-stats-item.active {
    background: #5CC3EB;
}

.ag-menu-stats-item:hover .ag-menu-label,
.ag-menu-stats-item.active .ag-menu-label {
    color: #000000;
}

.ag-menu-stats-item:hover .ag-menu-count,
.ag-menu-stats-item.active .ag-menu-count {
    color: #FFFFFF;
}

@media (min-width: 922px) {
    .ast-woo-shop-archive .site-content>.ast-container {
        max-width: fit-content !important;
    }
}

/* --- ag_product_header --- */
.ag-product-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}

.ag-brand-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ag-brand-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ag-brand-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ag-brand-name-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 4px;
}

.ag-brand-cat-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    color: #A7B0BA;
}

/* --- ag_buy_now_widget --- */
.ag-bn-widget-container {
    border: 1px solid rgba(100, 212, 255, 0.5);
    /* #64D4FF80 */
    border-radius: 40px;
    padding: 33px;
    background: #fff;
    width: 384px;
    font-family: 'Roboto', sans-serif;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.ag-bn-field-group {
    margin-bottom: 12px;
}

.ag-bn-input {
    width: 100% !important;
    background-color: #EAEDEE !important;
    border: 1px solid transparent !important;
    border-radius: 16px !important;
    height: 56px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    color: #333 !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.ag-bn-input:focus {
    border-color: #64D4FF !important;
    background: #fff !important;
}

/* Checkbox */
.ag-bn-checkbox-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.ag-bn-checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 12px;
    color: #000;
    user-select: none;
    font-weight: 500;
}

.ag-bn-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.ag-bn-checkmark {
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    border: 1px solid #ccc;
}

/* On mouse-over */
.ag-bn-checkbox-container:hover input~.ag-bn-checkmark {
    background-color: #dbdfe3;
}

/* When checked */
.ag-bn-checkbox-container input:checked~.ag-bn-checkmark {
    background-color: #000;
    border-color: #000;
}

/* Checkmark/indicator */
.ag-bn-checkmark:after {
    content: "";
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.ag-bn-checkbox-container input:checked~.ag-bn-checkmark:after {
    display: block;
}

.ag-bn-checkbox-label {
    font-size: 12px;
    color: #000;
    font-weight: 500;
}

/* Promo Row */
.ag-bn-promo-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.ag-bn-promo-input {
    width: 246px !important;
    flex-grow: 0 !important;
}

.ag-bn-promo-btn {
    width: 48px !important;
    height: 56px !important;
    border-radius: 12px !important;
    background: #EEF0F2 !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #888 !important;
    font-size: 14px !important;
    transition: background 0.2s, color 0.2s !important;
    flex-shrink: 0 !important;
}

.ag-bn-promo-btn:hover {
    background: #e0e4e7 !important;
    color: #000 !important;
}

/* Total Row */
.ag-bn-total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.ag-bn-total-label {
    font-size: 18px;
    font-weight: 400;
    color: #000;
}

.ag-bn-total-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    align-items: baseline;
}

.ag-bn-total-current {
    font-size: 24px;
    font-weight: 400;
    color: #000;
}

.ag-bn-total-badge {
    background: #64D4FF;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    height: 20px;
    display: flex;
    align-items: center;
}

.ag-bn-total-old-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 4px;
    position: absolute;
    right: 0;
    top: -14px;
    font-size: 11px;
}

.ag-bn-total-old {
    font-size: 12px;
    color: #000;
    text-decoration: line-through;
    position: relative;
    top: 0;
}

/* Buy Now Btn */
.ag-bn-btn {
    width: 100%;
    height: 56px;
    background-color: #5CC3EB;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 24px;
    font-family: 'Roboto', sans-serif;
    transition: background 0.2s;
}

.ag-bn-btn:hover {
    background-color: #4bb3db;
}

/* Payment Icons */
.ag-bn-payment-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ag-bn-pay-icon {
    height: 24px;
    padding: 0 4px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #000;
    min-width: 36px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ag-bn-pay-apple i {
    color: #000;
    font-size: 14px;
    margin-right: 2px;
}

.ag-bn-pay-google i {
    color: #000;
    font-size: 12px;
    margin-right: 2px;
}

/* Trust Badges */
/* Trust Badges */
.ag-bn-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
}

.ag-bn-trust-row {
    display: flex;
    justify-content: space-between;
    justify-content: center;
    /* Spread 2 items */
    gap: 10px;
}

.ag-bn-center-row {
    justify-content: center;
    /* Center single item */
}

.ag-bn-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    /* Reduced gap slightly for compact fit */
    font-size: 11px;
    color: #444;
    /* Slightly softer than pure black if needed, or stick to #000 */
    font-weight: 500;
}

.ag-bn-trust-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Hide Quantity Column in Cart */
th.product-quantity,
td.product-quantity {
    display: none !important;
}

/* -------------------------------------------------------------------
   BRAND PACKAGES SHORTCODE
------------------------------------------------------------------- */
.ag-brand-packages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

}

.ag-all-pkgs-brand-title {
    font-size: 24px;
    font-weight: 700;
    color: #64D4FF;
    margin: 40px 0 20px 0;
    padding-left: 10px;
    line-height: 1.2;
}

.ag-package-card {
    /* Exact requested properties */
    width: 100%;
    max-width: 413px;
    /* Default max */

    /* Ensure height */

    background: #000000;
    border: 1px solid rgba(0, 184, 255, 0.69);
    /* #00B8FFB0 */
    border-radius: 16px;
    padding: 16px 17px;
    gap: 0px;

    box-sizing: border-box;
    display: flex;
    flex-direction: column;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ag-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 184, 255, 0.15);
}

.ag-pkg-card-image-wrap {
    width: 100%;
    height: 244px;
    margin: 0 auto 15px auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;

    /* Apply Custom SVG Mask */
    -webkit-mask-image: var(--pkg-mask-image-url);
    mask-image: var(--pkg-mask-image-url);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.ag-pkg-card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ag-pkg-card-header {
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
    text-align: left;
}

.ag-pkg-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #FFFFFF;
}

.ag-pkg-card-price-wrap {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 5px;
}

.ag-pkg-card-price {
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
}

.ag-pkg-card-duration {
    font-size: 24px;
    color: #FFFFFF;
    font-weight: 600;
}

.ag-pkg-card-body {
    flex-grow: 1;
    margin-bottom: 20px;
    padding-top: 15px;
}

.ag-pkg-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-height: 170px;
    overflow-y: auto;
    padding-right: 5px;
}

.ag-pkg-features-list::-webkit-scrollbar {
    width: 5px;
}

.ag-pkg-features-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.ag-pkg-features-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.ag-pkg-features-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.ag-pkg-features-list li {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 400;
    color: #E0E0E0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #1A1A1A;
    padding-bottom: 10px;
}

.ag-pkg-features-list li:last-child {
    border-bottom: none;
}

.ag-pkg-features-list li img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.ag-pkg-card-footer {
    margin-top: auto;
}

.ag-pkg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 8px;
    padding: 14px 20px;
    background: #66DBFF;
    /* Light Blue button */
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 219, 255, 0.2);
}

.ag-pkg-btn:hover {
    background: #00B8FF;
    color: #fff;
    transform: translateY(-2px);
}

/* Stats Menu Scroll on Mobile */
@media (max-width: 768px) {
    .ag-stats-menu-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 10px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide Scrollbar for cleaner UI */
    .ag-stats-menu-container::-webkit-scrollbar {
        display: none;
    }

    .ag-menu-stats-item {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
}

/* =========================================
   WISHLIST & COMPARE STYLES
   ========================================= */

/* Active Buttons */
.ag-wishlist-btn.active {
    color: #ff4545 !important;
    font-weight: 900 !important;
    /* FA Solid */
}

.ag-compare-btn.active {
    color: #5CC3EB !important;
}

.ag-compare-btn:hover {
    color: #5CC3EB !important;
}

/* Empty State */
.ag-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ag-empty-state h3 {
    margin-bottom: 20px;
}

.ag-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.ag-btn:hover {
    background: #333;
    color: #fff;
}

/* Compare Table */
.ag-compare-container {
    padding: 20px 0;
}

.ag-compare-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.ag-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    /* Ensure scrolling on mobile */
}

.ag-compare-table th,
.ag-compare-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
}

.ag-compare-table th:first-child,
.ag-compare-table td:first-child {
    text-align: left;
    font-weight: bold;
    width: 150px;
    background: #f9f9f9;
}

.ag-cmp-thumb img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.ag-cmp-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.ag-cmp-remove {
    font-size: 11px;
    color: #ff4545;
    cursor: pointer;
    text-decoration: underline;
}


.ag-cmp-price {
    font-weight: bold;
    font-size: 16px;
}

/* --- Brand Packages Tabs --- */
.ag-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.ag-tabs-container {
    background-color: #000;
    border-radius: 50px;
    padding: 6px;
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
}

.ag-brand-tab {
    padding: 10px 24px;
    border-radius: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    line-height: 1;
    white-space: nowrap;
}

.ag-brand-tab:hover {
    color: #50C8FF;
}

.ag-brand-tab.active {
    background-color: #50C8FF;
    /* Cyan Blue */
    color: #000;
    font-weight: 600;
}

.ag-brand-tab-content {
    display: none;
    animation: agFadeIn 0.5s ease-in-out;
}

.ag-brand-tab-content.active {
    display: block;
}

@keyframes agFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ag-cmp-stock {
    font-size: 13px;
    color: #27ae60;
}

/* Mobile Horizontal Scroll for Packages */
@media (max-width: 767px) {
    .ag-brand-packages-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
        /* Space for scrollbar */
        gap: 15px;
        /* Better spacing for scroll */
        padding-left: 5px;
        /* Edge spacing */
        padding-right: 5px;
    }

    .ag-package-card {
        min-width: 85vw;
        /* Almost full width */
        max-width: 85vw;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .ag-bn-widget-container {
        margin-top: 3%;
    }
}