/* =============================================
   Çiçekchi Canvas Menu Widget v1.1
   Developer: Hantema.com
   ============================================= */

.cc-widget *, .cc-panel * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ─── Trigger Button ─── */
.cc-trigger-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	font-size: 20px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	z-index: 100;
	position: relative;
}
.cc-trigger-btn:hover  { transform: scale(1.07); box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.cc-trigger-btn:active { transform: scale(0.94); }

.cc-hamburger {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%;
	transition: transform 0.3s ease;
}
.cc-panel-open .cc-hamburger { transform: rotate(90deg); }

/* ─── Overlay ─── */
.cc-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.55);
	z-index: 9998;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.32s ease;
}
.cc-overlay.cc-visible { display: block; opacity: 1; }

/* ─── Panel Shell ─── */
.cc-panel {
	position: fixed;
	top: 0;
	left: 0;
	width: 320px;
	max-width: 92vw;
	height: 100%;
	height: 100dvh;
	/* KEY: flex column — each zone sized independently */
	display: flex;
	flex-direction: column;
	z-index: 9999;
	transform: translateX(-110%);
	transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	overflow: hidden;
}
.cc-panel.cc-panel-active { transform: translateX(0); }

/* ─── Zone 1 : Header (fixed height) ─── */
.cc-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 18px;
	height: 64px;
	flex-shrink: 0;
	border-bottom: 1px solid rgba(255,255,255,0.09);
}
.cc-panel-logo img {
	max-height: 38px;
	width: auto;
	object-fit: contain;
}
.cc-panel-sitename span {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.4px;
}
.cc-close-btn {
	width: 34px; height: 34px;
	border: none;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
	cursor: pointer;
	color: inherit;
	font-size: 14px;
	display: flex; align-items: center; justify-content: center;
	transition: background 0.2s, transform 0.25s;
	flex-shrink: 0;
}
.cc-close-btn:hover { background: rgba(255,255,255,0.22); transform: rotate(90deg); }

/* ─── Zone 2 : Nav area (fills remaining space, clips overflow) ─── */
.cc-panel-nav-area {
	flex: 1;
	min-height: 0;          /* critical for flex overflow */
	position: relative;     /* sub-nav anchors here */
	overflow: hidden;
}

/* Main nav scroll container */
.cc-main-nav {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 8px 0;
	transform: translateX(0);
	transition: transform 0.34s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.14) transparent;
}
.cc-main-nav::-webkit-scrollbar            { width: 4px; }
.cc-main-nav::-webkit-scrollbar-track      { background: transparent; }
.cc-main-nav::-webkit-scrollbar-thumb      { background: rgba(255,255,255,0.14); border-radius:4px; }

.cc-main-nav.cc-nav-hidden { transform: translateX(-100%); pointer-events: none; }

/* Nav list & items */
.cc-nav-list { list-style: none; }

.cc-nav-item > a {
	display: flex;
	align-items: center;
	padding: 13px 20px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.25px;
	transition: background 0.18s, padding-left 0.18s;
	border-left: 3px solid transparent;
}
.cc-nav-item > a:hover {
	background: rgba(255,255,255,0.07);
	border-left-color: currentColor;
	padding-left: 25px;
}
.cc-nav-label { flex: 1; }
.cc-arrow { font-size: 11px; opacity: 0.55; transition: transform 0.2s; }
.cc-has-children > a:hover .cc-arrow { transform: translateX(3px); }

/* ─── Sub-nav (slides over main nav inside nav-area) ─── */
.cc-sub-nav {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overflow-x: hidden;
	transform: translateX(100%);
	transition: transform 0.34s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	display: flex;
	flex-direction: column;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.14) transparent;
}
.cc-sub-nav::-webkit-scrollbar       { width: 4px; }
.cc-sub-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius:4px; }
.cc-sub-nav.cc-sub-active            { transform: translateX(0); z-index: 5; }

.cc-back-header {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 13px 20px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.9px;
	cursor: pointer;
	position: sticky;
	top: 0;
	z-index: 2;
	border-bottom: 1px solid rgba(255,255,255,0.07);
	user-select: none;
	transition: opacity 0.18s;
}
.cc-back-header:hover { opacity: 0.8; }
.cc-back-header i     { font-size: 12px; }

.cc-sub-nav .cc-nav-list { flex: 1; padding: 6px 0; }

/* ─── Zone 3 : Auth section (fixed at bottom, never overlaps) ─── */
.cc-auth-section {
	flex-shrink: 0;
	padding: 14px 16px;
	border-top: 1px solid rgba(255,255,255,0.09);
	display: flex;
	flex-direction: column;
	gap: 9px;
}
.cc-user-info {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	opacity: 0.82;
	padding: 4px 0;
}
.cc-user-info i { font-size: 22px; }

.cc-auth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
	letter-spacing: 0.25px;
}
.cc-auth-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }

.cc-login-btn    { border: 2px solid; background: transparent; }
.cc-register-btn { color: #fff !important; border: 2px solid transparent; }

/* ─── Zone 4 : Cargo section (fixed at bottom) ─── */
.cc-cargo-section {
	flex-shrink: 0;
	padding: 10px 16px 14px;
}
.cc-cargo-btn {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 12px 16px;
	border-radius: 10px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border: 1.5px dashed;
	transition: background 0.22s, transform 0.2s, box-shadow 0.2s;
}
.cc-cargo-btn:hover    { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.cc-cargo-btn i:first-child { font-size: 18px; }
.cc-cargo-btn span     { flex: 1; }
.cc-cargo-arrow        { font-size: 11px; opacity: 0.45; }

/* ─── Zone 5 : Footer ─── */
.cc-panel-footer {
	flex-shrink: 0;
	padding: 10px 20px;
	border-top: 1px solid rgba(255,255,255,0.06);
	font-size: 11px;
	opacity: 0.3;
	text-align: center;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
	.cc-panel { width: 90vw !important; }
}

/* ─── RTL ─── */
[dir="rtl"] .cc-panel {
	left: auto; right: 0;
	transform: translateX(110%);
}
[dir="rtl"] .cc-panel.cc-panel-active { transform: translateX(0); }
