/* --- Global Box-Sizing & Reset --- */
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}



/* Global Styles & Fonts */

/* 产品详情页主区块 */
.product-detail-main {
    background: #f6f6f6;
    min-height: 100vh;
    padding-bottom: 40px;
}
.product-detail-top {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}
.product-detail-gallery {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 32px 24px 20px 24px;
    width: 420px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-detail-gallery .product-main-image {
    width: 320px;
    height: 320px;
    background: #fafafa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.product-detail-gallery .product-main-image img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}
.product-detail-gallery .product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}
.product-detail-gallery .product-thumbnails img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    background: #fafafa;
    transition: border 0.2s;
}
.product-detail-gallery .product-thumbnails img.active,
.product-detail-gallery .product-thumbnails img:hover {
    border: 2px solid #ff4081;
}

.product-detail-info-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 32px 30px 24px 30px;
    width: 400px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.product-detail-info-card .product-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #222;
}
.product-detail-info-card .product-detail-meta {
    font-size: 1rem;
    color: #888;
    margin-bottom: 8px;
}
.product-detail-info-card .product-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e53935;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.product-detail-info-card .product-detail-desc {
    font-size: 1rem;
    color: #444;
    margin-bottom: 18px;
    white-space: pre-line;
}
.product-detail-info-card .add-to-cart-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    cursor: pointer;
    transition: background 0.2s;
}
.product-detail-info-card .add-to-cart-btn:hover {
    background: #ff4081;
}
.product-detail-info-card .product-detail-service {
    color: #888;
    font-size: 0.98rem;
    margin-top: 8px;
}

/* 推荐商品区块 */
.product-detail-recommend {
    max-width: 1200px;
    margin: 56px auto 0 auto;
}
.product-detail-recommend-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}
.product-detail-recommend-list {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.product-detail-recommend-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    width: 200px;
    min-width: 200px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}
.product-detail-recommend-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.13);
}
.product-detail-recommend-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.product-detail-recommend-card .recommend-title {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    text-align: center;
    margin-bottom: 6px;
}
.product-detail-recommend-card .recommend-price {
    font-size: 1.05rem;
    color: #e53935;
    font-weight: 700;
}

/* 品牌/故事/大图区块 */
.product-detail-media {
    max-width: 1200px;
    margin: 70px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.product-detail-media-block {
    display: flex;
    gap: 32px;
    align-items: center;
}
.product-detail-media-block.reverse {
    flex-direction: row-reverse;
}
.product-detail-media-block img {
    width: 320px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.product-detail-media-block .media-text {
    flex: 1;
}
.product-detail-media-block .media-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #222;
}
.product-detail-media-block .media-desc {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
}

/* 页脚 */
.footer {
    background: #222;
    color: #fff;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 60px;
    justify-content: space-between;
}
.footer h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer ul li {
    margin-bottom: 8px;
}
.footer a {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.footer a:hover {
    opacity: 1;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #ff4081;
    --text-color: #333;
    --background-color: #f9f9f9;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}



/* Hero Banner & Swiper */
.hero-banner .swiper {
    width: 100%;
    aspect-ratio: 16 / 7;
}

/* Scoped styles for Hero Banner swiper images */
.hero-banner .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-banner .swiper {
        aspect-ratio: 1 / 1;
    }
}

/* Scoped styles for Social Feed swiper images */
.social-feed-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--secondary-color);
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color);
}

/* Bestsellers & Product Grid */
.bestsellers, .collections {
    padding: 60px 0;
}

