/* Marketplace Specific Styles */

/* Ensure proper spacing and positioning for marketplace navbar */
.navbar.marketplace-nav {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    background: rgba(10, 10, 26, 0.9) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 1000 !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid rgba(155, 92, 255, 0.2) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure proper spacing for content below fixed navbar */
body {
    padding-top: 80px !important;
}

/* Hide any potential duplicate navigation */
.navbar:not(.marketplace-nav) {
    display: none !important;
}

/* Hide any potential duplicate navigation when in iframe or embedded context */
.navbar:not(.marketplace-nav) {
    display: none !important;
}

/* Admin Floating Button */
.admin-float-btn {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    width: 30px !important;
    height: 30px !important;
    background: var(--primary-color) !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    box-shadow: 0 0 10px rgba(0, 255, 231, 0.5) !important;
    z-index: 999999 !important;
    transition: all 0.2s ease !important;
    border: 1px solid var(--darker-bg) !important;
    /* Add browser prefixes for better compatibility */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    /* Force hardware acceleration */
    -webkit-transform: translate3d(0,0,0);
    -moz-transform: translate3d(0,0,0);
    -ms-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    /* Ensure visibility */
    visibility: visible !important;
    opacity: 1 !important;
}

.admin-float-btn:hover {
    transform: scale(1.1) !important;
    -webkit-transform: scale(1.1) !important;
    -moz-transform: scale(1.1) !important;
    -ms-transform: scale(1.1) !important;
    -o-transform: scale(1.1) !important;
    box-shadow: 0 0 15px rgba(0, 255, 231, 0.8) !important;
    /* Add smooth transition */
    transition: all 0.2s ease !important;
    -webkit-transition: all 0.2s ease !important;
    -moz-transition: all 0.2s ease !important;
    -o-transition: all 0.2s ease !important;
}

.admin-float-btn i {
    font-size: 16px !important;
    color: var(--darker-bg) !important;
    /* Add browser prefixes */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    z-index: 999999 !important;
    font-weight: 900 !important;
}

/* Ensure the button is not hidden by other elements */
.admin-float-btn::before {
    content: '' !important;
    position: absolute !important;
    top: -3px !important;
    left: -3px !important;
    right: -3px !important;
    bottom: -3px !important;
    z-index: -1 !important;
    border-radius: 50% !important;
    background: transparent !important;
}

/* Admin Login Modal */
.admin-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 200000 !important;
    /* Add browser prefixes for backdrop-filter */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    /* Fallback for browsers that don't support backdrop-filter */
    background: rgba(0, 0, 0, 0.85) !important;
    /* Add smooth fade-in animation */
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    -webkit-transition: opacity 0.3s ease !important;
    -moz-transition: opacity 0.3s ease !important;
    -o-transition: opacity 0.3s ease !important;
}

.admin-modal.show {
    display: block !important;
    opacity: 1 !important;
}

.admin-modal-content {
    background: var(--dark-bg) !important;
    margin: 10% auto !important;
    padding: 30px !important;
    border-radius: 15px !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 0 30px rgba(0, 255, 231, 0.3) !important;
    width: 90% !important;
    max-width: 400px !important;
    position: relative !important;
    animation: modalAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    /* Add browser prefixes */
    -webkit-animation: modalAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    -moz-animation: modalAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    -o-animation: modalAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 200001 !important;
    /* Add inner glow */
    -webkit-box-shadow: 0 0 30px rgba(0, 255, 231, 0.3), inset 0 0 15px rgba(155, 92, 255, 0.1) !important;
    -moz-box-shadow: 0 0 30px rgba(0, 255, 231, 0.3), inset 0 0 15px rgba(155, 92, 255, 0.1) !important;
    box-shadow: 0 0 30px rgba(0, 255, 231, 0.3), inset 0 0 15px rgba(155, 92, 255, 0.1) !important;
}

@keyframes modalAppear {
    from {opacity: 0; transform: translateY(-50px) scale(0.9);}
    to {opacity: 1; transform: translateY(0) scale(1);}
}

/* Add vendor prefixes for keyframes */
@-webkit-keyframes modalAppear {
    from {opacity: 0; -webkit-transform: translateY(-50px) scale(0.9);}
    to {opacity: 1; -webkit-transform: translateY(0) scale(1);}
}

@-moz-keyframes modalAppear {
    from {opacity: 0; -moz-transform: translateY(-50px) scale(0.9);}
    to {opacity: 1; -moz-transform: translateY(0) scale(1);}
}

@-o-keyframes modalAppear {
    from {opacity: 0; -o-transform: translateY(-50px) scale(0.9);}
    to {opacity: 1; -o-transform: translateY(0) scale(1);}
}

.admin-modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 28px !important;
    color: var(--gray-text) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    /* Add browser prefixes */
    -webkit-transition: all 0.3s ease !important;
    -moz-transition: all 0.3s ease !important;
    -o-transition: all 0.3s ease !important;
    z-index: 200002 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 50% !important;
}

