/* Account Page Styles */



/* Breadcrumbs */
.account .breadcrumb {
	margin-bottom: 2rem;
	font-size: 0.875rem;
	color: #666;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.account .breadcrumb a {
	color: #552F24;
	text-decoration: none;
}

.account .breadcrumb a:hover {
	text-decoration: underline;
}

.account .breadcrumb span {
	color: #2F2F2F;
}

/* Account Wrapper - Two Columns */
.account__wrapper {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 3rem;
	align-items: start;
}

@media (max-width: 968px) {
	.account__wrapper {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

/* Sidebar Navigation */
.account__sidebar {
	position: sticky;
	top: 20px;
}

.account__navigation {
}

.account__nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.account__nav-item {
	margin-bottom: 0.5rem;
}

.account__nav-item:last-child {
	margin-bottom: 0;
}

.account__nav-link {
	display: block;
	padding: 0.75rem 1rem;
	color: #2F2F2F;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
	font-size: 0.9375rem;
}



.account__nav-item.is-active .account__nav-link {
	background: #D9D9D9;
	color: #2F2F2F;
	font-weight: 500;
}

/* Main Content */
.account__content {
	width: 100%;
}


.account__title {
	font-size: 2rem;
	font-weight: 700;
	color: #2F2F2F;
	margin-bottom: 0.5rem;
}

.account__description {
	color: #666;
	line-height: 1.8;
	margin-bottom: 2rem;
	font-size: 0.9375rem;
}

/* Account Form */
.account__form {
	margin-top: 2rem;
}

.account__card {
	background: #FDFBF7;
	border: 1px solid #DCDCDC;
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.account__card--view {
	background: #FDFBF7;
}

.account__card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 1rem;
	border-bottom: 1px solid #DCDCDC;
	margin-bottom: 1.5rem;
}

.account__card-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: #2F2F2F;
	margin: 0;
}

.account__card-edit {
	background: none;
	border: none;
	color: #2F2F2F;
	font-size: 0.9375rem;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
	transition: color 0.3s ease;
}

.account__card-edit:hover {
	color: #552F24;
}

.account__card-content {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Режим просмотра данных */
.account__card-content--view {
	gap: 0;
}

.account__info-row {
	display: flex;
	gap: 1rem;
	margin-bottom: 0;
}

.account__info-row:not(:last-child) {
	margin-bottom: 1rem;
}

.account__info-item {
	font-size: 0.9375rem;
	color: #2F2F2F;
	line-height: 1.5;
	font-weight: 400;
}

/* Форма редактирования */
.account__form-row {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.account__form-row--inline {
	flex-direction: row;
	gap: 1rem;
}

.account__form-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.account__form-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #2F2F2F;
}

.account__form-label .required {
	color: #d63638;
}

.account__form-input {
	padding: 0.75rem 1rem;
	border: 1px solid #DCDCDC;
	border-radius: 4px;
	font-size: 0.9375rem;
	color: #2F2F2F;
	background: #fff;
	transition: border-color 0.3s ease;
	width: 100%;
	box-sizing: border-box;
}

.account__form-input:focus {
	outline: none;
	border-color: #552F24;
}

/* Адаптивность для формы */
@media (max-width: 640px) {
	.account__form-row--inline {
		flex-direction: column;
		gap: 0;
	}
	
	.account__form-col {
		margin-bottom: 1.5rem;
	}
	
	.account__form-col:last-child {
		margin-bottom: 0;
	}
}

.account__fieldset {
	border: none;
	padding: 0;
	margin: 0;
}

/* Orders */
.account__order {
	background: #F8F5F0;
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.account__order-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #DCDCDC;
}

.account__order-info {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.account__order-number {
	font-size: 0.875rem;
	color: #2F2F2F;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.account__order-number strong {
	font-weight: 600;
}

.account__order-date-separator {
	margin: 0 0.25rem;
	color: #999;
}

.account__order-date {
	font-size: 0.875rem;
	color: #2F2F2F;
}

.account__order-invoice {
	padding: 0.5rem 1rem;
	border: 1px solid #2F2F2F;
	border-radius: 4px;
	color: #2F2F2F;
	text-decoration: none;
	font-size: 0.875rem;
	transition: all 0.3s ease;
}

.account__order-invoice:hover {
	background: #2F2F2F;
	color: #fff;
}

.account__order-items {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.account__order-item {
	display: flex;
	gap: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #DCDCDC;
}

.account__order-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.account__order-item-image {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 4px;
	overflow: hidden;
}

.account__order-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.account__order-item-details {
	flex: 1;
}

.account__order-item-name {
	font-size: 1rem;
	font-weight: 600;
	color: #2F2F2F;
	margin: 0 0 0.5rem 0;
}

.account__order-item-meta {
	font-size: 0.875rem;
	color: #666;
	margin-bottom: 0.5rem;
}

.account__order-item-info {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: #2F2F2F;
}

.account__order-item-quantity,
.account__order-item-price {
	display: block;
}

.account__order-footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding-top: 1rem;
	border-top: 1px solid #DCDCDC;
}

.account__order-delivery {
	font-size: 0.875rem;
	color: #2F2F2F;
}

.account__order-total {
	text-align: right;
}

.account__order-total-sum {
	font-size: 1.125rem;
	font-weight: 600;
	color: #2F2F2F;
	margin-bottom: 0.25rem;
}

.account__order-payment {
	font-size: 0.875rem;
	color: #666;
}

/* Empty State */
.account__empty {
	padding: 2rem 0;
}

.account__empty-text {
	font-size: 1rem;
	color: #2F2F2F;
	line-height: 1.8;
	margin: 0;
}

/* Pagination */
.account__pagination {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
}

.account__pagination-link {
	padding: 0.75rem 1.5rem;
	border: 1px solid #DCDCDC;
	border-radius: 4px;
	color: #2F2F2F;
	text-decoration: none;
	font-size: 0.9375rem;
	transition: all 0.3s ease;
}

.account__pagination-link:hover {
	background: #f5f5f5;
	border-color: #552F24;
	color: #552F24;
}

/* Address Styles */
.account__empty-address {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 3rem 0;
}

.account__add-address-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
	background: #fff;
	border: 1px solid #DCDCDC;
	border-radius: 4px;
	color: #2F2F2F;
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 500;
	transition: all 0.3s ease;
}

.account__add-address-btn:hover {
	background: #f5f5f5;
	border-color: #552F24;
	color: #552F24;
}

.account__add-address-btn span {
	font-size: 1.25rem;
	font-weight: 300;
	line-height: 1;
}

/* Address Tabs */
.account__address-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #DCDCDC;
}

.account__address-tab {
	background: none;
	border: none;
	padding: 0.75rem 1.5rem;
	font-size: 0.9375rem;
	color: #2F2F2F;
	cursor: pointer;
	transition: all 0.3s ease;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.account__address-tab:hover {
	color: #552F24;
}

.account__address-tab.is-active {
	color: #2F2F2F;
	background: #FDFBF7;
	border-bottom-color: #DCDCDC;
	font-weight: 500;
}

/* Address Fields */
.account__address-fields {
	margin-top: 0;
}

.account__form-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%232F2F2F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
	cursor: pointer;
}

.account__form-textarea {
	resize: vertical;
	min-height: 80px;
	font-family: inherit;
}

/* Responsive */
@media (max-width: 640px) {
	.account__order-header {
		flex-direction: column;
		gap: 1rem;
	}

	.account__order-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.account__order-total {
		text-align: left;
	}

	.account__address-tabs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.account__address-tab {
		flex-shrink: 0;
		white-space: nowrap;
	}
}

