/* Shop Module Styles - Pet911 */

/* ===== Layout ===== */
.shop-page {
    padding: 24px 0 48px;
}
.shop-page .container {
    max-width: 1200px;
}
.shop-page h1 {
    font-family: 'MuseoCyrl', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text-primary);
}
.shop-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--color-gradation-gray-300);
}
.shop-breadcrumbs a {
    color: var(--color-base-primary);
    text-decoration: none;
}
.shop-breadcrumbs a:hover {
    text-decoration: underline;
}
.shop-breadcrumbs__sep {
    margin: 0 4px;
}

/* ===== Product Grid ===== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .shop-grid { grid-template-columns: 1fr; }
}

/* ===== Product Card ===== */
.shop-card {
    background: var(--color-bg-primary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-stroke-100);
    transition: box-shadow 0.2s, transform 0.2s;
}
.shop-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.shop-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-bg-secondary-200);
}
.shop-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shop-card__image a {
    display: block;
    width: 100%;
    height: 100%;
}
.shop-card__tags {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.shop-card__tag {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.4;
}
.shop-card__body {
    padding: 12px;
}
.shop-card__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 8px;
}
.shop-card__title:hover {
    color: var(--color-base-primary);
}
.shop-card__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}
.shop-card__price-old {
    font-size: 13px;
    color: var(--color-gradation-gray-300);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}
.shop-card__btn {
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    background: var(--color-base-primary);
    color: #fff;
    font-weight: 500;
    transition: background 0.2s;
}
.shop-card__btn:hover {
    background: var(--color-base-primary-hover);
}
.shop-card__btn--outline {
    background: transparent;
    border: 1px solid var(--color-stroke-200);
    color: var(--color-text-primary);
}
.shop-card__btn--outline:hover {
    border-color: var(--color-base-primary);
    color: var(--color-base-primary);
    background: transparent;
}
.shop-card__stock {
    font-size: 12px;
    color: var(--color-gradation-gray-300);
    margin-bottom: 4px;
}
.shop-card__stock--out {
    color: var(--color-info-fill-error);
}

/* ===== Product View ===== */
.shop-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .shop-product {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
.shop-product__gallery {
    position: relative;
}
.shop-product__main-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--color-bg-secondary-200);
    margin-bottom: 12px;
}
.shop-product__main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.shop-product__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}
.shop-product__thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    background: var(--color-bg-secondary-200);
}
.shop-product__thumb.active {
    border-color: var(--color-base-primary);
}
.shop-product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-product__info h1 {
    font-size: 24px;
    margin-bottom: 16px;
}
.shop-product__price-block {
    margin-bottom: 20px;
}
.shop-product__price {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary);
}
.shop-product__price-old {
    font-size: 16px;
    color: var(--color-gradation-gray-300);
    text-decoration: line-through;
    margin-left: 12px;
}
.shop-product__stock-info {
    font-size: 14px;
    margin-top: 8px;
}
.shop-product__stock-info--available {
    color: var(--color-info-fill-success);
}
.shop-product__stock-info--out {
    color: var(--color-info-fill-error);
}
.shop-product__actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.shop-product__qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-stroke-200);
    border-radius: 8px;
    overflow: hidden;
}
.shop-product__qty button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-bg-secondary-100);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-product__qty button:hover {
    background: var(--color-bg-secondary-300);
}
.shop-product__qty input {
    width: 48px;
    text-align: center;
    border: none;
    font-size: 16px;
    -moz-appearance: textfield;
}
.shop-product__qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
.shop-product__add-btn {
    flex: 1;
    max-width: 280px;
}
.shop-product__description {
    line-height: 1.6;
    color: var(--color-text-secondary);
}
.shop-product__description h2,
.shop-product__description h3 {
    margin-top: 20px;
    margin-bottom: 8px;
}
.shop-product__props {
    margin-top: 24px;
}
.shop-product__prop {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-stroke-100);
    font-size: 14px;
}
.shop-product__prop-name {
    color: var(--color-gradation-gray-300);
}
.shop-product__prop-value {
    font-weight: 500;
}
.shop-product__video {
    margin-top: 24px;
}
.shop-product__video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    border: none;
}

