/* Store Styles */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #45a049;
    --background-color: #1a1a1a;
    --card-background: #242424;
    --text-color: #ffffff;
    --light-text: #cccccc;
    --border-color: #333333;
}

/* Store Hero */
.store-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/store-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    padding: 2rem;
    margin-top: 60px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Store Container */
.store-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: linear-gradient(145deg, var(--card-background), #2a2a2a);
    border-radius: 15px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-text);
    cursor: pointer;
}

.filter-options input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.price-range {
    margin-top: 1rem;
}

.price-range input[type="range"] {
    width: 100%;
    margin-bottom: 1rem;
    accent-color: var(--primary-color);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-inputs input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-background);
    color: var(--text-color);
}

/* Products Section */
.products-section {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: var(--card-background);
    color: var(--text-color);
}

.search-bar i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

.sort-options select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: var(--card-background);
    color: var(--text-color);
    cursor: pointer;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: linear-gradient(145deg, var(--card-background), #2a2a2a);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 280px;
    position: relative;
    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.05);
}

.product-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.tag {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.product-details {
    padding: 1.5rem;
}

.product-name {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-description {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.add-to-cart,
.quick-view {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart {
    background: var(--primary-color);
    color: white;
}

.quick-view {
    background: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.add-to-cart:hover {
    background: var(--secondary-color);
}

.quick-view:hover {
    background: #333;
}

/* Cart Icon */
.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Quick View Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--background-color);
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    float: right;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.cart-notification.active {
    transform: translateY(0);
    opacity: 1;
}

.cart-notification i {
    font-size: 1.2rem;
}

/* Choice Container */
.choice-container {
    max-width: 1200px;
    margin: 80px auto 2rem;
    padding: 2rem;
    text-align: center;
}

.choice-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.choice-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 3rem;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.choice-tile {
    position: relative;
    background: linear-gradient(145deg, var(--card-background), #2a2a2a);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.1), rgba(69, 160, 73, 0.2));
    z-index: 1;
}

.choice-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tile-content {
    position: relative;
    z-index: 2;
}

.choice-tile i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.choice-tile h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.choice-tile p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.tile-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tile-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-text);
    font-size: 1rem;
}

.tile-features i {
    font-size: 1rem;
    margin: 0;
}

.tile-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tile-button:hover {
    background: var(--secondary-color);
}

.buyer-tile::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: url('assets/leaf-pattern.png') no-repeat center;
    opacity: 0.1;
    transform: rotate(45deg);
}

.seller-tile::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: url('assets/store-pattern.png') no-repeat center;
    opacity: 0.1;
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .store-container {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 768px) {
    .store-container {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .products-header {
        flex-direction: column;
        gap: 1rem;
    }

    .search-bar {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .choice-title {
        font-size: 2rem;
    }

    .choice-subtitle {
        font-size: 1rem;
    }

    .choice-tile {
        min-height: 350px;
    }
}

/* Add to existing styles */

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stock-status {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.in-stock {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.out-of-stock {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.stock-warning {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 152, 0, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.category-tag {
    background: rgba(76, 175, 80, 0.9);
}

.benefit-tag {
    background: rgba(33, 150, 243, 0.9);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.add-to-cart:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.add-to-cart:disabled:hover {
    background: #cccccc;
}

/* Quick View Styles */
.quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.quick-view-image {
    border-radius: 15px;
    overflow: hidden;
}

.quick-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-details {
    color: var(--text-color);
}

.quick-view-details h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.quick-view-details .category {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quick-view-details .price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.quick-view-details .description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.benefits, .care-instructions {
    margin-top: 1.5rem;
}

.benefits h3, .care-instructions h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.benefits ul {
    list-style: none;
    padding: 0;
}

.benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.benefits li i {
    color: var(--primary-color);
}

.care-instructions p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Cart Notification Improvements */
.cart-notification {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-notification.success {
    background: var(--primary-color);
}

.cart-notification.error {
    background: #f44336;
}

.cart-notification i {
    font-size: 1.2rem;
}

/* Responsive Design for Quick View */
@media (max-width: 768px) {
    .quick-view-content {
        grid-template-columns: 1fr;
    }

    .quick-view-image {
        max-height: 300px;
    }
} 