/* Alexiou Elegant Eshop Product Card Styling */

:root {
    --product-border-radius: 0px; /* Sharp corners are often seen as more "elegant" and architectural */
    --accent-color: #db1215;
    --text-main: #111;
    --text-muted: #888;
    --bg-light: #ffffff;
    --border-color: #eeeeee;
}

/* 2. Elegant Product Card */
.card-product.type-line-padding {
    padding: 0 !important;
}

.card-product {
    background: #fff;
    border-radius: var(--product-border-radius) !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none !important;
    position: relative;
}

.card-product:hover {
    /* No shadow for ultra-elegant look, or very subtle one */
    box-shadow: 0 15px 40px rgba(0,0,0,0.06) !important;
}

.card-product-wrapper {
    position: relative;
    background: #fdfdfd;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.4s ease;
}

.card-product:hover .card-product-wrapper {
    border-color: #ccc;
}

.card-product .product-img {
    display: block;
    aspect-ratio: 1/1;
}

.card-product .product-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 20px; /* Extra whitespace around image */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-product:hover .img-product {
    transform: scale(1.03); /* Very subtle zoom */
}

/* Elegant Labels */
.box-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}

.label-text.sale {
    background: var(--text-main) !important; /* Industrial black for sale is often more elegant than red */
    color: #fff !important;
    padding: 4px 10px !important;
    font-weight: 400 !important;
    border-radius: 0px !important;
    font-size: 10px !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.label-text.new {
    background: #fff !important;
    border: 1px solid #111;
    color: #111 !important;
    padding: 3px 10px !important;
    font-weight: 400 !important;
    border-radius: 0px !important;
    font-size: 10px !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Action Button - Minimalist Overlay */
.list-product-btn {
    position: absolute !important;
    top: 55px !important; /* Positioned below the availability tab */
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    transition: all 0.4s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 10 !important;
}

.card-product:hover .list-product-btn {
    opacity: 1 !important;
    visibility: visible !important;
    /* background: rgba(255,255,255,0.4) !important; */
}

.list-product-btn .box-icon {
    background: #fff !important;
    color: #111 !important;
    width: 40px !important; /* Circular button */
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.list-product-btn .box-icon .tooltip {
    display: none !important; /* Hide tooltip for cleaner circular look */
}

.list-product-btn .box-icon:hover {
    background: #111 !important;
    color: #fff !important;
}

/* Info Section - Elegant Typography */
.card-product-info {
    padding: 0 10px 20px !important;
    text-align: left !important;
    
}

.card-product-info .title {
    font-size: 13px !important; /* Slightly smaller for elegance */
    line-height: 1.6 !important;
    font-weight: 400 !important; /* Lighter weight is more elegant */
    color: var(--text-main) !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.3px;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    /*min-height: 42px !important;*/
	min-height: calc(13px * 1.6 * 3) !important; /* = 62.4px, exactly 3 lines */
    text-decoration: none;
    text-transform: capitalize;
}

.card-product:hover .title {
    color: #666 !important;
}

/* Ensure the title link can act as a stretched link for the whole card */
.card-product .title.stretched-link::after {
    z-index: 1;
}

.prices-group {
    display: flex;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 12px;
}

.price-on-sale {

    color: var(--text-main) !important;
}

/* .compare-at-price {
    font-size: 12px !important;
    color: #bbb !important;
    text-decoration: line-through !important;
    font-weight: 300;
} */

/* Elegant availability */
.product-availability {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 9px !important;
    letter-spacing: 1.5px;
    background: #000 !important;
    color: #fff !important;
    padding: 4px 10px !important;
    text-transform: uppercase;
    font-weight: 500;
}

.availability-dot {
    display: none !important;
}

/* Fix tabs and buttons z-index to stay above stretched link */
.box-label,
.product-availability-badge,
.list-product-btn .box-icon,
.product-card_footer {
    z-index: 10 !important;
}

.product-card_footer {
    position: relative;
}


.bc-product-badges{
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;

    display: flex;
    /*flex-direction: column;*/
    gap: 6px;
}

.bc-product-badge{
   transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);

    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;

    padding: 4px 10px;
    border-radius: 3px;

    width: fit-content;
}

