/**
 * Vybe Shop Page Widget Styling
 * Perfectly proportioned, modern & readable layout matching client design
 * Scoped strictly to .vybe-shop-wrapper (Zero outside style leaks)
 * Author: devsabbirbd
 */

/* Container wrapper with background matching screenshot (subtle ice blue-gray #F0F7FF) */
.vybe-shop-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    background-color: #F0F7FF !important;
    padding: 32px 16px 60px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    color: #000000 !important;
}

.vybe-shop-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 36px !important;
    min-width: 0 !important;
}

/* =========================================================
   1. Category Quick Navigation Tabs (5 Rounded Pills)
   ========================================================= */
.vybe-shop-tabs-bar {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 8px !important;
}

.vybe-shop-tab {
    background: #081628 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 13px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1 !important;
    user-select: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.vybe-shop-tab:hover {
    background: #0F233D !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
}

.vybe-shop-tab.is-active {
    background: #00FDFE !important;
    color: #000000 !important;
    box-shadow: 0 4px 14px rgba(0, 253, 254, 0.4) !important;
}

.vybe-shop-tab-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.vybe-shop-tab-icon svg {
    width: 19px !important;
    height: 19px !important;
    stroke: currentColor !important;
    transition: stroke 0.2s ease !important;
}

.vybe-shop-tab.is-active .vybe-shop-tab-icon svg {
    stroke: #000000 !important;
}

.vybe-shop-tab-text {
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
}

/* =========================================================
   2. Section Headers
   ========================================================= */
.vybe-shop-section {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.vybe-shop-sec-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
}

.vybe-shop-sec-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.vybe-shop-sec-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.vybe-shop-sec-icon svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #000000 !important;
}

.vybe-shop-sec-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #000000 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.4px !important;
}

.vybe-shop-sec-subtitle {
    font-size: 13.5px !important;
    color: #64748B !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    margin-left: 4px !important;
}

.vybe-shop-sec-count {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    white-space: nowrap !important;
}

/* =========================================================
   3. Grids
   ========================================================= */
.vybe-shop-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

.vybe-shop-grid-horizontal {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

.vybe-shop-grid-flower {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

/* =========================================================
   4. Universal Card Base
   ========================================================= */
.vybe-shop-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.vybe-shop-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
    border-color: #CBD5E1 !important;
    transform: translateY(-2px) !important;
}

/* =========================================================
   5. Horizontal Card (Uniform across ALL categories)
   ========================================================= */
.vybe-shop-card-horizontal {
    gap: 10px !important;
    min-height: 175px !important;
    height: 100% !important;
    justify-content: space-between !important;
}

.vybe-shop-card-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.vybe-shop-card-thumb-link {
    width: 72px !important;
    height: 72px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #F8FAFC !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.vybe-shop-card-thumb-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.vybe-shop-card-header-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    gap: 3px !important;
}

.vybe-shop-card-title-link {
    text-decoration: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.vybe-shop-card-title {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #000000 !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.vybe-shop-card-title-link:hover .vybe-shop-card-title {
    color: #008489 !important;
}

.vybe-shop-card-subtitle {
    font-size: 11px !important;
    color: #64748B !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    min-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.vybe-shop-card-price {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #000000 !important;
    margin-top: 2px !important;
    line-height: 1 !important;
}

/* Middle Row: Select Area (Fixed 32px height for 100% uniformity) */
.vybe-shop-select-area {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 32px !important;
    margin: 2px 0 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.vybe-shop-select-placeholder {
    width: 100% !important;
    max-width: 100% !important;
    height: 32px !important;
}

/* Variation Dropdown Wrapper */
.vybe-shop-select-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.vybe-shop-card-select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 50px !important;
    padding: 6px 28px 6px 14px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #1E293B !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    outline: none !important;
    line-height: 1.3 !important;
    height: 32px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    transition: border-color 0.15s ease !important;
}

.vybe-shop-card-select:focus {
    border-color: #00FDFE !important;
}

.vybe-shop-select-arrow {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 12px !important;
    height: 12px !important;
    stroke: #64748B !important;
    stroke-width: 2 !important;
    fill: none !important;
    pointer-events: none !important;
}

/* Bottom Action Row: Stepper (Left) + Add to Cart (Right) */
.vybe-shop-card-bottom-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-top: auto !important;
}

/* Stepper [- 1 +] */
.vybe-shop-stepper {
    display: inline-flex !important;
    align-items: center !important;
    background: #F1F5F9 !important;
    border-radius: 50px !important;
    padding: 3px 6px !important;
    height: 32px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.vybe-shop-stepper-btn {
    background: none !important;
    border: none !important;
    color: #334155 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    width: 22px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
    border-radius: 50% !important;
    transition: background-color 0.15s ease !important;
}

.vybe-shop-stepper-btn:hover {
    color: #000000 !important;
    background-color: #E2E8F0 !important;
}

.vybe-shop-stepper-val {
    width: 22px !important;
    border: none !important;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    -moz-appearance: textfield !important;
}

.vybe-shop-stepper-val::-webkit-outer-spin-button,
.vybe-shop-stepper-val::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Add to Cart Pill Button */
.vybe-shop-add-btn {
    flex: 1 !important;
    background: #00FDFE !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 50px !important;
    height: 32px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    padding: 0 12px !important;
    white-space: nowrap !important;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease !important;
    box-shadow: 0 2px 6px rgba(0, 253, 254, 0.3) !important;
}

.vybe-shop-add-btn:hover {
    background: #00E5E6 !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 253, 254, 0.45) !important;
}

.vybe-shop-add-btn.is-loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.vybe-shop-add-btn.is-success {
    background: #10B981 !important;
    color: #FFFFFF !important;
}

/* Completely suppress WooCommerce default "View cart" button/link anywhere in shop widget */
.vybe-shop-wrapper .added_to_cart,
.vybe-shop-card .added_to_cart,
a.added_to_cart.wc-forward {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   6. Vertical Card (Flower Grid 5-cols)
   ========================================================= */
.vybe-shop-card-flower {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 14px 12px 14px !important;
    gap: 6px !important;
}

.vybe-shop-card-flower-thumb {
    width: 90px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 4px !important;
    text-decoration: none !important;
}

.vybe-shop-card-flower-thumb img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12)) !important;
}

