/* ============================================================
   Logged in / out helpers
   ============================================================ */
.logged-in-condition .hide-logged-in  { display: none !important; }
.logged-out-condition .hide-logged-out { display: none !important; }

/* ============================================================
   SERVICES PAGE — 3-column layout
   ============================================================ */
.ez-services-page { background: var(--ez-dark); }

.ez-services-layout {
    display: grid;
    grid-template-columns: 190px 1fr 280px;
    grid-template-areas: "catnav main sidebar";
    gap: 0;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 20px 60px;
    align-items: start;
}

/* ============================================================
   CATEGORY NAV — left sticky column
   ============================================================ */
.ez-services-catnav {
    grid-area: catnav;
    position: sticky;
    top: 90px;
}

.ez-catnav__inner {
    background: var(--ez-mid);
    border: 1px solid var(--ez-border);
    border-radius: var(--radius-lg);
    padding: 18px 12px;
}

.ez-catnav__title {
    font-size: var(--ez-fs-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ez-muted2);
    padding: 0 8px;
    margin-bottom: 10px;
}

.ez-catnav__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ez-catnav__btn {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-family: "Poppins", sans-serif;
    font-size: var(--ez-fs-sm);
    font-weight: 500;
    color: var(--ez-muted);
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
    text-align: left;
}

.ez-catnav__btn:hover {
    color: var(--ez-golden-text);
    background: var(--ez-golden-glow);
    text-decoration: none;
}

.ez-catnav__btn.is-active {
    color: var(--ez-golden-text);
    background: var(--ez-golden-glow);
    border-left-color: var(--ez-golden-dk);
    font-weight: 600;
}

.ez-catnav__btn--dark {
    margin-top: 8px;
    background: var(--ez-dark);
    color: var(--ez-white);
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
}

.ez-catnav__btn--dark:hover {
    background: var(--ez-dark2);
    color: var(--ez-golden-text);
}

/* ============================================================
   MAIN PRODUCTS AREA — center column
   ============================================================ */
.ez-services-main {
    grid-area: main;
    padding: 0 24px;
    min-width: 0;
}

/* ---- Search ---- */
.ez-services-search { margin-bottom: 28px; }

.ez-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ez-search-wrap .ez-search-input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    font-family: "Poppins", sans-serif;
    font-size: var(--ez-fs-base);
    color: var(--ez-white);
    background: var(--ez-mid);
    border: 1px solid var(--ez-border);
    border-radius: var(--radius-xl);
    outline: none;
    transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.ez-search-wrap .ez-search-input::placeholder { color: var(--ez-muted2); }

.ez-search-wrap .ez-search-input:focus {
    border-color: var(--ez-golden-border);
    box-shadow: 0 0 0 3px rgba(230, 193, 83, 0.08);
}

.ez-search-wrap .ez-search-clear {
    position: absolute;
    right: 16px;
    font-size: 22px;
    line-height: 1;
    color: var(--ez-muted);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: none;
    transition: color 0.15s;
}

.ez-search-wrap .ez-search-clear:hover { color: var(--ez-white); }

/* ---- Product Sections ---- */
.ez-product-section {
    margin-bottom: 52px;
    scroll-margin-top: 100px;
}

.ez-product-section__heading {
    font-size: var(--ez-fs-h5);
    font-weight: 700;
    color: var(--ez-white);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ez-border);
}

/* ---- Product Grid ---- */
.ez-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* ---- Product Card ---- */
.ez-product-item { display: contents; }

.ez-product-card {
    background: var(--ez-mid);
    border: 1px solid var(--ez-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ez-product-card:hover {
    border-color: var(--ez-golden-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.ez-product-card__img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ez-mid2);
}

.ez-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease);
}

.ez-product-card:hover .ez-product-card__img { transform: scale(1.04); }

