:root {
    --primary-color: #369CA8;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #e17055;
    --dark-color: #2d3436;
    --light-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Hero section is now replaced by hero-slider-section in homepage-slider.css */
.hero-section {
    display: none; /* Hide old hero section if it exists */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(54, 156, 168, 0.4);
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    height: 100%;
}

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

.product-card .card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

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

.price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0066cc;
}

.category-card {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s, background-color 0.3s;
    cursor: pointer;
    height: 100%;
    margin-bottom: 20px;
}

.category-card:hover {
    transform: translateY(-5px);
    background-color: rgba(58, 157, 110, 0.1);
}

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

.category-card:hover .category-icon {
    color: #3a9d6e;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: #2d3436;
}

.bestsellers-section,
.latest-products-section {
    background-color: transparent;
    padding: 0 !important;
    margin: 0 !important;
}

.bestsellers-section .container,
.latest-products-section .container {
    background-color: #EEF1EA !important;
    padding: 40px 20px;
    border-radius: 8px;
}

/* DIY Fairy Garden Idea Section */
.diy-fairy-garden-section {
    background-color: transparent;
    padding-top: 0 !important;
    padding-bottom: 60px;
}

.diy-fairy-garden-section .container {
    background-color: #EEF1EA !important;
    padding: 40px 20px;
    border-radius: 8px;
}

/* Blog title and View all link - 使用深色提升对比度 */
.diy-fairy-garden-section .blog-card-title a,
.diy-fairy-garden-section .blog-view-all-link {
    color: #252525;
}

.diy-fairy-garden-section .blog-card-title a:hover,
.diy-fairy-garden-section .blog-view-all-link:hover {
    color: var(--primary-color);
}

.diy-garden-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.diy-garden-thumbnail {
    width: calc(12.5% - 8.75px); /* 8 thumbnails, 12.5% each minus gap */
    aspect-ratio: 1 / 1; /* square */
    overflow: hidden;
    border-radius: 4px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
    cursor: pointer;
}

.diy-garden-thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.diy-garden-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Image Modal - above all layers including navbar */
.modal#imageModal {
    z-index: 999999 !important;
}

.modal#imageModal.show {
    z-index: 999999 !important;
}

.modal#imageModal .modal-backdrop {
    z-index: 999998 !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
}

.modal#imageModal {
    z-index: 999999 !important;
}

.modal#imageModal.show {
    z-index: 999999 !important;
}

/* Override Bootstrap fade opacity */
.modal#imageModal.fade {
    opacity: 1 !important;
}

.modal#imageModal.fade.show {
    opacity: 1 !important;
}

.modal#imageModal .modal-dialog {
    max-width: 90%;
    margin: 0 auto;
    z-index: 1000000 !important;
    position: relative;
    background-color: transparent !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.modal#imageModal.fade .modal-dialog {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.modal#imageModal.show .modal-dialog {
    opacity: 1 !important;
    transform: none !important;
}

/* Remove pseudo-element overlays */
.modal#imageModal .modal-dialog::before,
.modal#imageModal .modal-dialog::after,
.modal#imageModal .modal-content::before,
.modal#imageModal .modal-content::after {
    display: none !important;
    content: none !important;
}

.modal#imageModal .modal-content {
    background-color: transparent !important;
    border-radius: 8px;
    padding: 0;
    z-index: 1000001 !important;
    position: relative;
    box-shadow: none !important;
    border: none !important;
}

/* Close button - top right of image */
.modal#imageModal .image-modal-close-btn,
#closeImageModalBtn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    transition: background-color 0.2s, transform 0.2s !important;
}

.modal#imageModal .image-modal-close-btn:hover,
#closeImageModalBtn:hover {
    background-color: rgba(220, 53, 69, 0.9) !important;
    transform: scale(1.05) !important;
}

.modal#imageModal .modal-body {
    padding: 20px !important;
    position: relative;
    z-index: 1000002 !important;
    background-color: transparent !important;
}

/* Image modal container - above backdrop, white background */
.modal#imageModal .modal-image-wrapper {
    background-color: #ffffff !important;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.modal#imageModal #modalImage {
    cursor: pointer;
    transition: none;
    position: relative;
    z-index: 1 !important;
    background-color: transparent !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    mix-blend-mode: normal !important;
    image-rendering: auto !important;
}

.modal#imageModal #modalImage:hover {
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Allow page scroll when modal open, modal stays fixed */
body.modal-open.image-modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* Navbar below modal when open */
body.modal-open .modal#imageModal {
    z-index: 999999 !important;
}

/* Backdrop below modal */
body.modal-open.image-modal-open .modal-backdrop {
    z-index: 999998 !important;
}

/* Navbar below modal */
body.modal-open .header-top-bar,
body.modal-open .header-main-section,
body.modal-open .header-nav-bar {
    z-index: 1 !important;
}

.categories-section {
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent;
}

.categories-section .container {
    background-color: #EEF1EA !important;
    padding: 40px 20px;
    border-radius: 8px;
}

/* Lead Banner Section - between slider and categories */
.lead-banner-section {
    padding: 0;
    margin: 0;
    background-color: transparent;
    width: 100%;
}

.lead-banner-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.lead-banner-image {
    aspect-ratio: 140 / 62;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 0;
}

/* Features Section */
.features-section {
    background-color: transparent;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

.features-section .container {
    background-color: #EEF1EA !important;
    padding: 40px 20px;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 0;
}

.feature-block {
    background-color: #3c3c3c;
    border-radius: 8px;
    padding: 60px 20px 20px 20px;
    text-align: center;
    position: relative;
    height: 85px;
    min-height: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.feature-icon-wrapper {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.feature-icon-circle {
    width: 80px;
    height: 80px;
    background-color: #78695a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.feature-icon-circle i {
    font-size: 2.5rem;
    color: #ffffff;
    line-height: 1;
}

.feature-text {
    margin-top: 20px;
}

.feature-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.footer {
    background: linear-gradient(135deg, rgba(45, 52, 54, 0.85) 0%, rgba(99, 110, 114, 0.85) 100%);
    color: white;
    padding: 60px 0 20px;
}
