.wpshop-btn {
display: inline-block;
padding: 12px 24px;
border: none;
border-radius: 6px;
font-size: 15px;
font-weight: 600;
line-height: 1.4;
text-decoration: none;
text-align: center;
cursor: pointer;
transition: background-color 0.2s, opacity 0.2s;
font-family: inherit;
}
.wpshop-btn:hover {
opacity: 0.9;
}
.wpshop-btn--primary {
background-color: #e74c3c;
color: #fff;
}
.wpshop-btn--primary:hover {
background-color: #c0392b;
color: #fff;
}
.wpshop-btn--secondary {
background-color: #f1f3f5;
color: #2c3e50;
border: 1px solid #dee2e6;
}
.wpshop-btn--secondary:hover {
background-color: #e9ecef;
color: #2c3e50;
}
.wpshop-btn--full {
display: block;
width: 100%;
}
.wpshop-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
} .wpshop-cart,
.wpshop-checkout,
.wpshop-order-received {
max-width: 1320px;
margin: 0 auto;
padding: 40px 32px 60px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
color: #2c3e50;
line-height: 1.6;
}
.wpshop-page-header {
margin-bottom: 28px;
}
.wpshop-page-title {
margin: 0;
font-size: clamp(1.5rem, 2.2vw, 2rem);
line-height: 1.1;
font-weight: 700;
color: #2c3e50;
} .wpshop-loading {
text-align: center;
padding: 80px 20px;
color: #95a5a6;
font-size: 16px;
}
.wpshop-loading::before {
content: "";
display: block;
width: 32px;
height: 32px;
margin: 0 auto 16px;
border: 3px solid #ecf0f1;
border-top-color: #e74c3c;
border-radius: 50%;
animation: wpshop-spin 0.7s linear infinite;
}
@keyframes wpshop-spin {
to { transform: rotate(360deg); }
} .wpshop-notice {
padding: 16px 20px;
border-radius: 8px;
margin-bottom: 24px;
font-size: 15px;
line-height: 1.5;
}
.wpshop-notice p {
margin: 0;
}
.wpshop-notice a {
font-weight: 600;
text-decoration: underline;
}
.wpshop-notice--success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.wpshop-notice--error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
.wpshop-notice--info {
background-color: #e8f4f8;
color: #0c5460;
border: 1px solid #bee5eb;
} .wpshop-toast {
position: fixed;
top: 20px;
right: 20px;
padding: 14px 24px;
border-radius: 4px;
color: #fff;
font-weight: 500;
z-index: 99999;
opacity: 0;
transform: translateY(-10px);
transition: opacity 0.3s, transform 0.3s;
max-width: 320px;
}
.wpshop-toast--visible {
opacity: 1;
transform: translateY(0);
}
.wpshop-toast--success {
background-color: #27ae60;
}
.wpshop-toast--error {
background-color: #e74c3c;
} .wpshop-price {
font-size: 1.2em;
font-weight: 700;
color: #2c3e50;
margin-right: 10px;
}
.wpshop-price del {
color: #95a5a6;
font-weight: 400;
margin-right: 6px;
}
.wpshop-price ins {
text-decoration: none;
color: #e74c3c;
}
.wpshop-out-of-stock {
color: #e74c3c;
font-weight: 600;
} .wpshop-add-to-cart {
background-color: #27ae60;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 4px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s;
}
.wpshop-add-to-cart:hover {
background-color: #219a52;
}
.wpshop-add-to-cart.loading {
opacity: 0.6;
pointer-events: none;
} .wpshop-product-info {
display: flex;
align-items: center;
gap: 16px;
padding: 20px 0;
margin-top: 16px;
border-top: 1px solid #ecf0f1;
} .wpshop-mini-cart {
display: inline-flex;
align-items: center;
gap: 6px;
text-decoration: none;
color: inherit;
font-size: 16px;
position: relative;
}
.wpshop-mini-cart__count {
background-color: #e74c3c;
color: #fff;
font-size: 11px;
font-weight: 700;
min-width: 18px;
height: 18px;
line-height: 18px;
text-align: center;
border-radius: 9px;
padding: 0 4px;
}
.wpshop-mini-cart__count[data-count="0"] {
display: none;
} .wpshop-cart__layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 400px;
gap: 32px;
align-items: start;
}
.wpshop-cart__items-card {
background-color: #f8f9fa;
}
.wpshop-cart__summary {
background-color: #f8f9fa;
}
.wpshop-cart__card-header {
margin-bottom: 20px;
}
.wpshop-cart__card-title {
margin: 0;
font-size: 1.3rem;
line-height: 1.2;
color: #2c3e50;
}
.wpshop-cart__card-subtitle {
margin: 6px 0 0;
font-size: 14px;
color: #6b7280;
}
.wpshop-cart__items {
display: grid;
gap: 18px;
}
.wpshop-cart__item {
padding: 20px;
border: 1px solid #dde3ea;
border-radius: 8px;
background-color: #fff;
}
.wpshop-cart__item-main {
display: grid;
grid-template-columns: 88px minmax(0, 1fr);
gap: 18px;
align-items: start;
}
.wpshop-cart__item-thumb {
width: 88px;
height: 88px;
border-radius: 8px;
overflow: hidden;
background-color: #eef2f5;
}
.wpshop-cart__item-thumb img {
width: 100%;
height: 100%;
border-radius: 8px;
object-fit: cover;
}
.wpshop-cart__item-content {
min-width: 0;
}
.wpshop-cart__item-top {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: start;
margin-bottom: 14px;
}
.wpshop-cart__item-details {
min-width: 0;
}
.wpshop-cart__item-label {
display: block;
margin-bottom: 6px;
color: #7f8c8d;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.wpshop-cart__item-name a {
color: #2c3e50;
text-decoration: none;
font-size: 1.05rem;
font-weight: 600;
line-height: 1.4;
}
.wpshop-cart__item-name a:hover {
text-decoration: underline;
}
.wpshop-cart__item-meta {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
align-items: end;
}
.wpshop-cart__item-block {
min-width: 0;
}
.wpshop-cart__item-price,
.wpshop-cart__item-subtotal {
font-size: 15px;
color: #2c3e50;
font-weight: 600;
}
.wpshop-cart__item-price del {
display: block;
margin-bottom: 4px;
color: #95a5a6;
font-size: 13px;
font-weight: 400;
}
.wpshop-cart__item-price ins {
color: #e74c3c;
text-decoration: none;
}
.wpshop-cart__qty-input {
width: 88px;
min-height: 44px;
padding: 10px 12px;
border: 1px solid #d1d5db;
border-radius: 6px;
text-align: center;
font-size: 16px;
background-color: #fff;
}
.wpshop-cart__qty-input:focus {
border-color: #e74c3c;
outline: none;
box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}
.wpshop-cart__remove-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
background-color: #fff1f0;
border: 1px solid #ffd6d1;
color: #e74c3c;
font-size: 18px;
cursor: pointer;
padding: 0;
border-radius: 999px;
transition: background-color 0.2s, border-color 0.2s;
}
.wpshop-cart__remove-btn:hover {
background-color: #ffe4e1;
border-color: #f5b7b1;
}
.wpshop-cart__summary {
position: sticky;
top: 20px;
}
.wpshop-cart__empty {
text-align: center;
padding: 80px 20px;
background-color: #f8f9fa;
border-radius: 12px;
border: 1px solid #ecf0f1;
}
.wpshop-cart__empty p {
font-size: 1.25em;
color: #7f8c8d;
margin: 0 0 24px;
}
.wpshop-cart__totals {
display: grid;
gap: 14px;
margin-bottom: 24px;
}
.wpshop-cart__subtotal {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: baseline;
font-size: 14px;
padding-bottom: 12px;
border-bottom: 1px solid #dde3ea;
}
.wpshop-cart__subtotal strong {
font-size: 15px;
color: #1f2937;
}
.wpshop-cart__subtotal--final {
padding-top: 8px;
padding-bottom: 0;
border-bottom: none;
}
.wpshop-cart__subtotal--final strong {
font-size: 1.2rem;
}
.wpshop-cart__actions {
display: grid;
gap: 12px;
}
.wpshop-cart__actions .wpshop-btn {
width: 100%;
text-align: center;
}
.wpshop-cart__actions .wpshop-btn--primary {
background-color: #ff0100;
color: #fff;
}
.wpshop-cart__actions .wpshop-btn--primary:hover {
background-color: #e00000;
color: #fff;
}
.wpshop-checkout__summary .wpshop-btn--primary {
background-color: #ff0100;
color: #fff;
}
.wpshop-checkout__summary .wpshop-btn--primary:hover {
background-color: #e00000;
color: #fff;
}
.wpshop-checkout__summary #wpshop-place-order {
display: block;
width: 100%;
text-align: center;
}
@media (max-width: 900px) {
.wpshop-cart__layout {
grid-template-columns: 1fr;
}
.wpshop-cart__summary {
position: static;
}
}
@media (max-width: 640px) {
.wpshop-cart__item {
padding: 18px;
}
.wpshop-cart__item-main {
grid-template-columns: 1fr;
}
.wpshop-cart__item-thumb {
width: 72px;
height: 72px;
}
.wpshop-cart__item-meta {
grid-template-columns: 1fr;
gap: 14px;
}
.wpshop-cart__qty-input {
width: 100%;
}
} .wpshop-checkout__form {
margin: 0;
}
.wpshop-checkout__columns {
display: grid;
grid-template-columns: minmax(0, 1fr) 420px;
gap: 48px;
align-items: start;
}
@media (max-width: 900px) {
.wpshop-checkout__columns {
grid-template-columns: 1fr;
gap: 32px;
}
}
.wpshop-checkout__section {
margin-bottom: 36px;
padding-bottom: 28px;
border-bottom: 1px solid #ecf0f1;
}
.wpshop-checkout__section--card,
.wpshop-checkout__summary {
margin-bottom: 24px;
padding: 24px;
background-color: #f8f9fa;
border: 1px solid #ecf0f1;
border-radius: 8px;
}
.wpshop-checkout__section:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.wpshop-checkout__section--card:last-child {
margin-bottom: 0;
padding-bottom: 24px;
}
.wpshop-checkout__section--card.wpshop-cart__items-card {
background-color: #f8f9fa;
}
.wpshop-checkout__summary:last-child {
margin-bottom: 0;
}
.wpshop-checkout__section h3 {
margin: 0 0 20px;
font-size: 1.3rem;
color: #2c3e50;
font-weight: 700;
}
.wpshop-form-field {
margin-bottom: 16px;
}
.wpshop-form-field:last-child {
margin-bottom: 0;
}
.wpshop-form-field label {
display: block;
margin-bottom: 6px;
font-weight: 500;
color: #2c3e50;
font-size: 15px;
}
.wpshop-form-field .required {
color: #e74c3c;
}
.wpshop-form-field input[type="text"],
.wpshop-form-field input[type="email"],
.wpshop-form-field input[type="tel"],
.wpshop-form-field textarea {
width: 100%;
padding: 11px 14px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 16px;
font-family: inherit;
transition: border-color 0.2s, box-shadow 0.2s;
box-sizing: border-box;
background-color: #fff;
}
.wpshop-form-field input:focus,
.wpshop-form-field textarea:focus {
border-color: #e74c3c;
outline: none;
box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}
.wpshop-form-field input.wpshop-field-error {
border-color: #e74c3c;
}
.wpshop-form-row--half {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}
@media (max-width: 480px) {
.wpshop-form-row--half {
grid-template-columns: 1fr;
}
} .wpshop-form-field > span {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: #2c3e50;
font-size: 15px;
}
.wpshop-customer-type {
display: flex;
gap: 8px;
}
.wpshop-customer-type label {
display: flex;
align-items: center;
gap: 0;
flex: 1;
margin: 0;
padding: 10px 18px;
border: 1.5px solid #d1d5db;
border-radius: 6px;
font-size: 15px;
font-weight: 500;
color: #4a5568;
cursor: pointer;
text-align: center;
justify-content: center;
transition: border-color 0.2s, background-color 0.2s, color 0.2s;
background-color: #fff;
user-select: none;
}
.wpshop-customer-type label:hover {
border-color: #2c3e50;
color: #2c3e50;
}
.wpshop-customer-type label:has(input:checked) {
border-color: #e74c3c;
background-color: #fff5f5;
color: #e74c3c;
font-weight: 600;
}
.wpshop-customer-type input[type="radio"] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
pointer-events: none;
} .wpshop-shipping-option {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
border: 1px solid #ddd;
border-radius: 4px;
margin-bottom: 8px;
cursor: pointer;
transition: border-color 0.2s, background-color 0.2s;
}
.wpshop-shipping-option:hover {
border-color: #2c3e50;
}
.wpshop-shipping-option input:checked + .wpshop-shipping-option__details {
color: #2c3e50;
}
.wpshop-shipping-option__details {
flex: 1;
}
.wpshop-shipping-option__details strong {
display: block;
margin-bottom: 2px;
}
.wpshop-shipping-option__details small {
color: #7f8c8d;
}
.wpshop-shipping-option__price {
font-weight: 700;
color: #2c3e50;
white-space: nowrap;
} .wpshop-checkout__summary {
position: sticky;
top: 20px;
}
.wpshop-checkout__summary h3 {
margin: 0 0 16px;
font-size: 1.3rem;
color: #2c3e50;
font-weight: 700;
}
@media (max-width: 900px) {
.wpshop-checkout__section--card,
.wpshop-checkout__summary {
padding: 20px;
}
}
.wpshop-checkout__summary-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
.wpshop-checkout__summary-table th,
.wpshop-checkout__summary-table td {
padding: 10px 0;
border-bottom: 1px solid #ddd;
font-size: 13px;
}
.wpshop-checkout__summary-table thead th {
font-weight: 600;
color: #7f8c8d;
font-size: 11px;
text-transform: uppercase;
}
.wpshop-checkout__summary-table small {
color: #95a5a6;
font-size: 11px;
}
.wpshop-checkout__summary-table tfoot td {
padding: 10px 0;
}
.wpshop-checkout__total-row td {
padding-top: 14px !important;
font-size: 1rem;
border-top: 2px solid #2c3e50;
} .wpshop-order-received__details {
margin: 30px 0;
}
.wpshop-order-received__table {
width: 100%;
border-collapse: collapse;
margin-bottom: 30px;
}
.wpshop-order-received__table th,
.wpshop-order-received__table td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #ecf0f1;
}
.wpshop-order-received__table thead th {
font-weight: 600;
background-color: #f8f9fa;
}
.wpshop-order-received__total-row td {
border-top: 2px solid #2c3e50;
padding-top: 14px;
}
.wpshop-order-received__addresses {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-bottom: 30px;
}
@media (max-width: 480px) {
.wpshop-order-received__addresses {
grid-template-columns: 1fr;
}
}
.wpshop-order-received__address h4 {
margin: 0 0 8px;
color: #2c3e50;
}
.wpshop-order-received__address p {
color: #555;
line-height: 1.6;
}
.wpshop-order-received__note {
background-color: #f8f9fa;
padding: 16px;
border-radius: 4px;
margin-bottom: 20px;
}