Files
web-menu-react-version-/src/pages/product/product.module.css

338 lines
5.9 KiB
CSS

.productDetailContainer {
overflow: auto;
scrollbar-width: none;
height: 100%;
}
.productContainer :global(.ant-radio-wrapper:last-child) {
width: 100% !important;
}
.productContainer :global(.ant-radio-label) {
width: 100% !important;
}
/* radio.module.css */
.productContainer :global(.ant-radio-inner) {
width: 24px !important;
height: 24px !important;
border-radius: 30px !important;
}
.productContainer :global(.ant-radio) {
width: 24px !important;
height: 24px !important;
}
.productContainer :global(.ant-radio-checked .ant-radio-inner) {
border-radius: 30px !important;
}
.productContainer :global(.ant-space-gap-row-small) {
row-gap: 0px !important;
}
.productContainer :global(.ant-checkbox-wrapper:last-child) {
width: 100% !important;
}
.productContainer :global(.ant-checkbox-label) {
width: 100% !important;
}
/* .productContainer :global(.ant-checkbox-input) {
margin-top: 5px !important;
} */
.productContainer :global(.ant-checkbox-inner) {
border-radius: 40px !important;
}
/* CheckboxGroup.module.css */
.productContainer :global(.ant-checkbox-inner) {
width: 24px !important;
height: 24px !important;
border-radius: 30px !important;
}
.productContainer :global(.ant-checkbox) {
width: 24px !important;
height: 24px !important;
}
.productContainer :global(.ant-checkbox-checked .ant-checkbox-inner) {
border-radius: 30px !important;
}
:global(.darkApp) .productDetailContainer path {
fill: var(--primary) !important;
}
/* Restaurant-Style Description */
.descriptionSection {
position: relative;
backdrop-filter: blur(10px);
padding: 0 16px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.descriptionSection:hover {
transform: translateY(-2px);
}
.descriptionHeader {
display: flex;
align-items: center;
margin-bottom: 16px;
gap: 12px;
}
.descriptionIcon {
width: 24px;
height: 24px;
background: linear-gradient(135deg, var(--primary) 0%, var(--primary2) 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.descriptionIcon::before {
content: "🍽️";
font-size: 14px;
line-height: 1;
}
.descriptionLabel {
font-size: 18px;
font-weight: 600;
color: var(--secondary);
margin: 0;
letter-spacing: -0.02em;
}
.descriptionText {
font-size: 15px;
line-height: 1.7;
color: rgba(0, 0, 0, 0.45);
font-weight: 400;
margin: 0;
opacity: 0.85;
text-align: justify;
padding: 0 4px;
}
.descriptionText::first-letter {
font-size: 1.2em;
font-weight: 600;
color: var(--primary);
margin-right: 2px;
}
/* Dark mode restaurant styles */
:global(.darkApp) .descriptionSection {
background: linear-gradient(
135deg,
rgba(26, 26, 26, 0.95) 0%,
rgba(42, 42, 42, 0.98) 100%
);
}
:global(.darkApp) .descriptionLabel {
color: var(--primary);
}
:global(.darkApp) .descriptionText {
color: #e5e5e5;
opacity: 0.9;
}
:global(.darkApp) .descriptionText::first-letter {
color: var(--primary2);
}
/* Desktop Layout Styles */
.desktopLayout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32px;
max-width: 1200px;
margin: 0 auto;
padding: 24px 0;
}
.desktopLayoutFullWidth {
display: grid;
grid-template-columns: 1fr;
gap: 32px;
padding: 24px 0 0 0;
}
.mobileLayout {
display: block;
width: 100%;
}
.leftColumn {
display: flex;
flex-direction: column;
gap: 24px;
}
.rightColumn {
display: flex;
flex-direction: column;
gap: 24px;
padding: 16px;
background: rgba(0, 0, 0, 0.01);
border-radius: 12px;
border: 1px solid rgba(0, 0, 0, 0.06);
overflow: auto;
scrollbar-width: none;
}
.fullWidth {
width: 100%;
}
.productImageSection {
position: relative;
border-radius: 0px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
transition:
transform 0.3s ease,
box-shadow 0.3s ease;
}
.productImageSection:hover {
transform: translateY(-2px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.productInfoSection {
padding: 0 1rem;
}
.productHeader {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 0px;
margin: 16px 0 16px 0;
}
.productDetails {
flex: 1;
}
.quantitySection {
display: flex;
align-items: center;
justify-content: flex-end;
position: relative;
top: 5px;
}
/* Dark mode desktop styles */
:global(.darkApp) .productImageSection {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
:global(.darkApp) .productImageSection:hover {
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
:global(.darkApp) .rightColumn {
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.08);
}
/* Mobile responsiveness */
@media (max-width: 768px) {
.desktopLayout {
grid-template-columns: 1fr;
gap: 16px;
padding: 16px 0;
}
.desktopLayoutFullWidth {
grid-template-columns: 1fr;
gap: 16px;
padding: 16px 0;
max-width: 100%;
}
.rightColumn {
padding: 0;
background: transparent;
border: none;
gap: 16px;
}
.productHeader {
flex-direction: column;
align-items: stretch;
gap: 16px;
}
.quantitySection {
justify-content: center;
}
.descriptionSection {
padding: 16px 16px 0 16px;
}
.descriptionLabel {
font-size: 16px;
}
.descriptionText {
font-size: 14px;
line-height: 1.6;
}
}
@media (min-width: 769px) and (max-width: 1024px) {
.productHeader {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
margin: 24px 0;
}
}
.backButtonContainer {
position: absolute;
z-index: 999;
left: 20px;
top: 70px;
background-color: #fff;
border-radius: 50%;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
:global(.ant-app-rtl) .backButtonContainer {
left: auto;
right: 20px;
}
:global(.darkApp) .itemDescriptionIcons path {
fill: #ffffff !important;
}
.inputField {
height: 100px;
width: 100% !important;
border-radius: 6px;
}
.editButton {
color: var(--primary);
font-size: 14px;
cursor: pointer;
}