/* ===== More Products ===== */
.shop-more {
    margin-top: 48px;
}
.shop-more h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ===== Cart ===== */

/* Layout: two columns */
.shop-cart {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 900px) {
    .shop-cart {
        grid-template-columns: 1fr;
    }
}

/* Header with item count */
.shop-cart__header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}
.shop-cart__header h1 {
    margin-bottom: 0;
}
.shop-cart__count {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-gradation-gray-300);
}

/* Items column */
.shop-cart__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Item card */
.shop-cart__item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--color-stroke-100);
    border-radius: 12px;
    background: var(--color-bg-primary);
    transition: box-shadow 0.2s, opacity 0.35s, transform 0.35s;
}
.shop-cart__item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Item removing animation */
.shop-cart__item--removing {
    opacity: 0;
    transform: translateX(-40px);
    pointer-events: none;
}

/* Item image */
.shop-cart__item-img {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-bg-secondary-200);
    flex-shrink: 0;
}
.shop-cart__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Item body: top / price / bottom */
.shop-cart__item-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.shop-cart__item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.shop-cart__item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    line-height: 1.3;
}
.shop-cart__item-title:hover {
    color: var(--color-base-primary);
}
.shop-cart__item-remove {
    flex-shrink: 0;
    color: var(--color-gradation-gray-300);
    cursor: pointer;
    border: none;
    background: none;
    padding: 2px;
    transition: color 0.2s;
    line-height: 1;
}
.shop-cart__item-remove:hover {
    color: var(--color-info-fill-error);
}
.shop-cart__item-remove .material-icons-outlined {
    font-size: 20px;
}
.shop-cart__item-price-single {
    font-size: 13px;
    color: var(--color-gradation-gray-300);
}
.shop-cart__item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Qty controls */
.shop-cart__item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-stroke-200);
    border-radius: 8px;
    overflow: hidden;
}
.shop-cart__item-qty button {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    transition: background 0.15s;
}
.shop-cart__item-qty button:hover {
    background: var(--color-bg-secondary-200);
}
.shop-cart__item-qty button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.shop-cart__item-qty button .material-icons-outlined {
    font-size: 18px;
}
.shop-cart__item-qty span {
    width: 38px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 34px;
    border-left: 1px solid var(--color-stroke-200);
    border-right: 1px solid var(--color-stroke-200);
}

/* Qty pulse animation */
.shop-cart__item-qty span.cart-qty-pulse {
    animation: cartQtyPulse 0.3s ease;
}

/* Item total */
.shop-cart__item-total {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}
.shop-cart__item-total.cart-total-flash {
    animation: cartTotalFlash 0.5s ease;
}

/* ---- Sidebar ---- */
.shop-cart__aside {
    position: sticky;
    top: 100px;
}
.shop-cart__summary {
    padding: 24px;
    border: 1px solid var(--color-stroke-100);
    border-radius: 12px;
    background: var(--color-bg-primary);
}
.shop-cart__summary-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.shop-cart__summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}
.shop-cart__summary-row--total {
    font-size: 20px;
    font-weight: 700;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--color-stroke-200);
    margin-bottom: 0;
}
.shop-cart__summary .btn {
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.shop-cart__summary .btn .material-icons-outlined {
    font-size: 18px;
}
.shop-cart__summary-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-gradation-gray-300);
}
.shop-cart__summary-secure .material-icons-outlined {
    font-size: 16px;
}

/* Continue shopping link under sidebar */
.shop-cart__continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-gradation-gray-300);
    text-decoration: none;
    transition: color 0.2s;
}
.shop-cart__continue:hover {
    color: var(--color-base-primary);
}
.shop-cart__continue .material-icons-outlined {
    font-size: 18px;
}

/* ---- Mobile fixed bottom bar ---- */
.shop-cart__mobile-bar {
    display: none;
}
@media (max-width: 900px) {
    .shop-cart__mobile-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--color-bg-primary);
        padding: 12px 16px;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    .shop-cart__mobile-bar-total {
        font-size: 18px;
        font-weight: 700;
    }
    .shop-cart__mobile-bar-label {
        font-size: 12px;
        color: var(--color-gradation-gray-300);
    }
    .shop-cart__mobile-bar .btn {
        flex-shrink: 0;
    }

}

