/* Variables */
:root {
--primary-color: #8b0000; /* Color rojo oscuro/granate del logo */
--primary-light: #a52a2a;
--primary-dark: #660000;
--secondary-color: #f8f9fa;
--accent-color: #ffc107;
--text-color: #333;
--light-text: #fff;
--border-color: #dee2e6;
--success-color: #28a745;
--warning-color: #ffc107;
--danger-color: #dc3545;
--gray-light: #f8f9fa;
--gray-medium: #e9ecef;
--gray-dark: #6c757d;
--box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
--transition: all 0.3s ease;
}

/* General Styles */
body {
font-family: "Roboto", sans-serif;
color: var(--text-color);
padding-top: 76px; /* Para compensar la navbar fija */
}

a {
color: var(--primary-color);
text-decoration: none;
transition: var(--transition);
}

a:hover {
color: var(--primary-light);
}

.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
background-color: var(--primary-light);
border-color: var(--primary-light);
}

.btn-outline-primary {
color: var(--primary-color);
border-color: var(--primary-color);
}

.btn-outline-primary:hover {
background-color: var(--primary-color);
color: var(--light-text);
}

.section-header {
margin-bottom: 2rem;
}

/* Navbar */
.navbar {
background-color: var(--primary-color);
box-shadow: var(--box-shadow);
}

.navbar-brand img {
max-height: 50px;
}

.navbar-dark .navbar-nav .nav-link {
color: rgba(255, 255, 255, 0.85);
font-weight: 500;
padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
color: var(--light-text);
}

.cart-icon-container {
position: relative;
}

/* Carousel Section */
.carousel-section {
margin-top: -16px;
}

.carousel-item {
height: 500px;
}

.carousel-item img {
object-fit: cover;
height: 100%;
}

.carousel-caption {
background-color: rgba(0, 0, 0, 0.6);
padding: 20px;
border-radius: 5px;
bottom: 50px;
}

.carousel-caption h2 {
font-weight: 700;
margin-bottom: 10px;
}

/* Categorías */
.category-card {
position: relative;
border-radius: 8px;
overflow: hidden;
box-shadow: var(--box-shadow);
height: 250px;
}

.category-card img {
width: 100%;
height: 100%;
object-fit: cover;
transition: var(--transition);
}

.category-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 20px;
color: var(--light-text);
}

.category-card:hover img {
transform: scale(1.05);
}

/* Productos */
.product-card {
border: 1px solid var(--border-color);
border-radius: 8px;
overflow: hidden;
transition: var(--transition);
position: relative;
}

.product-card:hover {
transform: translateY(-5px);
box-shadow: var(--box-shadow);
}

.product-card .card-img-top {
height: 200px;
object-fit: contain;
padding: 15px;
background-color: #fff;
}

.product-card .card-body {
padding: 15px;
}

