/**
 * Default Theme Styles
 * 
 * Uses CSS custom properties defined in base.html.twig:
 * --primary-color, --secondary-color, --accent-color
 */

/* ============================================
   BASE STYLES
   ============================================ */

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

a {
    color: var(--secondary-color);
}

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

/* ============================================
   BUTTONS
   ============================================ */

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.navbar {
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Cart badge */
#cartCount {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.product-card .card-img-top {
    padding: 1rem;
    background: #fafafa;
}

.product-card .card-title {
    font-size: 1rem;
    line-height: 1.4;
}

.product-card .card-title a:hover {
    color: var(--primary-color) !important;
}

/* ============================================
   PRODUCT PAGE
   ============================================ */

.product-gallery .main-image-wrapper {
    overflow: hidden;
    border-radius: 8px;
}

.product-gallery .main-image-wrapper img {
    transition: transform 0.3s ease;
}

.product-gallery .main-image-wrapper:hover img {
    transform: scale(1.05);
}

.thumbnail-image {
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: var(--secondary-color);
}

.product-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-price {
    font-size: 1.5rem;
}

/* Star ratings */
.stars {
    letter-spacing: 2px;
}

.rating-star {
    transition: color 0.2s ease, transform 0.2s ease;
}

.rating-star:hover {
    transform: scale(1.2);
}

/* Subscription options */
.subscription-options {
    border: 2px solid var(--accent-color);
}

/* ============================================
   REVIEWS
   ============================================ */

.review-item {
    padding: 1rem 0;
}

.review-item:last-child {
    border-bottom: none !important;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--primary-color) !important;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
}

/* ============================================
   UTILITIES
   ============================================ */

/* Toast notifications */
.store-toast {
    animation: slideIn 0.3s ease;
}

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

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-card .card-title {
        font-size: 0.9rem;
    }
    
    .thumbnail-image {
        width: 60px !important;
        height: 60px !important;
    }
}
