/* ============================================================
   LUCA PRODUCT CARD - Responsive & Optimized
   ============================================================ */

.product-item { 
    position: relative; 
    overflow: hidden; 
    transition: transform 0.2s;
	border: 1px solid #DEDEDE;
}
.product-item .product-info{
	border-top: 1px solid #DEDEDE;
}

.product-image-container { 
    position: relative; 
    overflow: hidden; 
    height: 524px; 
    background: #f9f9f9;
}

.product-info { 
    position: relative; 
    transition: transform 0.28s ease; 
    width: 100%; 
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0 4px;
}

.product-info-left {
    flex: 1;
    min-width: 0;
}

.product-info-left h3 { 
    margin: 0 0 2px; 
    font-size: 14px; 
    font-weight: 700;
}

.product-info-left h3 a { 
    color: inherit; 
    text-decoration: none; 
    transition: color 0.2s;
}

.product-info-left h3 a:hover {
    color: #666;
}

.product-short-description {
    margin: 0 0 6px;
    color: #777;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-woo-slider-wrapper .product-hover-info { 
    max-height: 0; 
    overflow: hidden; 
    opacity: 0; 
    transition: max-height 0.35s ease, opacity 0.3s ease; 
}

.custom-woo-slider-wrapper .product-item:hover .product-hover-info { 
    max-height: 80px; 
    opacity: 1; 
}

.custom-woo-slider-wrapper .product-item.panel-active .product-hover-info { 
    max-height: 80px; 
    opacity: 1; 
}

.product-hover-info { 
    max-height: 80px; 
    overflow: hidden; 
    opacity: 1; 
    transition: max-height 0.35s ease, opacity 0.3s ease; 
}

.product-category { 
    font-size: 14px; 
    color: #1B1B1B; 
    margin-bottom: 4px; 
	font-weight: 400;
	text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.product-price { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    flex-wrap: wrap;
}

.product-price del { 
    color: #999; 
    font-size: 12px;
    text-decoration: line-through;
}

.product-price ins { 
    color: #000; 
    font-weight: 600; 
    font-size: 13px; 
    text-decoration: none; 
}

.product-price .price-single,
.product-price .price-range { 
    color: #1B1B1B; 
    font-weight: 700; 
    font-size: 16px; 
}

.product-price .price-range-sale { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

.product-price .price-range-sale del { 
    color: #717171; 
    font-size: 16px; 
    font-weight: 400; 
}

.product-price .price-range-sale ins { 
    color: #1B1B1B; 
    font-weight: 700; 
    font-size: 16px; 
    text-decoration: none; 
}

/* Quick Shop Panel */
.hover-quick-shop-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 99%;
    background: #fff;
    padding: 14px 16px;
    padding-top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 470px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.24s ease, transform 0.28s ease, visibility 0.24s ease;
    z-index: 30;
    pointer-events: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.hover-quick-shop-panel.panel-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.product-item.panel-active { 
    overflow: visible; 
}

.product-item.panel-active .product-info { 
    transform: translateY(-465px); 
}

.add-to-cart-icon {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 6px 10px;
    background: transparent;
    border: 1.5px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.25s ease, border-color 0.25s ease, gap 0.25s ease, padding 0.25s ease;
    margin: 0;
    border-radius: 2px;
    flex-shrink: 0;
}

.add-to-cart-icon .cart-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}

.add-to-cart-icon .quick-cart-label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.25s ease, opacity 0.2s ease;
}

.add-to-cart-icon:hover {
    background: #f5f5f5;
    border-color: #333;
    gap: 6px;
}

.add-to-cart-icon:hover .quick-cart-label {
    max-width: 100px;
    opacity: 1;
}

.add-to-cart-icon img { 
    width: 28px; 
    height: 28px; 
}

.quick-shop-close-btn {
    display: none;
    width: 28px;
    height: 28px;
    color: #111;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    transition: opacity 0.2s;
}

.quick-shop-close-btn:hover {
    opacity: 0.7;
}

.product-item.panel-active .add-to-cart-icon { 
    display: none; 
}

.product-item.panel-active .quick-shop-close-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
}

.hqs-form-wrapper .quantity { 
    display: none !important; 
}

