/* ========================================
   PRODUCT CARDS - UNIVERSAL DESIGN
   ======================================== */

/* Product Card Base */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 167, 107, 0.2);
}

/* Product Image Container */
.product-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1 / 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #00a76b;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.product-badge.sale {
    background: #ff4757;
}

.product-badge.new {
    background: #00a76b;
}

/* Product Actions (Hover Icons) */
.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    pointer-events: none;
}

.product-card:hover .product-actions,
.product-actions:hover,
.product-actions:focus-within {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #00a76b;
    color: #00a76b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: #00a76b;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 167, 107, 0.3);
}

.action-btn i {
    font-size: 0.9rem;
}

.see-more-btn,
.quick-view-btn {
    background: #ffffff;
    border: 2px solid #00a76b;
    color: #00a76b;
}

.see-more-btn:hover,
.quick-view-btn:hover {
    background: #00a76b;
    color: #ffffff;
}

.wishlist-btn.active {
    background: #00a76b;
    color: #ffffff;
    border-color: #00a76b;
}

/* Product Content */
.product-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Title */
.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title:hover {
    color: #00a76b;
    text-decoration: none;
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00a76b;
}

.original-price {
    font-size: 0.9rem;
    color: #999999;
    text-decoration: line-through;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.8rem;
    color: #666666;
}

/* Add to Cart Button (Bottom) */
.add-to-cart-bottom {
    width: 100%;
    background: #00a76b;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-bottom:hover {
    background: #007a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 167, 107, 0.3);
}

/* ========================================
   QUICK VIEW MODAL
   ======================================== */

.quickview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quickview-overlay.active {
    display: flex;
    opacity: 1;
}

.quickview-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.quickview-head {
    padding: 20px;
    border-bottom: 1px solid #e9ece一身f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
}

.quickview-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.quickview-close:hover {
    background: #f8f9fa;
    color: #00a76b;
}

.quickview-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.quickview-image {
    border-radius: 12px;
    overflow: hidden;
}

.quickview-image img {
    width: 100%;
    height: auto;
    display: block;
}

.quickview-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.qv-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00a76b;
    margin-bottom: 15px;
}

.qv-meta {
    margin-bottom: 20px;
}

.qv-meta-row h6 {
    font-weight: 700;
    color: #666;
}

.qv-meta-row a {
    color: #00a76b;
    font-weight: 600;
    text-decoration: none;
}

.qv-spec-list {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.qv-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
}

.qv-spec-row:last-child {
    border-bottom: none;
}

.qv-spec-row .spec-label {
    color: #666;
    font-weight: 600;
}

.qv-spec-row .spec-val {
    color: #00a76b;
    font-weight: 600;
}

.qv-btn {
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 800;
    letter-spacing: .2px;
}

.qv-desc {
    color: #333;
    line-height: 1.6;
}

/* ========================================
   PRODUCT GRID LAYOUTS - Bootstrap Grid
   ======================================== */

/* Products Grid - Bootstrap Grid System */
.products-grid {
    margin-bottom: 40px;
}

/* Ensure product cards fill their Bootstrap column */
.row .col-lg-3 .product-card,
.row .col-md-6 .product-card,
.row .col-sm-12 .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive Product Image Heights */
@media (max-width: 992px) {
    .product-image-container {
        height: 200px !important;
        aspect-ratio: auto !important;
    }
    
    .product-image {
        height: 200px !important;
    }
}

/* ========================================
   PRODUCT SLIDER
   ======================================== */

.product-slider {
    position: relative;
    overflow: hidden;
}

.product-slider .products-grid {
    display: flex;
    gap: 24px;
    transition: transform 0.3s ease;
}

.product-slider .product-card {
    flex: 0 0 280px;
    min-width: 280px;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #00a76b;
    color: #00a76b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
    background: #00a76b;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: -20px;
}

.slider-nav.next {
    right: -20px;
}

/* ========================================
   LOADING STATES
   ======================================== */

.product-card.loading {
    pointer-events: none;
}

.product-card.loading .product-image {
    background: #f0f0f0;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.action-btn:focus,
.add-to-cart-bottom:focus {
    outline: 2px solid #00a76b;
    outline-offset: 2px;
}

.product-title:focus {
    outline: 2px solid #00a76b;
    outline-offset: 2px;
}

/* ========================================
   NOTIFICATIONS
   ======================================== */

.product-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
}

.product-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.product-notification.success {
    border-left: 4px solid #00a76b;
}

.product-notification.error {
    border-left: 4px solid #ff4757;
}

.product-notification.info {
    border-left: 4px solid #007bff;
}

.product-notification i {
    font-size: 1.1rem;
}

.product-notification.success i {
    color: #00a76b;
}

.product-notification.error i {
    color: #ff4757;
}

.product-notification.info i {
    color: #007bff;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .product-actions,
    .add-to-cart-bottom {
        display: none !important;
    }
    
    .product-card {
        box-shadow: none !important;
        border: 1px solid #e0e0e0 !important;
    }
    
    .product-notification {
        display: none !important;
    }
}
