* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Plus Jakarta Sans', sans-serif;
}

:root {
	--primary: #673de5;
	--primary-dark: #2f1c6b;
	--primary-darker: #1f1345;
	--primary-light: #8d85ff;
	--primary-lighter: #d5dfff;
	--bg-white: #ffffff;
	--bg-light: #fafbff;
	--bg-lighter: #f5f5ff;
	--bg-soft: #f4f5ff;
	--bg-footer: #0f0f23;
	--text-title: #261559;
	--text-body: #1d1e20;
	--text-light: #64748B;
	--accent-yellow: #F59E0B;
	--accent-green: #10B981;
	--accent-orange: #EA580C;
	--gradient-primary: linear-gradient(135deg, #f5f5ff 0%, #d5dfff 100%);
	--gradient-hero: linear-gradient(135deg, #fafbff 0%, #f4f5ff 100%);
	--gradient-dark: linear-gradient(135deg, #673de5 0%, #2f1c6b 100%);
}

[data-theme="dark"] {
	--primary: #8d85ff;
	--primary-dark: #673de5;
	--primary-darker: #2f1c6b;
	--primary-light: #a8a2ff;
	--primary-lighter: #2f1c6b;
	--bg-white: #0f0f23;
	--bg-light: #1a1a2e;
	--bg-lighter: #16213e;
	--bg-soft: #1e1e3a;
	--text-title: #ffffff;
	--text-body: #e2e8f0;
	--text-light: #94a3b8;
	--gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	--gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #1e1e3a 100%);
	--gradient-dark: linear-gradient(135deg, #8d85ff 0%, #673de5 100%);
}

body {
	background-color: var(--bg-white);
	color: var(--text-body);
	line-height: 1.6;
	transition: all 0.3s ease;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.logo-dark {
    display: none;
}

.footer-column .logo-img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-column:first-child ul {
    padding-left: 15px;
}

.footer-column:first-child .logo-img,
.footer-column:first-child ul {
    margin-top: -10px;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

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

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

.logo-img-small {
    height: 30px;
}

.logo-img-large {
    height: 60px;
}

nav ul {
	display: flex;
	list-style: none;
	gap: 25px;
}

nav a {
	text-decoration: none;
	color: var(--text-body);
	font-weight: 600;
	transition: color 0.3s;
	font-size: 15px;
}

nav a:hover {
	color: var(--primary);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-body);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

.auth-buttons {
	display: flex;
	gap: 10px;
}

.btn {
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	border: none;
	font-size: 14px;
}

.btn-outline {
	background: transparent;
	border: 1px solid var(--primary);
	color: var(--primary);
}

.btn-primary {
	background-color: var(--primary);
	color: white;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero {
	padding: 80px 0;
	background: var(--gradient-hero);
	text-align: center;
	border-radius: 0 0 30px 30px;
}

.hero h1 {
	font-size: 48px;
	margin-bottom: 20px;
	color: var(--text-title);
	font-weight: 800;
}

.hero p {
	font-size: 20px;
	max-width: 700px;
	margin: 0 auto 30px;
	color: var(--text-body);
	font-weight: 500;
}

.search-box {
	max-width: 600px;
	margin: 0 auto;
	position: relative;
}

.search-box input {
	width: 100%;
	padding: 15px 20px;
	border-radius: 50px;
	border: 1px solid var(--primary-lighter);
	background: var(--bg-white);
	color: var(--text-body);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	font-size: 16px;
}

.search-box button {
	position: absolute;
	right: 5px;
	top: 5px;
	background-color: var(--primary);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 50px;
	cursor: pointer;
}

.section {
	padding: 60px 0;
}

.bg-light {
	background-color: var(--bg-light);
}

.section-title {
	text-align: center;
	margin-bottom: 40px;
	font-size: 32px;
	color: var(--text-title);
	font-weight: 800;
}

.section-subtitle {
	text-align: center;
	margin-bottom: 40px;
	color: var(--text-body);
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	font-weight: 500;
}

.stores-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 15px;
}

.store-card {
	background: var(--bg-white);
	border-radius: 10px;
	padding: 15px 10px;
	text-align: center;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s;
	cursor: pointer;
	border: 1px solid var(--primary-lighter);
}

.store-card:hover {
	transform: translateY(-5px);
	border-color: var(--primary-light);
}

.store-logo {
	width: 50px;
	height: 50px;
	background-color: var(--bg-soft);
	border-radius: 10px;
	margin: 0 auto 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: var(--primary);
	font-size: 20px;
}

.store-card h3 {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-body);
}

.coupons-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.coupon-card {
	background: var(--bg-white);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--primary-lighter);
	transition: transform 0.3s;
}

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

.coupon-header {
	padding: 15px;
	background-color: var(--primary);
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.coupon-code {
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 1px;
}

.coupon-discount {
	background-color: var(--accent-yellow);
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: bold;
	font-size: 13px;
}

.coupon-body {
	padding: 15px;
}

.coupon-store {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.store-icon {
	width: 30px;
	height: 30px;
	background-color: var(--bg-soft);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: var(--primary);
}

.coupon-description {
	color: var(--text-body);
	margin-bottom: 15px;
	font-size: 14px;
}

.coupon-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 15px;
	border-top: 1px solid var(--primary-lighter);
}

.expiry {
	font-size: 13px;
	color: var(--text-light);
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.category-card {
	background: var(--bg-white);
	border-radius: 10px;
	padding: 25px 20px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: all 0.3s;
	cursor: pointer;
	border: 1px solid var(--primary-lighter);
}

.category-card:hover {
	background-color: var(--primary);
	color: white;
	transform: translateY(-5px);
}

.category-icon {
	width: 60px;
	height: 60px;
	background-color: var(--bg-soft);
	border-radius: 50%;
	margin: 0 auto 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: var(--primary);
}

.category-card:hover .category-icon {
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
}

.cta {
	background: var(--gradient-dark);
	color: white;
	padding: 80px 0;
	text-align: center;
	border-radius: 30px;
	max-width: 1200px;
	margin: 60px auto;
}

.cta .container {
	padding: 0 20px;
}

.cta h2 {
	font-size: 36px;
	margin-bottom: 20px;
	font-weight: 800;
}

.cta p {
	max-width: 600px;
	margin: 0 auto 30px;
	font-size: 18px;
	font-weight: 500;
}

.cta-section {
	padding: 0 20px;
}

.btn-light {
	background-color: white;
	color: var(--primary);
	font-weight: 700;
	padding: 12px 24px;
	font-size: 16px;
}

footer {
	background-color: var(--bg-footer);
	color: white;
	padding: 60px 0 30px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-column h3 {
	margin-bottom: 20px;
	font-size: 18px;
	font-weight: 700;
}

.footer-column ul {
	list-style: none;
}

.footer-column ul li {
	margin-bottom: 10px;
}

.footer-column a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s;
	font-weight: 500;
}

.footer-column a:hover {
	color: white;
}

.footer-column .search-box {
    position: relative;
    margin-bottom: 20px;
}

.footer-column .search-box input {
    width: 100%;
    padding: 12px 100px 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--primary-lighter);
    background: var(--bg-white);
    color: var(--text-body);
    font-size: 14px;
}

.footer-column .search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    height: calc(100% - 10px);
}

.social-icons {
	display: flex;
	gap: 15px;
	margin-top: 20px;
}

.social-icons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: white;
	transition: all 0.3s;
}

.social-icons a:hover {
	background-color: var(--primary);
	transform: translateY(-3px);
}

.copyright {
	text-align: center;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #ccc;
	font-size: 14px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(103, 61, 229, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(103, 61, 229, 0.4);
}

@media (max-width: 768px) {
	.header-content {
		flex-direction: column;
		gap: 15px;
	}
	nav ul {
		gap: 15px;
		flex-wrap: wrap;
		justify-content: center;
	}
	.header-actions {
		flex-direction: column;
		gap: 10px;
	}
	.hero h1 {
		font-size: 36px;
	}
	.hero p {
		font-size: 18px;
	}
	.stores-grid {
		grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	}
	.coupons-grid {
		grid-template-columns: 1fr;
	}
	.categories-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}
	.footer-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 15px;
	}
	.hero {
		padding: 60px 0;
	}
	.hero h1 {
		font-size: 28px;
	}
	.section {
		padding: 40px 0;
	}
	.section-title {
		font-size: 24px;
	}
	.auth-buttons {
		flex-direction: column;
		width: 100%;
	}
	.auth-buttons .btn {
		width: 100%;
		text-align: center;
	}
}


/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-nav {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.admin-nav a {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.admin-section {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-form {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    background: var(--bg-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2em;
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

table th {
    background: var(--bg-light);
    font-weight: 600;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.quick-actions {
    margin-top: 30px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Ofertas Grid */
.ofertas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.oferta-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--light-gray);
    transition: transform 0.3s;
    position: relative;
}

.oferta-card.destaque {
    border: 2px solid var(--accent-yellow);
}

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

.oferta-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-yellow);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.oferta-imagem {
    height: 200px;
    overflow: hidden;
}

.oferta-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oferta-content {
    padding: 15px;
}

.oferta-store {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
}

.oferta-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-title);
}

.oferta-description {
    color: var(--text-body);
    margin-bottom: 15px;
    font-size: 14px;
}

.oferta-prices {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.price-original {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 14px;
}

.price-discount {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

.oferta-cupom {
    background: var(--bg-light);
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px dashed var(--primary);
}

.oferta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

/* Lojas Grid */
.lojas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.loja-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--light-gray);
    transition: transform 0.3s;
}

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

.loja-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loja-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loja-logo.default {
    background: var(--primary);
    color: white;
    font-size: 30px;
}

.loja-content h3 {
    margin-bottom: 15px;
    color: var(--text-title);
}

.loja-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--gray);
}

.loja-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Categories Grid para página categorias */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--light-gray);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    background-color: var(--primary);
    color: white;
}

.category-card:hover .category-icon {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.category-card:hover h3,
.category-card:hover .stat {
    color: white;
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-soft);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.category-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* No styles.css - Atualize a classe .store-logo */
.store-logo {
    width: 50px;
    height: 50px;
    background-color: var(--bg-soft);
    border-radius: 10px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
    font-size: 20px;
    overflow: hidden;
}

.store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Adicione no styles.css */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-checkbox {
    margin: 10px 0;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
}

/* Alertas de Validade */
.validade-alert {
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 2px solid;
}

.validade-alert.urgente {
    background: #fef3f2;
    color: #dc2626;
    border-color: #fecaca;
}

.validade-alert.proximo {
    background: #fffbeb;
    color: #d97706;
    border-color: #fed7aa;
}

/* Estados dos cards */
.coupon-card.urgente,
.oferta-card.urgente {
    border: 2px solid #dc2626;
    animation: pulse 2s infinite;
}

.coupon-card.proximo,
.oferta-card.proximo {
    border: 2px solid #d97706;
}

.coupon-card.expirado,
.oferta-card.expirado {
    opacity: 0.6;
    filter: grayscale(0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}