.hqs-form-wrapper table.variations { 
    margin-bottom: 8px;
    width: 100%;
}

.hqs-form-wrapper table.variations td,
.hqs-form-wrapper table.variations th { 
    padding: 4px 0; 
    font-size: 12px;
    border: none;
}

.hqs-form-wrapper .single_add_to_cart_button { 
    width: 100%; 
    font-size: 12px; 
    padding: 9px 10px; 
    margin-top: 8px; 
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.hqs-form-wrapper .single_add_to_cart_button:hover {
    background: #333;
}

.hqs-form-wrapper .reset_variations { 
    display: none !important; 
}

.hqs-form-wrapper .woocommerce-variation-availability { 
    display: none; 
}

.product-footer { 
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
    flex-shrink: 0;
}

/* Hide Flatsome's default product card when our custom card is present */
.col-inner > .product-item ~ .badge-container,
.col-inner > .product-item ~ .product-small.box,
.product-item ~ .badge-container,
.product-item ~ .product-small.box { 
    display: none !important; 
}

/* Reset Flatsome .product-small.col wrapper when containing our custom card */
.product-small.col:has(.product-item) {
    border: none !important;
    overflow: visible !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Fallback for browsers that don't support :has() */
.lookbook-products-section .product-small.col {
    border: none !important;
    overflow: visible !important;
    padding: 0 !important;
    background: transparent !important;
}

/* ════════════════════════════════════════
   RESPONSIVE DESIGN
   ════════════════════════════════════════ */

/* Tablet & Small Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
    .product-image-container {
        height: 420px;
    }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .product-image-container {
        height: 340px;
    }
    
    .product-item.panel-active .product-info {
        transform: translateY(-350px);
    }
    
    .hover-quick-shop-panel {
        max-height: 360px;
    }
    
    .product-info-left h3 {
        font-size: 13px;
    }
    
    .product-category {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .product-price {
        font-size: 12px;
    }
    
    .product-price ins,
    .product-price .price-single,
    .product-price .price-range {
        font-size: 12px;
    }
    
    .product-price del {
        font-size: 11px;
    }
    
    .add-to-cart-icon {
        padding: 5px 8px;
    }
    
    .add-to-cart-icon .cart-icon {
        width: 18px;
        height: 18px;
    }
    
    .hqs-form-wrapper .single_add_to_cart_button {
        font-size: 11px;
        padding: 8px 9px;
    }

    /* Disable hover animations on touch/mobile */
    .add-to-cart-icon:hover {
        background: transparent;
        border-color: transparent;
        gap: 0;
    }

    .add-to-cart-icon:hover .quick-cart-label {
        max-width: 0;
        opacity: 0;
    }

    /* Show product-hover-info always in slider (no hover needed on mobile) */
    .custom-woo-slider-wrapper .product-hover-info {
        max-height: 80px;
        opacity: 1;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .product-image-container {
        height: 240px;
    }
    
    .product-item.panel-active .product-info {
        transform: translateY(-290px);
    }
    
    .hover-quick-shop-panel {
        max-height: 300px;
        padding: 10px 12px;
        padding-top: 0;
    }
    
    .product-info {
        padding: 8px 0 3px;
        gap: 6px;
    }
    
    .product-info-left h3 {
        font-size: 12px;
        margin-bottom: 1px;
    }
    
    .product-category {
        font-size: 9px;
        margin-bottom: 2px;
    }
    
    .product-price {
        font-size: 11px;
        gap: 4px;
    }
    
    .product-price ins,
    .product-price .price-single,
    .product-price .price-range {
        font-size: 11px!important;
    }
    
    .product-price del {
        font-size: 10px;
    }
    
    .add-to-cart-icon {
        padding: 4px 6px;
    }
    
    .add-to-cart-icon .cart-icon {
        width: 16px;
        height: 16px;
    }
    
    .add-to-cart-icon .quick-cart-label {
        font-size: 11px;
    }
    
    .quick-shop-close-btn {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
    
    .hqs-form-wrapper table.variations td,
    .hqs-form-wrapper table.variations th {
        font-size: 11px;
        padding: 3px 0;
    }
    
    .hqs-form-wrapper .single_add_to_cart_button {
        font-size: 10px;
        padding: 7px 8px;
        margin-top: 6px;
    }
}
