* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden; /* Important for Swiper */
}

/* App Header */
.app-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    color: var(--text-light);
}

.logo {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.nav-icons i {
    font-size: 20px;
    margin-left: 20px;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Swiper Configuration */
.swiper {
    width: 100%;
    height: 100dvh;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #111;
}

/* Product Media (Video/Image) */
.product-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay UI on Slide */
.slide-overlay {
    position: absolute;
    bottom: 0; /* Extend all the way to the bottom */
    left: 0;
    width: 100%;
    padding: 20px;
    padding-bottom: 100px; /* Push content up so it doesn't hide behind nav */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: var(--text-light);
    box-sizing: border-box;
}

.product-info {
    max-width: 70%;
}

.brand-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    text-transform: uppercase;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.product-desc {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-tag {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Side Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.action-btn:active {
    transform: scale(0.9);
}

.action-btn i.liked {
    color: #ff2b54;
    animation: heartBeat 0.3s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.action-btn .icon-container {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.action-btn .icon-container:hover {
    background: rgba(255,255,255,0.3);
}

.action-btn span {
    font-size: 12px;
    font-weight: 600;
}

.buy-btn .icon-container {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    animation: pulse 2s infinite;
}

/* Mood filter bar (Descoperă) */
.mood-filter-bar {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0));
  scrollbar-width: none;
}
.mood-filter-bar[hidden] { display: none !important; }
.mood-filter-bar::-webkit-scrollbar { display: none; }
.mood-filter {
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.45);
  color: #ddd;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
}
.mood-filter.is-on {
  background: rgba(233, 30, 99, 0.85);
  border-color: transparent;
  color: #fff;
}
.feed-empty {
  color: white;
  text-align: center;
  padding: 50px 24px;
  margin-top: 45vh;
  transform: translateY(-50%);
  font-size: 15px;
  line-height: 1.5;
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    color: rgba(255,255,255,0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 10px;
    gap: 5px;
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active {
    color: var(--text-light);
}

.nav-item.add-btn {
    color: var(--text-light);
    transform: translateY(-10px);
}

.nav-item.add-btn i {
    width: 45px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.nav-fab-label {
    font-size: 9px;
    margin-top: 2px;
    color: rgba(255,255,255,0.75);
}

/* Hamburger side menu */
.app-menu-panel {
    width: min(300px, 86vw);
    height: 100%;
    background: #141418;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: -12px 0 40px rgba(0,0,0,0.45);
}
.app-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: #fff;
}
.app-menu-header h3 { margin: 0; font-size: 18px; }
.app-menu-header i { cursor: pointer; font-size: 22px; }
.app-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 10px;
    padding: 14px 12px;
    font-size: 14px;
    font-family: var(--font-sans);
    cursor: pointer;
    text-decoration: none;
}
.app-menu-item:hover { background: rgba(233, 30, 99, 0.18); border-color: rgba(233, 30, 99, 0.4); }
.app-menu-email {
    margin-top: 14px;
    color: #aaa;
    font-size: 12px;
    word-break: break-all;
}
.app-menu-tip { color: #00e676; font-size: 12px; margin: 0; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(233, 30, 99, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(233, 30, 99, 0); }
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#close-search-btn {
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

.search-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 10px 15px;
}

#search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 16px;
    outline: none;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#voice-search-btn {
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

#voice-search-btn.listening {
    color: #ffeb3b;
    animation: pulse 1s infinite;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: var(--glass-bg);
    border-radius: 15px;
    cursor: pointer;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-brand {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.search-result-name {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

/* About Modal */
.about-modal {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Share Modal */
.share-modal {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    border-radius: 20px 20px 0 0;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease-out;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: white;
    font-size: 12px;
}

.share-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 8px;
    margin-bottom: 8px;
}

/* Wishlist UI */
.wishlist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 15px;
}

.wishlist-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.wishlist-info {
    flex-grow: 1;
}

.wishlist-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: white;
}

.wishlist-price {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 700;
}

.wishlist-buy-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Landscape Blocker */
#landscape-blocker {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

#landscape-blocker h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Detect Landscape Orientation on Mobile */
@media screen and (max-width: 900px) and (orientation: landscape) {
    #landscape-blocker {
        display: flex;
    }
}
