/* ============================================
   LIST VIEW STYLES FOR SHOP PAGE
   ============================================ */

/* Grid default (4 columns) */
.gj-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

/* Hide Order Quantity label in grid view */
.gj-grid:not(.list-view) .gj-qty-label {
    display: none;
}

/* Grid view cart button - show SVG */
.gj-grid:not(.list-view) .gj-cart-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.gj-grid:not(.list-view) .gj-cart-btn svg {
    width: 42px;
    height: 42px;
}

/* Hide text in grid view cart button */
.gj-grid:not(.list-view) .gj-cart-btn {
    font-size: 0;
}

/* List View Styles */
.gj-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card in List View */
.gj-grid.list-view .gj-card {
    display: grid;
    grid-template-columns: 280px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.gj-grid.list-view .gj-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Image wrapper in list view */
.gj-grid.list-view .gj-img-wrap {
    width: 280px;
    height: 280px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f9fafb;
}

.gj-grid.list-view .gj-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Body section in list view */
.gj-grid.list-view .gj-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.gj-grid.list-view .gj-meta-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.gj-grid.list-view .gj-sku {
    font-weight: 600;
    color: #111827;
}

.gj-grid.list-view .gj-stock {
    color: #059669;
}

.gj-grid.list-view .gj-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 12px;
}

.gj-grid.list-view .gj-title:hover {
    color: #235582;
    text-decoration: underline;
}

.gj-grid.list-view .gj-price {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0;
}

.gj-grid.list-view .gj-price small {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    margin-left: 8px;
}

/* Footer section in list view */
.gj-grid.list-view .gj-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 200px;
    position: relative;
}

/*.gj-grid.list-view .gj-exp {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f3f4f6;
}

.gj-grid.list-view .gj-exp.ok {
    background: #d1fae5;
    color: #065f46;
}

.gj-grid.list-view .gj-exp.ok .gj-dot {
    background: #10b981;
}

.gj-grid.list-view .gj-exp.bad {
    background: transparent;
    color: #000;
} */

.gj-grid.list-view .gj-exp.bad .gj-dot {
    background: #E83D3D;
}

.gj-grid.list-view .gj-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.gj-grid.list-view .gj-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Order Quantity Label */
/*.gj-grid.list-view .gj-qty-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-align: center;
}*/

/* Notify Me Section */
.gj-grid.list-view .gj-notify-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Quantity controls in list view */
/*.gj-grid.list-view .gj-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.gj-grid.list-view .gj-qty .gj-btn {
    background: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    color: #111827;
}

.gj-grid.list-view .gj-qty .gj-btn:hover {
    background: #f3f4f6;
}

.gj-grid.list-view .gj-qty input[type="number"] {
    width: 60px;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    text-align: center;
    padding: 8px;
    font-size: 16px;
    font-weight: 600;
}*/

/* Cart button in list view */
.gj-grid.list-view .gj-cart-btn {
    width: 180px;
    height: 48px;
    background: #F7CC59;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gj-grid.list-view .gj-cart-btn:hover:not(:disabled) {
    background: #f5c02e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 204, 89, 0.4);
}

.gj-grid.list-view .gj-cart-btn:disabled {
    background: #e5e7eb;
    cursor: not-allowed;
    transform: none;
}

.gj-grid.list-view .gj-cart-btn svg {
    width: 24px;
    height: 24px;
}

/* Out of stock - Notify Me button */
.gj-grid.list-view .notify-me-btn {
    width: 180px;
    height: 48px;
    background: #F7CC59;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gj-grid.list-view .notify-me-btn:hover {
    background: #f5c02e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 204, 89, 0.4);
}

/* Expired ribbon in list view */
.gj-grid.list-view .gj-ribbon-expired {
    position: absolute;
    display: none;
    top: 16px;
    right: -32px;
    background: #dc2626;
    color: white;
    padding: 6px 40px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Short dated label */
.gj-grid.list-view .gj-exp.short-dated {
    background: #fef3c7;
    color: #92400e;
}

.gj-grid.list-view .gj-exp.short-dated .gj-dot {
    background: #f59e0b;
}

/* Responsive adjustments for list view */
@media (max-width: 1024px) {
    .gj-grid.list-view .gj-card {
        grid-template-columns: 200px 1fr auto;
    }
    
    .gj-grid.list-view .gj-img-wrap {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .gj-grid.list-view .gj-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .gj-grid.list-view .gj-img-wrap {
        width: 100%;
        height: 250px;
    }
    
    .gj-grid.list-view .gj-footer {
        align-items: flex-start;
        min-width: 100%;
    }
    
    .gj-grid.list-view .gj-foot {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    .gj-grid.list-view .gj-cart-btn {
        flex: 1;
    }
}

/* Heart icon for wishlist (if needed) */
.gj-grid.list-view .gj-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 5;
}

.gj-grid.list-view .gj-wishlist:hover {
    background: #fee2e2;
    transform: scale(1.1);
}

.gj-grid.list-view .gj-wishlist svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #dc2626;
}

.gj-grid.list-view .gj-wishlist.active svg {
    fill: #dc2626;
}

/* Quick view button overlay */
.gj-grid.list-view .gj-img-wrap .quick-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gj-grid.list-view .gj-img-wrap:hover .quick-view-overlay {
    opacity: 1;
}

.gj-grid.list-view .quick-view-btn {
    background: white;
    color: #111827;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.gj-grid.list-view .quick-view-btn:hover {
    background: #F7CC59;
    transform: translateY(-2px);
}