/* assets/css/homepage_professional.css */

:root {
    --sidebar-width: 300px;
    --fastkart-teal: #0da487;
    --fastkart-teal-light: #f3f9f8;
}

/* 2-Column Layout Structure */
.home-layout-container {
    display: flex;
    gap: 24px;
    padding-top: 20px;
}

.home-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

.home-main-content {
    flex-grow: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

/* Vertical Category Menu */
.category-menu-vertical {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 100px;
}

.category-menu-title {
    padding: 0 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
}

.category-menu-title i {
    margin-right: 10px;
    color: var(--fastkart-teal);
}

.category-item-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #4a4a4a;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 500;
}

.category-item-link:hover {
    background: var(--fastkart-teal-light);
    color: var(--fastkart-teal);
}

.category-item-link i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
    text-align: center;
}

.category-item-link .arrow {
    margin-left: auto;
    font-size: 10px;
    opacity: 0.5;
}

/* Fastkart Exact Product Card Style (Image 4) */
.product-card-premium {
    background: #f8f8f8;
    border: none;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-premium:hover {
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.product-card-premium .product-image-box {
    background: #fff;
    border-radius: 10px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin-bottom: 15px;
}

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

.product-card-premium .product-detail {
    text-align: left;
}

.product-card-premium .brand-name {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
    display: block;
}

.product-card-premium .name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
    line-height: 1.4;
}

.product-card-premium .rating-box {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.product-card-premium .rating-box i {
    color: #ffb321;
    font-size: 12px;
}

.product-card-premium .rating-box span {
    font-size: 11px;
    color: #999;
}

.product-card-premium .weight-text {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.product-card-premium .price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-card-premium .price {
    font-size: 18px;
    font-weight: 700;
    color: #0da487;
    /* Fastkart Green */
}

.product-card-premium .mrp {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}

/* Fastkart Unique Add Button */
.add-btn-fastkart {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 5px 5px 20px;
    width: 100%;
    margin-top: auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.add-btn-fastkart span {
    font-size: 14px;
    font-weight: 600;
    color: #4a4a4a;
}

.add-btn-fastkart .plus-icon {
    background: #f8f8f8;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0da487;
    font-size: 14px;
    transition: all 0.3s ease;
}

.add-btn-fastkart:hover {
    border-color: #0da487;
}

.add-btn-fastkart:hover .plus-icon {
    background: #0da487;
    color: #fff;
}

/* Quantity Box for Fastkart Style */
.qty-box-fastkart {
    background: #fff;
    border: 1px solid #0da487;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px;
    width: 100%;
}

.qty-box-fastkart button {
    background: #f8f8f8;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #0da487;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-box-fastkart button:hover {
    background: #0da487;
    color: #fff;
}

.qty-box-fastkart input {
    border: none;
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

/* Square Add Button Style (Image 1) */
.price-row-v1 .price {
    font-size: 18px;
    font-weight: 700;
    color: #0da487;
}

.add-btn-square {
    background-color: #0da487 !important;
    color: #fff !important;
    border: none !important;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.add-btn-square:hover {
    background-color: #0b8d73 !important;
    transform: scale(1.1);
}

.qty-box-mini {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}

.qty-box-mini button {
    background: none;
    border: none;
    padding: 4px 8px;
    color: #0da487;
    font-weight: bold;
}

.qty-box-mini input {
    width: 25px;
    text-align: center;
    border: none;
    background: none;
    font-weight: 700;
    font-size: 13px;
}

.toast-custom.info {
    border-left: 4px solid #17a2b8;
}