/* ============================================
   PHG - DESIGN MODERNO E RESPONSIVO
   ============================================ */

/* Importar fonte do Google */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Variáveis CSS — identidade PHG (azul personalizado) */
:root {
    /* Tom principal (~Steel Blue / referência #4A90C2) */
    --phg-blue: #4a90c2;
    --phg-blue-dark: #3578a8;
    --phg-blue-deep: #2d6a94;
    --phg-blue-light: #6ba8d4;
    --primary-color: var(--phg-blue);
    --primary-dark: var(--phg-blue-deep);
    --primary-light: var(--phg-blue-light);
    --primary-rgb: 74, 144, 194;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1e293b;
    --light-bg: #f4f8fc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--phg-blue) 0%, var(--phg-blue-dark) 50%, var(--phg-blue-deep) 100%);
    --gradient-accent: linear-gradient(135deg, var(--phg-blue-light) 0%, var(--phg-blue) 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-dark: linear-gradient(135deg, #1a2f42 0%, #2d4a63 100%);
    /* Alinhar botões/links Bootstrap ao PHG */
    --bs-primary: #4a90c2;
    --bs-primary-rgb: 74, 144, 194;
    --bs-link-color: #3578a8;
    --bs-link-hover-color: #2d6a94;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Hero: camadas transparentes (cor PHG suave sobre fundo claro) */
    --banner-glass-tint: linear-gradient(
        135deg,
        rgba(74, 144, 194, 0.28) 0%,
        rgba(107, 168, 212, 0.2) 45%,
        rgba(53, 120, 168, 0.26) 100%
    );
    --banner-glass-base: linear-gradient(180deg, rgba(248, 251, 255, 0.95) 0%, rgba(236, 245, 252, 0.88) 100%);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--light-bg);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   NAVBAR - HEADER MODERNO E RESPONSIVO
   ============================================ */

.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--white) !important;
}

