/* ===== General Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    color: #ff6b35;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Header ===== */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo h2 {
    color: #ff6b35;
    font-size: 1.8rem;
}

.logo img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #ff6b35;
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-form button {
    padding: 0.5rem 1rem;
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.cart-link {
    position: relative;
    font-weight: 500;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* ===== Hero Section ===== */
.hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28));
    background-image: url('../images/images.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    margin-top: 10px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: orange;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: orange;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn:hover {
    background-color: #e55a25;
    text-decoration: none;
}

.btn-primary {
    background-color: #ff6b35;
}

.btn-secondary {
    background-color: #666;
}

.btn-secondary:hover {
    background-color: #555;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ===== Categories Showcase ===== */
.categories-showcase {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.categories-showcase h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    margin-bottom: 1rem;
    color: #ff6b35;
}

/* ===== Featured Products ===== */
.Featured-products {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.Featured-products h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-Featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.product-info .description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.origin, .season {
    background-color: #f0f0f0;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
}

.stock {
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.stock.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.stock.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
}

/* ===== Why Choose Us ===== */
.why-choose {
    background-color: #f9f9f9;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    border-radius: 8px;
}

.why-choose h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
}

.feature h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* ===== Footer ===== */
.main-footer {
    background-color: #333;
    color: white;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ff6b35;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: #ff6b35;
}

.footer-bottom {
    background-color: #222;
    text-align: center;
    padding: 1rem 2rem;
    border-top: 1px solid #555;
}

/* ===== Main Content ===== */
main {
    min-height: calc(100vh - 200px);
}

/* ===== Shop Page ===== */
.shop-page {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.shop-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.shop-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.shop-sidebar h3 {
    margin-bottom: 1rem;
    color: #ff6b35;
}

.category-list {
    list-style: none;
    margin-bottom: 2rem;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.5rem;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background-color: #fff0e6;
    color: #ff6b35;
}

.shop-sidebar select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.shop-header {
    margin-bottom: 2rem;
}

.shop-header h1 {
    margin-bottom: 0.5rem;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
}

/* ===== Product Page ===== */
.product-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.product-images {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image {
    max-width: 100%;
    border-radius: 8px;
}

.product-details h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.rating-section {
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.product-pricing {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.product-pricing .price {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b35;
}

.product-info-details p {
    margin-bottom: 0.5rem;
    color: #666;
}

.product-description {
    margin: 2rem 0;
}

.product-description h3 {
    margin-bottom: 1rem;
}

.add-to-cart-form {
    margin-top: 2rem;
}

.add-to-cart-form .form-group {
    margin-bottom: 1rem;
}

.add-to-cart-form input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.related-products {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.related-products h2 {
    margin-bottom: 2rem;
}

/* ===== Auth Pages ===== */
.auth-page {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
}

.auth-container {
    display: flex;
    justify-content: center;
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
}

.auth-form h1 {
    margin-bottom: 2rem;
    color: #ff6b35;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

/* ===== Cart Page ===== */
.cart-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.cart-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 2rem;
    align-items: start;
}

.cart-container > h1 {
    grid-column: 1 / -1;
    margin-bottom: 0.25rem;
}

.empty-cart {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
}

.cart-form {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 0;
}

.cart-items {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.cart-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-info span {
    line-height: 1.3;
}

.item-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-actions {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content;
}

.cart-summary h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 0.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.summary-row.total span:last-child {
    color: #ff6b35;
}

/* ===== Checkout Page ===== */
.checkout-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.checkout-container h1 {
    margin-bottom: 2rem;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.checkout-form h2 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.payment-options {
    margin: 1.5rem 0;
}

.payment-options label {
    display: block;
    margin-bottom: 0.5rem;
}

.order-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content;
}

.order-summary h2 {
    margin-bottom: 1rem;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 0.5rem;
}

.summary-items {
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* ===== Order Confirmation ===== */
.order-confirmation {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.confirmation-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.success-message {
    text-align: center;
    padding: 2rem;
    background: #d4edda;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #c3e6cb;
}

.success-message h1 {
    color: #155724;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #155724;
}

.order-details,
.order-items,
.shipping-info,
.order-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-left: 4px solid #ff6b35;
}

.order-details h2,
.order-items h2,
.shipping-info h2,
.order-summary h2 {
    margin-bottom: 1rem;
    color: #ff6b35;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-grid div {
    padding: 1rem;
    background: white;
    border-radius: 4px;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.items-table thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.items-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.items-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.next-steps {
    text-align: center;
    padding: 2rem;
    background: #e7f3ff;
    border-radius: 8px;
}

.next-steps p {
    margin-bottom: 1rem;
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== Admin Styles ===== */
.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background-color: #2c3e50;
    color: white;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo {
    margin-bottom: 2rem;
}

.sidebar .logo h2 {
    color: #ff6b35;
}

.admin-nav ul {
    list-style: none;
}

.admin-nav li {
    margin-bottom: 0.5rem;
}

.admin-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: #ecf0f1;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background-color: #ff6b35;
    color: white;
}

.main-content {
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ddd;
}

.user-info {
    color: #666;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #ff6b35;
}

.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b35;
}

.recent-orders,
.products-section,
.categories-section,
.orders-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.data-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge-processing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-shipped {
    background-color: #cfe2ff;
    color: #084298;
}

.badge-delivered {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-cancelled {
    background-color: #f8d7da;
    color: #842029;
}

.badge-completed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-failed {
    background-color: #f8d7da;
    color: #842029;
}

.badge-refunded {
    background-color: #f8d7da;
    color: #842029;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.order-detail-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.order-status-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.order-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.info-column h3 {
    margin-bottom: 1rem;
    color: #ff6b35;
}

.order-totals {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.order-totals p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .categories-grid,
    .products-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .shop-container {
        grid-template-columns: 1fr;
    }

    .product-container {
        grid-template-columns: 1fr;
    }

    .checkout-content {
        grid-template-columns: 1fr;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .admin-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 250px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}