/* ---- Empty state ---- */
.shop-cart__empty {
    text-align: center;
    padding: 64px 0;
}
.shop-cart__empty-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-bg-secondary-200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: cartEmptyBounce 2s ease-in-out infinite;
}
.shop-cart__empty-icon .material-icons-outlined {
    font-size: 52px;
    color: var(--color-gradation-gray-300);
}
.shop-cart__empty h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.shop-cart__empty p {
    font-size: 15px;
    color: var(--color-gradation-gray-300);
    margin-bottom: 24px;
}
.shop-cart__empty .btn .material-icons-outlined {
    font-size: 20px;
    margin-right: 6px;
}

/* ---- Keyframes ---- */
@keyframes cartQtyPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}
@keyframes cartTotalFlash {
    0%   { color: var(--color-base-primary); }
    100% { color: var(--color-text-primary); }
}
@keyframes cartEmptyBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ---- Responsive: small screens ---- */
@media (max-width: 600px) {
    .shop-cart__item {
        grid-template-columns: 72px 1fr;
        gap: 12px;
        padding: 12px;
    }
    .shop-cart__item-img {
        width: 72px;
        height: 72px;
    }
    .shop-cart__item-qty button {
        width: 40px;
        height: 40px;
    }
    .shop-cart__item-qty span {
        width: 44px;
        line-height: 40px;
        font-size: 15px;
    }
    .shop-cart__item-bottom {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ===== Stepper ===== */
.shop-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 20px 0;
}
.shop-stepper__step {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-gradation-gray-300);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.shop-stepper__step--done {
    color: var(--color-base-primary);
}
.shop-stepper__step--done:hover {
    opacity: 0.8;
}
.shop-stepper__step--active {
    color: var(--color-text-primary);
}
.shop-stepper__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: var(--color-stroke-100);
    color: var(--color-gradation-gray-300);
    flex-shrink: 0;
}
.shop-stepper__step--done .shop-stepper__icon {
    background: var(--color-base-primary);
    color: #fff;
}
.shop-stepper__step--done .shop-stepper__icon .material-icons-outlined {
    font-size: 18px;
}
.shop-stepper__step--active .shop-stepper__icon {
    background: var(--color-text-primary);
    color: #fff;
}
.shop-stepper__line {
    width: 48px;
    height: 2px;
    background: var(--color-stroke-100);
    margin: 0 12px;
    flex-shrink: 0;
}
.shop-stepper__line--done {
    background: var(--color-base-primary);
}
@media (max-width: 600px) {
    .shop-stepper__label { display: none; }
    .shop-stepper__line { width: 32px; margin: 0 8px; }
}

/* ===== Checkout ===== */
.shop-checkout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 960px) {
    .shop-checkout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .shop-checkout__sidebar {
        position: static;
    }
    .shop-checkout__submit-desktop {
        display: none;
    }
    .shop-checkout__section {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    .shop-checkout__section-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
    .shop-checkout__delivery-icon {
        width: 36px;
        height: 36px;
    }
    .shop-checkout__delivery-option {
        padding: 12px;
        gap: 10px;
    }
    .shop-checkout__guest-notice {
        padding: 12px 16px;
        font-size: 13px;
    }
}
.shop-checkout__section {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-stroke-100);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}
.shop-checkout__section:focus-within {
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.shop-checkout__section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.shop-checkout__section-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-base-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.shop-checkout__section-title .material-icons-outlined {
    font-size: 22px;
    color: var(--color-base-primary);
}
.shop-checkout__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .shop-checkout__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
.shop-checkout__field {
    margin-bottom: 16px;
}
.shop-checkout__field label:not(.shop-checkout__delivery-option) {
    display: block;
    font-size: 13px;
    color: var(--color-gradation-gray-300);
    margin-bottom: 6px;
    font-weight: 500;
}
.shop-checkout__field input,
.shop-checkout__field select,
.shop-checkout__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--color-stroke-200);
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.shop-checkout__field input:focus,
.shop-checkout__field select:focus,
.shop-checkout__field textarea:focus {
    outline: none;
    border-color: var(--color-base-primary);
    box-shadow: 0 0 0 3px rgba(37, 138, 86, 0.1);
}
.shop-checkout__field .help-block {
    color: var(--color-info-fill-error);
    font-size: 12px;
    margin-top: 4px;
    min-height: 0;
}
.shop-checkout__field.has-error input,
.shop-checkout__field.has-error select,
.shop-checkout__field.has-error textarea {
    border-color: var(--color-info-fill-error);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08);
}

