/* Core Stylesheet: BM Brazilian Market E-Commerce in Canada */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f3f4f6;
    
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    
    /* Brazil-inspired Premium Accents */
    --accent-green: #00875a;
    --accent-green-hover: #006644;
    --accent-yellow: #f9c716;
    --accent-yellow-hover: #e0b00c;
    --accent-blue: #1e3a8a;
    
    --border-color: #e5e7eb;
    
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--accent-green); }
.text-warning { color: var(--accent-yellow); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--accent-green);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background-color: var(--bg-tertiary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
}
.btn-outline:hover {
    background-color: var(--accent-green);
    color: #ffffff;
}

/* Premium Header Redesign */
.main-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-yellow) 100%);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-green);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Atendimento Dropdown */
.atendimento-dropdown {
    position: relative;
    display: inline-block;
}

.atendimento-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.atendimento-btn:hover {
    background-color: var(--bg-tertiary);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--bg-secondary);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    z-index: 1001;
    overflow: hidden;
    margin-top: 4px;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 10px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.dropdown-content a:hover {
    background-color: var(--bg-tertiary);
}

.atendimento-dropdown:hover .dropdown-content {
    display: block;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-icon-link {
    color: var(--text-secondary);
    font-size: 20px;
    position: relative;
    padding: 6px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-link:hover {
    color: var(--accent-green);
    background-color: var(--bg-tertiary);
}

.cart-link {
    background-color: var(--bg-tertiary);
    color: var(--accent-green);
}

.cart-badge {
    background-color: var(--accent-yellow);
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    position: absolute;
    top: -4px;
    right: -4px;
    border: 2px solid var(--bg-secondary);
}

/* Green Menu Bar */
.green-menu-bar {
    background-color: var(--accent-green);
    padding: 2px 0;
}

.green-menu-container {
    display: flex;
    gap: 4px;
}

.green-menu-item {
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.green-menu-item:hover, .green-menu-item.active {
    background-color: var(--accent-green-hover);
    color: var(--accent-yellow);
}

/* Search Bar Row */
.search-bar-row {
    background-color: var(--bg-tertiary);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 8px;
}

.search-input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-green);
}

.search-btn {
    background-color: var(--accent-green);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--accent-green-hover);
}

/* Main content wrapper */
.main-content {
    padding: 30px 0 60px 0;
}

/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 30px auto;
    padding: 0;
}

.hero-banner-link {
    display: block;
    width: 100%;
    overflow: hidden;
}

.hero-banner-img-element {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hero-banner-img-element:hover {
    transform: scale(1.005);
}

.btn-hero:hover {
    background-color: var(--accent-yellow-hover);
    transform: translateY(-2px);
}

/* Info Cards Section */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-green);
}

