/* ===========================================================
   OnlineStore - Custom bridge styles over DukaMarket template
   Keeps legacy helper classes used by app JS (favorite/compare)
   and small UI helpers shared across views.
   =========================================================== */

/* ---- color helpers (used by favorite.js / compare.js / views) ---- */
.main-color-one-bg { background-color: #fcbe00 !important; }
.main-color-two-bg { background-color: #16bcdc !important; }
.main-color-three-bg { background-color: #5aab19 !important; }
.main-color-one-color { color: #fcbe00 !important; }
.main-color-two-color { color: #16bcdc !important; }
.text-white { color: #fff !important; }
.no-highlight { text-decoration: none; }

/* ---- spacing / typography helpers ---- */
.font-12 { font-size: 12px !important; }
.font-13 { font-size: 13px !important; }
.font-14 { font-size: 14px !important; }
.font-16 { font-size: 16px !important; }
.font-20 { font-size: 20px !important; }
.font-25 { font-size: 25px !important; }
.font-30 { font-size: 30px !important; }
.text-justify { text-align: justify; }

/* ---- generic small shadow box (legacy cards) ---- */
.shadow-box { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.bg-ul-f7 { background-color: #f7f7f7; }
.rounded-3 { border-radius: .5rem !important; }
.border-danger { border-color: #dc3545 !important; }

/* ---- auth / form helpers ---- */
.auth { max-width: 480px; margin: 0 auto; }
.border-animate .fromCenter { position: relative; }

/* ---- product price strike ---- */
.price-discount { text-decoration: line-through; opacity: .55; }
.price-off { color: #16bcdc; }

/* ---- header cart / compare counter badge (legacy ids kept for JS) ---- */
.header-cart-counter,
.header-compare-counter {
    min-width: 20px; height: 20px; line-height: 20px;
    font-size: 11px; color: #fff; text-align: center;
    border-radius: 10px; padding: 0 4px; display: inline-block;
}

/* ---- search suggestions dropdown ---- */
.search-suggestions {
    display: none; position: absolute; top: 100%; right: 0; left: 0; z-index: 1050;
    background: #fff; border: 1px solid #e5e5e5; border-radius: 0 0 10px 10px;
    max-height: 380px; overflow-y: auto; box-shadow: 0 14px 30px rgba(0,0,0,.10);
}
.search-suggestions.show { display: block; }
.search-suggestions .suggestion-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f1f1f1; color: #2f3037; text-decoration: none; }
.search-suggestions .suggestion-item:hover { background: #fafafa; }
.search-suggestions .suggestion-item img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; }
.search-suggestions .suggestion-title { font-weight: 600; font-size: 13px; }
.search-suggestions .suggestion-group { font-size: 11px; color: #8a8a8a; margin-top: 2px; }
.search-suggestions .search-loading, .search-suggestions .search-no-result { padding: 14px; text-align: center; color: #8a8a8a; font-size: 13px; }

/* ---- alert helpers used by payment/profile views ---- */
.alert-success { background:#d4edda;color:#155724;border:1px solid #c3e6cb;border-radius:.5rem;padding:14px 18px;}
.alert-danger  { background:#f8d7da;color:#721c24;border:1px solid #f5c6cb;border-radius:.5rem;padding:14px 18px;}
.alert-warning { background:#fff3cd;color:#856404;border:1px solid #ffeeba;border-radius:.5rem;padding:14px 18px;}
.alert-info    { background:#d1ecf1;color:#0c5460;border:1px solid #bee5eb;border-radius:.5rem;padding:14px 18px;}

/* ---- breadcrumb page banner used by inner views ---- */
.page-banner {
    background: #f4f4f4; padding: 34px 0; text-align: center;
}
.page-banner h3 { font-size: 26px; font-weight: 700; margin: 0 0 6px; color: #1f2024; }
.page-banner .breadcrumb { justify-content: center; display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.page-banner .breadcrumb li a { color: #6f7172; text-decoration: none; font-size: 13px; }
.page-banner .breadcrumb li.active { color: #1f2024; font-size: 13px; }

/* ---- table base (cart / compare / orders) ---- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 12px; border-bottom: 1px solid #eaeaea; text-align: right; vertical-align: middle; }

/* ---- form control base ---- */
.form-control { width: 100%; height: 46px; padding: 8px 14px; border: 1px solid #e5e5e5; border-radius: 8px; font-size: 14px; outline: none; }
.form-control:focus { border-color: #fcbe00; }
.form-label { font-weight: 600; margin-bottom: 6px; display: block; font-size: 13px; }
textarea.form-control { height: auto; min-height: 110px; }

/* ---- user profile dashboard ---- */
.profile-sidebar { padding:25px; border:1px solid #eee; border-radius:12px; margin-bottom:30px; }
.profile-user { padding-bottom:20px; border-bottom:1px solid #f1f1f1; margin-bottom:20px; }
.profile-user-avatar i { font-size:54px; color:#fcbe00; }
.profile-user-name { font-size:16px; font-weight:700; margin-top:8px; }
.profile-nav ul { list-style:none; padding:0; margin:0; }
.profile-nav ul li { margin-bottom:4px; }
.profile-nav ul li a { display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:8px; color:#454545; text-decoration:none; font-size:14px; transition:.2s; }
.profile-nav ul li a i { width:18px; text-align:center; color:#8a8a8a; }
.profile-nav ul li a:hover { background:#f8f8f8; color:#1f2024; }
.profile-nav ul li a.active { background:#fcbe00; color:#fff; }
.profile-nav ul li a.active i { color:#fff; }
.profile-content { padding:25px; border:1px solid #eee; border-radius:12px; background:#fff; }
.profile-info-table th { width:35%; background:#f8f8f8; }
.account-box { padding:35px; border:1px solid #eee; border-radius:12px; }
.account-title { font-size:20px; font-weight:700; }

/* ---- badge helpers ---- */
.badge { display:inline-block; padding:4px 10px; border-radius:12px; font-size:12px; font-weight:600; }
.bg-success { background:#5aab19; color:#fff; }
.bg-danger { background:#dc3545; color:#fff; }
.bg-warning { background:#fcbe00; color:#1f2024; }
.bg-info { background:#16bcdc; color:#fff; }
.bg-secondary { background:#6f7172; color:#fff; }
.text-danger { color:#dc3545 !important; }
.text-success { color:#5aab19 !important; }
.text-muted { color:#8a8a8a !important; }

/* ---- buttons ---- */
.bd-primary-btn { display:inline-flex; align-items:center; justify-content:center; background:#fcbe00; color:#1f2024; border:0; padding:12px 24px; border-radius:8px; font-weight:600; text-decoration:none; transition:.2s; }
.bd-primary-btn:hover { background:#e6ab00; color:#1f2024; }
.bd-primary-btn span { display:inline-flex; align-items:center; gap:6px; }
.bd-primary-btn-outline { display:inline-flex; align-items:center; background:#fff; color:#1f2024; border:1px solid #fcbe00; padding:11px 24px; border-radius:8px; font-weight:600; text-decoration:none; }
.bd-primary-btn-outline span { display:inline-flex; align-items:center; gap:6px; }
.btn-secondary { background:#6f7172; color:#fff; }

/* ---- blog sidebar ---- */
.blog-sidebar-widget { border:1px solid #eee; border-radius:10px; overflow:hidden; background:#fff; }
.blog-sidebar-title { padding:14px 18px; border-bottom:1px solid #f1f1f1; }
.blog-sidebar-title h4 { font-size:16px; font-weight:700; margin:0; }
.blog-sidebar-content { padding:14px 18px; }
.blog-category-list { list-style:none; padding:0; margin:0; }
.blog-category-list li { padding:8px 0; border-bottom:1px solid #f8f8f8; }
.blog-category-list li:last-child { border-bottom:0; }
.blog-category-list li a { color:#454545; text-decoration:none; transition:.2s; }
.blog-category-list li a:hover { color:#fcbe00; }
.blog-related-item img { border-radius:8px; }

/* ---- blog post ---- */
.blog-post-img { max-width:100%; border-radius:10px; }
.blog-post-content { line-height:2; font-size:15px; }
.blog-post-content img { max-width:100%; height:auto; border-radius:8px; }

/* ---- header search (no category dropdown → remove reserved space) ---- */
.header__search-box::before { display: none !important; }
.header__search-box .search-input {
    padding-right: 60px !important;
    padding-left: 15px !important;
}

/* ---- offcanvas: white bg, black text, no hover for all menu items ---- */
.mean-container .mean-bar,
.mean-container .mean-nav { background: #ffffff !important; }
.mean-container .mean-nav ul li a {
    color: #000 !important;
    border-top: 1px solid #eee !important;
}
.mean-container .mean-nav ul li a:hover { color: #000 !important; }

/* ---- offcanvas action links (match) ---- */
.offcanvas__action-links { background: #ffffff; }
.offcanvas__action-links a {
    display: block;
    width: 100%;
    padding: 10px 5%;
    text-align: right;
    color: #000;
    border-top: 1px solid #eee;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
}
.offcanvas__action-links a:hover { color: #000; }

/* ---- product sliders: remove grid borders (product__item-d) ---- */
.swiper-slide .product__item-d {
    border-right: none !important;
    border-bottom: none !important;
}
