/* Estilos customizados para a loja */

@import url('https://fonts.googleapis.com/css2?family=Rye&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Trenda:wght@700&display=swap');

/* Botão Fancy */
.fancy {
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    outline: none;
    overflow: visible;
    padding: 1.25em 2em;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    transition: all 0.3s ease-in-out;
    user-select: none;
    font-size: 13px;
}

.fancy::before {
    content: " ";
    width: 1.5625rem;
    height: 2px;
    background: white;
    top: 50%;
    left: 1.5em;
    position: absolute;
    transform: translateY(-50%);
    transform-origin: center;
    transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
    font-size: 1.125em;
    line-height: 1.33333em;
    padding-left: 2em;
    display: block;
    text-align: left;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
}

.fancy:hover {
    background-color: white;
}

.fancy:hover .text {
    color: black;
}

.fancy:hover::before {
    background: black;
}

/* Estilo Country para Botões */
.btn-country {
    background: linear-gradient(145deg, #8B4513, #654321);
    border: 3px solid #D2691E;
    color: #FFF8DC;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    box-shadow:
        0 4px 6px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.btn-country::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.btn-country:hover::before {
    left: 100%;
}

.btn-country:hover {
    background: linear-gradient(145deg, #A0522D, #8B4513);
    border-color: #CD853F;
    transform: translateY(-2px);
    box-shadow:
        0 6px 12px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Botão Amarelo Country (Destaque) */
.btn-yellow-country {
    background: linear-gradient(145deg, #DAA520, #B8860B);
    border: 3px solid #FFD700;
    color: #000;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
    box-shadow:
        0 4px 6px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-yellow-country:hover {
    background: linear-gradient(145deg, #FFD700, #DAA520);
    transform: translateY(-2px);
    box-shadow:
        0 6px 12px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Efeito de Couro/Bordado */
.leather-texture {
    background:
        repeating-linear-gradient(
            90deg,
            #8B4513 0px,
            #654321 2px,
            #8B4513 4px
        );
    border: 2px solid #D2691E;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

/* Hover effects para cards */
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Botões com efeitos */
.btn-primary {
    background: linear-gradient(145deg, #8B4513, #654321);
    border: 3px solid #D2691E;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(145deg, #A0522D, #8B4513);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    transform: translateY(-2px);
}

/* Animação de loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header fixo */
.header-fixed {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Cards de produto */
.produto-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.produto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.produto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.produto-card > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Badges e status */
.badge-destaque {
    background: linear-gradient(45deg, #F59E0B, #D97706);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Formulários */
.form-control {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Sidebar admin */
.admin-sidebar {
    background: linear-gradient(180deg, #1F2937, #111827);
    border-radius: 12px;
}

.admin-sidebar a {
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.admin-sidebar a:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

/* Tabelas responsivas */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table-responsive table {
    border-collapse: separate;
    border-spacing: 0;
}

.table-responsive th {
    background: #F9FAFB;
    font-weight: 600;
    color: #374151;
    padding: 16px;
}

.table-responsive td {
    padding: 16px;
    border-bottom: 1px solid #E5E7EB;
}

/* Modal customizado */
.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Alertas personalizados */
.alert {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border-left-color: #10B981;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border-left-color: #EF4444;
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border-left-color: #F59E0B;
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .grid-mobile {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .texto-mobile {
        font-size: 0.9rem;
    }
}

/* Animação de entrada */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Gradientes personalizados */
.gradient-primary {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
}

.gradient-success {
    background: linear-gradient(135deg, #10B981, #059669);
}

.gradient-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

/* Animações avançadas */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Classes de animação */
.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-pulse-custom {
    animation: pulse 2s infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* Efeitos de hover avançados */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Botões premium */
.btn-premium {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Cards premium */
.card-premium {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.card-premium:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Loader avançado */
.loader-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-dots div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #3B82F6;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loader-dots div:nth-child(1) {
    left: 8px;
    animation: loader1 0.6s infinite;
}

.loader-dots div:nth-child(2) {
    left: 8px;
    animation: loader2 0.6s infinite;
}

.loader-dots div:nth-child(3) {
    left: 32px;
    animation: loader2 0.6s infinite;
}

.loader-dots div:nth-child(4) {
    left: 56px;
    animation: loader3 0.6s infinite;
}

@keyframes loader1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loader3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes loader2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

/* Efeitos de background */
.bg-pattern {
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(255,255,255,0.2) 2%, transparent 3%),
        radial-gradient(circle at 75px 75px, rgba(255,255,255,0.2) 2%, transparent 3%);
    background-size: 100px 100px;
}

.bg-gradient-animated {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Texto com efeitos */
.text-gradient {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow-custom {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


/* Estados de carregamento */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Efeitos de focus aprimorados */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    border-color: #3B82F6;
}

/* Notificações toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #10B981;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left-color: #EF4444;
}

.toast.warning {
    border-left-color: #F59E0B;
}

.toast.info {
    border-left-color: #3B82F6;
}

/* Preços com destaque */
.price-highlight {
    position: relative;
    display: inline-block;
}

.price-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, #10B981, #059669);
    border-radius: 2px;
}

/* Badges e etiquetas */
.badge-new {
    background: linear-gradient(45deg, #EC4899, #BE185D);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.badge-sale {
    background: linear-gradient(45deg, #EF4444, #DC2626);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* Imagens com efeitos */
.image-zoom {
    overflow: hidden;
    border-radius: 12px;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Transições suaves para todos os elementos interativos */
button, a, input, select, textarea {
    transition: all 0.2s ease;
}

/* Circular Gallery */
.circular-gallery {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
}

.circular-gallery:active {
    cursor: grabbing;
}

.circular-gallery canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --text-primary: #ffffff;
        --border-color: #333333;
    }
}

/* Card de produtos em destaque (CARROSSEL) */
.card-destaque {
    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;
    flex: 0 0 400px !important;
    height: 600px !important;
    background: rgb(255, 255, 255);
    transition: transform 0.3s ease;
    display: block;
    box-sizing: border-box;
}

.card-destaque:hover {
    transform: translateY(-5px);
}

.card-destaque img {
    width: 100% !important;
    height: 520px !important;
    object-fit: cover;
    display: block;
}

/* Card de produtos GRID (responsivos) */
.card-produto-grid {
    width: 100%;
    height: auto;
    background: rgb(255, 255, 255);
    transition: transform 0.3s ease;
    display: block;
    box-sizing: border-box;
}

.card-produto-grid:hover {
    transform: translateY(-5px);
}

.card-produto-grid img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .card-produto-grid .info {
        padding: 8px;
    }

    .card-produto-grid .nome {
        font-size: 14px;
    }

    .card-produto-grid .preco {
        font-size: 16px;
    }
}

.card-destaque .info,
.card-produto-grid .info {
    padding: 12px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.card-destaque .nome,
.card-produto-grid .nome {
    font-family: 'Trenda', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #000;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-destaque .preco,
.card-produto-grid .preco {
    font-family: 'Trenda', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #000;
}

/* Container do carrossel */
.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.carousel-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #999;
    border: none;
    width: 50px;
    height: 180px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.carousel-arrow:hover {
    color: #333;
}

.carousel-arrow.left {
    left: 0;
}

.carousel-arrow.right {
    right: 0;
}

/* Gallery scroll horizontal */
.gallery-scroll-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.gallery-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 300px;
    background: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.gallery-item-text {
    padding: 12px;
    text-align: left;
    font-size: 16px;
    color: #666;
}

/* Modal overlay */
#uploadModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-body {
    padding: 20px;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: #999;
}

/* Animação de carrinho */
@keyframes cartBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2) rotate(-5deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    75% {
        transform: scale(1.15) rotate(-3deg);
    }
}

.cart-animate {
    animation: cartBounce 0.6s ease-in-out;
}

/* Select customizado estilo minimalista */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square' stroke-linejoin='miter'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

select option {
    background-color: white;
    color: black;
    padding: 8px;
    font-weight: bold;
}

select option:hover,
select option:focus,
select option:checked {
    background-color: #000 !important;
    color: #fff !important;
}