:root {
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
}

body {
    min-height: 100vh;
    background-color: #f8f9fa;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.hidden {
    display: none !important;
}

/* Login Styles */
#login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

#login-container.active {
    display: flex !important;
}

.login-box {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container-fluid {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;  /* For absolute positioning of brand */
}

/* Back button styles */
.navbar .back-btn {
    width: 40px;
    height: 40px;
    display: none;  /* Hidden by default */
    color: white;
    background: transparent;
    border: none;
}

/* Menu button styles */
#menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: transparent;
    border: none;
    margin-left: auto;  /* Push to right */
}

.navbar .btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar .btn i {
    font-size: 1.5rem;
}

/* Center the brand/title */
.navbar .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

/* Show back button when needed */
.show-back .navbar .back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.category-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.category-card i {
    font-size: 2.5rem;
    color: var(--bs-primary);
}

.category-card span {
    font-size: 1.1rem;
    font-weight: 500;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    color: #2c3e50;
}

.product-info p {
    margin: 0;
    line-height: 1.6;
}

.product-info .description {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1.5rem;
}

/* Consistent sections styling */
.info-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.info-section p {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0.5rem 0;
}

.info-section p i {
    width: 24px;
    margin-right: 0.5rem;
    color: #6c757d;
}

.info-section .label {
    font-weight: 500;
    min-width: 100px;
    margin-right: 1rem;
    color: #495057;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-buttons .btn {
    flex: 1;
}

.prices {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.prices p {
    font-size: 1.1rem;
    font-weight: 500;
}

.details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
}

.details p {
    font-size: 1rem;
    color: #495057;
}

.badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.product-link {
    margin-top: 1.5rem;
}

.actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

/* Update product detail styles */
.product-detail-view {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.product-image-large {
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-image-large img {
    width: 100%;
    height: auto;
    object-fit: contain;
    min-height: 300px;
    background: white;
}

.product-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.product-info {
    color: #2c3e50;
}

.product-info p {
    margin: 0;
    line-height: 1.6;
}

.product-info .description {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1.5rem;
}

/* Consistent sections styling */
.info-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.info-section p {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0.5rem 0;
}

.info-section p i {
    width: 24px;
    margin-right: 0.5rem;
    color: #6c757d;
}

.info-section .label {
    font-weight: 500;
    min-width: 100px;
    margin-right: 1rem;
    color: #495057;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-buttons .btn {
    flex: 1;
}

.prices {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.prices p {
    font-size: 1.1rem;
    font-weight: 500;
}

.details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
}

.details p {
    font-size: 1rem;
    color: #495057;
}

.badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.product-link {
    margin-top: 1.5rem;
}

.actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

/* Product card title styles */
.product-card .card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.2;
}

/* Add a tooltip on hover to show full title */
.product-card .card-title:hover {
    position: relative;
}

.product-card .card-title:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    z-index: 1000;
    white-space: normal;
    max-width: 200px;
    word-wrap: break-word;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Add these styles for the modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    border-radius: 8px;
}

.modal-dialog {
    margin: 0;
}

.modal-content {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Add product button styles */
#add-product-btn {
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;  /* Remove default padding */
}

#add-product-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

#add-product-btn i {
    font-size: 1.5rem;
    line-height: 1;  /* Ensure icon is centered */
    margin: 0;  /* Remove any margins */
} 