/* ===================================
   Premium Luxury Minimal Design
   High-end Automotive Style
   =================================== */

/* Product Card Container - Premium Minimal */
.product-thumb {
    border-bottom: 1px solid #e8e8e8;
    background: #ffffff;
    padding: 25px 15px;
    margin-bottom: 0;
    transition: background-color 0.2s ease;
}

.product-thumb:hover {
    background-color: #fafafa;
}

/* Horizontal Layout - Small Image Left */
.product-thumb {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

/* Product Image Section - Small & Compact */
.product-thumb .image {
    position: relative;
    background: #ffffff;
    width: 120px;
    min-width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-thumb .image a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb .image img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Content Section - Takes remaining space */
.product-thumb .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.product-thumb .description {
    flex: 1;
}

/* Product Title - Premium Typography */
.product-thumb .description h4 {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 6px 0;
    line-height: 1.3;
    color: #1a1a1a;
    letter-spacing: 0.3px;
}

.product-thumb .description h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-thumb .description h4 a:hover {
    color: #666666;
}

/* Product Description - Subtle */
.product-thumb .description > p {
    font-size: 12px;
    color: #999999;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price Section - Bold & Clean */
.product-thumb .price {
    margin: 12px 0;
    padding: 0;
    border: none;
}

.product-thumb .price-new {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.product-thumb .price-old {
    font-size: 14px;
    color: #bbbbbb;
    text-decoration: line-through;
    font-weight: 300;
    margin-left: 10px;
}

.product-thumb .price-tax {
    display: inline-block;
    font-size: 10px;
    color: #aaaaaa;
    margin-left: 8px;
    font-weight: 300;
}

/* Rating - Minimal Gold Stars */
.product-thumb .rating {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

.product-thumb .rating .fa-star {
    color: #d4af37;
    font-size: 11px;
}

.product-thumb .rating .fa-regular {
    color: #e8e8e8;
}

/* Special Badge - Minimal Premium */
.product-thumb .badge-special {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 600;
    z-index: 10;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Button Group - Minimal Single Line */
.product-thumb .button-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}

.product-thumb .button-group button {
    padding: 8px 20px;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Primary Add to Cart Button */
.product-thumb .button-group button:first-child {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.product-thumb .button-group button:first-child:hover {
    background: #000000;
    border-color: #000000;
}

/* Icon-only buttons - Minimal */
.product-thumb .button-group button:not(:first-child) {
    background: transparent;
    border: 1px solid #d0d0d0;
    color: #666666;
    padding: 8px 12px;
    min-width: auto;
}

.product-thumb .button-group button:not(:first-child):hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
    background: transparent;
}

.product-thumb .button-group button i {
    font-size: 12px;
}

/* Hide button text for icon buttons */
.product-thumb .button-group button:not(:first-child) {
    font-size: 0;
}

.product-thumb .button-group button:not(:first-child) i {
    font-size: 13px;
}

/* Typography - Premium Fonts */
.product-thumb * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Responsive - Stack on Mobile */
@media (max-width: 768px) {
    .product-thumb {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 10px;
    }

    .product-thumb .image {
        width: 100%;
        height: 180px;
        margin-bottom: 15px;
    }

    .product-thumb .content {
        width: 100%;
    }

    .product-thumb .button-group {
        flex-direction: column;
        width: 100%;
    }

    .product-thumb .button-group button {
        width: 100%;
    }

    .product-thumb .button-group button:not(:first-child) {
        font-size: 11px;
    }
}

/* Grid container adjustments */
.row.row-cols-1 .col,
.row.row-cols-2 .col,
.row.row-cols-3 .col,
.row.row-cols-4 .col {
    padding-left: 0;
    padding-right: 0;
}

.row.row-cols-1 .product-thumb,
.row.row-cols-2 .product-thumb,
.row.row-cols-3 .product-thumb,
.row.row-cols-4 .product-thumb {
    border-left: none;
    border-right: none;
    border-top: none;
}

/* First item no border top */
.row .col:first-child .product-thumb {
    border-top: 1px solid #e8e8e8;
}

/* Clean, minimal focus state */
.product-thumb .button-group button:focus {
    outline: 1px solid #1a1a1a;
    outline-offset: 2px;
}

/* Remove default form styles */
.product-thumb form {
    margin: 0;
    width: 100%;
}

/* Tablet View - Keep horizontal */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-thumb .image {
        width: 100px;
        min-width: 100px;
        height: 100px;
    }

    .product-thumb .description h4 {
        font-size: 14px;
    }

    .product-thumb .price-new {
        font-size: 18px;
    }
}

/* Elegant separator line */
.product-thumb::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e8e8e8, transparent);
}

/* Remove before pseudo on first item */
.row .col:first-child .product-thumb::before {
    display: none;
}
