/* Shared side flyout component (cart, account, etc.) */

.shared-flyout {
    position: fixed;
    top: 0;
    right: -420px; /* hidden by default */
    width: 380px;
    max-width: 100%;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.18);
    z-index: 10020;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-in-out;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shared-flyout.active {
    right: 0; /* slide in */
}

.shared-flyout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
    z-index: 10010;
}

.shared-flyout-overlay.active {
    opacity: 1;
    visibility: visible;
}

.shared-flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #e5e5e5;
    background: #f8f8f8;
}

.shared-flyout-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #333333;
}

.shared-flyout-close {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: #666666;
    padding: 0.15rem 0.25rem;
}

.shared-flyout-close:hover {
    color: #000000;
}

.shared-flyout-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1.1rem 1.2rem;
}

.shared-flyout-footer {
    border-top: 1px solid #e5e5e5;
    padding: 0.85rem 1.1rem;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shared-flyout-footer .btn-primary {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 2px;
    border: 1px solid #333333;
    background: #333333;
    color: #ffffff;
    text-decoration: none;
}

.shared-flyout-footer .btn-primary:hover {
    background: #000000;
    border-color: #000000;
}

.shared-flyout-footer .btn-secondary {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 2px;
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
}

.shared-flyout-footer .btn-secondary:hover {
    background: #f4f4f4;
}

.shared-flyout-item-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shared-flyout-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.shared-flyout-item:last-child {
    border-bottom: none;
}

.shared-flyout-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #f5f5f5;
    border: 1px solid #e3e3e3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shared-flyout-item-image img {
    max-width: 100%;
    max-height: 100%;
}

.shared-flyout-item-details {
    flex: 1 1 auto;
    min-width: 0;
}

.shared-flyout-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.1rem;
    color: #333333;
}

.shared-flyout-item-title a {
	color: #000000;
	text-decoration: none;
}

.shared-flyout-item-title a:hover {
	text-decoration: underline;
}

.shared-flyout-item-meta {
    font-size: 0.8rem;
    color: #777777;
    margin-bottom: 0.15rem;
}

.shared-flyout-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333333;
}

/* Recommendations (add-ons) grid inside the cart flyout */

.shared-flyout-recommendations {
	margin-top: 1.25rem;
	border-top: 1px solid #f0f0f0;
	padding-top: 1rem;
}

.shared-flyout-recommendations-title {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #333333;
}

.shared-flyout-recommendation-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-gap: 0.75rem;
}

.shared-flyout-recommendation {
	border: 1px solid #eeeeee;
	border-radius: 3px;
	padding: 0.5rem;
	background: #ffffff;
}

.shared-flyout-recommendation-image {
	width: 100%;
	height: 80px;
	background: #f7f7f7;
	border: 1px solid #e3e3e3;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 0.4rem;
}

.shared-flyout-recommendation-image img {
	max-width: 100%;
	max-height: 100%;
}

.shared-flyout-recommendation-details {
	font-size: 0.8rem;
}

.shared-flyout-recommendation-title {
	margin: 0 0 0.25rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: #222222;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-clamp: 3;
}

.shared-flyout-recommendation-title a {
	color: #000000;
	text-decoration: none;
}

.shared-flyout-recommendation-title a:hover {
	text-decoration: underline;
}

.shared-flyout-recommendation-meta {
	font-size: 0.75rem;
	color: #777777;
	margin-bottom: 0.15rem;
}

.shared-flyout-recommendation-price {
	font-size: 0.85rem;
	font-weight: 600;
	color: #333333;
	margin-bottom: 0.35rem;
}

.shared-flyout-recommendation-actions .button {
	display: inline-block;
	width: 100%;
	padding: 0.45rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 2px;
}

/* Load more button: clear background, dark outline */

.shared-flyout-load-more {
	margin-top: 0.75rem;
	width: 100%;
	padding: 0.6rem 0.75rem;
	font-size: 0.8rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-align: center;
	border-radius: 2px;
	border: 1px solid #333333;
	background: transparent;
	color: #333333;
	cursor: pointer;
}

.shared-flyout-load-more:hover {
	background: #f4f4f4;
}

@media only screen and (max-width: 40.063em) {
    .shared-flyout {
        width: 100%;
        right: -100%;
    }
}

.shared-flyout-cart-subtotal {
    background: #f6f6f6;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 30px;
}