/*
Theme Name: DripDrop
Theme URI: https://example.com/
Author: Gemini
Author URI: https://gemini.google.com/
Description: A modern and elegant WordPress theme designed for seamless product display, perfectly integrated with WooCommerce.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: dripdrop, woocommerce, product, ecommerce, modern
*/

:root {
	--sidebar-left: 16px;
	--sidebar-top: 50%;
	--sidebar-transform: translateY(-50%);
	--action-right-desktop: 18px;
	--action-bottom-desktop: 28px;
	--action-top-mobile: 16px;
	--action-right-mobile: 16px;
	--action-row-top-offset: -90px;
}

html, body {
	height: 100%;
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: black;
	color: #111;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
	display: none;
}

.site {
	display: flex;
}

/* placeholder removed */
/* --- Sidebar (mobile-first) --- */
#sidebar-container {
	position: fixed;
	left: 8px;
	top: 50%;
	/* fully hidden by default on mobile; opens when .open is added */
	transform: translateX(-100%) translateY(-50%);
	z-index: 420;
	transition: transform 0.25s ease;
	padding: 6px;
	background: rgba(0,0,0,0.18);
	border-radius: 16px;
	border: 1px solid rgba(255,255,255,0.06);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

#sidebar-container.open {
	transform: translateX(0) translateY(-50%);
}

.sidebar {
	width: auto;
	background: transparent;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

	.main-navigation ul {

		list-style: none;

		padding: 0;

		margin: 0;

		display: flex;

		flex-direction: column;

		align-items: center;

	}.main-navigation li { margin-bottom: 14px; }
.main-navigation a { color: #fff; text-decoration: none; display:flex; align-items:center; justify-content:center; width:46px; height:46px; position:relative; }

/* Desktop sidebar: convert to fixed vertical glass bar */
@media (min-width: 993px) {
	#sidebar-container {
		left: 0;
		top: 0;
		width: 80px;
		height: 100%;
		transform: none;
		padding: 0;
		z-index: 560; /* raised so it sits above other UI */
		background: transparent !important; /* ensure underlying page doesn't show as a white block */
	}
	.sidebar {
		width: 80px;
		position: fixed;
		left: 16px;
		top: 50%;
		transform: translateY(-50%);
		color: #fff;
		padding: 10px;
		/* stronger, less transparent glass so light page background doesn't show through */
		background: rgba(0,0,0,0.82);
		border-radius: 16px;
		box-shadow: 0 14px 80px rgba(0,0,0,0.6);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		border: 1px solid rgba(255,255,255,0.06);
		z-index: 570;
	}
	/* Ensure individual nav links are transparent (no white bg behind icons) */
	.main-navigation a { width:50px; height:50px; background: transparent; }
	.main-navigation a:focus, .main-navigation a:hover { background: rgba(255,255,255,0.02); }
	.site-content { margin-left: 96px; width: calc(100% - 96px); }
}

/* --- Fix: product details sidebar padding/background layering --- */
#product-sidebar,
.product-sidebar,
.product-details-sidebar,
.sidebar-right,
aside.product-sidebar {
	/* remove background and padding from parent to avoid white strip showing through */
	background: transparent !important;
	padding: 0 !important;
}

/* move padding into the inner content so the background of the parent doesn't show */
#product-sidebar .sidebar-content,
.product-sidebar .sidebar-content,
.product-details-sidebar .sidebar-content,
.product-sidebar .product-details-inner,
.product-details-inner,
.sidebar-right .sidebar-inner,
aside.product-sidebar .sidebar-content {
	padding: 16px;
	box-sizing: border-box;
}

.main-navigation .tooltip {
	visibility: hidden;
	width: 120px;
	background: #222;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px 8px;
	position: absolute;
	left: 110%;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0;
	transition: opacity .2s;
}
.main-navigation a:hover .tooltip {
	visibility: visible;
	opacity: 1;
}


/* --- Main Content --- */
.site-content {
	margin-left: 96px;
	width: calc(100% - 96px);
	height: 100vh;
	overflow: hidden;
}
.product-reel-container {
	height: 100%;
	scroll-snap-type: y mandatory;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.product-reel-container::-webkit-scrollbar {
	display: none;
}
.product-reel-item {
	height: 100vh;
	width: 100%;
	background-size: cover;
	background-position: center;
	scroll-snap-align: start;
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.product-reel-item video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Desktop-style centered product card (hidden on mobile) */
.product-card {
	display: none; /* visible only on desktop via media query */
}

/* --- Product Card Overlay --- */
.box-wrapper {
	position: absolute;
	left: 50%;
	bottom: 41px;
	transform: translateX(-50%);
	width: min(980px, 96%);
	max-width: 980px;
	padding: 0;
	box-sizing: border-box;
	z-index: 20;
	pointer-events: none;
}
.box-wrapper .box-content {
	position: relative;
	z-index: 2;
	color: #fff;
	padding: 23px 10px 8px;
	background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 50%);
	pointer-events: auto;
	border-radius: 12px;
}
.box-content .title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}
.box-content .title {
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
}
.rating-inline-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 6px;
}
.rating-inline-list li {
	color: #EFD829;
}
.box-content .desc {
	font-size: 0.95rem;
	margin-top: 6px;
	opacity: 0.95;
	cursor: pointer;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.desc.expanded {
	-webkit-line-clamp: unset;
}
.box-content .price {
	display: block;
	margin-top: 12px;
	font-size: 1.05rem;
	font-weight: 800;
}


/* --- Navigation & Actions --- */
.reel-navigation {
	position: fixed;
	top: 50%;
	right: 30px;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 610;
}
.reel-navigation button {
	background: rgba(0,0,0,0.5);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.progress-indicator-container { z-index: 605; }

.action-row { z-index: 580; }


.action-row {
	position: fixed;
	right: 30px;
	top: calc(71% + var(--action-row-top-offset));
	transform: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 115;
}
.action-row .glass-buy {
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
}
.action-row .glass-circle {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.12);
	color: #fff;
}
.action-row .top-like {
	order: -1;
}
.action-row .glass-buy.liked .glass-circle {
    background: rgba(255,0,80,0.12);
    color: #ff0066;
}


/* --- Progress & Loaders --- */
.progress-indicator-container {
	position: fixed;
	top: 50%;
	right: 30px;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 130;
}
.progress-dot {
	width: 10px;
	height: 10px;
	background-color: rgba(255,255,255,0.35);
	border-radius: 50%;
}
.progress-dot.active {
	background-color: rgba(255,255,255,0.95);
}

.skeleton-loader {
	position: absolute;
	inset: 0;
	background-color: rgba(255,255,255,0.02);
	z-index: 50;
}
.skeleton-loader-inner {
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: skeleton-shine 1.5s infinite;
}
@keyframes skeleton-shine {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}


/* --- Desktop card styles --- */
@media (min-width: 993px) {
	/* center the product content and show a card instead of full-screen cover */
	.product-reel-item {
		display: flex;
		align-items: center;
		justify-content: center;
		background: #000;
		position: relative;
	}
	.product-reel-item .product-card {
		display: block;
		width: min(560px, 60%); /* reduced default width */
		max-width: 560px; /* clamp wide desktops */
		aspect-ratio: 9 / 16; /* portrait short format */
		border-radius: 14px;
		overflow: hidden;
		position: relative;
		box-shadow: 0 20px 50px rgba(0,0,0,0.55);
		background: #111;
		z-index: 10; /* keeps card beneath sidebar */
	}
	.product-reel-item .product-card img,
	.product-reel-item .product-card video { width:100%; height:100%; object-fit: cover; display:block; }
	.product-reel-item .box-wrapper { position: absolute; left: 3%; bottom: 12px; transform: none; width: 94%; max-width:none; border-radius:10px; padding: 12px; box-sizing: border-box; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%); }
	/* Hide full-screen background image/video on desktop (card handles media) */
	.product-reel-item { background-image: none !important; }

	/* Position action row near the right edge of the centered product card */
	.action-row {
		right: calc((100% - min(560px, 60%)) / 2 - 22px);
		top: 50%;
		transform: translateY(-50%);
		z-index: 580; /* above the card but under sidebar */
	}
	.action-row .glass-circle { width: 46px; height: 46px; }
}

