/* ====================================================================
   ENHANCED PRODUCT CARD - MODERN DESIGN
   ==================================================================== */

.product-card-modern {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #feee00;
}

/* ====================================================================
   IMAGE SECTION
   ==================================================================== */

.product-card-modern__image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1;
}

.product-card-modern__image-link {
    display: block;
    height: 100%;
}

.product-card-modern__image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-card-modern__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.product-card-modern__image--hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card-modern:hover .product-card-modern__image {
    opacity: 0;
}

.product-card-modern:hover .product-card-modern__image--hover {
    opacity: 1;
}

/* ====================================================================
   BADGES
   ==================================================================== */

.product-card-modern__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.product-card-modern__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card-modern__badge--discount {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
}

.product-card-modern__badge--new {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: #ffffff;
}

.product-card-modern__badge--featured {
    background: linear-gradient(135deg, #feee00 0%, #ffd700 100%);
    color: #1a1a1a;
}

/* ====================================================================
   QUICK ACTIONS
   ==================================================================== */

.product-card-modern__quick-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card-modern:hover .product-card-modern__quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card-modern__action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    font-size: 16px;
}

.product-card-modern__action-btn:hover {
    background: #feee00;
    transform: scale(1.1);
    color: #1a1a1a;
}

.product-card-modern__action-btn.active {
    background: #ff6b6b;
    color: #ffffff;
}

.product-card-modern__action-btn.active:hover {
    background: #ee5a6f;
}

/* ====================================================================
   STOCK STATUS
   ==================================================================== */

.product-card-modern__stock-status {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
}

.product-card-modern__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-modern__stock--in {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.product-card-modern__stock--low {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.product-card-modern__stock--out {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* ====================================================================
   PRODUCT CONTENT
   ==================================================================== */

.product-card-modern__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Meta Info */
.product-card-modern__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-card-modern__brand,
.product-card-modern__category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #636e72;
    font-weight: 500;
}

.product-card-modern__brand i,
.product-card-modern__category i {
    color: #feee00;
    font-size: 10px;
}

.product-card-modern__seller-badge {
    display: inline-flex;
    align-items: center;
}

.product-card-modern__seller-badge img {
    height: 18px;
    width: auto;
}

/* Product Title */
.product-card-modern__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 42px;
}

.product-card-modern__title a {
    color: #2d3436;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.product-card-modern__title a:hover {
    color: #feee00;
}

/* Rating */
.product-card-modern__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card-modern__stars {
    display: flex;
    gap: 2px;
    color: #ffa502;
    font-size: 14px;
}

.product-card-modern__stars i {
    font-size: 14px;
}

.product-card-modern__rating-count {
    font-size: 13px;
    color: #636e72;
}

.product-card-modern__rating-value {
    font-size: 13px;
    font-weight: 600;
    color: #2d3436;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Price */
.product-card-modern__price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.product-card-modern__price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-card-modern__price {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.product-card-modern__price-old {
    font-size: 16px;
    color: #95a5a6;
    text-decoration: line-through;
}

.product-card-modern__savings {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Features */
.product-card-modern__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-card-modern__feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #636e72;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 4px;
}

.product-card-modern__feature i {
    color: #feee00;
    font-size: 11px;
}

/* Actions */
.product-card-modern__actions {
    margin-top: auto;
    padding-top: 12px;
}

.product-card-modern__add-cart {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3436 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-modern__add-cart:hover:not(:disabled) {
    background: linear-gradient(135deg, #feee00 0%, #ffd700 100%);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 238, 0, 0.3);
}

.product-card-modern__add-cart--disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.product-card-modern__add-cart i {
    font-size: 16px;
}

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

@media (max-width: 768px) {
    .product-card-modern__title {
        font-size: 14px;
        min-height: 38px;
    }

    .product-card-modern__price {
        font-size: 20px;
    }

    .product-card-modern__content {
        padding: 15px;
        gap: 10px;
    }

    .product-card-modern__quick-actions {
        opacity: 1;
        transform: translateX(0);
    }

    .product-card-modern__action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .product-card-modern__title {
        font-size: 13px;
        min-height: 36px;
    }

    .product-card-modern__price {
        font-size: 18px;
    }

    .product-card-modern__price-old {
        font-size: 14px;
    }

    .product-card-modern__add-cart {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* ====================================================================
   LOADING STATE
   ==================================================================== */

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

.product-card-modern.loading .product-card-modern__image {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ====================================================================
   GRID LAYOUT HELPERS
   ==================================================================== */

.product-grid-modern {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 24px;
}

/* Extra Large Screens (1600px+) - 6 columns */
@media (min-width: 1600px) {
    .product-grid-modern {
        grid-template-columns: repeat(6, 1fr);
        gap: 24px;
    }
}

/* Large Screens (1400px - 1599px) - 5 columns */
@media (max-width: 1599px) and (min-width: 1400px) {
    .product-grid-modern {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

/* Desktop (1200px - 1399px) - 5 columns */
@media (max-width: 1399px) and (min-width: 1200px) {
    .product-grid-modern {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}

/* Medium Desktop (992px - 1199px) - 4 columns */
@media (max-width: 1199px) and (min-width: 992px) {
    .product-grid-modern {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* Tablet (768px - 991px) - 3 columns */
@media (max-width: 991px) and (min-width: 768px) {
    .product-grid-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Mobile Landscape (576px - 767px) - 2 columns */
@media (max-width: 767px) and (min-width: 576px) {
    .product-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* Mobile Portrait (< 576px) - 2 columns */
@media (max-width: 575px) {
    .product-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ====================================================================
   PRODUCT CARD IMAGE SLIDER
   ==================================================================== */

.product-card-slider {
    width: 100%;
    height: 100%;
}

.product-card-slider .owl-stage-outer {
    height: 100%;
}

.product-card-slider .owl-stage {
    height: 100%;
    display: flex;
    align-items: center;
}

.product-card-slider .owl-item {
    height: 100%;
}

.product-card-slider .product-card-modern__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-slider .product-card-modern__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* Slider Dots */
.product-card-slider .owl-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.product-card-slider .owl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.product-card-slider .owl-dot.active {
    background: #feee00;
    border-color: #feee00;
    width: 24px;
    border-radius: 4px;
}

.product-card-slider .owl-dot:hover {
    background: rgba(254, 238, 0, 0.8);
}

/* Smooth fade animations */
.product-card-slider .owl-item {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.product-card-slider .owl-item.active {
    opacity: 1;
}
