/* Coffee Plus - Custom Styles */

:root {
    --coffee-primary: #6F4E37;    /* Rich coffee brown */
    --coffee-secondary: #8B4513;  /* Saddle brown */
    --coffee-light: #D2B48C;      /* Tan/light coffee */
    --coffee-cream: #F5F5DC;      /* Beige/cream */
    --coffee-dark: #3E2723;       /* Dark chocolate */
    --coffee-accent: #A0522D;     /* Sienna */
    --white: #FFFFFF;
    --black: #2C1810;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-600: #757575;
    --gray-800: #424242;
    
    /* Legacy colors for compatibility */
    --coffee-brown: #6F4E37;
    --dark-brown: #3E2723;
    --cream: #F5F5DC;
    --light-cream: #FEFEFE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    padding-top: 76px; /* Account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--coffee-dark);
}

/* Main content spacing */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Navigation Styles */
.navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1030;
}

.navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--coffee-primary) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: var(--coffee-secondary) !important;
}

.nav-link {
    color: var(--coffee-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--coffee-primary) !important;
    background-color: var(--coffee-cream);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    z-index: 1050;
    position: absolute;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--coffee-dark);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--coffee-cream);
    color: var(--coffee-primary);
}

/* Dropdown improvements */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu.show {
    display: block !important;
}

.navbar .dropdown-menu {
    min-width: 200px;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Button Styles */
.btn-coffee {
    background-color: var(--coffee-brown);
    border-color: var(--coffee-brown);
    color: var(--white);
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-coffee:hover {
    background-color: var(--dark-brown);
    border-color: var(--dark-brown);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 24, 16, 0.7), rgba(44, 24, 16, 0.7)), url('../images/coffee-hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.card-header {
    background-color: var(--cream);
    border-bottom: 2px solid var(--coffee-brown);
    font-weight: 600;
}

/* Blog Styles */
.blog-post {
    margin-bottom: 30px;
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-meta i {
    color: var(--coffee-brown);
    margin-right: 5px;
}

/* Featured Image Styles */
.featured-image {
    padding: 40px 0;
    background-color: var(--light-gray);
}

.featured-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-height: 400px;
}

.featured-img-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: contain; /* show full image without cropping */
    object-position: center;
    background: var(--white);
    transition: transform 0.3s ease;
}

.featured-img-wrapper:hover img {
    transform: scale(1.02);
}

