/* Container */
.ewt-container {
    width: 100%;
    font-family: 'Arial', sans-serif;
}

/* Tabs Navigation */
.ewt-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    background: #fdfdfd;
}

.ewt-tab-item {
    padding: 15px 25px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #eee;
}

.ewt-tab-item:hover {
    background-color: #f0f0f0;
}

.ewt-tab-item.active {
    background-color: #1a2b49;
    color: #fff;
}

/* Tab Content Areas */
.ewt-tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Product Grid */
.ewt-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Product Card */
.ewt-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.ewt-card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.ewt-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.ewt-title {
    font-size: 16px;
    color: #1a2b49;
    margin: 0;
    line-height: 1.3;
}

.ewt-excerpt {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.ewt-price-area {
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

.ewt-start-text {
    display: block;
    font-size: 12px;
    color: #888;
}

.ewt-price {
    font-weight: bold;
    font-size: 18px;
    color: #1a2b49;
}

.ewt-book-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    background-color: #bf8d47;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 12px;
    transition: background 0.3s;
}

.ewt-book-btn:hover {
    opacity: 0.9;
    color: white;
}

.ewt-meta ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ewt-meta li {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

/* ---------------------------------------------
   MOBILE OPTIMIZATION (Screens < 768px)
--------------------------------------------- */
@media screen and (max-width: 768px) {

    /* 1. Scrollable Tabs (Instagram Style) */
    .ewt-tabs-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 10px 0;
        gap: 10px;
        background: transparent;
        border-bottom: none;
        scrollbar-width: none; 
    }
    
    .ewt-tabs-nav::-webkit-scrollbar { 
        display: none; 
    }

    .ewt-tab-item {
        flex: 0 0 auto;
        border-radius: 50px;
        border: 1px solid #ddd;
        padding: 8px 16px;
        margin: 0;
        font-size: 13px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .ewt-tab-item.active {
        border-color: transparent;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    /* 2. Force 2 Columns on Mobile */
    .ewt-product-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important;
    }

    /* 3. Card Styling MATCHING Desktop (Just Scaled) */
    .ewt-product-card {
        padding: 12px !important; /* Smaller padding than 20px desktop */
    }
    
    /* Keep Row Layout (Icon Left, Title Right) like Desktop */
    .ewt-card-header {
        flex-direction: row; /* Match Desktop */
        align-items: flex-start; /* Match Desktop */
        text-align: left; /* Match Desktop */
        gap: 8px;
        margin-bottom: 10px;
    }

    .ewt-icon {
        width: 30px; /* Slightly smaller icon */
        height: 30px;
    }
    
    .ewt-title {
        font-size: 13px !important; /* Scaled down from 16px */
        text-align: left; /* Match Desktop */
    }

    /* Show Excerpt aligned left */
    .ewt-excerpt {
        display: block !important; 
        font-size: 10px !important;
        text-align: left;
        margin-bottom: 10px;
    }

    .ewt-price-area {
        text-align: left; /* Match Desktop */
        margin-bottom: 10px;
    }

    .ewt-price {
        font-size: 15px;
    }

    .ewt-book-btn {
        font-size: 10px !important;
        padding: 8px 0;
    }
    
    /* Show Meta aligned left */
    .ewt-meta {
        display: block !important;
        text-align: left;
    }
    
    .ewt-meta li {
        font-size: 9px !important;
    }
}