.vybe-shop-card-flower-title-link {
    text-decoration: none !important;
    width: 100% !important;
}

.vybe-shop-card-flower-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #000000 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.vybe-shop-card-flower-title-link:hover .vybe-shop-card-flower-title {
    color: #008489 !important;
}

.vybe-shop-card-flower-price {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #000000 !important;
    line-height: 1 !important;
    margin-bottom: 4px !important;
}

.vybe-shop-flower-select .vybe-shop-card-select {
    font-size: 11.5px !important;
    padding: 5px 24px 5px 10px !important;
    height: 30px !important;
    border-radius: 50px !important;
}

.vybe-shop-card-flower-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 4px !important;
}

.vybe-shop-card-flower-bottom .vybe-shop-stepper {
    height: 30px !important;
    padding: 2px 4px !important;
}

.vybe-shop-card-flower-bottom .vybe-shop-stepper-btn {
    width: 18px !important;
    height: 24px !important;
    font-size: 13px !important;
}

.vybe-shop-card-flower-bottom .vybe-shop-stepper-val {
    width: 18px !important;
    font-size: 12px !important;
}

.vybe-shop-card-flower-bottom .vybe-shop-add-btn {
    height: 30px !important;
    font-size: 11.5px !important;
    padding: 0 8px !important;
}

/* =========================================================
   7. Bottom Value Proposition Feature Bar
   ========================================================= */
.vybe-shop-features-bar {
    width: 100% !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 20px 32px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 18px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.vybe-shop-feat-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 !important;
    justify-content: center !important;
}

.vybe-shop-feat-icon {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.vybe-shop-feat-icon svg {
    width: 28px !important;
    height: 28px !important;
    stroke: #00FDFE !important;
    color: #00FDFE !important;
}

.vybe-shop-feat-icon svg[fill="currentColor"] {
    fill: #00FDFE !important;
    stroke: none !important;
}

.vybe-shop-feat-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.vybe-shop-feat-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #000000 !important;
    line-height: 1.2 !important;
}

.vybe-shop-feat-desc {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    line-height: 1.2 !important;
}

.vybe-shop-feat-divider {
    width: 1px !important;
    height: 38px !important;
    background: #CBD5E1 !important;
    margin: 0 20px !important;
    flex-shrink: 0 !important;
}

/* Shake animation for validation */
@keyframes vybeShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.shake-field {
    animation: vybeShake 0.4s ease !important;
    border-color: #EF4444 !important;
}

/* =========================================================
   8. Responsive Breakpoints
   ========================================================= */
@media (max-width: 1080px) {
    .vybe-shop-grid-horizontal {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .vybe-shop-grid-flower {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .vybe-shop-tabs-bar {
        gap: 10px !important;
    }
    .vybe-shop-tab {
        font-size: 14px !important;
        padding: 10px 14px !important;
    }
}

@media (max-width: 768px) {
    .vybe-shop-wrapper {
        padding: 24px 12px 50px !important;
    }
    .vybe-shop-container {
        gap: 28px !important;
    }
    /* Horizontal sleek swipeable pills on mobile/tablet */
    .vybe-shop-tabs-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 4px 2px 10px !important;
        margin-bottom: 2px !important;
        box-sizing: border-box !important;
    }
    .vybe-shop-tabs-bar::-webkit-scrollbar {
        display: none !important;
    }
    .vybe-shop-tab {
        flex: 0 0 auto !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
        border-radius: 50px !important;
        gap: 8px !important;
    }
    .vybe-shop-tab-icon svg {
        width: 16px !important;
        height: 16px !important;
    }
    .vybe-shop-features-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 18px !important;
    }
    .vybe-shop-feat-divider {
        display: none !important;
    }
    .vybe-shop-feat-item {
        justify-content: flex-start !important;
        width: 100% !important;
    }
    .vybe-shop-grid-horizontal {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
    .vybe-shop-grid-flower {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
    .vybe-shop-sec-header {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .vybe-shop-sec-title {
        font-size: 20px !important;
    }
    .vybe-shop-sec-subtitle {
        font-size: 13px !important;
    }
}

@media (max-width: 580px) {
    .vybe-shop-grid-horizontal {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }
    .vybe-shop-grid-flower {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .vybe-shop-wrapper {
        padding: 16px 10px 40px !important;
    }
    .vybe-shop-card {
        padding: 12px !important;
        border-radius: 12px !important;
    }
    .vybe-shop-card-thumb-link {
        width: 66px !important;
        height: 66px !important;
    }
    .vybe-shop-card-title {
        font-size: 14px !important;
    }
    .vybe-shop-card-subtitle {
        font-size: 11px !important;
        min-height: auto !important;
        margin-bottom: 2px !important;
    }
    .vybe-shop-card-price {
        font-size: 14px !important;
    }
    .vybe-shop-stepper {
        height: 30px !important;
        padding: 2px 4px !important;
    }
    .vybe-shop-stepper-btn {
        width: 20px !important;
        height: 24px !important;
        font-size: 14px !important;
    }
    .vybe-shop-stepper-val {
        width: 18px !important;
        font-size: 12px !important;
    }
    .vybe-shop-add-btn {
        height: 30px !important;
        font-size: 12px !important;
        padding: 0 10px !important;
    }
}