/* --- Most Popular Products 居中修正 --- */
.popular-products-section {
    text-align: center;
    width: 100%;
    margin: 0 auto;
}
.popular-products-section .popular-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}
.popular-products-section .no-products {
    text-align: center;
    color: #888;
    margin: 30px 0;
    font-size: 1.1em;
    width: 100%;
    display: block;
}
.popular-products-section .social-swiper {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 100%;
    max-width: 440px;
}
@media (max-width: 800px) {
    .popular-products-section .popular-grid {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .popular-products-section .social-swiper {
        width: 100% !important;
        max-width: 98vw;
        min-width: 0;
    }
}


/* --- Most Popular Products Grid --- */


.popular-products-section .popular-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.popular-products-section .popular-grid-large-item img,
.popular-products-section .popular-grid-small-item img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.popular-products-section .popular-grid-small-item {
    text-align: left;
}

.popular-products-section .product-info {
    padding-top: 8px;
}

.popular-products-section .product-info h3 {
    font-size: 0.9rem;
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #000;
}

.popular-products-section .product-info span {
    font-size: 0.9rem;
    color: #555;
}

/* --- Footer Accordion on Mobile --- */
@media (max-width: 800px) {
  .custom-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: left;
  }

  .custom-footer .footer-column {
    border-bottom: 1px solid #222;
  }
  .custom-footer .footer-column:last-of-type {
      border-bottom: none;
  }

  .custom-footer .accordion-header {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 0;
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .custom-footer .accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.2s ease;
  }

  .custom-footer .accordion-header.active .accordion-icon {
    transform: rotate(45deg);
  }

  .custom-footer .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #111;
    padding-left: 10px; /* Indent content */
  }

  .custom-footer .accordion-content ul {
    padding: 10px 0;
    margin: 0;
  }
}

@media (min-width: 769px) {
    .popular-products-section .popular-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        grid-template-rows: repeat(4, auto);
        grid-auto-flow: column;
        gap: 25px;
    }
    .popular-products-section .popular-grid-large-item {
        grid-row: span 4;
    }
}

@media (min-width: 1024px) {
    .popular-products-section .popular-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        grid-template-rows: repeat(2, auto);
    }
    .popular-products-section .popular-grid-large-item {
        grid-row: span 2;
    }
}

h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 800px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}



.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card .product-image-wrapper {
    position: relative; /* This is crucial for positioning the hover image */
    width: 100%;
    aspect-ratio: 1 / 1; /* Makes the container square */
    overflow: hidden;
    border-radius: 8px;
}

.product-card .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.product-card:hover .hover-img {
    opacity: 1;
}
/* 隐藏默认图片，避免 hover 时两张图叠加 */
.product-card:hover .default-img {
    opacity: 0;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
    transition: transform 0.3s ease;
}

.product-card .product-description {
    font-size: 0.85rem;
    color: #666;
    margin: 10px 0;
    height: 3.2em; /* Approx 2 lines of text */
    line-height: 1.6em;
    overflow: hidden;
}

.product-card h3 {
    font-size: 1rem;
    margin: 15px 10px;
    height: 40px; /* Fixed height for alignment */
}

.product-card .price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.product-card button {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.product-card button:hover {
    background-color: var(--accent-color);
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Collections Section */
.collections-section {
    padding: 3rem 20px;
    background-color: #fff;
    text-align: center;
}

.collections-section .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: #000;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.collection-item {
    background-color: #f8f8f8;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-item:hover {
    transform: scale(1.05);
}

.collection-item a {
    text-decoration: none;
    color: #000;
    display: block;
    padding-bottom: 1.5rem;
}

.collection-item img {
    width: 100%;
    height: auto;
    display: block;
}

.collection-item p {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Popular Products Section */
.popular-products-section .section-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 30px;
}

.popular-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.popular-grid-large-item {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.popular-grid-large-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.popular-grid-small-item {
    text-align: left;
}

.popular-grid-small-item img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
}

.popular-grid-small-item .product-info h3 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.popular-grid-small-item .product-info span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 700;
}