/* --- Mobile Specific Styles --- */
#mobile-sidebar-toggle {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 460;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(255,255,255,0.06);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 6px 18px rgba(0,0,0,0.12);
	/* Hidden by default, shown by media query */
	display: none;
}

@media (max-width: 992px) {
	/* --- Mobile Sidebar --- */
	#sidebar-container {
		/* fully hidden by default on mobile; show when `.open` */
		transform: translateX(-100%) translateY(-50%);
		background: rgba(0,0,0,0.18);
		border-radius: 16px;
		box-shadow: 0 6px 30px rgba(0,0,0,0.12);
		border: 1px solid rgba(255,255,255,0.06);
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
		height: auto;
		left: 16px;
		top: 50%;
	}
	#sidebar-container.open {
		transform: translateX(0) translateY(-50%);
	}
    .sidebar {
        position: static;
        transform: none;
        width: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }
	#mobile-sidebar-toggle {
		display: flex;
	}

	/* --- Mobile Layout Adjustments --- */
	.site-content {
		margin-left: 0;
		width: 100%;
	}
	.reel-navigation,
	.progress-indicator-container {
		display: none;
	}
    .box-wrapper {
        bottom: 96px;
    }

	/* --- Mobile Actions --- */
    .action-row {
        right: var(--action-right-mobile);
    }

	/* Floating glass bottom menu */
	#mobile-bottom-bar {
		position: fixed;
		bottom: 2px;
		left: 50%;
		transform: translateX(-50%);
		height: 29px;
		display: flex;
		align-items: center;
		gap: 20px;
		padding: 8px 18px;
		z-index: 300;
		border-radius: 34px;
		background: rgba(255,255,255,0.06);
		border: 1px solid rgba(255,255,255,0.08);
		box-shadow: 0 8px 30px rgba(0,0,0,0.15);
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
	}
	#mobile-bottom-bar a {
		color: #fff;
		font-size: 20px;
	}
}

/* --- Aggressive Scrollbar Hiding --- */
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
*,
*::before,
*::after {
    -ms-overflow-style: none !important; /* IE and Edge */
    scrollbar-width: none !important; /* Firefox */
}