.navbar-brand img {
    height: clamp(30px, 5vw, 40px);
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* Logo institucional PNG — versão branca (monocromática), tamanho bem grande */
.navbar-brand .site-brand-logo {
    height: auto !important;
    max-height: min(96px, 22vw);
    max-width: min(520px, 88vw);
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand-logo {
    display: inline-block;
    max-height: min(200px, 42vw);
    max-width: min(480px, 96vw);
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.navbar-brand .admin-brand-logo {
    height: auto !important;
    max-height: min(84px, 18vw);
    max-width: min(380px, 82vw);
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Login: painel escuro para o logótipo branco destacar no cartão claro */
.admin-login-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.35rem 2rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.admin-login-page .admin-login-logo-wrap .admin-brand-logo {
    height: auto !important;
    max-height: min(260px, 48vh);
    max-width: min(480px, 94vw);
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.navbar-brand span {
    color: var(--white) !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.navbar .btn-light {
    background-color: var(--white);
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.navbar .btn-light:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Input de busca responsivo */
.navbar .input-group {
    max-width: 100%;
}

.navbar .form-control {
    font-size: 0.9rem;
    min-width: 150px;
}

/* ============================================
   BANNER SECTION - RESPONSIVO
   ============================================ */

.banner-section {
    background: var(--banner-glass-tint), var(--banner-glass-base);
    color: var(--dark-color);
    padding: clamp(40px, 8vw, 80px) 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(74, 144, 194, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%234a90c2" fill-opacity="0.07"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.9;
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.banner-section .container {
    position: relative;
    z-index: 1;
}

.banner-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #153a5c;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    animation: fadeInUp 0.8s ease;
    line-height: 1.2;
}

.banner-section p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: #475569;
    opacity: 1;
    animation: fadeInUp 1s ease;
}

.banner-section .btn {
    padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 600;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: fadeInUp 1.2s ease;
    margin: 0.25rem;
}

.banner-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.banner-section .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
}

.banner-section .btn-outline-primary {
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(74, 144, 194, 0.55);
    color: var(--phg-blue-deep);
}

.banner-section .btn-outline-primary:hover {
    background: rgba(74, 144, 194, 0.12);
    border-color: var(--phg-blue);
    color: var(--phg-blue-deep);
}

.banner-section--bgimg {
    /* fundo completo vem do style inline quando há imagem */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Com imagem: overlay mais transparente para se ver a foto */
.banner-section--bgimg::before {
    opacity: 0.45;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.12"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
}

/* Carrossel hero (banner principal) */
.banner-section.hero-banner-carousel {
    padding: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(74, 144, 194, 0.18);
}

.banner-section.hero-banner-carousel::before {
    display: none;
}

.hero-banner-carousel__viewport {
    position: relative;
}

.hero-banner-carousel .carousel-item {
    min-height: min(72vh, 560px);
    background: linear-gradient(180deg, #e8eef5 0%, #dfe8f2 100%);
}

.hero-banner-carousel__media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2.5rem);
    background: radial-gradient(ellipse 120% 80% at 50% 40%, rgba(255, 255, 255, 0.35) 0%, transparent 55%),
        linear-gradient(135deg, rgba(248, 251, 255, 0.5) 0%, rgba(232, 242, 252, 0.65) 100%);
}

.hero-banner-carousel__img {
    width: 100%;
    max-width: min(1200px, 100%);
    max-height: min(52vh, 480px);
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 12px 28px rgba(30, 58, 95, 0.18));
}

.hero-banner-carousel__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-banner-carousel__overlay .container {
    pointer-events: auto;
}

.hero-banner-carousel__overlay h1,
.hero-banner-carousel__overlay p {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9), 0 2px 12px rgba(248, 251, 255, 0.85);
}

.hero-banner-carousel .carousel-indicators.carousel-indicators--hero {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 4;
    gap: 0.4rem;
}

.hero-banner-carousel .carousel-indicators--hero button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(21, 58, 92, 0.35);
    border: none;
    margin: 0;
}

.hero-banner-carousel .carousel-indicators--hero button.active {
    background-color: var(--phg-blue-deep);
}

.hero-banner-carousel__control {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
    opacity: 1;
    z-index: 4;
}

.hero-banner-carousel__control .carousel-control-prev-icon,
.hero-banner-carousel__control .carousel-control-next-icon {
    filter: invert(35%) sepia(40%) saturate(600%) hue-rotate(165deg);
    width: 1.35rem;
    height: 1.35rem;
}

@media (max-width: 991.98px) {
    .hero-banner-carousel .carousel-item {
        min-height: min(68vh, 520px);
    }

    .hero-banner-carousel__img {
        max-height: min(38vh, 320px);
    }
}

@media (max-width: 575.98px) {
    .hero-banner-carousel__control {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   CARROSSEL — PRODUTOS EM DESTAQUE (home)
   ============================================ */

.home-featured-carousel {
    padding: clamp(1.5rem, 4vw, 2.75rem) 0;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.07) 0%, var(--white) 100%);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.home-featured-carousel__title {
    color: var(--dark-color);
    font-weight: 700;
}

.home-featured-carousel__img-wrap {
    transition: var(--transition);
}

.home-featured-carousel__img-wrap:hover {
    transform: translateY(-4px);
}

.home-featured-carousel__img {
    max-height: min(420px, 52vh);
    width: 100%;
    object-fit: contain;
    background: var(--white);
}

.home-featured-carousel__placeholder {
    min-height: 260px;
    background: linear-gradient(145deg, #f1f5f9, #e8f0f8);
}

.home-featured-carousel__product-title {
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 800;
    color: #153a5c;
}

.home-featured-carousel__price {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--phg-blue-deep);
}

.home-featured-carousel .carousel-indicators.carousel-indicators--phg {
    position: static;
    margin: 0 auto 1rem;
    gap: 0.45rem;
    justify-content: center;
}

.home-featured-carousel .carousel-indicators--phg button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.35);
    border: none;
    margin: 0;
}

.home-featured-carousel .carousel-indicators--phg button.active {
    background-color: var(--phg-blue);
}

.home-featured-carousel__control {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    opacity: 1;
}

.home-featured-carousel__control .carousel-control-prev-icon,
.home-featured-carousel__control .carousel-control-next-icon {
    filter: invert(35%) sepia(40%) saturate(600%) hue-rotate(165deg);
    width: 1.4rem;
    height: 1.4rem;
}

.home-featured-carousel .carousel-item {
    transition: transform 0.6s ease-in-out, opacity 0.45s ease;
}

@media (max-width: 575.98px) {
    .home-featured-carousel__control {
        width: 38px;
        height: 38px;
    }
}

/* ============================================
   SECÇÃO EM DESTAQUE (home)
   ============================================ */

.home-destaque {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
    padding: clamp(2rem, 5vw, 3.5rem) 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.home-destaque__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.home-destaque__title {
    font-size: clamp(1.5rem, 3.5vw, 2.125rem);
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.home-destaque__text {
    font-size: 1.05rem;
    color: var(--secondary-color);
    max-width: 38rem;
    margin-bottom: 1.5rem;
}

.home-destaque__btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    box-shadow: var(--shadow-md);
}

.home-destaque__figure {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--white);
    padding: 0.5rem;
}

.home-destaque__img {
    border-radius: var(--radius-md);
    object-fit: cover;
    max-height: 320px;
    width: 100%;
}

/* ============================================
   SECÇÃO PROMOÇÃO (home)
   ============================================ */

.home-promo {
    margin-top: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.home-promo__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2.5rem);
}

.home-promo__content {
    flex: 1 1 18rem;
    min-width: 0;
}

.home-promo__badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.home-promo__title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.home-promo__text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    max-width: 42rem;
}