/* Delivery options */
.shop-checkout__delivery-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--color-stroke-200);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    margin-bottom: 8px;
}
.shop-checkout__delivery-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-base-primary);
    flex-shrink: 0;
}
.shop-checkout__delivery-option:hover {
    border-color: var(--color-base-primary);
    background: rgba(37, 138, 86, 0.02);
}
.shop-checkout__delivery-option.selected {
    border-color: var(--color-base-primary);
    background: var(--color-info-bg-success);
    box-shadow: 0 0 0 3px rgba(37, 138, 86, 0.08);
}
.shop-checkout__delivery-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-bg-secondary-200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.shop-checkout__delivery-icon .material-icons-outlined {
    font-size: 22px;
    color: var(--color-gradation-gray-300);
}
.shop-checkout__delivery-option.selected .shop-checkout__delivery-icon {
    background: var(--color-base-primary);
}
.shop-checkout__delivery-option.selected .shop-checkout__delivery-icon .material-icons-outlined {
    color: #fff;
}
.shop-checkout__delivery-info {
    flex: 1;
    min-width: 0;
}
.shop-checkout__delivery-name {
    font-size: 15px;
    font-weight: 500;
}
.shop-checkout__delivery-price {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}
.shop-checkout__delivery-price--free {
    color: var(--color-base-primary);
}

/* Guest notice */
.shop-checkout__guest-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--color-info-bg-notice);
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-special-attention-text);
    line-height: 1.5;
}
.shop-checkout__guest-notice .material-icons-outlined {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}
.shop-checkout__guest-notice a {
    color: var(--color-base-primary);
    font-weight: 600;
    text-decoration: none;
}
.shop-checkout__guest-notice a:hover {
    text-decoration: underline;
}

/* Submit desktop */
.shop-checkout__submit-desktop {
    margin-top: 4px;
}
.shop-checkout__submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    transition: background 0.2s, transform 0.1s;
}
.shop-checkout__submit-btn:active {
    transform: scale(0.98);
}
.shop-checkout__submit-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}
.shop-checkout__submit-btn .material-icons-outlined {
    font-size: 20px;
}

/* Spinner */
.shop-checkout__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Secure badge */
.shop-checkout__secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-gradation-gray-300);
}
.shop-checkout__secure-badge .material-icons-outlined {
    font-size: 16px;
    color: var(--color-base-primary);
}

/* Sidebar */
.shop-checkout__sidebar {
    position: sticky;
    top: 80px;
}
.shop-checkout__summary {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-stroke-100);
    border-radius: 16px;
    padding: 24px;
}
.shop-checkout__summary-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Cart items in sidebar */
.shop-checkout__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
    max-height: 280px;
    overflow-y: auto;
}
.shop-checkout__items::-webkit-scrollbar {
    width: 4px;
}
.shop-checkout__items::-webkit-scrollbar-thumb {
    background: var(--color-stroke-200);
    border-radius: 2px;
}
.shop-checkout__item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.shop-checkout__item-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--color-bg-secondary-200);
}
.shop-checkout__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shop-checkout__item-qty {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-base-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-primary);
}
.shop-checkout__item-info {
    flex: 1;
    min-width: 0;
}
.shop-checkout__item-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-checkout__item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 2px;
}

/* Summary rows */
.shop-checkout__summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}
.shop-checkout__summary-row--discount {
    color: var(--color-base-primary);
}
.shop-checkout__summary-divider {
    border: none;
    border-top: 1px solid var(--color-stroke-100);
    margin: 14px 0;
}
.shop-checkout__summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Back link */
.shop-checkout__back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-base-primary);
    text-decoration: none;
    font-weight: 500;
}
.shop-checkout__back-link:hover {
    text-decoration: underline;
}

