/* main.css - Arquivo Principal */
/* Importa todos os arquivos CSS organizados */

/* Base */
@import 'base/_variables.css';
@import 'base/_reset.css';

/* Layout */
@import 'layout/_header.css';
@import 'layout/_footer.css';

/* Pages */
@import 'pages/_home.css';
@import 'pages/_products.css';
@import 'pages/_product-detail.css';
@import 'pages/_cart.css';
@import 'pages/_checkout.css';
@import 'pages/_profile.css';
@import 'pages/_confirmation.css';
@import 'pages/_brands.css';
@import 'pages/_admin.css';
@import 'pages/_products-cards.css';
@import 'pages/_products-management.css';
@import 'pages/_users-management.css';
@import 'pages/_orders-management.css';
@import 'pages/_audit-logs.css';
@import 'pages/_notifications.css';

/* Components */
@import 'components/_cards.css';

/* Media Queries Globais */
@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .brand-title {
        font-size: 1.6rem;
    }
    
    .brand-subtitle {
        font-size: 0.8rem;
    }
    
    .brand-logo-header img {
        max-height: 60px;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-login, .btn-register {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar .container > div {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .brand-section {
        order: 1;
        width: 100%;
        justify-content: center;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .brand-name {
        align-items: center;
    }
    
    .search-bar {
        order: 2;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .phone-section, .account-section, .cart-section {
        order: 3;
    }
    
    .auth-buttons {
        order: 4;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .category-nav .navbar-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .category-nav .nav-link {
        padding: 0.8rem 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .top-bar .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
        margin: 10px 0;
    }
    
    .header-actions {
        flex-direction: column;
    }
    
    .search-form input {
        width: 100%;
    }
    
    .carousel-item {
        height: 500px;
    }
    
    .carousel-caption {
        padding: 0 30px;
        background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
    }
    
    .caption-content {
        padding-left: 20px;
    }
    
    .caption-content h1 {
        font-size: 2.2rem;
    }
    
    .caption-content .subtitle {
        font-size: 1.2rem;
    }
    
    .product-counter {
        display: none;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

@media (max-width: 576px) {
    .brand-title {
        font-size: 1.4rem;
    }
    
    .brand-logo-header img {
        max-height: 50px;
    }
    
    .phone-section, .account-section {
        flex-direction: column;
        text-align: center;
    }
    
    .phone-text, .account-text {
        align-items: center;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .caption-content h1 {
        font-size: 1.8rem;
    }
    
    .caption-content .subtitle {
        font-size: 1rem;
    }
    
    .caption-content .btn-hero {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .featured h2 {
        font-size: 2rem;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

.categories {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #28a745, transparent);
}

.categories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #333;
    font-weight: 700;
}

.category-card {
    display: block;
    text-align: center;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    background-color: #28a745;
    color: white;
    transform: translateY(-5px);
    border-color: #28a745;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.2);
}

.category-card:hover .category-icon {
    background-color: white;
    color: #28a745;
}

.category-icon {
    width: 80px;
    height: 80px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.category-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.category-card p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.category-card:hover p {
    color: rgba(255,255,255,0.9);
}

.top-brands {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.top-brands::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #28a745, transparent);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.brands-slider-container {
    position: relative;
    padding: 20px 0;
}

.brand-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.15);
    border-color: #28a745;
}

.brand-card:hover::before {
    opacity: 1;
}

.brand-logo-container {
    position: relative;
    margin-bottom: 20px;
}

.brand-logo {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.brand-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0) 0%, rgba(32, 201, 151, 0) 100%);
    transition: all 0.3s ease;
}

.brand-card:hover .brand-logo::after {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
}

.brand-img {
    max-height: 80px;
    max-width: 80%;
    object-fit: contain;
    transition: all 0.5s ease;
    filter: grayscale(20%);
}

.brand-card:hover .brand-img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.brand-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.brand-card:hover .brand-overlay {
    opacity: 1;
}

.brand-overlay .btn {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.brand-card:hover .brand-overlay .btn {
    transform: translateY(0);
}

.brand-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.brand-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.brand-card:hover .brand-name {
    color: #28a745;
}

.brand-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex: 1;
}

.brand-stats {
    display: flex;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.stat-item {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-item i {
    color: #28a745;
    font-size: 1rem;
}

/* Placeholder for brands without logos */
.placeholder-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-weight: 800;
    font-size: 1.8rem;
    border-radius: 12px;
    letter-spacing: 1px;
}

/* Brands Carousel Controls */
.brand-control {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    z-index: 10;
}

.brand-control:hover {
    background: #28a745;
    border-color: #28a745;
    transform: translateY(-50%) scale(1.1);
}

.brand-control:hover .carousel-control-prev-icon,
.brand-control:hover .carousel-control-next-icon {
    filter: invert(1);
}

.brand-control .carousel-control-prev-icon,
.brand-control .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

.carousel-control-prev.brand-control {
    left: -28px;
}

.carousel-control-next.brand-control {
    right: -28px;
}

/* Carousel Indicators */
.carousel-indicators-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-indicators-container button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background-color: #dee2e6;
    transition: all 0.4s ease;
    padding: 0;
    position: relative;
}

.carousel-indicators-container button::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators-container button.active {
    background-color: #28a745;
    transform: scale(1.2);
}

.carousel-indicators-container button.active::before {
    border-color: rgba(40, 167, 69, 0.3);
}

.carousel-indicators-container button:hover {
    background-color: #28a745;
}

/* Responsive Design for Brands */
@media (max-width: 1200px) {
    .carousel-control-prev.brand-control {
        left: -15px;
    }
    
    .carousel-control-next.brand-control {
        right: -15px;
    }
}

@media (max-width: 992px) {
    .brand-logo {
        height: 120px;
    }
    
    .brand-img {
        max-height: 70px;
    }
    
    .placeholder-logo {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .brand-card {
        padding: 20px;
    }
    
    .brand-logo {
        height: 100px;
        padding: 15px;
    }
    
    .brand-img {
        max-height: 60px;
    }
    
    .placeholder-logo {
        font-size: 1.3rem;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-control {
        width: 48px;
        height: 48px;
        display: none; /* Hide controls on mobile */
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        height: 90px;
    }
    
    .brand-img {
        max-height: 50px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .brand-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .carousel-indicators-container {
        margin-top: 30px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

/* Animation for brand cards on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.brand-card:nth-child(1) { animation-delay: 0.1s; }
.brand-card:nth-child(2) { animation-delay: 0.2s; }
.brand-card:nth-child(3) { animation-delay: 0.3s; }
.brand-card:nth-child(4) { animation-delay: 0.4s; }
.brand-card:nth-child(5) { animation-delay: 0.5s; }
.brand-card:nth-child(6) { animation-delay: 0.6s; }
.brand-card:nth-child(7) { animation-delay: 0.7s; }
.brand-card:nth-child(8) { animation-delay: 0.8s; }

.certifications {
    position: relative;
    overflow: hidden;
}

.certifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #28a745, transparent);
}

.certifications-content {
    padding-right: 30px;
}

.certifications-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.certifications-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
}

.certifications-description {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-top: 40px;
}

.certifications-highlight {
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.1);
    border-left: 5px solid #28a745;
    display: inline-block;
}

.highlight-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #28a745;
    margin: 0;
    line-height: 1;
}

.highlight-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 10px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.certification-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.15);
    border-color: #28a745;
}

.certification-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.certification-logo img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.certification-card:hover .certification-logo img {
    transform: scale(1.1);
}

.certification-info h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.certification-info p {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Placeholder para certificações sem imagem */
.certification-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 12px;
}

/* Responsive Design para Certificações */
@media (max-width: 992px) {
    .certifications-title {
        font-size: 2.2rem;
    }
    
    .certifications-description {
        font-size: 1.1rem;
    }
    
    .highlight-number {
        font-size: 3rem;
    }
    
    .highlight-text {
        font-size: 1.1rem;
    }
    
    .certification-logo {
        height: 80px;
    }
    
    .certification-logo img {
        max-height: 60px;
    }
}

@media (max-width: 768px) {
    .certifications-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .certifications-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .certifications-title {
        font-size: 2rem;
    }
    
    .certifications-description {
        font-size: 1rem;
    }
    
    .certifications-grid {
        gap: 20px;
    }
    
    .certification-card {
        padding: 20px;
    }
    
    .certification-info h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .certifications-title {
        font-size: 1.8rem;
    }
    
    .highlight-number {
        font-size: 2.5rem;
    }
    
    .certification-logo {
        height: 70px;
    }
    
    .certification-logo img {
        max-height: 50px;
    }
}

/* Animações para certificações */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.certifications-content {
    animation: fadeInLeft 0.8s ease forwards;
    opacity: 0;
}

.certifications-grid {
    animation: fadeInRight 0.8s ease forwards 0.3s;
    opacity: 0;
}

/* Animação para o contador do carrinho */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease;
}


/*Quick View*/
/* quick-view-compact.css */
#quickViewModal .modal-dialog {
    max-width: 850px;
    margin: 1rem auto;
}

#quickViewModal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

#quickViewModal .modal-header {
    background: var(--primary-green);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: none;
    position: relative;
}

#quickViewModal .modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    max-width: calc(100% - 40px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#quickViewModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
    padding: 0.25rem;
}

#quickViewModal .btn-close:hover {
    opacity: 1;
}

#quickViewModal .modal-body {
    padding: 0;
    max-height: 500px;
    overflow: hidden;
}

/* Layout Compacto */
.quick-view-compact {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    height: 500px;
}

/* Left: Images Section */
.images-section {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.main-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: white;
}

.main-image-container img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

/* Thumbnails Grid */
.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.thumbnail-item {
    aspect-ratio: 1/1;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.thumbnail-item:hover {
    border-color: var(--primary-green);
}

.thumbnail-item.active {
    border-color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder {
    color: #adb5bd;
    font-size: 1.5rem;
}

/* Right: Details Section */
.details-section {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

/* SKU and Price Compact */
.sku-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.sku-badge {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.price-compact {
    text-align: right;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.original-price {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: line-through;
    display: block;
}

.save-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    margin-top: 0.25rem;
}

.ex-vat {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.login-price {
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 600;
}

/* Stock Status Compact */
.stock-status-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stock-in {
    background: #d4edda;
    color: #155724;
}

.stock-low {
    background: #fff3cd;
    color: #856404;
}

.stock-out {
    background: #f8d7da;
    color: #721c24;
}

/* Description Compact */
.description-compact {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #495057;
    max-height: 100px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.description-compact::-webkit-scrollbar {
    width: 4px;
}

.description-compact::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 2px;
}

/* Variations Compact */
.variations-compact {
    margin-bottom: 1rem;
}

.variation-group {
    margin-bottom: 1rem;
}

.variation-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.color-options-compact {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-option-compact {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.color-option-compact:hover {
    transform: scale(1.1);
}

.color-option-compact.selected {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.color-option-compact.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.size-options-compact {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-option-compact {
    min-width: 36px;
    height: 36px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-option-compact:hover:not(.disabled) {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.size-option-compact.selected {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.size-option-compact.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Quantity and Add to Cart */
.quantity-cart-row {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.quantity-controls-compact {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    width: 110px;
}

.qty-btn-compact {
    width: 32px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    color: #495057;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.qty-btn-compact:hover:not(:disabled) {
    background: var(--primary-green);
    color: white;
}

.qty-input-compact {
    width: 46px;
    height: 40px;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.add-to-cart-compact {
    flex: 1;
    height: 40px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-cart-compact:hover:not(:disabled) {
    background: var(--dark-green);
    transform: translateY(-1px);
}

.add-to-cart-compact:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}

.login-btn-compact {
    flex: 1;
    height: 40px;
    background: white;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.login-btn-compact:hover {
    background: var(--primary-green);
    color: white;
}

/* Footer Compact */
.modal-footer-compact {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-details-btn {
    font-size: 0.85rem;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.view-details-btn:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    #quickViewModal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
        max-height: 90vh;
    }
    
    .quick-view-compact {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 400px;
    }
    
    .images-section {
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .main-image-container {
        padding: 1rem;
    }
    
    .main-image-container img {
        max-height: 140px;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(5, 1fr);
        padding: 0.75rem;
        gap: 0.25rem;
    }
    
    .thumbnail-item {
        aspect-ratio: 1/1;
    }
    
    .details-section {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .quantity-cart-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quantity-controls-compact {
        width: 100%;
    }
    
    .modal-footer-compact {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}