.ez-product-card__body {
    padding: 16px 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ez-product-card__title {
    font-size: var(--ez-fs-sm);
    font-weight: 600;
    color: var(--ez-white);
    margin-bottom: 8px;
    line-height: 1.45;
    min-height: 40px;
}

.ez-product-card__desc {
    font-size: var(--ez-fs-xs);
    color: var(--ez-muted);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 0;
}

.ez-product-card__read-more {
    color: var(--ez-golden-text);
    cursor: pointer;
    font-size: var(--ez-fs-xs);
    font-family: "Poppins", sans-serif;
    background: none;
    border: none;
    padding: 0;
    margin-left: 2px;
    transition: opacity 0.15s;
}

.ez-product-card__read-more:hover { opacity: 0.8; }

.ez-product-card__footer {
    padding: 12px 16px;
    border-top: 1px solid var(--ez-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ez-product-card__price {
    font-size: var(--ez-fs-base);
    font-weight: 700;
    background: var(--ez-golden-shine);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ez-product-card__add-btn {
    padding: 8px 14px;
    font-family: "Poppins", sans-serif;
    font-size: var(--ez-fs-xs);
    font-weight: 700;
    color: var(--ez-dark);
    background: var(--ez-golden);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.ez-product-card__add-btn:hover {
    opacity: 0.88;
    transform: scale(1.03);
}

.ez-product-card__add-btn.is-added {
    background: var(--ez-surface);
    color: var(--ez-golden-text);
    border: 1px solid var(--ez-golden-border);
}

/* ============================================================
   CART SIDEBAR — right sticky column
   ============================================================ */
.ez-services-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ez-cart-panel {
    background: var(--ez-mid);
    border: 1px solid var(--ez-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ez-cart-panel__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ez-border);
    font-weight: 700;
    font-size: var(--ez-fs-base);
    color: var(--ez-white);
}

.ez-cart-panel__header i { color: var(--ez-golden-text); }

.ez-cart-panel__header .ez-cart-count {
    margin-left: auto;
    background: var(--ez-golden-glow);
    border: 1px solid var(--ez-golden-border);
    color: var(--ez-golden-text);
    font-size: var(--ez-fs-xs);
    font-weight: 700;
    border-radius: 20px;
    padding: 1px 8px;
    display: none;
}

.ez-cart-panel__items {
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    max-height: 300px;
    overflow-y: auto;
}

.ez-cart-panel__empty {
    padding: 28px 18px;
    text-align: center;
    color: var(--ez-muted2);
    font-size: var(--ez-fs-sm);
}

.ez-cart-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ez-border);
}

.ez-cart-item:last-child { border-bottom: none; }

.ez-cart-item__info { flex: 1; min-width: 0; }

.ez-cart-item__name {
    font-size: var(--ez-fs-sm);
    font-weight: 500;
    color: var(--ez-white);
    line-height: 1.3;
    margin-bottom: 3px;
}

.ez-cart-item__price {
    font-size: var(--ez-fs-xs);
    color: var(--ez-muted);
}

.ez-cart-item__remove {
    background: none;
    border: none;
    color: var(--ez-muted2);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}

.ez-cart-item__remove:hover { color: #e05454; }

.ez-cart-panel__footer {
    padding: 14px 16px;
    border-top: 1px solid var(--ez-border);
}

.ez-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: var(--ez-fs-sm);
    color: var(--ez-muted);
}

.ez-cart-total__amount {
    font-weight: 700;
    font-size: var(--ez-fs-base);
    background: var(--ez-golden-shine);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ez-btn-gold {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-family: "Poppins", sans-serif;
    font-size: var(--ez-fs-sm);
    font-weight: 700;
    color: var(--ez-dark) !important;
    background: var(--ez-golden);
    border: none;
    border-radius: var(--radius-lg);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.ez-btn-gold:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ---- Advertisement panel ---- */
.ez-sidebar-ad {
    background: var(--ez-mid);
    border: 1px solid var(--ez-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ez-sidebar-ad__label {
    padding: 10px 16px;
    font-size: var(--ez-fs-xs);
    font-weight: 600;
    color: var(--ez-muted2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ez-border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ez-sidebar-ad__body { padding: 12px; }

.ez-sidebar-ad__body img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* ============================================================
   BOOTSTRAP MODAL — dark luxury overrides
   ============================================================ */
.modal-content {
    background: var(--ez-mid);
    border: 1px solid var(--ez-golden-border);
    border-radius: var(--radius-lg);
    color: var(--ez-white);
}

.modal-header { border-bottom: 1px solid var(--ez-border); padding: 18px 24px; }
.modal-title  { color: var(--ez-white); font-weight: 600; font-size: var(--ez-fs-base); }
.modal-body, .modal-body * { padding: 20px 0px; color: #fff !important; font-size: var(--ez-fs-sm); line-height: 1.7; }
.modal-footer { border-top: 1px solid var(--ez-border); }

.modal-footer .btn-secondary {
    background: var(--ez-surface);
    border: 1px solid var(--ez-border);
    color: var(--ez-muted);
    font-family: "Poppins", sans-serif;
    font-size: var(--ez-fs-sm);
    border-radius: var(--radius);
    padding: 8px 18px;
    transition: color 0.15s, border-color 0.15s;
}

.modal-footer .btn-secondary:hover {
    color: var(--ez-white);
    border-color: var(--ez-muted2);
    background: var(--ez-surface);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .ez-services-layout { grid-template-columns: 170px 1fr 260px; }
    .ez-product-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .ez-services-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "catnav" "main" "sidebar";
    }

    .ez-services-catnav { position: static; }

    .ez-catnav__inner { padding: 12px; }

    .ez-catnav__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .ez-catnav__btn {
        width: auto;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 20px;
        padding: 6px 14px;
    }

    .ez-catnav__btn.is-active { border-bottom-color: var(--ez-golden-dk); }

    .ez-services-main   { padding: 0; margin-top: 20px; }
    .ez-services-sidebar { position: static; }
}

@media (max-width: 600px) {
    .ez-product-grid { grid-template-columns: 1fr; }

    .ez-services-layout { padding: 16px 12px 40px; }
}

/* mobile sub-menu fix */
@media (max-width: 600px) {
    .menu-item .sub-menu {
        position: relative !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
    }
}