.product-card .card-title {
font-size: 1rem;
font-weight: 600;
margin-bottom: 10px;
height: 40px;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

.stock-info {
font-size: 0.85rem;
margin-bottom: 10px;
padding: 2px 8px;
border-radius: 4px;
display: inline-block;
}

.in-stock {
background-color: rgba(40, 167, 69, 0.1);
color: var(--success-color);
}

.low-stock {
background-color: rgba(255, 193, 7, 0.1);
color: var(--warning-color);
}

.out-of-stock {
background-color: rgba(220, 53, 69, 0.1);
color: var(--danger-color);
}

.price-container {
margin-bottom: 15px;
}

.original-price {
text-decoration: line-through;
color: var(--gray-dark);
font-size: 0.9rem;
margin-right: 8px;
}

.current-price {
font-weight: 700;
font-size: 1.2rem;
color: var(--primary-color);
}

.discount-badge {
position: absolute;
top: 10px;
right: 10px;
background-color: var(--accent-color);
color: #000;
font-weight: 700;
padding: 5px 10px;
border-radius: 4px;
z-index: 1;
}

/* Sobre Nosotros */
.about-content {
padding-right: 30px;
}

.about-image img {
width: 100%;
height: auto;
}

.feature-item {
display: flex;
align-items: center;
margin-bottom: 10px;
}

.feature-item i {
color: var(--primary-color);
margin-right: 10px;
font-size: 1.2rem;
}

/* Testimonios */
.testimonial-card {
background-color: #fff;
border-radius: 8px;
padding: 30px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-rating {
color: var(--accent-color);
margin-bottom: 15px;
}

.testimonial-text {
font-style: italic;
margin-bottom: 20px;
font-size: 1.1rem;
}

.testimonial-author {
display: flex;
align-items: center;
}

.testimonial-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
object-fit: cover;
margin-right: 15px;
}

.testimonial-info h5 {
margin-bottom: 0;
font-weight: 600;
}

.testimonial-info p {
margin-bottom: 0;
color: var(--gray-dark);
}

/* Ubicación */
.map-container {
height: 450px;
border-radius: 8px;
overflow: hidden;
box-shadow: var(--box-shadow);
}

.location-info {
height: 100%;
display: flex;
flex-direction: column;
}

.info-card {
background-color: #fff;
border-radius: 8px;
padding: 20px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
font-size: 1.2rem;
margin-bottom: 15px;
color: var(--primary-color);
}

.info-card h3 i {
margin-right: 10px;
}

/* Footer */
.footer {
background-color: var(--primary-dark);
color: var(--light-text);
}

.footer-brand img {
max-height: 60px;
}

.footer h5 {
color: var(--light-text);
margin-bottom: 20px;
font-weight: 600;
}

.footer-links,
.footer-contact {
list-style: none;
padding-left: 0;
}

.footer-links li,
.footer-contact li {
margin-bottom: 10px;
}

.footer-links a {
color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
color: var(--light-text);
}

.footer-contact li {
display: flex;
align-items: center;
}

.footer-contact li i {
margin-right: 10px;
color: var(--accent-color);
}

.social-links {
display: flex;
}

.social-link {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 50%;
margin-right: 10px;
color: var(--light-text);
}

.social-link:hover {
background-color: var(--accent-color);
color: var(--text-color);
}

.copyright {
margin-bottom: 0;
}

.footer-bottom-links {
display: flex;
list-style: none;
padding-left: 0;
margin-bottom: 0;
justify-content: flex-end;
}

.footer-bottom-links li {
margin-left: 20px;
}

.footer-bottom-links a {
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
}

/* WhatsApp Bubble */
.whatsapp-bubble {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
}

.whatsapp-bubble a {
display: flex;
align-items: center;
background-color: #25d366;
color: white;
padding: 10px 20px;
border-radius: 30px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
}

.whatsapp-bubble a:hover {
background-color: #128c7e;
transform: scale(1.05);
}

.whatsapp-bubble i {
font-size: 24px;
margin-right: 10px;
}

/* Cart Offcanvas */
.cart-items {
max-height: calc(100vh - 250px);
overflow-y: auto;
}

.cart-item {
display: flex;
padding: 15px 0;
border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
width: 80px;
height: 80px;
object-fit: contain;
margin-right: 15px;
}

.cart-item-details {
flex-grow: 1;
}

.cart-item-name {
font-weight: 600;
margin-bottom: 5px;
}

.cart-item-price {
color: var(--primary-color);
font-weight: 600;
}

.cart-item-quantity {
display: flex;
align-items: center;
margin-top: 10px;
}

.quantity-btn {
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--gray-light);
border: 1px solid var(--border-color);
cursor: pointer;
}

.quantity-input {
width: 40px;
height: 30px;
text-align: center;
border: 1px solid var(--border-color);
border-left: none;
border-right: none;
}

.cart-item-remove {
color: var(--danger-color);
cursor: pointer;
margin-left: 10px;
}

.cart-summary {
border-top: 2px solid var(--border-color);
padding-top: 15px;
}

/* Catálogo de Productos */
.catalog-header {
background-color: var(--primary-color);
color: var(--light-text);
padding-top: 100px;
margin-top: -76px;
}

.filter-sidebar {
background-color: #fff;
border-radius: 8px;
padding: 20px;
box-shadow: var(--box-shadow);
position: sticky;
top: 90px;
}

.filter-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}

.filter-section {
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
border-bottom: none;
padding-bottom: 0;
margin-bottom: 0;
}

.filter-section h5 {
font-size: 1rem;
margin-bottom: 15px;
font-weight: 600;
}

.price-range {
margin-top: 10px;
}

.results-count {
margin-bottom: 0;
font-weight: 500;
}

/* Responsive */
@media (max-width: 991.98px) {
.carousel-item {
    height: 400px;
}

.about-content {
    padding-right: 0;
    margin-bottom: 30px;
}

.filter-sidebar {
    position: static;
    margin-bottom: 30px;
}
}

@media (max-width: 767.98px) {
.carousel-item {
    height: 300px;
}

.whatsapp-bubble span {
    display: none;
}

.whatsapp-bubble a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
}

.whatsapp-bubble i {
    margin-right: 0;
}

.catalog-header-controls .col-md-6:first-child {
    margin-bottom: 15px;
}
}

@media (max-width: 575.98px) {
.carousel-item {
    height: 250px;
}

.footer-bottom-links {
    justify-content: flex-start;
    margin-top: 10px;
}

.footer-bottom-links li {
    margin-left: 0;
    margin-right: 20px;
}
}
