/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4 {
    color: #2c3e50;
    line-height: 1.3;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-checkout {
    background-color: #27ae60;
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 15px;
}

.btn-checkout:hover {
    background-color: #219653;
}

.btn-checkout:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Navigation Bar */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: #3498db;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: #3498db;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

#cart-count {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 20px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-image-container {
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

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

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

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-price {
    color: #27ae60;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-description {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.product-actions .btn {
    flex: 1;
    padding: 10px;
}

.btn-view {
    background-color: #6c757d;
}

.btn-view:hover {
    background-color: #5a6268;
}

/* Product Detail Page Styles */
.product-detail-page {
    padding: 60px 0;
}

.product-detail-container {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.product-detail-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    height: 400px;
}

.product-detail-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-detail-info h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.product-detail-price {
    font-size: 2rem;
    color: #27ae60;
    font-weight: 700;
    margin-bottom: 25px;
}

.product-detail-description {
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #555;
}

.product-detail-meta {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.product-detail-meta p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.product-detail-meta strong {
    color: #2c3e50;
    min-width: 100px;
    display: inline-block;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

/* Cart Page */
.cart-page {
    padding: 60px 0;
}

.page-title {
    margin-bottom: 30px;
    font-size: 2.2rem;
    text-align: center;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.cart-item-price {
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    font-size: 16px;
}

.remove-btn {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    margin-left: 10px;
}

.cart-item-total {
    text-align: right;
}

.cart-item-total h3 {
    font-size: 1.3rem;
    color: #2c3e50;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h3 {
    margin-bottom: 15px;
    color: #666;
}

.cart-summary {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    align-self: start;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 1.5rem;
}

.summary-details {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #eee;
    border-bottom: none;
}

.btn-continue {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.btn-continue:hover {
    text-decoration: underline;
}

/* Checkout Page */
.checkout-page {
    padding: 60px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.checkout-form-container, .order-summary {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.order-summary {
    align-self: start;
    position: sticky;
    top: 100px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-info h4 {
    margin-bottom: 5px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-back {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    flex: 1;
}

.btn-back:hover {
    background-color: #5a6268;
    color: white;
}

/* Success Page */
.success-container {
    text-align: center;
    padding: 80px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.success-icon {
    color: #27ae60;
    font-size: 100px;
    margin-bottom: 30px;
}

.success-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.success-message {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
    line-height: 1.8;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.detail-box {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.detail-box h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.detail-box p {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
}

.success-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Admin Login */
.admin-login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 20px;
}

.login-container {
    background-color: white;
    border-radius: 10px;
    padding: 50px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2rem;
}

.login-header p {
    color: #666;
}

.login-form {
    margin-bottom: 20px;
}

.btn-login {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer a {
    color: #3498db;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-footer p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 15px;
}

.error-message {
    color: #e74c3c;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
    padding: 10px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 6px;
}

/* Admin Dashboard */
.admin-dashboard {
    min-height: 100vh;
    background-color: #f5f7fa;
}

.admin-header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.admin-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.admin-header h1 {
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
}

.admin-actions {
    display: flex;
    gap: 15px;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 80px);
    padding: 20px;
    gap: 20px;
}

.admin-sidebar {
    background-color: white;
    border-radius: 10px;
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
}

.admin-nav-item {
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-weight: 500;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background-color: #f0f7ff;
    color: #3498db;
    border-left-color: #3498db;
}

.admin-main {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.section-header h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-table-container {
    overflow-x: auto;
}

/* Admin Table Improvements */
.admin-table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.admin-table th {
    background-color: #2c3e50;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.admin-table tr:hover {
    background-color: #f9f9f9;
}

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

.table-actions {
    display: flex;
    gap: 8px;
}

.orders-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.order-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-header h3 {
    font-size: 1.2rem;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background-color: #ffeaa7;
    color: #e17055;
}

.status-completed {
    background-color: #a3e4d7;
    color: #16a085;
}

.order-details p {
    margin-bottom: 8px;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #eee;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: #3498db;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.chart-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
    color: #666;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #777;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.modal-body small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-actions .btn-admin {
    flex: 1;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 0;
    margin-top: 80px;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #3498db;
}

.footer-section p {
    margin-bottom: 15px;
    color: #ddd;
    line-height: 1.7;
}

.footer-section a {
    display: block;
    color: #ddd;
    margin-bottom: 12px;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding: 25px;
    border-top: 1px solid #34495e;
    color: #aaa;
    font-size: 0.9rem;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    font-size: 1.2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #e74c3c;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.error-message i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #e74c3c;
}

.error-message h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .product-detail-image-container {
        height: 300px;
        padding: 20px;
    }
    
    .product-detail-info h1 {
        font-size: 1.8rem;
    }
    
    .product-detail-price {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .product-detail-page {
        padding: 30px 0;
    }
    
    .product-detail-grid {
        padding: 20px;
        gap: 20px;
    }
    
    .product-detail-image-container {
        height: 250px;
    }
}


/* Responsive Design */
/* Large screens (992px and above) */
@media (min-width: 992px) {
    .nav-links {
        display: flex !important;
    }
}

/* Medium screens (768px to 991px) */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .cart-layout,
    .checkout-layout,
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary,
    .cart-summary {
        position: static;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: static;
        margin-bottom: 20px;
    }
}

/* Small screens (576px to 767px) */
@media (max-width: 767px) {
    .navbar {
        padding: 12px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid #34495e;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .hero {
        padding: 80px 20px;
        min-height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-detail-grid {
        padding: 25px;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-detail-image-container {
        height: 300px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
    }
    
    .cart-item-total {
        grid-column: 1 / -1;
        text-align: left;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .success-actions .btn {
        width: 100%;
    }
    
    .login-container {
        padding: 30px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Extra small screens (below 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .order-details {
        grid-template-columns: 1fr;
    }
    
    .success-container {
        padding: 40px 15px;
    }
    
    .success-title {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 10px;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Order Note */
.order-note {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.order-note p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-note i {
    color: #3498db;
}

/* Field Error */
.field-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Checkout Item Styling */
.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-info h4 {
    margin-bottom: 5px;
}

.empty-message {
    text-align: center;
    padding: 20px;
    color: #666;
}
/* Button Improvements */
.btn-admin {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-admin:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-admin.btn-secondary {
    background-color: #6c757d;
}

.btn-admin.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-admin.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}
.social-links {
    display: flex;
    gap: 15px;          /* icons ke beech gap */
    align-items: center;
}

.social-links a {
    color: #ffffff;    /* icon color */
    font-size: 18px;   /* icon size */
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    color: #4da3ff;    /* hover color */
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}
.ad-slot {
    margin: 20px 0;
    text-align: center;
}