.admin-modal-close:hover {
    color: var(--primary-color) !important;
    background: rgba(0, 255, 231, 0.1) !important;
    transform: rotate(90deg) !important;
    -webkit-transform: rotate(90deg) !important;
    -moz-transform: rotate(90deg) !important;
    -ms-transform: rotate(90deg) !important;
    -o-transform: rotate(90deg) !important;
}

.admin-modal-content h2 {
    text-align: center !important;
    margin-bottom: 25px !important;
    color: var(--primary-color) !important;
    font-family: 'Orbitron', sans-serif !important;
    /* Add text shadow for better visibility */
    text-shadow: 0 0 10px rgba(0, 255, 231, 0.3) !important;
}

.admin-login-error {
    color: #ff5555 !important;
    background: rgba(255, 0, 0, 0.1) !important;
    padding: 10px !important;
    border-radius: 5px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    border: 1px solid rgba(255, 85, 85, 0.3) !important;
}

.featured-categories {
    padding: 100px 0;
    background: var(--darker-bg);
    position: relative;
}

.featured-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(155, 92, 255, 0.1) 0%, rgba(10, 10, 26, 0) 70%);
    z-index: -1;
}

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

.category-card {
    background: rgba(10, 10, 26, 0.7);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(155, 92, 255, 0.2);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.category-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-card p {
    margin-bottom: 1.5rem;
    color: var(--gray-text);
    font-size: 1rem;
}

.featured-products {
    padding: 100px 0;
    position: relative;
}

.featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(0, 255, 231, 0.1) 0%, rgba(10, 10, 26, 0) 70%);
    z-index: -1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(10, 10, 26, 0.7);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(155, 92, 255, 0.2);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.product-image {
    height: 200px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 26, 0.8);
}

.product-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    margin-bottom: 1rem;
}

.product-content p {
    margin-bottom: 1.5rem;
    color: var(--gray-text);
    font-size: 1rem;
}

.product-price {
    margin-bottom: 1.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
}

.product-actions {
    display: flex;
    justify-content: center;
}

.product-actions .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Admin Panel Styles */
.admin-header {
    background: rgba(10, 10, 26, 0.9);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(155, 92, 255, 0.2);
}

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

.admin-dashboard {
    padding: 100px 0;
}

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

.stat-card {
    background: rgba(10, 10, 26, 0.7);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(155, 92, 255, 0.2);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    margin: 0;
    color: var(--gray-text);
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.products-table {
    background: rgba(10, 10, 26, 0.7);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(155, 92, 255, 0.2);
    box-shadow: var(--box-shadow);
    overflow-x: auto;
}

.products-table table {
    width: 100%;
    border-collapse: collapse;
}

.products-table th,
.products-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(155, 92, 255, 0.2);
}

.products-table th {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
}

.products-table tr:hover {
    background: rgba(0, 255, 231, 0.1);
}

.action-btn {
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    margin-right: 5px;
    display: inline-block;
}

.edit-btn {
    background: rgba(0, 255, 231, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.delete-btn {
    background: rgba(255, 0, 0, 0.2);
    color: #ff5555;
    border: 1px solid #ff5555;
}

/* Login Form */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-form {
    background: rgba(10, 10, 26, 0.9);
    border-radius: 15px;
    padding: 3rem;
    border: 1px solid rgba(155, 92, 255, 0.2);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(5, 5, 16, 0.7);
    border: 1px solid rgba(155, 92, 255, 0.2);
    color: var(--light-text);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 231, 0.3);
}

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

.product-detail-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.product-detail-image {
    flex: 1;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-detail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 26, 0.8);
    border-radius: 15px;
}

