
* { margin: 0; padding: 0; box-sizing: border-box; }
body { width: 300px; height: 600px; overflow: hidden; background: #f3f4ef; font-family: -apple-system, sans-serif; }

#content { 
    width: 100%; 
    height: 100%; 
    border: 1px solid #000; 
    position: relative; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 25px 0;
}

/* REUSABLE STYLES */
#logo_svg { height: 37px; width: auto; transform: scale(var(--logo-scale, 1)); }
.logo-area { 
    font-weight: 800; 
    letter-spacing: 4px; 
    font-size: 20px; 
    text-transform: uppercase; 
    margin-bottom: 20px;
    flex-shrink: 0;
}

.headline-container { 
    width: 100%; 
    padding: 0 20px; 
    margin-bottom: 20px; 
    flex-shrink: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#headline_txt { 
    font-size: 24px; 
    font-weight: 600; 
    text-align: center; 
    line-height: 1.1; 
    letter-spacing: -0.02em; 
    margin-bottom: 32px;
}

.main-area { 
    width: 100%; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    min-height: 0;
    position: relative;
    margin-block-start: -71px !important;
    scale: 0.85;
}

.cta-area { 
    margin-bottom: 10px;
    flex-shrink: 0;
}

#cta_txt { 
    padding: 10px 32px; 
    border-radius: 30px; 
    font-size: 13px; 
    border: 2.5px solid #000; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

/* FEED MODE */
.carousel-area { 
    width: 100%; 
    height: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
}

#CarouselHolder { 
    width: 160px; 
    height: 100%; 
    overflow: hidden; 
    position: relative; 
}

#productSlider { 
    display: flex; 
    transition: cubic-bezier(0.4, 0, 0.2, 1) 0.5s; 
    height: 100%; 
    position: absolute; 
}

.productSet { 
    width: 160px; 
    height: 100%; 
    flex-shrink: 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

.product_image { 
    width: 140px; 
    height: 140px; 
    object-fit: contain; 
}

.product-info { 
    margin-top: 15px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.product-price { 
    font-size: 14px; 
    font-weight: 800; 
    color: #000; 
    background: #fff; 
    padding: 2px 10px; 
    border-radius: 12px; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
}

.arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 28px; 
    height: 28px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #000; 
    background: rgba(255,255,255,0.7); 
    border-radius: 50%; 
    z-index: 10; 
    cursor: pointer; 
    border: 1px solid rgba(0,0,0,0.05); 
}

#leftArrow { left: 42px !important; }
#rightArrow { right: 42px !important; }
.arrow svg { width: 16px; height: 16px; }

/* GRID MODE */
.grid-area { 
    display: none; 
    width: 100%; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
    padding: 0;
}

.grid-product { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 220px; 
    padding: 10px; 
    border-bottom: 1.5px solid rgba(0,0,0,0.03); 
    flex-shrink: 1;
    min-height: 0;
}

.grid-product:last-child { border-bottom: none; }

.grid-product img { 
    width: 90px; 
    height: 90px; 
    object-fit: contain; 
    flex-shrink: 1;
}

.grid-info { 
    font-size: 11px; 
    margin-top: 4px; 
    text-align: center; 
    width: 100%; 
}

.grid-cat { 
    font-weight: bold; 
    text-transform: uppercase; 
    font-size: 9px; 
    color: #666; 
    margin-bottom: 2px; 
}

.grid-price { 
    font-size: 14px; 
    font-weight: 900; 
    color: #000; 
    background: #fff; 
    padding: 2px 10px; 
    border-radius: 12px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.08); 
    display: inline-block; 
}

body.grid .carousel-area { display: none; }
body.grid .grid-area { display: flex; }
body.grid #headline_txt { font-size: 20px; }
body.grid .main-area { justify-content: flex-start; margin-top: 0; }
