/* Theme 17: Beige Elegance (inspired by Theme 16)
   Mobile-first design with beige primary tones and 2-column grid */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #fbf7f2 0%, #f1e8dd 100%);
    color: #5a4636;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 70px;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, #d4b996 0%, #c0a080 100%);
    padding: 32px 20px;
    text-align: center;
    top: 0;
    z-index: 100;
    box-shadow: 0 6px 20px rgba(160, 128, 96, 0.35);
}

.header-content { max-width: 100%; }

.header-logo {
    max-width: 105px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.header-logo-text {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Banner Carousel Section */
.banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    min-width: 100%;
    padding: 15px;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    aspect-ratio: 2/1;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 15px 15px 15px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background-color: #000000;
    width: 24px;
    border-radius: 4px;
}

/* Section Titles */
.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #6d4c41;
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
}

.categories-title {
    padding: 16px 15px 10px 15px;
    border-bottom: 2px solid #d7ccc8;
    text-align: center;
}

.items-title {
    padding: 20px 15px 12px 15px;
    font-size: 16px;
    border-bottom: 1px solid #efebe9;
}

/* Categories Section */
.categories-section {
    padding: 20px 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.categories-container {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-bottom: 5px;
}

.category-item {
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.category-item:active { transform: scale(0.95); }

/* Theme 1-like categories: circular image and stacked name */
.category-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.category-item.active .category-image { border-color: #5a4636; }

.category-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e9e2d8;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: #3e3226;
    text-align: center;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Items Section */
.items-section { padding: 20px 15px 20px 15px; }

.items-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.item-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid #efe6da;
}

.item-card:active {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(160, 128, 96, 0.18);
    border-color: #c0a080;
}

.item-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #fbf7f2 0%, #f1e8dd 100%);
}

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

.item-image-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #fbf7f2 0%, #f1e8dd 100%);
}

.item-details {
    padding: 14px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title price"
        "desc  price";
    column-gap: 10px;
    row-gap: 6px;
}

.item-title {
    grid-area: title;
    font-size: 16px;
    font-weight: 700;
    color: #4a3b2d;
    margin: 0;
    line-height: 1.3;
}

.item-description {
    grid-area: desc;
    font-size: 13px;
    color: #6b5847;
    line-height: 1.6;
    margin: 0;
}

.item-price {
    grid-area: price;
    font-size: 18px;
    font-weight: 700;
    color: #a67c52;
    white-space: nowrap;
    align-self: start;
}

/* Floating social (bottom bar) */
.floating-social {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #d4b996 0%, #c0a080 100%);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    gap: 14px;
    z-index: 1000;
    box-shadow: 0 -6px 20px rgba(160, 128, 96, 0.25);
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.social-btn:active { transform: scale(0.9); }

.social-btn.whatsapp svg { color: #25D366; }
.social-btn.phone svg { color: #c0a080; }
.social-btn.facebook svg { color: #1877F2; }
.social-btn.instagram svg { color: #E1306C; }
.social-btn.snapchat svg { color: #000000; }
.social-btn.tiktok svg { color: #000000; }

/* Scrollbar styling */
.categories-section::-webkit-scrollbar { height: 4px; }
.categories-section::-webkit-scrollbar-track { background: transparent; }
.categories-section::-webkit-scrollbar-thumb { background: #c0a080; border-radius: 2px; }

@media (max-width: 480px) {
    .items-container { gap: 12px; }
    .item-title { font-size: 15px; }
    .item-description { font-size: 12px; }
}