/* Place small items in the grid */
.popular-grid-small-item:nth-of-type(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.popular-grid-small-item:nth-of-type(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.popular-grid-small-item:nth-of-type(4) {
    grid-column: 2 / 3;
}

.popular-grid-small-item:nth-of-type(5) {
grid-column: 3 / 4;
grid-row: 2 / 3;
}

/* Frequently Bought Together Section */
.frequently-bought-together {
margin: 2rem auto;
padding: 1.5rem;
border: 1px solid #eee;
border-radius: 12px;
background-color: #fafafa;
}

.fbt-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1.5rem;
text-align: center;
}

.fbt-content {
display: flex;
align-items: center;
gap: 2rem;
}

.fbt-images {
display: flex;
align-items: center;
gap: 0.5rem;
}

.fbt-images img {
width: 100px;
height: 100px;
object-fit: cover;
border-radius: 8px;
border: 1px solid #ddd;
}

.fbt-plus {
font-size: 2rem;
color: #888;
font-weight: 300;
}

.fbt-details {
flex-grow: 1;
}

.fbt-list-item {
display: flex;
align-items: center;
margin-bottom: 0.75rem;
}

.fbt-list-item input[type="checkbox"] {
margin-right: 1rem;
width: 18px;
height: 18px;
}

.fbt-list-item label {
display: flex;
justify-content: space-between;
width: 100%;
cursor: pointer;
}

.fbt-item-price {
font-weight: 500;
color: #e53935;
}

.fbt-actions {
margin-top: 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid #eee;
padding-top: 1.5rem;
}

.fbt-total p {
margin: 0;
}

.fbt-total-amount {
font-size: 1.5rem;
font-weight: 700;
color: #e53935;
}

@media (max-width: 992px) {
    .popular-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .popular-grid-large-item {
        grid-column: 1 / 3; /* Span full width */
        grid-row: 1 / 2;
    }

    .popular-grid-small-item:nth-of-type(2) {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .popular-grid-small-item:nth-of-type(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .popular-grid-small-item:nth-of-type(4) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .popular-grid-small-item:nth-of-type(5) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
}

@media (max-width: 576px) {
    .popular-grid {
        grid-template-columns: 1fr;
    }
    .popular-grid-large-item,
    .popular-grid-small-item:nth-of-type(2),
    .popular-grid-small-item:nth-of-type(3),
    .popular-grid-small-item:nth-of-type(4),
    .popular-grid-small-item:nth-of-type(5) {
        grid-column: 1 / 2;
        grid-row: auto;
    }
}

@media (max-width: 576px) {
    .collections-grid {
        grid-template-columns: 1fr;
    }
    .collections-section .section-title {
        font-size: 2rem;
    }
}

/* 后台管理样式 */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}
.admin-sidebar {
    width: 220px;
    background: #22223b;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 2rem;
}
.admin-logo {
    padding: 2rem 1rem 1rem 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #fbbf24;
    text-align: center;
}
.admin-title {
    color: #fbbf24;
    font-size: 2rem;
    font-weight: bold;
    display: block;
}
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.admin-nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px 0 0 4px;
    transition: background 0.2s;
    font-size: 1rem;
}
.admin-nav a.active,
.admin-nav a:hover {
    background: #fbbf24;
    color: #22223b;
}
.admin-main {
    flex: 1;
    padding: 2rem 3vw;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.admin-header h1 {
    font-size: 2rem;
    color: #22223b;
}
.admin-content {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
}
.admin-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}
.stat-card {
    flex: 1;
    background: #fbbf24;
    color: #22223b;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    text-align: center;
}
.stat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.stat-card p {
    font-size: 2rem;
    font-weight: bold;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.admin-table th, .admin-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.admin-table th {
    background: #fbbf24;
    color: #22223b;
    font-weight: bold;
}
.admin-table tr:nth-child(even) {
    background: #f7fafc;
}
.btn-primary {
    background: #fbbf24;
    color: #22223b;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: #f59e42;
}
.btn-secondary {
    background: #22223b;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.2s;
}
.btn-secondary:hover {
    background: #fbbf24;
    color: #22223b;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}
.form-group input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 1rem;
}
/* 自定义弹窗和toast */
.admin-modal-backdrop {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1000;
}
.admin-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    min-width: 320px;
    max-width: 90vw;
    z-index: 1001;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
}
.admin-modal h2 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #22223b;
}
.admin-modal .modal-actions {
    margin-top: 1.5rem;
    text-align: right;
}
.admin-toast {
    position: fixed;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    background: #22223b;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    z-index: 2000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    opacity: 0.95;
}
@media (max-width: 800px) {
    .admin-container {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0;
    }
    .admin-nav {
        flex-direction: row;
        gap: 0.5rem;
        margin: 0;
    }
    .admin-main {
        padding: 1rem 2vw;
    }
}