.home-promo__cta {
    flex-shrink: 0;
}

.home-promo__btn {
    background: var(--white);
    color: var(--dark-color);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.35rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.home-promo__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--dark-color);
}

.home-promo--coral {
    background: linear-gradient(125deg, var(--phg-blue-light) 0%, var(--phg-blue) 45%, var(--phg-blue-deep) 100%);
}

.home-promo--sunset {
    background: linear-gradient(125deg, #f59e0b 0%, #ef4444 50%, #db2777 100%);
}

.home-promo--emerald {
    background: linear-gradient(125deg, #0d9488 0%, var(--phg-blue) 50%, var(--phg-blue-deep) 100%);
}

.home-promo--violet {
    background: linear-gradient(125deg, #5b8ec9 0%, var(--phg-blue) 45%, #1e4d6b 100%);
}

/* ============================================
   CARDS DE PRODUTOS - ANIMAÇÕES E HOVER
   ============================================ */

.product-card {
    transition: var(--transition);
    height: 100%;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    background: var(--white);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(n+5) { animation-delay: 0.5s; }

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.product-card .card-img-top {
    height: clamp(200px, 30vw, 280px);
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}

.product-card:hover .card-img-top {
    transform: scale(1.15);
}

.product-card .card-body {
    padding: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-text {
    color: var(--secondary-color);
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.product-card .btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    transition: var(--transition);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.product-card .btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.product-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Badge de estoque */
.product-card small {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
}

/* ============================================
   CATEGORIAS - RESPONSIVO
   ============================================ */

.category-badge {
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-badge:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-badge.bg-primary {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
}

.category-badge i {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    display: block;
}

.category-badge strong {
    font-size: clamp(0.85rem, 2vw, 1rem);
}

/* ============================================
   FORMULÁRIOS E INPUTS - MELHORADOS
   ============================================ */

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 2px solid #e2e8f0;
    padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(0.8rem, 2vw, 1rem);
    transition: var(--transition);
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
    outline: none;
    transform: translateY(-1px);
}

.btn {
    border-radius: var(--radius-sm);
    padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--gradient-success);
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* ============================================
   CARRINHO - RESPONSIVO
   ============================================ */

.cart-item {
    border-bottom: 1px solid #e2e8f0;
    padding: clamp(1rem, 2vw, 1.5rem) 0;
    transition: background 0.3s ease;
}

.cart-item:hover {
    background-color: rgba(var(--primary-rgb), 0.04);
    border-radius: var(--radius-sm);
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
}

.total-section {
    background: var(--gradient-success);
    color: var(--white);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.total-section h4,
.total-section strong {
    color: var(--white);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

/* ============================================
   CHECKOUT - BANCOS
   ============================================ */

.bank-card {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.bank-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.08);
    transform: translateX(5px);
}

.bank-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    box-shadow: var(--shadow-md);
}

.bank-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-decoration: none !important;
    border-bottom: none !important;
}

.bank-card .form-check-label {
    text-decoration: none !important;
    border-bottom: none !important;
}

.bank-card .form-check-label:hover,
.bank-card .form-check-label:active,
.bank-card .form-check-label:focus {
    text-decoration: none !important;
    border-bottom: none !important;
}

.bank-details {
    display: none;
    margin-top: 1rem;
    padding: clamp(1rem, 2vw, 1.25rem);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    animation: slideDown 0.3s ease;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bank-details.show {
    display: block;
    max-height: 500px;
}

.bank-details code {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    word-break: break-all;
}

/* ============================================
   UPLOAD AREA - DRAG AND DROP
   ============================================ */

.upload-area {
    border: 3px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.04);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    transform: scale(1.02);
}

.upload-area i {
    font-size: clamp(3rem, 6vw, 4rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ============================================
   CARDS E SEÇÕES
   ============================================ */

.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    padding: clamp(1rem, 2vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.5rem);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* ============================================
   BADGES E STATUS
   ============================================ */

.badge {
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.8rem, 1.5vw, 1rem);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
}

.status-badge {
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.8rem, 1.5vw, 1rem);
    border-radius: 20px;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    font-weight: 600;
}

/* ============================================
   FOOTER - RESPONSIVO
   ============================================ */

footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(1rem, 2vw, 1.5rem);
    margin-top: 4rem;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

footer p {
    opacity: 0.8;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

footer a:hover {
    color: var(--white);
    transform: translateX(3px);
}

/* ============================================
   ALERTAS
   ============================================ */

.alert {
    border-radius: var(--radius-sm);
    border: none;
    box-shadow: var(--shadow-sm);
    padding: clamp(1rem, 2vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.5rem);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #059669;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #dc2626;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    color: #0891b2;
    border-left: 4px solid var(--info-color);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.slide-in {
    animation: slideIn 0.5s ease;
}

/* Loading Spinner */
.spinner-border {
    width: clamp(2rem, 4vw, 3rem);
    height: clamp(2rem, 4vw, 3rem);
    border-width: 0.3em;
}

/* Lazy load placeholder */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* ============================================
   RESPONSIVIDADE COMPLETA - MOBILE FIRST
   ============================================ */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .banner-section {
        padding: 30px 0;
    }
    
    .banner-section h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .banner-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .product-card .card-img-top {
        height: 180px;
    }

    .navbar-nav {
        margin-top: 1rem;
        text-align: center;
    }

    .navbar .d-flex {
        margin-top: 1rem;
        margin-left: 0 !important;
        width: 100%;
    }
    
    .navbar .input-group {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .category-badge {
        padding: 1.5rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    section {
        margin-bottom: 2rem !important;
    }
    
    .row.g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .banner-section {
        padding: 40px 0;
    }
    
    .banner-section h1 {
        font-size: 2rem;
    }
    
    .banner-section p {
        font-size: 1.1rem;
    }

    .product-card .card-img-top {
        height: 220px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .banner-section {
        padding: 60px 0;
    }
    
    .product-card .card-img-top {
        height: 240px;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .banner-section {
        padding: 80px 0;
    }
    
    .product-card .card-img-top {
        height: 280px;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .banner-section {
        padding: 30px 0;
    }
    
    .banner-section h1 {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
        --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   MELHORIAS ESPECÍFICAS
   ============================================ */

/* Zoom na imagem do produto */
.product-main-image.zoomed {
    transform: scale(2);
    transition: transform 0.3s ease;
    z-index: 1000;
    position: relative;
}

/* Sticky sidebar no checkout/carrinho */
.sticky-top {
    position: -webkit-sticky;
    position: sticky;
}

/* Melhorias para inputs numéricos */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: auto;
}

/* Melhorias para tabelas responsivas */
.table-responsive {
    border-radius: var(--radius-md);
}

/* Back to top button (opcional) */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.back-to-top.show {
    display: flex;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ============================================
   PAINEL ADMIN — mesma identidade PHG
   ============================================ */

.navbar.bg-dark {
    background: var(--gradient-primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar .nav-link {
    color: var(--dark-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.15rem;
}

.admin-sidebar .nav-link:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--phg-blue-deep);
}

.admin-sidebar .nav-link.active {
    color: var(--phg-blue-deep);
    font-weight: 600;
    background: rgba(var(--primary-rgb), 0.12);
    border-left: 3px solid var(--phg-blue);
    padding-left: calc(1rem - 3px);
}

/* ============================================
   Melhorias para mobile - touch targets maiores
   ============================================ */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .nav-link {
        padding: 1rem !important;
    }
    
    input, select, textarea {
        font-size: 16px !important; /* Previne zoom no iOS */
    }
}
