/* ==========================================
   VIBECRAFTS – PALETTE & FONTS
   ========================================== */
:root {
    --primary: #537d5d;
    /* darkest wine */
    --primary-dark: #537d5d;
    /* 10% darker   */
    --secondary: #537d5d;
    /* mid pink     */
    --accent: #d9abab;
    /* soft pink    */
    --surface: #f4d9d0;
    /* light blush  */
    --text: #222222;
    --white: #ffffff;
    --black: #000000;

    --font-header: "Lato", sans-serif;
    --font-body: "Lato", sans-serif;
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-header);
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid rgb(154, 154, 154) !important;
}

.input-group .input-group-text {
    border-right: 0 !important;
    border-radius: 8px 0 0 8px !important;
    font-size: 14px;
}

.input-group .form-control {
    border-left: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    font-size: 14px;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
    border: 1px solid gray;
}

a {
    text-decoration: none !important;
    color: inherit;
}

.lato-thin {
    font-family: "Lato", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.lato-light {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.lato-regular {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.lato-bold {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.lato-black {
    font-family: "Lato", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.lato-thin-italic {
    font-family: "Lato", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.lato-light-italic {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.lato-regular-italic {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.lato-bold-italic {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.lato-black-italic {
    font-family: "Lato", sans-serif;
    font-weight: 900;
    font-style: italic;
}

/* ---------- Navbar ---------- */
.navbar {
    background-color: #537d5d;
}

.navbar-brand {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: var(--white) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--white) !important;
    transition: 0.2s;
}

.nav-link:hover {
    color: var(--white) !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar .dropdown-item:hover {
    background-color: var(--secondary);
    /* theme color */
    color: #fff !important;
}

.dropdown-menu {
    color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    margin-top: 0;
    background-color: #fff;
}

/* Large screen hover effect */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        /* no gap */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: all 0.3s ease-in-out;
    }

    .navbar .dropdown-menu {
        display: block;
        /* prevent Bootstrap default */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease-in-out;
    }

    .navbar .dropdown-item {
        transition: all 0.2s ease;
    }
}

/* Smooth border radius + focus style */
.form-control,
.form-select {
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: #0dcaf0;
    box-shadow: 0 0 0 0.2rem rgba(13, 202, 240, 0.25);
}

/* Browse Plans link inside input */
#amount + label {
    padding-right: 90px;
    /* space for Browse Plans link */
}

.btn-customClr {
    background-color: var(--secondary);
    color: #fff;
}

.btn-customClr:hover {
    background-color: #537d5d;
    color: #fff;
}

.logo-slider {
    position: relative;
    overflow: hidden; /* default - no scroll on desktop */
}

/* Track (moving container) */
.logo-track {
    display: flex;
    justify-content: center;
}

/* Individual Logo Item */
.logo-item {
    width: 190px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.logo-item img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-item img:hover {
    transform: scale(1.1);
}

/* Scroll Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 🧠 Only enable horizontal scroll below 768px (mobile devices) */
@media (max-width: 768px) {
    .logo-slider {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
        scrollbar-width: none; /* hide scrollbar (Firefox) */
    }

    .logo-slider::-webkit-scrollbar {
        display: none; /* hide scrollbar (Chrome/Safari) */
    }

    .logo-track {
        display: flex;
        gap: 15px;
        align-items: center;
        width: max-content; /* makes content scrollable horizontally */
    }

    .logo-item {
        flex: 0 0 auto;
        width: 80px;
        height: 70px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo-item img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}
/* ---------- Cart Badge ---------- */
.cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 0.6rem;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
    background-color: #8b1e3f;
}

.footer-links a {
    color: #ddd;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-links li i {
    color: #ffc107;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-12px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-links li:hover i {
    opacity: 1;
    transform: translateX(0);
}

.footer-links li:hover a {
    color: #fff;
    transform: translateX(3px);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b53232;
    background-color: #fff;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    transition: transform 0.3s, background-color 0.3s;
}

.social-icons a:hover {
    transform: translateY(-4px);
    background-color: #d64545;
    color: #fff;
}

.support-box {
    background: #222;
    color: #fff;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.support-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    background-color: #b34a66;
}

.footer-bottom p {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
}

.payment-icons img {
    height: 28px;
    width: auto;
    background: #fff;
    border-radius: 4px;
    padding: 3px 6px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.payment-icons img:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.bg-surface {
    background: var(--surface);
}

.accordion-button:focus {
    box-shadow: none !important;
    border: none !important;
}

.accordion-collapse {
    border: none !important;
    opacity: 0;
}

.accordion-collapse.show {
    opacity: 1;
}

.accordion-button {
    background: transparent !important;
    color: #333;
    font-weight: bold;
    border: none !important;
    padding: 15px;
}

.accordion-button:not(.collapsed) {
    color: #921a40;
    background: transparent !important;
}

.accordion-item {
    border: none !important;
    border-bottom: 1px solid #ddd !important;
}

.accordion-button::after {
    color: black;
}

.accordion-button:not(.collapsed)::after {
    color: black;
}

.accordion-collapse {
    border: none !important;
    transition: height 0.3s ease;
    /* ✅ smooth slide effect */
}

/* scrollbar css */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 20px;
}

.content-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    font-size: 14px;
}

.content-box h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.content-box .edit-link {
    color: #2874f0;
    font-size: 13px;
    cursor: pointer;
    margin-left: 10px;
}

.content-box label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.content-box input {
    width: 100%;
    border: 1px solid #ddd;
    padding: 8px;
    font-size: 14px;
    border-radius: 2px;
    background: #f5f5f5;
    margin-bottom: 15px;
}

.faq-section {
    font-size: 13px;
    margin-top: 20px;
}

.faq-section h6 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
}

.faq-section p {
    color: #555;
    margin-bottom: 12px;
}

.footer-banner {
    width: 100%;
    height: 120px;
    background: linear-gradient(to top right, #f7d100, #fff176);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 20px;
    margin-top: 20px;
}

/* Mobile: hide sidebar, show tab-bar */
/* Mobile view */
@media (max-width: 991px) {
    .sidebar {
        display: none !important;
    }

    .tab-bar {
        display: flex !important;
        position: sticky;
        top: 56px;
        /* navbar ke niche */
        z-index: 1000;
        background: #fff;
        border-bottom: 1px solid #ddd;
        overflow-x: auto;
        white-space: nowrap;
        height: 49px;
    }

    .tab-bar .tab-link {
        flex: 0 0 auto;
        font-size: 14px;
        padding: 10px 15px;
        cursor: pointer;
        color: #555;
    }

    .tab-bar .active {
        border-bottom: 2px solid #2874f0;
        color: #2874f0;
        font-weight: 600;
    }

    .main-content {
        margin: 0;
        padding: 15px;
        position: absolute;
        top: 23%;
    }

    .profileUser {
        display: none;
    }

    .cartBtn {
        display: none;
    }

    .recharge-section {
        flex-direction: column-reverse;
    }

    .mobile-cart,
    .mobile-profile {
        display: block !important;
    }
}

/* Footer accordion white arrow only on mobile */
@media (max-width: 767px) {
    .cartBtn {
        width: 100%;
    }

    .modal-dialog {
        margin: 0px;
    }
}

.mobile-cart,
.mobile-profile {
    display: none;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* Logo & Social */
.footer-logo {
    text-align: left;
}

.footer-logo img {
    max-width: 130px;
}

.footer-social {
    margin: 15px 0;
}

.footer-social a {
    display: inline-block;
    margin-right: 10px;
    font-size: 18px;
    color: #000;
    transition: 0.3s;
}

.footer-social a:hover {
    color: #5a2d82;
}

.store-btns img {
    height: 45px;
    margin-right: 10px;
}

/* Quick Links & Products */
.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #444;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #5a2d82;
}

/* Reach Us */
.footer-contact p {
    margin: 8px 0;
    color: #444;
}

.footer-contact i {
    margin-right: 8px;
    color: #000;
}

/* Bottom Bar */
.footer-bottom {
    background: #537d5d;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    font-weight: bold;
}

.footer-col ul li a {
    position: relative;
    display: inline-block;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    /* smooth effect */
}

.footer-col ul li a:hover {
    color: #ff6600;
    /* hover pe text color change */
    padding-left: 8px;
    /* thoda sa slide effect */
}

/* underline animation */
.footer-col ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #ff6600;
    /* underline color */
    transition: width 0.3s ease;
}

.footer-col ul li a:hover::after {
    width: 100%;
    /* hover pe underline expand */
}

/* Responsive Logo */
.logo-img {
    max-width: 200px;
    /* Desktop max width */
    width: 100%;
    /* Shrinks naturally on smaller screens */
    height: auto;
    /* Maintain aspect ratio */
}

@media (max-width: 767px) {
    .footer-logo,
    .footer-bottom {
        justify-content: center;
    }

    .footer-social {
        align-items: center;
        text-align: center;
    }

    .logo-img {
        max-width: 110px;
        /* Slightly smaller on mobile */
    }
}

.page-header {
    background: linear-gradient(135deg, #84b790, #537d5d);
    color: white;
    padding: 3rem 1rem;
    border-radius: 0 0 2rem 2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease forwards;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.page-header p {
    font-size: 1.1rem;
}

.page-content {
    background: white;
    padding: 2rem;
    margin-top: -2rem;
    border-radius: 1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease forwards;
}

.page-content h3 {
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.content-section ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #007bff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 1rem;
    border-left: 4px solid #007bff;
    padding-left: 10px;
}