.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Social Feed Section */
.social-feed-section {
    padding: 40px 0;
    position: relative;
}

.social-swiper {
    padding-bottom: 50px; /* Space for pagination */
}

.social-feed-item {
    overflow: hidden;
    border-radius: 16px;
    height: auto;
    aspect-ratio: 1 / 1;
}

.social-feed-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.social-feed-item:hover img {
    transform: scale(1.05);
}

.social-swiper .swiper-pagination {
    bottom: 10px;
}

.social-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    opacity: 1;
}

.social-swiper .swiper-pagination-bullet-active {
    background-color: #000;
}

.social-swiper .swiper-button-next,
.social-swiper .swiper-button-prev {
    color: #000;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-70%); /* Adjust vertical alignment */
}

.social-swiper .swiper-button-next:after,
.social-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .social-swiper .swiper-button-next,
    .social-swiper .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    .social-swiper .swiper-button-next:after,
    .social-swiper .swiper-button-prev:after {
        font-size: 14px;
    }

    /* Homepage Collections Section on Mobile */
    .collections-section .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Promo GIF Section */
.promo-gif-section {
    padding: 40px 0;
    text-align: center;
}

.promo-gif-section video {
    max-width: 100%;
    border-radius: 16px;
}

/* --- Product Detail Page --- */
.product-detail-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-detail-top {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns on desktop */
    gap: 40px;
    align-items: start;
}

/* Unified card style for gallery and info */
.product-detail-gallery,
.product-detail-info-card {
    background: #fff;
    border-radius: 16px; /* Consistent rounded corners */
    padding: 24px; /* Default padding for desktop */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); /* Subtle shadow for depth */
    overflow: hidden; /* Ensures content respects the border radius */
}

@media (max-width: 800px) {
    .product-detail-top {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 16px; /* Consistent vertical space */
    }
    .product-detail-main {
        padding: 20px 16px; /* Consistent horizontal padding for the container */
    }
    /* Adjust padding and width for mobile view */
    .product-detail-gallery,
    .product-detail-info-card {
        width: 100%; /* Ensure cards fit container width */
        min-width: 0; /* Remove minimum width constraint */
        padding: 16px; /* Smaller padding for mobile */
    }

    /* Stack media blocks vertically on mobile */
    .product-detail-media-block,
    .product-detail-media-block.reverse {
        flex-direction: column;
        gap: 16px; /* Adjust gap for vertical layout */
    }

    .product-detail-media-block img {
        width: 100%; /* Make image full width */
    }
}

/* --- Contact Page --- */
.contact-content-wrapper {
    max-width: 1200px; /* Consistent max-width */
    margin: 0 auto; /* Center the content */
    padding: 40px 20px; /* Desktop padding */
}

@media (max-width: 800px) {
    .contact-content-wrapper {
        padding: 20px 16px; /* Mobile padding */
    }
}

.contact-form-container .form-group {
    margin-bottom: 1.2rem;
}

.contact-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form-container input[type="text"]:focus,
.contact-form-container input[type="email"]:focus,
.contact-form-container input[type="tel"]:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

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

.contact-form-container .btn-primary {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    background-color: #f59e0b;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}

.contact-form-container .btn-primary:hover {
    background-color: #d97706;
}

/* --- Footer Accordion Styles --- */
.footer-column .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-top: 0; /* No padding when collapsed */
}

.footer-column .accordion-content.active {
    max-height: 200px; /* A height large enough to show all links */
    transition: max-height 0.4s ease-in;
    padding-top: 10px; /* Add some space when expanded */
}

.footer-column .accordion-header .accordion-icon {
    transition: transform 0.3s ease;
}

.footer-column .accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

/* --- Homepage Collections Section --- */
.collections-section .collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.collections-grid .collection-card {
    background-color: #fff;
    border-radius: 12px;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    border: 1px solid #eee;
}

.collections-grid .collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.collections-grid .collection-card img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.collections-grid .collection-card h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}


/* --- Collection Page (Labubu, etc.) Styles --- */

