html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* ── Admin Panel ─────────────────────────────── */
body { background-color: #f5f6fa; }

.action-card { transition: .2s; cursor: pointer; }
.action-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12) !important; }

.rounded-top-4 { border-top-left-radius: 1rem !important; border-top-right-radius: 1rem !important; }
.rounded-bottom-4 { border-bottom-left-radius: 1rem !important; border-bottom-right-radius: 1rem !important; }
.border-transparent { border-color: transparent !important; }

/* template selection hover */
.template-option:hover { border-color: #0d6efd !important; }

/* ── One-Click Features Strip ─────────────────── */
.feature-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .75rem .5rem;
    border-radius: 1rem;
    transition: transform .2s, box-shadow .2s, background .2s;
    cursor: default;
    height: 100%;
}
.feature-chip:hover {
    transform: translateY(-5px);
    background: #f9fafb;
    box-shadow: 0 8px 24px rgba(0,0,0,.09);
}
.feature-chip-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .65rem;
    box-shadow: 0 3px 10px rgba(0,0,0,.1);
    transition: transform .2s;
}
.feature-chip:hover .feature-chip-icon {
    transform: scale(1.1);
}
.feature-chip-label {
    font-size: .78rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

/* ── Global Mobile Responsiveness ─────────────── */
@media (max-width: 575.98px) {
    /* Navbar brand text shrink */
    .navbar-brand { font-size: .85rem !important; }

    /* Hero section text */
    .display-4 { font-size: 1.9rem !important; }
    .lead { font-size: 1rem !important; }

    /* Stack hero buttons vertically on tiny screens */
    .hero-btn-group { flex-direction: column !important; gap: .75rem !important; }
    .hero-btn-group .btn { width: 100%; }

    /* Admin tables scroll on mobile */
    .table-responsive-mobile { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Card form inputs full width */
    .form-row-mobile > * { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }

    /* Reduce section padding */
    .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }

    /* Prevent horizontal overflow site-wide */
    body { overflow-x: hidden; }
    .container, .container-fluid { padding-left: 1rem; padding-right: 1rem; }

    /* Footer small text legibility */
    footer small { font-size: .75rem; }
}

@media (max-width: 767.98px) {
    /* Admin dashboard cards equal height grid */
    .admin-stat-row .col-6 { margin-bottom: .75rem; }

    /* Product/gallery image grid spacing */
    .row.g-3 > .col-6 { padding: .3rem; }

    /* Dropdown full width on mobile */
    .dropdown-menu { width: 100vw; border-radius: 0; left: 0 !important; right: 0 !important; }
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}