/*
=========================================================
 File: custom.css (Full & Complete Code)
 Description: Styles for product cards and mobile menu.
 Location: /assets/css/custom.css
=========================================================
*/

/* --- Product Card Styles (from my_account.php) --- */
.daraz-product-card-lg {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-radius: 0.375rem; /* rounded-lg */
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.daraz-product-card-lg:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.card-lg-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #f9f9f9;
}
.card-lg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Use 'contain' to see the whole image */
    padding: 0.5rem;
}
.card-lg-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-lg-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937; /* gray-800 */
    line-height: 1.4;
    height: 2.7rem; /* 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.card-lg-price {
    margin-top: 0.75rem;
}

/* --- Small Product Card Styles (from product_detail.php) --- */
.horizontal-scroll { 
    display: flex; 
    gap: 1rem; 
    overflow-x: auto; 
    padding: 0.5rem 0 1rem 0.5rem; 
    scrollbar-width: thin; 
}
.daraz-product-card-sm {
    background-color: white;
    text-align: left;
    width: 190px;
    flex-shrink: 0;
    text-decoration: none;
    transition: box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}
.card-sm-image-wrapper { 
    height: 120px; 
    padding: 0.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background-color: #ffffff; 
}
.card-sm-image { 
    max-height: 100%; 
    max-width: 100%; 
    object-fit: contain; 
}
.card-sm-content { 
    padding: 0.75rem; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}
.card-sm-title { 
    font-weight: 500; 
    color: #1f2937; 
    font-size: 0.9rem; 
    line-height: 1.4; 
    height: 2.5rem; /* 2 lines */
    overflow: hidden; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    display: -webkit-box; 
}
.card-sm-stats { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    font-size: 0.75rem; 
    color: #6B7280; 
    margin-top: 4px; 
}
.stat-item { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
}
.stat-item svg { 
    stroke-width: 2; 
}