/* Mobile sticky bar */
.shop-checkout__mobile-bar {
    display: none;
    position: fixed;
    bottom: 54px;
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-stroke-100);
    padding: 12px 16px;
    z-index: 11113;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.shop-checkout__mobile-bar-label {
    font-size: 12px;
    color: var(--color-gradation-gray-300);
}
.shop-checkout__mobile-bar-total {
    font-size: 20px;
    font-weight: 700;
}
.shop-checkout__mobile-bar-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
}
@media (max-width: 960px) {
    .shop-cart-float {
        display: none !important;
    }
}

/* ===== Orders ===== */
.shop-orders__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.shop-order-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-stroke-100);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.shop-order-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
@media (max-width: 600px) {
    .shop-order-card {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}
.shop-order-card__id {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-base-primary);
}
.shop-order-card__date {
    font-size: 13px;
    color: var(--color-gradation-gray-300);
}
.shop-order-card__total {
    font-weight: 700;
    font-size: 16px;
}

/* ===== Status Badges ===== */
.shop-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.shop-status--new {
    background: var(--color-info-bg-notice);
    color: var(--color-special-attention-text);
}
.shop-status--processing {
    background: #e3f2fd;
    color: #1565c0;
}
.shop-status--paid {
    background: var(--color-info-bg-success);
    color: var(--color-info-fill-success);
}
.shop-status--shipped {
    background: #e8eaf6;
    color: #283593;
}
.shop-status--delivered {
    background: var(--color-success-background-100);
    color: var(--color-info-fill-success);
}
.shop-status--canceled {
    background: var(--color-info-bg-error);
    color: var(--color-info-fill-error);
}
.shop-status--awaiting {
    background: var(--color-info-bg-notice);
    color: var(--color-special-attention-text);
}

/* ===== Payment Block ===== */
.shop-payment-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--color-info-bg-notice);
    border: 1px solid var(--color-stroke-100);
    border-radius: 12px;
    margin-bottom: 20px;
}
.shop-payment-block__info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.shop-payment-block__icon {
    font-size: 32px;
    color: var(--color-special-attention-text);
}
.shop-payment-block__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}
.shop-payment-block__text {
    font-size: 13px;
    color: var(--color-gradation-gray-300);
}
.shop-payment-block__btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .shop-payment-block {
        flex-direction: column;
        text-align: center;
    }
    .shop-payment-block__info {
        flex-direction: column;
    }
    .shop-payment-block__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Order Detail ===== */
.shop-order-detail__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.shop-order-detail__section {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-stroke-100);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.shop-order-detail__section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}
.shop-order-detail__info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 600px) {
    .shop-order-detail__info-grid {
        grid-template-columns: 1fr;
    }
}
.shop-order-detail__info-item {
    font-size: 14px;
}
.shop-order-detail__info-label {
    color: var(--color-gradation-gray-300);
    margin-bottom: 2px;
}
.shop-order-detail__items {
    width: 100%;
    border-collapse: collapse;
}
.shop-order-detail__items th {
    text-align: left;
    padding: 8px 0;
    font-size: 13px;
    color: var(--color-gradation-gray-300);
    border-bottom: 1px solid var(--color-stroke-200);
    font-weight: 500;
}
.shop-order-detail__items td {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-stroke-100);
    font-size: 14px;
}
.shop-order-detail__items td:last-child,
.shop-order-detail__items th:last-child {
    text-align: right;
}

