Spaces:
Paused
Paused
| /* ===================== COMPACT E-COMMERCE LAYOUT ===================== */ | |
| /* Reduce main container padding */ | |
| .block-container { | |
| padding-top: 1rem ; | |
| padding-bottom: 1rem ; | |
| max-width: 100% ; | |
| } | |
| /* Header styles */ | |
| .main-header { | |
| text-align: center; | |
| margin-bottom: 0.5rem; | |
| } | |
| .main-header h1 { | |
| margin-bottom: 0; | |
| font-size: 1.8rem; | |
| } | |
| .main-header p { | |
| color: #888; | |
| margin-top: 0; | |
| font-size: 0.9rem; | |
| } | |
| /* Compact buttons */ | |
| .stButton > button { | |
| border-radius: 8px; | |
| padding: 8px 16px; | |
| font-weight: 600; | |
| font-size: 0.9rem; | |
| } | |
| .stButton > button[kind="primary"] { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| } | |
| /* Form elements - ensure text is visible */ | |
| .stSelectbox [data-baseweb="select"] { | |
| min-height: 44px ; | |
| height: auto ; | |
| } | |
| .stSelectbox [data-baseweb="select"] > div { | |
| min-height: 44px ; | |
| height: auto ; | |
| display: flex ; | |
| align-items: center ; | |
| padding: 0 12px ; | |
| } | |
| .stSelectbox [data-baseweb="select"] > div > div { | |
| height: auto ; | |
| line-height: normal ; | |
| padding: 10px 0 ; | |
| } | |
| /* Fix for the selected value text */ | |
| [data-baseweb="select"] [data-testid="stMarkdownContainer"], | |
| [data-baseweb="select"] span, | |
| [data-baseweb="select"] div[class*="valueContainer"] { | |
| overflow: visible ; | |
| text-overflow: unset ; | |
| white-space: nowrap ; | |
| line-height: normal ; | |
| height: auto ; | |
| } | |
| .stTextInput > div > div > input { | |
| min-height: 44px ; | |
| padding: 8px 12px ; | |
| font-size: 0.95rem ; | |
| } | |
| /* Product grid - compact cards */ | |
| [data-testid="stVerticalBlock"] > [data-testid="stVerticalBlockBorderWrapper"] { | |
| border-radius: 10px; | |
| overflow: hidden; | |
| } | |
| /* Product card container */ | |
| .stContainer { | |
| padding: 0 ; | |
| } | |
| /* Product images */ | |
| [data-testid="stImage"] { | |
| border-radius: 8px 8px 0 0; | |
| overflow: hidden; | |
| } | |
| [data-testid="stImage"] img { | |
| object-fit: cover; | |
| aspect-ratio: 1; | |
| } | |
| /* Product title */ | |
| .stMarkdown p strong { | |
| font-size: 0.85rem; | |
| line-height: 1.3; | |
| display: block; | |
| margin: 8px 0 4px 0; | |
| } | |
| /* Caption (match score) */ | |
| .stCaption { | |
| font-size: 0.75rem ; | |
| margin: 0 ; | |
| padding-bottom: 8px ; | |
| } | |
| /* Info boxes (prediction banners) */ | |
| [data-testid="stAlert"] { | |
| padding: 10px 15px ; | |
| margin: 10px 0 ; | |
| border-radius: 8px ; | |
| } | |
| /* Horizontal divider */ | |
| hr { | |
| margin: 10px 0 ; | |
| border-color: rgba(255, 255, 255, 0.1) ; | |
| } | |
| /* File uploader - compact */ | |
| [data-testid="stFileUploader"] { | |
| padding: 0 ; | |
| } | |
| [data-testid="stFileUploader"] section { | |
| padding: 10px ; | |
| } | |
| [data-testid="stFileUploader"] small { | |
| display: none; | |
| } | |
| /* Audio input - compact */ | |
| [data-testid="stAudioInput"] { | |
| padding: 0 ; | |
| } | |
| /* Radio buttons - compact horizontal */ | |
| [data-testid="stRadio"] > div { | |
| gap: 10px ; | |
| } | |
| [data-testid="stRadio"] label { | |
| padding: 6px 12px ; | |
| font-size: 0.85rem ; | |
| } | |
| /* Empty state */ | |
| .empty-state { | |
| text-align: center; | |
| padding: 40px; | |
| color: #888; | |
| } | |
| .empty-state h3 { | |
| margin-bottom: 10px; | |
| font-size: 1.2rem; | |
| } | |
| .empty-state p { | |
| font-size: 0.9rem; | |
| } | |
| /* Column gaps - tighter */ | |
| [data-testid="column"] { | |
| padding: 0 5px ; | |
| } | |
| /* Product detail view */ | |
| .product-detail-price { | |
| margin: 15px 0; | |
| } | |
| .product-detail-price .old-price { | |
| text-decoration: line-through; | |
| color: #888; | |
| font-size: 1.2rem; | |
| } | |
| .product-detail-price .current-price { | |
| color: #2ecc71; | |
| font-size: 2rem; | |
| font-weight: bold; | |
| margin-left: 10px; | |
| } | |
| .product-detail-price .discount-badge { | |
| background: #e74c3c; | |
| color: white; | |
| padding: 4px 10px; | |
| border-radius: 5px; | |
| margin-left: 10px; | |
| font-size: 0.9rem; | |
| } | |
| /* View details button - smaller */ | |
| .stButton > button[kind="secondary"] { | |
| font-size: 0.8rem ; | |
| padding: 5px 10px ; | |
| } | |
| /* Hide streamlit branding */ | |
| #MainMenu {visibility: hidden;} | |
| footer {visibility: hidden;} | |
| header {visibility: hidden;} | |
| /* Spinner */ | |
| .stSpinner > div { | |
| border-color: #667eea ; | |
| } | |