/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
}

a {
    text-decoration: none;
    color: #6c5ce7;
}

a:hover {
    color: #5649c0;
}

/* Header Styles */
.header-top {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.buyhatke-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #6c5ce7;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #6c5ce7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.buyhatke-logo:hover {
    color: #5649c0;
    text-decoration: none;
}

/* Search Bar */
.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #6c5ce7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #6c5ce7;
    border: none;
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.search-button:hover {
    background: #5649c0;
}

.search-icon {
    font-size: 14px;
}

/* Navigation */
.navbar {
    padding: 0;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-nav .nav-link {
    padding: 15px 20px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #6c5ce7;
    background-color: rgba(108, 92, 231, 0.05);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 8px 20px;
    color: #333;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background-color: rgba(108, 92, 231, 0.05);
    color: #6c5ce7;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 30px 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    margin-bottom: 20px;
    height: 100%;
}

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

.category-img {
    height: 150px;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.category-card:hover .category-img img {
    transform: scale(1.1);
}

.category-content {
    padding: 15px;
    text-align: center;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.category-count {
    color: #666;
    font-size: 14px;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #6c5ce7;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px;
}

.product-brand {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-rating {
    margin-bottom: 10px;
    color: #ffa41c;
}

/* Product Price Container */
.product-price-container {
    margin-bottom: 15px;
}

.product-price-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #6c5ce7;
    white-space: nowrap;
}

.product-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    white-space: nowrap;
    margin-left: 5px;
}

.product-discount {
    font-size: 14px;
    color: #2ecc71;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 5px;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-vendor {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
}

.vendor-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    font-size: 10px;
    font-weight: 600;
}

/* Compare button styling removed */

/* Product Detail Page */
.product-detail {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.product-gallery {
    position: relative;
    margin-bottom: 20px;
}

.product-main-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.product-thumbnail.active,
.product-thumbnail:hover {
    border-color: #6c5ce7;
}

.product-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-meta {
    margin-bottom: 20px;
}

.product-meta span {
    display: inline-block;
    margin-right: 15px;
    color: #666;
    font-size: 14px;
}

.price-display {
    font-size: 28px;
    font-weight: 700;
    color: #6c5ce7;
    margin-bottom: 5px;
}

.price-discount {
    font-size: 16px;
    color: #2ecc71;
    font-weight: 600;
    margin-bottom: 20px;
}

.compare-prices-btn {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.compare-prices-btn:hover {
    background: #5649c0;
}

.product-description {
    margin-top: 30px;
}

.product-description h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Price Comparison Table */
.price-comparison-table {
    margin-top: 15px;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.comparison-item:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 12px 8px;
}

.store-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-icon {
    width: 24px;
    height: 24px;
    background: #6c5ce7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.store-name {
    font-weight: 500;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-details {
    text-align: right;
}

.store-price {
    font-weight: 600;
    font-size: 16px;
}

.delivery-info {
    font-size: 12px;
    color: #2ecc71;
}

.sold-out {
    font-size: 12px;
    color: #e74c3c;
}

.store-buy-btn {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.store-buy-btn:hover {
    background: #5649c0;
}

.store-buy-btn.sold-out {
    background: #ccc;
    cursor: not-allowed;
}

/* Price History Chart */
.price-history-chart {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.price-history-chart h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Product Specifications */
.product-specs {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-specs h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.specs-table {
    width: 100%;
}

.specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 10px 0;
}

.specs-table td:first-child {
    font-weight: 500;
    width: 40%;
}

/* Similar Products */
.similar-products {
    margin-top: 30px;
}

.similar-products h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Price Range Products */
.price-point-product {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s;
}

.price-point-product:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* Product Comparison */
.compare-title {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
}

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

.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #e0e0e0;
    padding: 15px;
    vertical-align: middle;
}

.comparison-table th {
    background-color: #f8f9fa;
}

.comparison-table .spec-name {
    font-weight: 600;
    background-color: #f8f9fa;
    width: 150px;
}

.compare-product-header {
    text-align: center;
    padding: 10px;
}

.compare-product-img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.compare-product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.compare-product-title a {
    color: #333;
    text-decoration: none;
}

.compare-product-title a:hover {
    color: #6c5ce7;
}

.compare-price {
    font-size: 18px;
    font-weight: 700;
    color: #6c5ce7;
    margin-bottom: 5px;
}

.compare-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.compare-discount {
    font-size: 14px;
    color: #2ecc71;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Compare Button */
.add-to-compare {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-compare:hover {
    background-color: #e9ecef;
}

.add-to-compare.active {
    background-color: #6c5ce7;
    color: white;
    border-color: #6c5ce7;
}

/* Compare Bar */
#compare-bar {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 1000;
    transition: bottom 0.3s ease-in-out;
}

#compare-bar.active {
    bottom: 0;
}

.compare-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.compare-bar-left {
    display: flex;
    align-items: center;
}

.compare-counter-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.compare-counter-label {
    font-weight: 600;
    margin-right: 10px;
}

.compare-counter {
    background-color: #6c5ce7;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.compare-items-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    overflow-x: auto;
    padding: 0 10px;
}

.compare-item {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 5px 10px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.compare-item-name {
    font-size: 12px;
    margin-right: 5px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-item-remove:hover {
    color: #e74c3c;
}

.compare-bar-right {
    display: flex;
    align-items: center;
}

#compare-now-btn {
    background-color: #6c5ce7;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
    text-decoration: none;
}

#compare-now-btn:hover {
    background-color: #5649c0;
}

#clear-compare-btn {
    background-color: transparent;
    color: #666;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

#clear-compare-btn:hover {
    color: #e74c3c;
}

/* Notifications */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    max-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.notification-message {
    flex-grow: 1;
    margin-right: 10px;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.notification-success {
    border-left: 4px solid #2ecc71;
}

.notification-error {
    border-left: 4px solid #e74c3c;
}

.notification-warning {
    border-left: 4px solid #f39c12;
}

.notification-info {
    border-left: 4px solid #3498db;
}

.price-point-header {
    background-color: #6c5ce7;
    color: white;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.price-point-content {
    padding: 12px;
    text-align: center;
}

.price-point-img {
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.price-point-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
}

.price-point-title a {
    color: #333;
    text-decoration: none;
}

.price-point-title a:hover {
    color: #6c5ce7;
}

.price-point-price {
    font-size: 16px;
    font-weight: 600;
    color: #6c5ce7;
}

/* Footer */
.footer {
    background: #2d3436;
    color: #f5f5f5;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo .buyhatke-logo {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #6c5ce7;
    color: white;
}

.footer h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #f5f5f5;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #6c5ce7;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li i {
    width: 20px;
}

.footer-contact a {
    color: #f5f5f5;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #f5f5f5;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    
    .product-main-img {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .header-top {
        padding: 10px 0;
    }
    
    .buyhatke-logo {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .search-container {
        margin-top: 15px;
    }
    
    /* Make search bar smaller on mobile */
    .search-input {
        padding: 8px 15px;
        padding-right: 40px;
        font-size: 12px;
    }
    
    .search-button {
        width: 30px;
        height: 30px;
        right: 4px;
        top: 4px;
    }
    
    .search-icon {
        font-size: 12px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .product-detail {
        padding: 20px;
    }
    
    .product-main-img {
        height: 250px;
    }
    
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        margin-top: 10px;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .product-main-img {
        height: 200px;
    }
    
    .product-thumbnail {
        width: 60px;
        height: 60px;
    }
}