/* ===== Category Page ===== */
.shop-category-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}
@media (max-width: 900px) {
    .shop-category-layout {
        grid-template-columns: 1fr;
    }
}
.shop-filter {
    padding: 20px;
    background: var(--color-bg-secondary-100);
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 80px;
}
@media (max-width: 900px) {
    .shop-filter {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 100;
        border-radius: 0;
        overflow-y: auto;
        padding: 20px;
    }
    .shop-filter.is-open {
        display: block;
    }
}
.shop-filter__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shop-filter__close {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-primary);
}
@media (max-width: 900px) {
    .shop-filter__close { display: block; }
}
.shop-filter__group {
    margin-bottom: 16px;
}
.shop-filter__group-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.shop-filter__colors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.shop-filter__color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
    display: block;
}
.shop-filter__color:hover,
.shop-filter__color.active {
    border-color: var(--color-base-primary);
}
.shop-filter__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    cursor: pointer;
}
.shop-filter__checkbox input {
    accent-color: var(--color-base-primary);
}
.shop-filter-btn {
    display: none;
}
@media (max-width: 900px) {
    .shop-filter-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 16px;
    }
}
.shop-sorting {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}
.shop-sorting select {
    padding: 6px 12px;
    border: 1px solid var(--color-stroke-200);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
.shop-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.shop-subcategories a {
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--color-bg-secondary-200);
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.shop-subcategories a:hover {
    background: var(--color-base-secondary);
    color: var(--color-base-primary);
}

/* ===== Pagination ===== */
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
}
.shop-pagination a,
.shop-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: background 0.2s;
}
.shop-pagination a:hover {
    background: var(--color-bg-secondary-200);
}
.shop-pagination .active span {
    background: var(--color-base-primary);
    color: #fff;
}

/* ===== Flash Messages ===== */
.shop-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.shop-alert--success {
    background: var(--color-info-bg-success);
    color: var(--color-info-fill-success);
}
.shop-alert--error {
    background: var(--color-info-bg-error);
    color: var(--color-info-fill-error);
}
.shop-alert--warning {
    background: var(--color-info-bg-notice);
    color: var(--color-special-attention-text);
}

/* ===== Bulk Prices ===== */
.shop-bulk-prices {
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-stroke-100);
}
.shop-bulk-prices__title {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 12px;
    background: var(--color-bg-secondary-100);
}
.shop-bulk-prices__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 14px;
    border-top: 1px solid var(--color-stroke-100);
}

/* ===== Floating Cart Button ===== */
.shop-cart-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-base-primary);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
    text-decoration: none;
    transition: transform .2s;
}
.shop-cart-float:hover {
    transform: scale(1.1);
    color: #fff;
}
/* ===== Cart Added Popup ===== */
.shop-cart-popup__body {
    padding: 20px 24px 28px;
    text-align: center;
}
.shop-cart-popup__icon {
    font-size: 48px;
    color: var(--color-base-primary);
    display: block;
    margin-bottom: 8px;
}
.shop-cart-popup__title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
}
.shop-cart-popup .popup__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.shop-cart-popup .popup__buttons .btn {
    padding: 0 24px;
}

/* ===== Mobile Page Header Offset ===== */
@media (max-width: 767.98px) {
    .shop-page {
        padding-top: 56px; /* 44px header + 12px gap */
    }
}

/* ===== Cart Icon in Mobile Header ===== */
.shop-header-cart {
    position: relative;
    color: var(--color-text-primary);
    text-decoration: none;
}
.shop-header-cart .material-icons-outlined {
    font-size: 24px;
}
.shop-header-cart__badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--color-base-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.shop-cart-float__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--color-base-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

/* ===== Product Variants ===== */
.shop-product__variants {
    margin-top: 16px;
    margin-bottom: 8px;
}
.shop-product__variant-group {
    margin-bottom: 12px;
}
.shop-product__variant-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}
.shop-product__variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.shop-product__variant-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 40px;
    padding: 0 16px;
    border: 2px solid var(--color-stroke-200, #ddd);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.shop-product__variant-chip:hover:not(:disabled) {
    border-color: var(--color-base-primary);
    background: rgba(37, 138, 86, 0.04);
}
.shop-product__variant-chip--selected {
    border-color: var(--color-base-primary);
    background: rgba(37, 138, 86, 0.08);
    color: var(--color-base-primary);
    font-weight: 600;
}
.shop-product__variant-chip--disabled,
.shop-product__variant-chip:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: var(--color-stroke-200, #ddd);
    background: var(--color-gradation-gray-50, #f5f5f5);
}

/* Cart item variant label */
.shop-cart__item-variant {
    font-size: 13px;
    color: var(--color-gradation-gray-300, #999);
    margin-top: 2px;
}

/* Checkout item variant label */
.shop-checkout__item-variant {
    font-size: 12px;
    color: var(--color-gradation-gray-300, #999);
    margin-top: 2px;
}
