/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo {
    top: 5px;
    left: 10px;
    width: 180px;
    height: 60px;
    object-fit: cover;
    object-position: center middle;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #1d1b1b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #141414;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.admin-link {
    background: rgb(255, 98, 0);
    border: 1px solid rgba(0, 0, 0, 0.3);
}

/* Banner Styles */
.banner-section {
    height: 750px;
    position: relative;
    overflow: hidden;
}

.banner-container {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74,85,104,0.85) 0%, rgba(45,55,72,0.85) 100%);
    display: flex;
    align-items: center;
}

.banner-content {
    color: white;
    text-align: center;
}

.banner-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

/* Search Section */
.search-section {
    margin-bottom: 3rem;
    text-align: center;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #141414;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #141414;
    color: #ffffff;
}

.search-input:focus {
    border-color: rgb(255, 98, 0);
    box-shadow: 0 0 0 3px  rgb(255, 98, 0);
    color: #ffffff;
}

.search-btn {
    padding: 1rem 2rem;
    background:  rgb(255, 98, 0);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74,85,104,0.4);
}

/* Filter Section */
.filter-section {
    margin-bottom: 3rem;
}

.filter-container {
    text-align: center;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgb(255, 98, 0);
    margin-bottom: 1.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 1000px;
    margin: 0 auto;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: rgb(158, 152, 152);
    color: #ffffff;
    border: 2px solid #434446;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #4a5568;
    background: rgb(255, 121, 59);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: rgb(255, 72, 0);
    color: white;
    border-color: #2d3748;
    box-shadow: 0 4px 12px rgba(74,85,104,0.3);
}

.filter-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74,85,104,0.4);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color:rgb(255, 98, 0);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #718096;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: rgb(63, 63, 63);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 6px solid  rgb(255, 72, 0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: rgb(157, 255, 0);
}

.product-image {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.item-code {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgb(255, 72, 0);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.original-price {
    color: #ff552b;
    text-decoration: line-through;
    font-size: 1rem;
}

.discount-price, .price {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ff4800;
}

.product-description {
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.stock-condition {
    color: #38a169;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Product Detail Page */
.breadcrumb {
    margin: 2rem 0;
    color: #718096;
}

.breadcrumb a {
    color: #4a5568;
    text-decoration: none;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;

}

.product-detail-image {
    position: relative;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.item-code-large {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgb(255, 72, 0);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgb(255, 72, 0);
    margin-bottom: 2rem;
}

.product-pricing-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.original-price-large {
    color: #6b727c;
    text-decoration: line-through;
    font-size: 1.5rem;
}

.discount-price-large, .price-large {
    color: #f2f2f3;
    font-size: 2rem;
    font-weight: 700;
}

.discount-badge {
    background: #4a5568;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-details-list {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.detail-label {
    font-weight: 600;
    color: #2d3748;
    width: 150px;
    flex-shrink: 0;
}

.detail-value {
    color: #718096;
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74,85,104,0.4);
}

.btn-secondary {
    background: transparent;
    color: #4a5568;
    border: 2px solid #4a5568;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #4a5568;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #141414;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #e2e8f0;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
    color: #a0aec0;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 3rem;
    color: #718096;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .banner-content h2 {
        font-size: 2.5rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .filter-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail-info h1 {
        font-size: 2rem;
    }
    
    .product-pricing-detail {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

/* Admin Styles */
.admin-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
}

.admin-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.admin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #718096;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.admin-table img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-edit {
    background: #38a169;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-delete {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-edit:hover,
.btn-delete:hover {
    opacity: 0.8;
}
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7a7a7a 0%, #ece4e2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 1rem;
}

.login-card {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Input styles */
.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 0.9rem 1rem;
    margin: 0.5rem 0 1rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    background: #f9f9f9;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.login-card input:focus {
    outline: none;
    border-color: #7a7a7a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(122, 122, 122, 0.1);
}

/* Label */
.login-card label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
    color: #333;
}

/* Button styles */
.login-card button {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: #7a7a7a;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.login-card button:hover {
    background-color: #5f5f5f;
    transform: scale(1.02);
}

.login-card .form-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #444;
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.nav-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.nav-admin h2 {
    color: #2d3748;
}

.btn-logout {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-add {
    background: #3182ce;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.btn-add:hover {
    background: #2c5282;
}

/* Password form specific styles */
.form-group small {
    display: block;
    margin-top: 0.25rem;
}

.alert {
    border-radius: 8px;
    font-weight: 500;
}

/* Enhanced form validation styles */
input:invalid {
    border-color: #e53e3e;
}

input:valid {
    border-color: #38a169;
}

/* Security tips styling */
.admin-card ul {
    padding-left: 1.5rem;
}

.admin-card ul li {
    margin-bottom: 0.5rem;
}