.collection-page .collection-header {
    text-align: center;
    margin: 2rem 0;
}

.collection-page .collection-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.collection-page .product-count {
    color: #666;
}

/* Overriding product-grid for collection page to add padding */
.collection-page .product-grid {
    padding: 2rem 0;
    gap: 2rem; /* Using rem for consistency */
}

/* Scoped product card for collection pages */
.collection-page .product-card {
    background: var(--secondary-color);
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 0;
    overflow: visible; /* Allow box-shadow to be visible */
    transition: box-shadow 0.3s ease;
    text-align: center; /* Loading and Error Styles */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    padding: 1rem;
    color: #991b1b;
    margin: 1rem 0;
}

.success-message {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 1rem;
    color: #166534;
    margin: 1rem 0;
}

.quantity.loading {
    position: relative;
}

.quantity.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Checkout Page Styles */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    padding: 1rem;
    color: #991b1b;
    margin: 1rem 0;
}

.success-message {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 1rem;
    color: #166534;
    margin: 1rem 0;
}

/* Checkout Page Styles */
.checkout-main {
    padding: 2rem 0;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.payment-method {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.payment-method h3 {
    color: #333;
    margin-bottom: 1rem;
}

.payment-method p {
    margin-bottom: 0.5rem;
    color: #666;
}

.payment-method .copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #6366f1;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.payment-method .copy-btn:hover {
    background: #4f46e5;
}

.payment-method .copied {
    background: #22c55e;
}

.payment-method .copied:hover {
    background: #16a34a;
}

/* Cart Page Styles */
.cart-main {
    padding: 2rem 0;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cart-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-item img {
    border-radius: 4px;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.cart-item-details h3 {
    margin: 0;
    font-size: 1rem;
}

.cart-item-details p {
    margin: 0;
    color: #666;
}

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

.quantity {
    font-weight: bold;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-total {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.cart-total h3 {
    color: #333;
    margin-bottom: 1.5rem;
}

.cart-total-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-total-items p {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.cart-total-items p:last-child {
    font-size: 1.25rem;
    font-weight: bold;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f1c40f;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Orders Page Styles */
.orders-main {
    padding: 2rem 0;
}

.orders-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.orders-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.order-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.order-header h3 {
    margin: 0;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
}

.status-pending {
    background: #f1c40f;
    color: #333;
}

.status-processing {
    background: #3498db;
    color: white;
}

.status-completed {
    background: #2ecc71;
    color: white;
}

.status-cancelled {
    background: #e74c3c;
    color: white;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-items {
    display: grid;
    gap: 1rem;
}

.order-item-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-item-details img {
    border-radius: 4px;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.order-item-details div {
    flex: 1;
}

.order-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.order-summary p {
    margin: 0;
    font-weight: 500;
}

/* Register Page Styles */
.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    padding: 2rem;
}

.register-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.register-logo {
    margin-bottom: 2rem;
}

.register-logo img {
    max-width: 200px;
    height: auto;
}

.register-form h1 {
    color: #333;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
}

.register-links {
    margin-top: 1.5rem;
    text-align: center;
}

.register-links p {
    color: #666;
}

.register-links a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.register-links a:hover {
    color: #4f46e5;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    padding: 2rem;
}

.login-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    margin-bottom: 2rem;
}

.login-logo img {
    max-width: 200px;
    height: auto;
}

.login-form h1 {
    color: #333;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.remember-me input {
    margin: 0;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.login-links a {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.login-links a:hover {
    color: #4f46e5;
}

/* Contact Page Styles */
}

.contact-main {
    padding: 4rem 0;
    background: #f8f9fa;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item h3 {
    color: #333;
    margin: 0;
}

.contact-item p {
    margin: 0;
    color: #666;
}

.social-links {
    margin-top: 2rem;
}

.social-links h3 {
    margin-bottom: 1rem;
    color: #333;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 1rem;
}

.admin-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-logo img {
    width: 150px;
}

.admin-nav {
    margin-top: 2rem;
}

.admin-nav a {
    display: block;
    padding: 1rem;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s;
}

.admin-nav a:hover,
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    padding: 16px 0 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s, font-weight 0.2s;
  }
  .accordion-header.active {
    color: #ff4081;
    font-weight: 900;
  }
  .accordion-content {
    display: none;
    padding-bottom: 10px;
    animation: fadeIn 0.3s;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .accordion-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s;
  }

@media (max-width: 800px) {
  .custom-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .custom-footer .footer-column.accordion {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }
  .accordion-header {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    padding: 14px 0 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #333;
    position: relative;
    z-index: 1;
  }
  .accordion-icon {
    font-size: 1.45em;
    transition: transform 0.2s;
    margin-left: 12px;
  }
  .accordion-header.active .accordion-icon {
    transform: rotate(45deg);
  }
  .accordion-content {
    display: none;
    padding: 10px 0 16px 0;
    border-bottom: 1px solid #222;
    background: none;
    animation: fadeIn 0.3s;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .accordion-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.admin-nav a.active {
    background: #34495e;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    background: #f5f5f5;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    margin: 0;
    color: #2c3e50;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card h3 {
    margin: 0 0 1rem 0;
    color: #666;
}

.stat-card p {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.admin-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.admin-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-section h2 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
}

.collection-item,
.order-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.collection-item:last-child,
.order-item:last-child {
    border-bottom: none;
}

.collection-item h3,
.order-item h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.collection-item p,
.order-item p {
    margin: 0.25rem 0;
    color: #666;
}

.collection-page .product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    margin-bottom: 1rem;
}

.collection-page .product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

.collection-page .product-image-container .hover-img {
    opacity: 0;
}

.collection-page .product-image-container:hover .default-img {
    opacity: 0;
}

.collection-page .product-image-container:hover .hover-img {
    opacity: 1;
}

.collection-page .product-info h3 {
    font-size: 0.9rem; /* Slightly smaller font */
    font-weight: 500;
    margin: 0.5rem 0;
    height: 40px; /* Fixed height to align titles */
    overflow: hidden;
}

.collection-page .product-price {
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.collection-page .add-to-cart-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.collection-page .add-to-cart-btn:hover {
    background-color: #555;
}
}

/* Message Inbox Styles */
.messages-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.message-name strong {
    font-size: 1.1em;
    color: #333;
}

.message-date {
    font-size: 0.9em;
    color: #777;
}

.message-body p {
    margin: 0 0 10px;
    line-height: 1.6;
    color: #555;
}

.message-body p:last-child {
    margin-bottom: 0;
}

.message-footer {
    margin-top: 20px;
    text-align: right;
}

.delete-message {
    padding: 8px 15px;
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-message:hover {
    background-color: #c9302c;
}

/* --- Search Bar Styles --- */
.search-bar-container {
    background-color: #f8f8f8;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    display: none; /* Hidden by default */
    position: relative;
    z-index: 999;
}

.search-bar-container.active {
    display: block;
}

.search-bar-container .search-form {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-bar-container #search-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    outline: none;
}

.search-bar-container .search-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 50px; /* Space for the close button */
    top: 50%;
    transform: translateY(-50%);
}

.search-bar-container .search-btn .icon-search {
    width: 22px;
    height: 22px;
    color: #555;
}

.search-bar-container .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #888;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

/* --- Search Results Page Styles --- */
.search-results-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

#search-results-title {
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

.no-results-message {
    text-align: center;
    padding: 50px 20px;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

.no-results-message h2 {
    margin-bottom: 20px;
}

.no-results-message ul {
    list-style: none;
    padding: 0;
    color: #666;
}

.no-results-message ul li {
    margin-bottom: 10px;
}

/* --- Toggle Switch Styles --- */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  vertical-align: middle;
  margin-left: 10px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #4CAF50; /* Green for enabled */
}

input:focus + .slider {
  box-shadow: 0 0 1px #4CAF50;
}

input:checked + .slider:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 28px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Override for sidebar logo color */
.admin-sidebar .admin-logo a {
    color: #eab308 !important;
}


/* --- Modal Styles --- */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto; /* 10% from the top and centered */
  padding: 30px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  animation: slide-down 0.4s ease-out;
}

@keyframes slide-down {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}



