/**
 * RRT Webshop - Estilos Específicos del Webshop
 */

/* Header del Webshop */
.webshop-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--spacing-md) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.logo:hover {
    text-decoration: none;
    color: var(--dark-green);
}

.logo img {
    height: 40px;
    width: auto;
}

/* Navegación */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--dark-gray);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-green);
    text-decoration: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width var(--transition-normal);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Carrito de Compras - Icono */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.cart-icon:hover {
    background-color: var(--light-gray);
    color: var(--primary-green);
    text-decoration: none;
}

.cart-badge {
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Slider Principal */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-gray);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: var(--spacing-lg);
    max-width: 800px;
}

.slide-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.slider-controls {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-xs);
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dot.active {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-gray);
    transition: all var(--transition-fast);
    z-index: 3;
}

.slider-arrow:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.slider-arrow.prev {
    left: var(--spacing-md);
}

.slider-arrow.next {
    right: var(--spacing-md);
}

/* Banners */
.banner-section {
    margin: var(--spacing-xl) 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.banner-card {
    position: relative;
    height: 200px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.banner-card:hover {
    transform: scale(1.02);
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
}

.banner-content {
    color: var(--white);
}

.banner-content h3 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

/* Lista de Productos */
.products-section {
    padding: var(--spacing-xl) 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Filtros de Productos */
.product-filters {
    background-color: var(--lighter-gray);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-lg);
}

.filter-group {
    margin-bottom: var(--spacing-md);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--dark-gray);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

/* Vista de Producto Individual */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.product-image-gallery {
    position: relative;
}

.product-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-md);
}

.product-thumbnails {
    display: flex;
    gap: var(--spacing-xs);
    overflow-x: auto;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--primary-green);
}

.product-info h1 {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-md);
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--spacing-md);
}

.product-description {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.product-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: var(--spacing-xs);
}

.quantity-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--dark-gray);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.quantity-btn:hover {
    background-color: var(--light-gray);
    color: var(--primary-green);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
}

/* Carrito de Compras */
.cart-section {
    padding: var(--spacing-xl) 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-table thead {
    background-color: var(--lighter-gray);
}

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

.cart-table th {
    font-weight: 600;
    color: var(--dark-gray);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cart-item-name {
    font-weight: 600;
    color: var(--dark-gray);
}

.cart-item-price {
    color: var(--primary-green);
    font-weight: 600;
}

.cart-total {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background-color: var(--lighter-gray);
    border-radius: var(--border-radius-lg);
    text-align: right;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

.cart-total-row.final {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--light-gray);
    margin-top: var(--spacing-md);
}

/* Footer */
.webshop-footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

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

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-green);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--medium-gray);
}