/* Blog Post Content */
.post-content {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-content h1, .post-content h2, .post-content h3 {
    color: var(--coffee-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h1 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 600;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.post-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.post-content a {
    color: var(--coffee-primary);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--coffee-secondary);
}

/* Content Images */
.post-content .content-image {
    margin: 30px 0;
    text-align: center;
}

.post-content .content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content .content-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Blog Listing Styles */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show full image in cards */
    object-position: center;
    background: var(--white);
    transition: transform 0.3s ease;
}

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

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--coffee-primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.post-category:hover {
    background: var(--coffee-secondary);
    color: var(--white);
}

.post-card-content {
    padding: 20px;
}

.post-title {
    color: var(--coffee-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-decoration: none;
    display: block;
    line-height: 1.3;
}

.post-title:hover {
    color: var(--coffee-primary);
}

.post-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.post-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-date {
    font-size: 0.8rem;
}

.post-footer {
    margin-top: auto;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 0.8rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more {
    color: var(--coffee-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--coffee-secondary);
}

/* Featured Post Styles */
.featured-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.featured-image {
    position: relative;
    height: auto;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.featured-content {
    padding: 40px;
}

.featured-badge {
    background: var(--coffee-primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.featured-title {
    color: var(--coffee-dark);
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-excerpt {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.read-more-btn {
    background: var(--coffee-primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more-btn:hover {
    background: var(--coffee-secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Related Posts Styles */
.related-post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.related-post-card .card-image {
    height: 180px;
    overflow: hidden;
}

.related-post-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.related-post-card .card-content {
    padding: 20px;
}

.related-post-card .post-category {
    position: static;
    margin-bottom: 10px;
}

.related-post-card .post-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.related-post-card .post-date {
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background-color: var(--coffee-dark);
    color: var(--coffee-cream);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-brand h5 {
    color: var(--coffee-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer h6 {
    color: var(--coffee-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--coffee-cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--coffee-light);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--coffee-primary);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--coffee-light);
    color: var(--coffee-dark);
    transform: translateY(-2px);
}

.footer-divider {
    border-color: var(--coffee-primary);
    opacity: 0.3;
    margin: 2rem 0 1.5rem;
}

.copyright {
    color: var(--coffee-cream);
    font-size: 0.9rem;
}

.admin-link {
    color: var(--coffee-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: var(--white);
}

/* Admin Styles */
.admin-header {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 20px 0;
}

.admin-sidebar {
    background-color: var(--cream);
    min-height: calc(100vh - 120px);
    padding: 20px;
}

.admin-content {
    padding: 20px;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--coffee-brown);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

/* Comments Section */
.comments-section {
    padding: 3rem 0;
    background: var(--light-gray);
}

.comments-wrapper {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comments-title {
    color: var(--coffee-dark);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 0;
}

.comment-form-wrapper {
    background: var(--coffee-cream);
    border-radius: 8px;
    padding: 30px;
    border: 2px solid var(--cream);
}

.comment-form-wrapper h5 {
    color: var(--coffee-dark);
    font-weight: 600;
    margin-bottom: 20px;
}

.comment-form .form-control {
    border: 2px solid var(--cream);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.comment-form .form-control:focus {
    border-color: var(--coffee-primary);
    box-shadow: 0 0 0 3px rgba(111, 78, 55, 0.1);
}

.comment-form .form-label {
    color: var(--coffee-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.comment-form .form-text {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comments-list {
    margin-top: 2rem;
}

.comment-item {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--coffee-light);
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: var(--white);
    border-left-color: var(--coffee-primary);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-avatar {
    margin-right: 15px;
}

.comment-avatar i {
    font-size: 2.5rem;
    color: var(--coffee-light);
}

.comment-meta h6 {
    color: var(--coffee-dark);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1rem;
}

.comment-date {
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 500;
}

.comment-content {
    margin-left: 55px;
}

.comment-content p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 0;
}

.no-comments {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    border: 2px dashed var(--gray-300);
}

.no-comments i {
    color: var(--gray-400);
}

.no-comments h5 {
    color: var(--coffee-dark);
    margin-bottom: 10px;
}

.no-comments p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Blog Sidebar */
.blog-sidebar {
    padding-left: 2rem;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

.widget-title {
    color: var(--coffee-dark);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--coffee-light);
}

/* Recent Posts */
.recent-post-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h6 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.recent-post-content h6 a {
    color: var(--coffee-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h6 a:hover {
    color: var(--coffee-primary);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Categories */
.category-item {
    margin-bottom: 0.8rem;
}

.category-item a {
    color: var(--gray-700);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.3s ease;
}

.category-item a:hover {
    color: var(--coffee-primary);
}

.post-count {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: var(--coffee-cream);
    color: var(--coffee-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid var(--coffee-light);
}

.tag-item:hover {
    background: var(--coffee-primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--coffee-cream) 0%, var(--cream) 100%);
    border: 2px solid var(--coffee-light);
}

.newsletter-widget p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form .form-control {
    border: 2px solid var(--cream);
    border-radius: 8px;
    padding: 0.75rem;
}

.newsletter-form .form-control:focus {
    border-color: var(--coffee-primary);
    box-shadow: 0 0 0 3px rgba(111, 78, 55, 0.1);
}

/* Shop Pages */
.shop-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/shop.png') center center/cover no-repeat !important;
    padding: 150px 0;
    color: var(--white);
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    height: 100vh;
}

.hero-content {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s ease-out forwards;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    animation: slideInLeft 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto;
    animation: bounceIn 1s ease-out 0.9s both;
}

/* Shop Hero Mobile Responsiveness */
@media (max-width: 768px) {
    .shop-hero {
        padding: 200px 0 100px;
        text-align: center;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

.search-wrapper {
    position: relative;
    display: flex;
}

.search-input {
    flex: 1;
    padding: 1rem 4rem 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--coffee-primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--coffee-secondary);
}

/* Featured Products Section */
.featured-products {
    padding: 4rem 0;
    background: var(--gray-50);
}

.featured-products .section-header {
    margin-bottom: 3rem;
}

.featured-products .section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--coffee-primary);
    margin-bottom: 1rem;
}

.featured-product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.featured-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.featured-product-card .product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.featured-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--white);
    transition: transform 0.3s ease;
}

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

.featured-product-card .product-info {
    padding: 2rem;
}

.featured-product-card .product-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.featured-product-card .product-name a {
    color: var(--coffee-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.featured-product-card .product-name a:hover {
    color: var(--coffee-secondary);
}

.featured-product-card .product-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Products Listing */
.products-listing {
    padding: 4rem 0;
    background: var(--white);
}

.listing-controls {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.filters-form, .sort-form {
    margin: 0;
}

.filter-group, .sort-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-label, .sort-label {
    font-weight: 600;
    color: var(--coffee-primary);
    margin: 0;
    white-space: nowrap;
}

.filter-select, .sort-select {
    border: 2px solid var(--coffee-cream);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: border-color 0.3s ease;
}

.filter-select:focus, .sort-select:focus {
    border-color: var(--coffee-primary);
    box-shadow: 0 0 0 3px rgba(111, 78, 55, 0.1);
}

.results-info {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--coffee-cream);
}

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

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-50);
    border-radius: 16px;
    margin: 2rem 0;
}

.no-products h3 {
    color: var(--coffee-primary);
    margin-bottom: 1rem;
}

/* Product Details Page */
.product-hero {
    padding: 2rem 0;
    background: var(--white);
}

.product-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.product-breadcrumb .breadcrumb-item a {
    color: var(--coffee-light);
    text-decoration: none;
}

.product-breadcrumb .breadcrumb-item a:hover {
    color: var(--coffee-primary);
}

.product-breadcrumb .breadcrumb-item.active {
    color: var(--gray-600);
}

.product-image-wrapper {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.product-main-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center;
    background: var(--white);
    transition: opacity 0.3s ease;
}

/* Product Gallery Styles */
.product-gallery {
    position: relative;
}

.main-image-container {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-thumbnails {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail-item:hover {
    opacity: 1;
    border-color: var(--coffee-light);
}

.thumbnail-item.active {
    opacity: 1;
    border-color: var(--coffee-primary);
    box-shadow: 0 2px 8px rgba(111, 78, 55, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Indicator for Product Listings */
.gallery-indicator {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
}

.gallery-indicator i {
    font-size: 0.875rem;
}

.gallery-indicator span {
    line-height: 1;
}

.product-image-placeholder {
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-500);
}

.product-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.featured {
    background: var(--coffee-secondary);
    color: var(--white);
}

.product-badge.discount {
    background: #dc3545;
    color: var(--white);
}

.product-badge.out-of-stock {
    background: var(--gray-600);
    color: var(--white);
}

.product-details {
    padding-left: 2rem;
}

.product-category {
    margin-bottom: 1rem;
}

.product-category a {
    color: var(--coffee-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-category a:hover {
    color: var(--coffee-primary);
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--coffee-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-sku {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.product-sku .label {
    font-weight: 600;
}

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

.product-price .current-price,
.product-price .sale-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--coffee-primary);
}

.product-price .original-price {
    font-size: 1.5rem;
    color: var(--gray-500);
    text-decoration: line-through;
    margin-left: 1rem;
}

.product-short-description {
    margin-bottom: 2rem;
}

.product-short-description p {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.6;
}

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

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.stock-status.in-stock {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stock-status.low-stock {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stock-status.out-of-stock {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.add-to-cart-form {
    margin-bottom: 2rem;
}

.quantity-wrapper {
    margin-bottom: 1.5rem;
}

.quantity-wrapper .form-label {
    font-weight: 600;
    color: var(--coffee-primary);
    margin-bottom: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 2px solid var(--coffee-cream);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: var(--coffee-cream);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coffee-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--coffee-light);
    color: var(--white);
}

.quantity-input {
    border: none;
    width: 60px;
    height: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--coffee-primary);
    background: var(--white);
}

.quantity-input:focus {
    outline: none;
    box-shadow: none;
}

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

.btn-add-to-cart {
    flex: 1;
    max-width: 300px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-wishlist {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.out-of-stock-notice {
    text-align: center;
    padding: 2rem;
    background: var(--gray-100);
    border-radius: 12px;
}

.product-meta {
    padding-top: 2rem;
    border-top: 1px solid var(--coffee-cream);
}

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

.meta-item .label {
    font-weight: 600;
    color: var(--coffee-primary);
    width: 100px;
}

.meta-item .value {
    color: var(--gray-700);
}

/* Product Tabs */
.product-tabs {
    padding: 3rem 0;
    background: var(--gray-50);
}

.product-nav-tabs {
    border-bottom: 2px solid var(--coffee-cream);
    margin-bottom: 2rem;
}

.product-nav-tabs .nav-link {
    border: none;
    color: var(--gray-600);
    font-weight: 600;
    padding: 1rem 2rem;
    margin-right: 1rem;
    border-radius: 8px 8px 0 0;
    background: transparent;
    transition: all 0.3s ease;
}

.product-nav-tabs .nav-link:hover {
    color: var(--coffee-primary);
    background: var(--coffee-cream);
}

.product-nav-tabs .nav-link.active {
    color: var(--white);
    background: var(--coffee-primary);
    border-bottom: 2px solid var(--coffee-primary);
}

.product-tab-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.description-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.description-content h1,
.description-content h2,
.description-content h3 {
    color: var(--coffee-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.description-content h1:first-child,
.description-content h2:first-child,
.description-content h3:first-child {
    margin-top: 0;
}

/* Related Products */
.related-products {
    padding: 4rem 0;
    background: var(--white);
}

.related-products .section-header {
    margin-bottom: 3rem;
}

.related-products .section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--coffee-primary);
    margin-bottom: 1rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--white);
    transition: transform 0.3s ease;
}

.product-card .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 2rem;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(111, 78, 55, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card .product-info {
    padding: 1.5rem;
}

.product-card .product-category {
    color: var(--coffee-light);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-card .product-name {
    margin-bottom: 1rem;
}

.product-card .product-name a {
    color: var(--coffee-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-card .product-name a:hover {
    color: var(--coffee-secondary);
}

.product-card .product-price .current-price,
.product-card .product-price .sale-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--coffee-primary);
}

.product-card .product-price .original-price {
    color: var(--gray-500);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-details {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-main-image {
        height: 400px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 3rem;
        position: relative;
        top: auto;
        max-height: none;
        overflow-y: visible;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    /* Comments responsive styles */
    .comments-wrapper {
        padding: 25px;
    }
    
    .comment-form-wrapper {
        padding: 20px;
    }
    
    .comment-item {
        padding: 20px;
    }
    
    .comment-content {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Product Gallery Mobile */
    .product-main-image {
        height: 300px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .image-thumbnails {
        gap: 0.5rem;
    }
    
    .gallery-indicator {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ===================== */
/* CART & CHECKOUT STYLES */
/* ===================== */

/* Cart Counter in Navigation */
.cart-counter {
    font-size: 0.75rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Page Styles */
.cart-item {
    border-bottom: 1px solid var(--coffee-cream);
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: rgba(223, 211, 195, 0.1);
}

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

.product-image-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

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

.quantity-controls .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--coffee-cream);
    border-radius: 6px;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cart-actions .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Add to Cart Form */
.add-to-cart-form {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--coffee-cream);
    border-radius: 12px;
}

.quantity-wrapper {
    margin-bottom: 1.5rem;
}

.quantity-wrapper .form-label {
    font-weight: 600;
    color: var(--coffee-primary);
    margin-bottom: 0.5rem;
}

/* Checkout Page Styles */
.checkout-form .form-label.required::after {
    content: " *";
    color: var(--danger);
}

.order-summary {
    position: sticky;
    top: 20px;
}

.order-items {
    max-height: 300px;
    overflow-y: auto;
}

.order-items::-webkit-scrollbar {
    width: 4px;
}

.order-items::-webkit-scrollbar-track {
    background: var(--coffee-cream);
    border-radius: 4px;
}

.order-items::-webkit-scrollbar-thumb {
    background: var(--coffee-light);
    border-radius: 4px;
}

/* Toast Notifications */
.toast {
    --bs-toast-max-width: 350px;
}

.toast .toast-body {
    font-weight: 500;
}

/* Cart Loading States */
.btn-add-to-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-add-to-cart .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart i {
    font-size: 4rem;
    color: var(--coffee-light);
    margin-bottom: 1rem;
}

.empty-cart h3 {
    color: var(--coffee-primary);
    margin-bottom: 1rem;
}

.empty-cart p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Cart Responsive Styles */
@media (max-width: 768px) {
    .cart-item .row {
        gap: 1rem;
    }
    
    .cart-item .col-md-2,
    .cart-item .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-image-wrapper {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .quantity-controls {
        justify-content: center;
        margin: 1rem 0;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .add-to-cart-form {
        padding: 1.5rem;
    }
    
    .order-summary {
        position: static;
        margin-top: 2rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Image optimization styles */
img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

/* Lazy loading optimization */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src*="data:"]) {
    opacity: 1;
}

/* Image loading shimmer effect */
.product-image, .post-image, .featured-image {
    position: relative;
    overflow: hidden;
}

.product-image::before, .post-image::before, .featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: inherit;
    z-index: 1;
    opacity: 0.5;
}

.product-image img, .post-image img, .featured-image img {
    position: relative;
    z-index: 2;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