.info-card-icon {
    background-color: rgba(0, 135, 90, 0.1);
    color: var(--accent-green);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.info-card-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.info-card-text p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.info-card-link {
    color: var(--accent-green);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.info-card-link:hover {
    color: var(--accent-green-hover);
}

/* Section Header styling */
.section-header-centered {
    text-align: center;
    margin-bottom: 30px;
}

.section-main-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.section-sub-title {
    font-size: 14px;
    color: var(--text-secondary);
}

.home-section {
    margin-bottom: 50px;
}

/* Premium Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card-premium {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 135, 90, 0.2);
}

.prod-img-wrapper {
    position: relative;
    aspect-ratio: 1.1;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card-premium:hover .prod-img {
    transform: scale(1.04);
}

.prod-img-placeholder {
    color: var(--text-muted);
}

.badge-promo-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-yellow);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    z-index: 3;
}

.prod-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.prod-category-tag {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.prod-title-text {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.prod-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-yellow);
    font-size: 11px;
    margin-bottom: 12px;
}

.prod-rating span {
    color: var(--text-muted);
    margin-left: 2px;
}

.prod-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 14px;
}

.prod-price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 12px;
}

.prod-price-current {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-add-cart {
    background-color: var(--accent-green);
    color: #ffffff;
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
}

.btn-add-cart:hover {
    background-color: var(--accent-green-hover);
}

.btn-out-stock {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    cursor: not-allowed;
    text-align: center;
    border-radius: var(--radius-md);
}

.section-footer-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Home Categories Section - Emerald Green Rounded Grid */
.home-categories-section {
    background-color: #006644;
    padding: 40px 0;
    margin-bottom: 50px;
}

.text-white { color: #ffffff !important; }
.text-light { color: #d1fae5 !important; }

.categories-grid-premium {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.category-card-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cat-icon-circle {
    background-color: var(--bg-secondary);
    color: var(--accent-green);
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.category-card-premium:hover .cat-icon-circle {
    transform: scale(1.08);
    background-color: var(--accent-yellow);
    color: var(--text-primary);
}

.cat-label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* Split Columns Category Section */
.split-categories-section {
    margin-bottom: 50px;
}

.split-cols-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.split-col-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.split-col-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.split-col-header h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-green);
}

.split-col-header p {
    font-size: 11px;
    color: var(--text-secondary);
}

.split-products-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.split-product-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.split-prod-img {
    width: 60px;
    height: 60px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.split-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.split-prod-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.split-prod-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.split-prod-stars {
    color: var(--accent-yellow);
    font-size: 9px;
    display: flex;
    gap: 2px;
}

.btn-split-more {
    color: var(--accent-green);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.btn-split-more:hover {
    color: var(--accent-green-hover);
    transform: translateX(4px);
}

/* Green Trust/Services Banner */
.green-trust-banner {
    background-color: var(--accent-green);
    padding: 30px 0;
    color: #ffffff;
    margin-bottom: 50px;
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    font-size: 28px;
    color: var(--accent-yellow);
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 14px;
    font-weight: 700;
}

.trust-text span {
    font-size: 12px;
    opacity: 0.9;
}

/* Testimonials (Deixe os clientes falarem por nós) */
.testimonials-section {
    margin-bottom: 50px;
}

.rating-summary-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.rating-stars {
    color: var(--accent-yellow);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.testimonial-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.testi-stars {
    color: var(--accent-yellow);
    font-size: 12px;
    margin-bottom: 12px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
}

.testi-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.testi-author strong {
    font-size: 13px;
    font-weight: 700;
}

.testi-author span {
    font-size: 11px;
    color: var(--text-muted);
}

/* FAQs Accordion */
.faq-section {
    margin-bottom: 50px;
}

.faq-accordion-box {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question i {
    transition: var(--transition);
    color: var(--text-secondary);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 13px;
}

.faq-answer p {
    padding-bottom: 16px;
}

.faq-item.active .faq-question {
    color: var(--accent-green);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-green);
}

.faq-item.active .faq-answer {
    max-height: 120px;
}

/* Newsletter Signup Bar */
.newsletter-signup-banner {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.news-text {
    max-width: 600px;
}

.news-text h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.news-text p {
    font-size: 13px;
    color: var(--text-secondary);
}

.news-form {
    display: flex;
    gap: 8px;
    flex-grow: 1;
    max-width: 440px;
}

.news-input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 13px;
    background-color: var(--bg-secondary);
}

.news-input:focus {
    outline: none;
    border-color: var(--accent-green);
}

.btn-news-submit {
    background-color: var(--accent-green);
    color: #ffffff;
    padding: 10px 20px;
}

.btn-news-submit:hover {
    background-color: var(--accent-green-hover);
}

/* Footer Section */
.main-footer {
    background-color: #f3f4f6;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-green);
    padding-left: 4px;
}

.footer-links i {
    margin-right: 6px;
    color: var(--accent-green);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent-green);
    color: #ffffff;
    border-color: var(--accent-green);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-methods {
    display: flex;
    gap: 12px;
    font-size: 20px;
    color: var(--text-secondary);
}

/* Category Filter Layout (default page layout) */
.products-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    margin-top: 10px;
}

.sidebar {
    padding: 24px;
    border-radius: var(--radius-lg);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    color: var(--text-secondary);
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: rgba(0, 135, 90, 0.08);
    color: var(--accent-green);
    font-weight: 600;
}

.category-page-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
}

/* Alert styling */
.messages {
    list-style: none;
    margin-bottom: 24px;
}

.alert {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-weight: 500;
}

/* Forms styling */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.15);
}

/* Cart & Checkout Styling */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th, .cart-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.cart-table th {
    color: var(--text-secondary);
    font-weight: 700;
}

/* Mobile responsive styles */
.mobile-nav-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
    gap: 3px;
}

.mobile-nav-item i {
    font-size: 18px;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
    color: var(--accent-green);
}

.cart-badge-mobile {
    background-color: var(--accent-yellow);
    color: var(--text-primary);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    position: absolute;
    top: -5px;
    right: -8px;
}

@media (max-width: 992px) {
    .header-grid {
        flex-direction: column;
        gap: 16px;
    }
    
    .green-menu-container {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
    
    .main-header {
        position: static;
    }
    
    .mobile-nav-bar {
        display: flex;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid-premium {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .cat-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .split-cols-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .mobile-only-btn {
        display: inline-flex !important;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100%;
        z-index: 2000;
        transition: var(--transition);
        border-radius: 0;
        background-color: var(--bg-secondary);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 1999;
        display: none;
    }
    
    .sidebar-overlay.open {
        display: block;
    }
}

/* ==========================================================================
   Admin Dashboard Styles
   ========================================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background-color: var(--bg-primary);
}

.dashboard-nav {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
}

.dashboard-content {
    padding: 40px;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: rgba(0, 135, 90, 0.08);
    color: var(--accent-green);
    font-weight: 600;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.metric-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.dash-table th, .dash-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.dash-table th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.dash-table tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-nav {
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* ==========================================================================
   Responsive Shopping Cart Styles (Mobile-First)
   ========================================================================== */
.cart-page-title-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin: 30px 0 20px 0;
}

.cart-layout-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.cart-items-column {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

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

.cart-table-premium th {
    text-align: left;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-table-premium td {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

/* Product Info Cell */
.cart-product-cell {
    width: 45%;
}

.cart-product-media-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-product-img-frame {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-product-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.cart-product-name-link {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.3;
    display: block;
}

.cart-product-name-link:hover {
    color: var(--accent-green);
}

.cart-product-sku-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.cart-mobile-only-price {
    display: none;
}

/* Quantity Select */
.cart-qty-cell {
    width: 15%;
}

.cart-qty-select {
    width: 76px;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
}

/* Prices */
.cart-price-cell, .cart-subtotal-cell {
    width: 18%;
}

.cart-price-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.cart-subtotal-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Trash Icon Button */
.cart-remove-cell {
    width: 8%;
    text-align: right;
}

.btn-remove-item {
    color: #ef4444;
    font-size: 18px;
    padding: 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-remove-item:hover {
    background-color: #fef2f2;
    color: #dc2626;
    transform: scale(1.05);
}

/* Sidebar Columns */
.cart-summary-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-box-premium {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.summary-box-premium h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.summary-row-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.discount-text {
    color: var(--accent-green);
    font-weight: 600;
}

.summary-total-row {
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
}

.total-value {
    color: var(--accent-green);
}

.btn-checkout-action {
    width: 100%;
    margin-top: 20px;
    height: 46px;
    font-size: 15px;
}

/* Coupon Box */
.coupon-box-premium {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.coupon-box-premium h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.coupon-apply-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.coupon-input-field {
    flex-grow: 1;
    padding: 10px 14px;
    font-size: 13px;
}

.btn-apply-coupon {
    padding: 10px 18px;
    font-size: 13px;
    height: 38px;
}

/* Empty State */
.cart-empty-state-box {
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--radius-lg);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.empty-cart-icon {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cart-empty-state-box h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cart-empty-state-box p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.btn-back-to-shop {
    display: inline-flex;
    padding: 12px 30px;
}

/* Mobile responsive media overrides for the Cart */
@media (max-width: 992px) {
    .cart-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .cart-items-column {
        padding: 14px;
    }
    
    .cart-table-premium, 
    .cart-table-premium thead, 
    .cart-table-premium tbody, 
    .cart-table-premium tr, 
    .cart-table-premium td {
        display: block;
    }
    
    .cart-table-premium thead {
        display: none; /* Hide header completely on mobile */
    }
    
    .cart-item-row {
        position: relative;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .cart-item-row:last-child {
        border-bottom: none;
    }
    
    .cart-product-cell {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .cart-product-media-box {
        gap: 12px;
    }
    
    .cart-product-img-frame {
        width: 60px;
        height: 60px;
    }
    
    .cart-product-name-link {
        font-size: 14px;
        padding-right: 35px; /* Leave space so title doesn't crash with delete button */
    }
    
    .cart-mobile-only-price {
        display: block;
        font-size: 12px;
        color: var(--text-secondary);
        margin-top: 4px;
    }
    
    /* Quantity select on mobile aligned cleanly */
    .cart-qty-cell {
        width: auto;
        display: inline-flex;
        align-items: center;
        margin-right: 20px;
    }
    
    .cart-qty-cell::before {
        content: attr(data-label) ": ";
        font-size: 13px;
        color: var(--text-secondary);
        margin-right: 8px;
        font-weight: 600;
    }
    
    .cart-qty-select {
        padding: 6px;
        height: 34px;
    }
    
    /* Hide desktop price column */
    .cart-price-cell {
        display: none;
    }
    
    /* Subtotal aligned cleanly next to qty */
    .cart-subtotal-cell {
        width: auto;
        display: inline-flex;
        align-items: center;
    }
    
    .cart-subtotal-cell::before {
        content: attr(data-label) ": ";
        font-size: 13px;
        color: var(--text-secondary);
        margin-right: 8px;
        font-weight: 600;
    }
    
    .cart-subtotal-value {
        font-size: 14px;
    }
    
    /* Trash icon positioned absolutely to prevent overlap and ease interaction */
    .cart-remove-cell {
        position: absolute;
        top: 14px;
        right: 0;
        width: auto;
    }
    
    .btn-remove-item {
        padding: 10px;
        font-size: 16px;
        background-color: var(--bg-tertiary);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
    }
}

/* Checkout Responsiveness */
.checkout-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 992px) {
    .checkout-layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .form-grid-3col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .form-grid-2col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Profile and Order History Responsiveness */
.profile-layout-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: flex-start;
}

.profile-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    margin-top: 12px;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

@media (max-width: 992px) {
    .profile-layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .profile-order-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .success-actions .btn {
        width: 100%;
    }
}

/* Admin Dashboard Responsiveness */
.dash-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 16px;
}

.dash-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .mobile-dash-header {
        display: flex !important;
    }
    .dashboard-nav {
        position: fixed;
        left: -260px;
        top: 0;
        width: 260px;
        height: 100vh;
        z-index: 1010; /* high enough to cover mobile header */
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    .dashboard-nav.open {
        left: 0;
    }
    .dashboard-content {
        padding: 24px 16px;
    }
    .dash-grid-2col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .dash-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 576px) {
    .dash-header-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .dash-header-actions h2 {
        margin-bottom: 12px !important;
    }
    .dash-header-actions .btn {
        width: 100%;
        justify-content: center;
    }
}



