/**
 * La-Kass Off-Canvas Sidebar Styles
 *
 * Slide-in panel with navigation, widgets, and footer links.
 * Supports left and right positions.
 *
 * @package La-Kass
 * @since   1.0.0
 */

/* ==========================================================================
   Off-Canvas Panel
   ========================================================================== */

.lk-off-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	visibility: hidden;
	pointer-events: none;
}

.lk-off-canvas--active {
	visibility: visible;
	pointer-events: auto;
}

/* Overlay */
.lk-off-canvas__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0);
	transition: background 0.3s ease;
	cursor: pointer;
}

.lk-off-canvas--active .lk-off-canvas__overlay {
	background: rgba(0, 0, 0, 0.5);
}

/* Panel — base */
.lk-off-canvas__panel {
	position: absolute;
	top: 0;
	width: 340px;
	max-width: 85vw;
	height: 100%;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Right position (default) */
.lk-off-canvas--right .lk-off-canvas__panel {
	right: 0;
	transform: translateX(100%);
}

.lk-off-canvas--right.lk-off-canvas--active .lk-off-canvas__panel {
	transform: translateX(0);
}

/* Left position */
.lk-off-canvas--left .lk-off-canvas__panel {
	left: 0;
	transform: translateX(-100%);
}

.lk-off-canvas--left.lk-off-canvas--active .lk-off-canvas__panel {
	transform: translateX(0);
}

/* ---------- Header ---------- */

.lk-off-canvas__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}

.lk-off-canvas__logo {
	max-width: 120px;
}

.lk-off-canvas__logo img {
	max-height: 32px;
	width: auto;
}

.lk-off-canvas__site-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.lk-off-canvas__site-title a {
	color: #111;
	text-decoration: none;
}

.lk-off-canvas__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	background: #f5f5f5;
	border-radius: 50%;
	cursor: pointer;
	color: #333;
	transition: background 0.2s, color 0.2s;
}

.lk-off-canvas__close:hover {
	background: #111;
	color: #fff;
}

/* ---------- Body (scrollable) ---------- */

.lk-off-canvas__body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 20px 0;
}

/* ---------- Navigation ---------- */

.lk-off-canvas__nav {
	padding: 0 24px;
	margin-bottom: 20px;
}

.lk-off-canvas__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lk-off-canvas__menu li {
	border-bottom: 1px solid #f0f0f0;
}

.lk-off-canvas__menu li:last-child {
	border-bottom: none;
}

.lk-off-canvas__menu > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	font-size: 15px;
	font-weight: 500;
	color: #111;
	text-decoration: none;
	transition: color 0.2s;
}

.lk-off-canvas__menu > li > a:hover {
	color: var(--lk-color-primary, #ff4d00);
}

/* Has children indicator */
.lk-off-canvas__menu .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid #999;
	border-bottom: 2px solid #999;
	transform: rotate(45deg);
	transition: transform 0.2s;
	flex-shrink: 0;
	margin-left: 8px;
}

.lk-off-canvas__menu .menu-item-has-children.lk-submenu-open > a::after {
	transform: rotate(-135deg);
}

/* Sub-menu */
.lk-off-canvas__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 16px;
	display: none;
}

.lk-off-canvas__menu .sub-menu li {
	border-bottom: none;
}

.lk-off-canvas__menu .sub-menu a {
	display: block;
	padding: 10px 0;
	font-size: 14px;
	font-weight: 400;
	color: #555;
	text-decoration: none;
	transition: color 0.2s;
}

.lk-off-canvas__menu .sub-menu a:hover {
	color: var(--lk-color-primary, #ff4d00);
}

/* ---------- Widgets ---------- */

.lk-off-canvas__widgets {
	padding: 0 24px;
}

.lk-off-canvas__widgets .widget {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #f0f0f0;
}

.lk-off-canvas__widgets .widget:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.lk-off-canvas__widgets .widget-title {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #111;
	margin: 0 0 14px;
}

.lk-off-canvas__widgets .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lk-off-canvas__widgets .widget li {
	margin-bottom: 8px;
}

.lk-off-canvas__widgets .widget a {
	color: #555;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s;
}

.lk-off-canvas__widgets .widget a:hover {
	color: var(--lk-color-primary, #ff4d00);
}

/* ---------- Placeholder ---------- */

.lk-off-canvas__placeholder {
	padding: 40px 24px;
	text-align: center;
}

.lk-off-canvas__placeholder p {
	margin: 0;
	font-size: 14px;
	color: #999;
	line-height: 1.6;
}

/* ---------- Footer ---------- */

.lk-off-canvas__footer {
	flex-shrink: 0;
	border-top: 1px solid #eee;
	padding: 16px 24px;
	background: #fafafa;
}

.lk-off-canvas__footer-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lk-off-canvas__footer-links a {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	color: #555;
	text-decoration: none;
	transition: color 0.2s;
}

.lk-off-canvas__footer-links a:hover {
	color: var(--lk-color-primary, #ff4d00);
}

.lk-off-canvas__footer-links svg {
	flex-shrink: 0;
	opacity: 0.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 480px) {
	.lk-off-canvas__panel {
		width: 100%;
		max-width: 100%;
	}
}

/* ==========================================================================
   Body scroll lock (shared with cart-drawer, search, modals)
   ========================================================================== */

body.lk-modal-open {
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
}