.product-detail-placeholder i {
    font-size: 8rem;
    color: var(--primary-color);
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-detail-info .price {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.product-description {
    margin-bottom: 2rem;
    color: var(--gray-text);
}

.product-meta {
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    margin-bottom: 0.5rem;
}

.meta-label {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 120px;
}

.purchase-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.purchase-actions .btn {
    flex: 1;
    text-align: center;
}

/* Shopping Cart */
.cart-container {
    padding: 100px 0;
}

.cart-items {
    background: rgba(10, 10, 26, 0.7);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(155, 92, 255, 0.2);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(155, 92, 255, 0.2);
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 26, 0.8);
    border-radius: 10px;
}

.cart-item-placeholder i {
    font-size: 2rem;
    color: var(--primary-color);
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background: rgba(155, 92, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--light-text);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantity-input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: 1px solid rgba(155, 92, 255, 0.2);
    color: var(--light-text);
    border-radius: 5px;
    padding: 5px;
}

.cart-total {
    background: rgba(10, 10, 26, 0.7);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(155, 92, 255, 0.2);
    box-shadow: var(--box-shadow);
}

.cart-total h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.total-amount {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
}

/* Admin Create Button for Admin Panel */
.admin-create-btn {
    position: fixed !important;
    top: 15px !important;
    left: 15px !important;
    width: 30px !important;
    height: 30px !important;
    background: var(--primary-color) !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    box-shadow: 0 0 10px rgba(0, 255, 231, 0.5) !important;
    z-index: 999999 !important;
    transition: all 0.2s ease !important;
    border: 1px solid var(--darker-bg) !important;
    /* Add browser prefixes for better compatibility */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    /* Force hardware acceleration */
    -webkit-transform: translate3d(0,0,0);
    -moz-transform: translate3d(0,0,0);
    -ms-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    /* Ensure visibility */
    visibility: visible !important;
    opacity: 1 !important;
}

.admin-create-btn:hover {
    transform: scale(1.1) !important;
    -webkit-transform: scale(1.1) !important;
    -moz-transform: scale(1.1) !important;
    -ms-transform: scale(1.1) !important;
    -o-transform: scale(1.1) !important;
    box-shadow: 0 0 15px rgba(0, 255, 231, 0.8) !important;
    /* Add smooth transition */
    transition: all 0.2s ease !important;
    -webkit-transition: all 0.2s ease !important;
    -moz-transition: all 0.2s ease !important;
    -o-transition: all 0.2s ease !important;
}

.admin-create-btn i {
    font-size: 16px !important;
    color: var(--darker-bg) !important;
    /* Add browser prefixes */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    z-index: 999999 !important;
    font-weight: 900 !important;
}

/* Admin Create Modal */
.admin-create-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 200000 !important;
    /* Add browser prefixes for backdrop-filter */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    /* Fallback for browsers that don't support backdrop-filter */
    background: rgba(0, 0, 0, 0.85) !important;
    /* Add smooth fade-in animation */
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    -webkit-transition: opacity 0.3s ease !important;
    -moz-transition: opacity 0.3s ease !important;
    -o-transition: opacity 0.3s ease !important;
}

.admin-create-modal.show {
    display: block !important;
    opacity: 1 !important;
}

.admin-create-modal-content {
    background: var(--dark-bg) !important;
    margin: 10% auto !important;
    padding: 30px !important;
    border-radius: 15px !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 0 30px rgba(0, 255, 231, 0.3) !important;
    width: 90% !important;
    max-width: 400px !important;
    position: relative !important;
    animation: modalAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    /* Add browser prefixes */
    -webkit-animation: modalAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    -moz-animation: modalAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    -o-animation: modalAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 200001 !important;
    /* Add inner glow */
    -webkit-box-shadow: 0 0 30px rgba(0, 255, 231, 0.3), inset 0 0 15px rgba(155, 92, 255, 0.1) !important;
    -moz-box-shadow: 0 0 30px rgba(0, 255, 231, 0.3), inset 0 0 15px rgba(155, 92, 255, 0.1) !important;
    box-shadow: 0 0 30px rgba(0, 255, 231, 0.3), inset 0 0 15px rgba(155, 92, 255, 0.1) !important;
}

.admin-create-modal-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 28px !important;
    color: var(--gray-text) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    /* Add browser prefixes */
    -webkit-transition: all 0.3s ease !important;
    -moz-transition: all 0.3s ease !important;
    -o-transition: all 0.3s ease !important;
    z-index: 200002 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 50% !important;
}

.admin-create-modal-close:hover {
    color: var(--primary-color) !important;
    background: rgba(0, 255, 231, 0.1) !important;
    transform: rotate(90deg) !important;
    -webkit-transform: rotate(90deg) !important;
    -moz-transform: rotate(90deg) !important;
    -ms-transform: rotate(90deg) !important;
    -o-transform: rotate(90deg) !important;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .product-detail-container {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-image {
        margin-bottom: 1rem;
    }
    
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .products-table {
        overflow-x: auto;
    }
    
    .products-table table {
        min-width: 600px;
    }
}

@media screen and (max-width: 768px) {
    .purchase-actions {
        flex-direction: column;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-float-btn {
        width: 45px;
        height: 45px;
    }
    
    .admin-create-btn {
        width: 45px;
        height: 45px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .products-table th,
    .products-table td {
        padding: 0.75rem;
    }
    
    .action-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
        margin-right: 3px;
    }
}

@media screen and (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-image {
        height: 300px;
    }
    
    .product-detail-placeholder i {
        font-size: 5rem;
    }
    
    .product-detail-info h1 {
        font-size: 2rem;
    }
    
    .product-detail-info .price {
        font-size: 1.5rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cart-item-placeholder i {
        font-size: 1.5rem;
    }
    
    .cart-item-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .quantity-control {
        gap: 0.25rem;
    }
    
    .quantity-btn {
        width: 25px;
        height: 25px;
    }
    
    .quantity-input {
        width: 35px;
        padding: 3px;
    }
    
    .cart-total {
        padding: 1.5rem;
    }
    
    .total-amount {
        font-size: 1.5rem;
    }
    
    .admin-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .admin-create-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .login-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
    }
}