﻿/* ========================================
   CUSTOMER PRODUCTS PAGE – PREMIUM DESIGN
========================================= */

.products-page {
    padding: 40px 20px;
    background: linear-gradient(180deg, #f8fbff, #eef4fa);
    min-height: 100vh;
}

/* HEADER */

.products-header {
    text-align: center;
    margin-bottom: 40px;
}

    .products-header h1 {
        font-size: 32px;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 8px;
    }

    .products-header p {
        color: #64748b;
        font-size: 15px;
    }

/* GRID */

.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

/* CARD */

.product-showcase-card {
    background: white;
    border-radius: 22px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

    .product-showcase-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    }

/* VISUAL ICON */

.product-visual {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2E5B9A, #63AEB8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 20px;
}

/* MAIN INFO */

.product-main h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.product-model {
    font-size: 14px;
    color: #64748b;
}

/* META */

.product-meta {
    margin-top: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

    .meta-item label {
        color: #94a3b8;
    }

    .meta-item span {
        font-weight: 600;
        color: #1e293b;
    }

/* WARRANTY SECTION */

.warranty-section {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

    .warranty-section.active {
        background: linear-gradient(90deg, #dcfce7, #bbf7d0);
        color: #15803d;
    }

    .warranty-section.expired {
        background: linear-gradient(90deg, #fee2e2, #fecaca);
        color: #b91c1c;
    }

/* BUTTON */

.request-btn {
    background: linear-gradient(90deg, #2E5B9A, #63AEB8);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.3s ease;
}

    .request-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(46,91,154,0.4);
    }

/* RESPONSIVE */

@media (max-width: 768px) {
    .products-page {
        padding: 30px 16px;
    }

    .product-showcase-card {
        padding: 24px;
    }
}
/*Customer Request Service Css*/

/* ===============================
   REQUEST SERVICE PAGE
================================ */

.request-page {
    padding: 30px 20px;
    max-width: 900px;
    margin: auto;
}

/* HEADER */

.request-header h2 {
    font-weight: 700;
    margin-bottom: 25px;
}

/* PRODUCT GRID */

.request-product-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* PRODUCT CARD */

.request-product-card {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: 0.3s ease;
}

    .request-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    }

.request-product-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2E5B9A, #63AEB8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.request-product-info h4 {
    margin: 0;
    font-weight: 600;
}

.request-product-info p {
    margin: 2px 0;
    font-size: 14px;
    color: #64748b;
}

.purchase-date {
    font-size: 12px;
    color: #94a3b8;
}

/* SELECTED SUMMARY */

.selected-product-summary {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #2E5B9A, #63AEB8);
    color: white;
    border-radius: 18px;
    margin-bottom: 25px;
}

/* FORM CARD */

.service-form-card {
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* UPLOAD */

.upload-section h5 {
    margin-bottom: 12px;
}

.upload-grid {
    display: flex;
    gap: 20px;
}

.upload-box {
    flex: 1;
    padding: 30px;
    border: 2px dashed #63AEB8;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
}

    .upload-box:hover {
        background: #f0f9ff;
    }

    .upload-box span {
        display: block;
        margin-top: 8px;
        font-size: 13px;
    }

/* SUBMIT */

.submit-wrapper {
    margin-top: 25px;
    text-align: center;
}

.request-submit-btn {
    background: linear-gradient(90deg, #2E5B9A, #63AEB8);
    color: white;
    padding: 12px 40px;
    border-radius: 12px;
    font-weight: 600;
}

/*Sales History Page Css*/

/* ===================================
   CUSTOMER SERVICE HISTORY PAGE
==================================== */

.service-history-page {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
}

.service-history-header {
    text-align: center;
    margin-bottom: 40px;
}

    .service-history-header h2 {
        font-size: 30px;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .service-history-header p {
        color: #64748b;
    }

/* CONTAINER */

.service-history-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* CARD */

.service-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 45px rgba(0,0,0,0.12);
    }

/* TOP ROW */

.service-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .service-top h4 {
        margin: 0;
        font-weight: 600;
    }

.ticket-id {
    font-size: 12px;
    color: #94a3b8;
}

/* META */

.service-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 15px;
}

    .service-meta label {
        font-size: 12px;
        color: #94a3b8;
    }

    .service-meta span {
        display: block;
        font-weight: 600;
    }

/* DESCRIPTION */

.service-description {
    font-size: 14px;
    color: #475569;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

/* STATUS BADGES */

.status-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .status-badge.pending {
        background: #fef3c7;
        color: #b45309;
    }

    .status-badge.completed {
        background: #dcfce7;
        color: #15803d;
    }

    .status-badge.cancelled {
        background: #fee2e2;
        color: #b91c1c;
    }

/* CARD LEFT BORDER BY STATUS */

.service-card.pending {
    border-left: 6px solid #f59e0b;
}

.service-card.completed {
    border-left: 6px solid #16a34a;
}

.service-card.cancelled {
    border-left: 6px solid #dc2626;
}

/* MOBILE */

@media (max-width: 768px) {
    .service-history-page {
        padding: 30px 16px;
    }
}