/* My Carts Page Styles */
.hissc-my-carts {
    margin-top: 2rem;
}

.hissc-my-carts .row {
    display: flex;
    flex-wrap: wrap;
}

.hissc-my-carts .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.hissc-cart-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}

.hissc-cart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hissc-cart-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #667eea;
}

.hissc-cart-card:hover::before {
    opacity: 1;
}

.hissc-cart-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hissc-cart-card .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    line-height: 1.4;
    word-break: break-word;
    display: flex;
    align-items: center;
}

.hissc-cart-card .card-title .material-icons {
    font-size: 20px;
    margin-right: 0.5rem;
    color: #667eea;
}

.hissc-cart-card .card-text {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    padding-left: 2rem;
}

.hissc-cart-card .card-text .material-icons {
    font-size: 16px;
    margin-right: 0.25rem;
}

.hissc-cart-card .card-text:last-of-type {
    margin-bottom: 1rem;
}

.hissc-cart-card .hissc-cart-note {
    margin-bottom: 1rem;
}

.hissc-cart-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hissc-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    text-decoration: none;
}

.hissc-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: currentColor;
}

.hissc-action-btn:active {
    transform: translateY(0);
}

.hissc-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.hissc-action-btn svg {
    display: block;
}

.hissc-action-view {
    color: #667eea;
}

.hissc-action-view:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.hissc-action-restore {
    color: #11998e;
}

.hissc-action-restore:hover {
    background: #11998e;
    color: #fff;
    border-color: #11998e;
}

.hissc-action-copy {
    color: #17a2b8;
}

.hissc-action-copy:hover {
    background: #17a2b8;
    color: #fff;
    border-color: #17a2b8;
}

.hissc-action-copy.hissc-copied {
    border-color: #28a745;
    background: #28a745;
    color: #fff;
}

.hissc-action-copy.hissc-copied:hover {
    background: #218838;
    border-color: #218838;
    color: #fff;
}

.hissc-action-delete {
    color: #dc3545;
}

.hissc-action-delete:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.hissc-my-carts .alert {
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.hissc-my-carts .alert i.material-icons {
    font-size: 24px;
}

@media (max-width: 768px) {
    .hissc-cart-card {
        margin-bottom: 1.5rem;
    }
    
    .hissc-cart-card .card-body {
        padding: 1.25rem;
    }
}

.hissc-wrapper {
    margin-top: 1.5rem;
}

.hissc-block {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hissc-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hissc-button-color, #667eea) 0%, var(--hissc-button-color-end, #764ba2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hissc-block:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--hissc-button-color, #667eea);
}

.hissc-block:hover::before {
    opacity: 1;
}

.hissc-block__content {
    width: 100%;
}

.hissc-block__text {
    width: 100%;
}

.hissc-block__title {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.4;
}

.hissc-block__description {
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
}

.hissc-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    width: 100%;
}

.hissc-trigger svg {
    width: 18px;
    height: 18px;
}

.hissc-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    filter: brightness(0.95);
}

.hissc-trigger:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hissc-trigger:focus,
.hissc-trigger:focus-visible {
    outline: none;
}


.hissc-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.hissc-modal.is-active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hissc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.hissc-modal__dialog {
    position: relative;
    width: min(580px, calc(100% - 2rem));
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.3);
    z-index: 1;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.hissc-modal__header {
    position: relative;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 1rem 1rem 0 0;
}

.hissc-modal__header-content {
    text-align: center;
}

.hissc-modal__icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.hissc-modal__icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.hissc-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hissc-modal__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.hissc-modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.hissc-modal__close svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.hissc-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.hissc-modal__close:focus,
.hissc-modal__close:focus-visible {
    outline: none;
}

.hissc-modal__body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.hissc-form__header {
    text-align: center;
    margin-bottom: 2rem;
}

.hissc-form__header-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.hissc-form__header-icon svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.hissc-form__header h4 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.hissc-form__header p {
    margin: 0;
    font-size: 0.9375rem;
    color: #6b7280;
}

.hissc-form__fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hissc-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hissc-form__field label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.hissc-form__field label svg {
    width: 16px;
    height: 16px;
    color: #667eea;
    flex-shrink: 0;
}

.hissc-form__input,
.hissc-form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: #111827;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.hissc-form__input:focus,
.hissc-form__textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.hissc-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.hissc-form__actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.hissc-form__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hissc-form__btn--secondary {
    background: #f3f4f6;
    color: #374151;
}

.hissc-form__btn--secondary:hover {
    background: #e5e7eb;
}

.hissc-form__btn--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.hissc-form__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.hissc-form__btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.hissc-form__btn svg {
    width: 18px;
    height: 18px;
    color: currentColor;
    flex-shrink: 0;
}

.hissc-form__btn:focus,
.hissc-form__btn:focus-visible {
    outline: none;
}

.hissc-share__channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hissc-share__channel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    overflow: hidden;
}

.hissc-share__channel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hissc-share__channel:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.hissc-share__channel:hover::before {
    opacity: 1;
}

.hissc-share__channel:active {
    transform: translateY(-2px);
}

.hissc-share__channel:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hissc-share__channel:focus,
.hissc-share__channel:focus-visible {
    outline: none;
}

.hissc-share__channel-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hissc-share__channel:hover .hissc-share__channel-icon {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hissc-share__channel-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    color: #6b7280;
}

.hissc-share__channel:hover .hissc-share__channel-icon svg {
    transform: scale(1.1);
    color: inherit;
}

.hissc-share__channel-label {
    position: relative;
    z-index: 1;
}

/* Channel-specific colors */
.hissc-share__channel--facebook:hover .hissc-share__channel-icon {
    background: #1877f2;
    color: #ffffff;
}

.hissc-share__channel--x:hover .hissc-share__channel-icon {
    background: #000000;
    color: #ffffff;
}

.hissc-share__channel--messenger:hover .hissc-share__channel-icon {
    background: #0084ff;
    color: #ffffff;
}

.hissc-share__channel--whatsapp:hover .hissc-share__channel-icon {
    background: #25d366;
    color: #ffffff;
}

.hissc-share__channel--linkedin:hover .hissc-share__channel-icon {
    background: #0077b5;
    color: #ffffff;
}

.hissc-share__channel--email:hover .hissc-share__channel-icon {
    background: #ea4335;
    color: #ffffff;
}

.hissc-share__divider {
    position: relative;
    margin: 2rem 0;
    text-align: center;
}

.hissc-share__divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.hissc-share__divider span {
    position: relative;
    padding: 0 1rem;
    background: #ffffff;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
}

.hissc-save-cart-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.hissc-save-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.hissc-save-cart-btn:active {
    transform: translateY(0);
}

.hissc-save-cart-btn:focus,
.hissc-save-cart-btn:focus-visible {
    outline: none;
}

.hissc-save-cart-btn svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.hissc-share__result {
    margin-top: 1.5rem;
    margin-bottom: 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.hissc-share__result .input-group {
    display: flex;
}

.hissc-share__result .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #f9fafb;
    font-size: 0.875rem;
}

.hissc-share__result .input-group-append {
    display: flex;
}

.hissc-share__result .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: none;
}

.hissc-share__result .btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hissc-copy-url-btn {
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.hissc-copy-url-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

.hissc-copy-url-btn:active {
    transform: translateY(0);
}

.hissc-copy-url-btn.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.hissc-copy-url-btn.btn-success:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.hissc-share__channels-label {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.hissc-form__status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-align: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.hissc-form__status:empty {
    display: none;
}

.hissc-form__status.text-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.hissc-form__status:not(.text-danger) {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

body.hissc-scroll-lock {
    overflow: hidden;
}

@media (max-width: 600px) {
    .hissc-modal__dialog {
        width: calc(100% - 1rem);
        border-radius: 0.75rem;
    }

    .hissc-modal__header {
        padding: 1.5rem 1.5rem 1.25rem;
    }

    .hissc-modal__icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .hissc-modal__icon-wrapper i {
        font-size: 1.75rem;
    }

    .hissc-modal__title {
        font-size: 1.5rem;
    }

    .hissc-modal__body {
        padding: 1.5rem;
    }

    .hissc-share__channels {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .hissc-share__channel {
        padding: 1.25rem 0.75rem;
    }

    .hissc-share__channel-icon {
        width: 40px;
        height: 40px;
    }

    .hissc-share__channel-icon i {
        font-size: 1.25rem;
    }

    .hissc-share__channel-label {
        font-size: 0.8125rem;
    }

    .hissc-form__actions {
        flex-direction: column;
    }

    .hissc-form__btn {
        width: 100%;
    }
}

/* Preview Page Styles */
.hissc-preview-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
    padding: 1rem 0 2rem;
}

.hissc-preview-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Section */
.hissc-preview-header {
    margin-bottom: 2rem;
}

.hissc-preview-header-content {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.hissc-preview-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.hissc-preview-note {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Warning Notice */
.hissc-preview-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.hissc-warning-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.hissc-warning-content .material-icons {
    color: #f59e0b;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.hissc-warning-text {
    flex: 1;
}

.hissc-warning-text strong {
    display: block;
    color: #92400e;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hissc-warning-text p {
    margin: 0;
    color: #78350f;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Products Section */
.hissc-preview-products-section {
    margin-bottom: 2.5rem;
}

.hissc-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
}

.hissc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hissc-product-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hissc-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hissc-product-card.hissc-product-out-of-stock {
    opacity: 0.6;
    filter: grayscale(0.8);
}

.hissc-product-card.hissc-product-out-of-stock:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hissc-product-card.hissc-product-out-of-stock .hissc-product-card-image img {
    opacity: 0.7;
}

.hissc-product-card.hissc-product-out-of-stock .hissc-product-name a {
    color: #6b7280;
}

.hissc-product-card.hissc-product-out-of-stock .hissc-product-price {
    color: #9ca3af;
}

.hissc-product-card-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: #f9fafb;
    overflow: hidden;
}

.hissc-product-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hissc-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hissc-product-card:hover .hissc-product-card-image img {
    transform: scale(1.05);
}

.hissc-product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.hissc-product-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.hissc-product-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hissc-product-name a:hover {
    color: #007bff;
}

.hissc-product-attributes {
    margin: 0;
}

.hissc-product-attributes-label {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.hissc-product-reference {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.hissc-product-reference-label {
    font-weight: 600;
}

.hissc-product-reference-value {
    font-family: monospace;
    color: #4b5563;
}

.hissc-product-availability {
    margin-top: 0.5rem;
}

.hissc-availability-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.hissc-availability-badge.hissc-availability-available {
    background: #d1fae5;
    color: #065f46;
}

.hissc-availability-badge.hissc-availability-low-stock {
    background: #fef3c7;
    color: #92400e;
}

.hissc-availability-badge.hissc-availability-available-order {
    background: #dbeafe;
    color: #1e40af;
}

.hissc-availability-badge.hissc-availability-out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

.hissc-product-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.hissc-product-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hissc-quantity-badge {
    background: #007bff;
    color: #fff;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    min-width: 2rem;
    text-align: center;
}

.hissc-quantity-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.hissc-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Summary Card */
.hissc-preview-summary-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.hissc-summary-header {
    padding: 1.5rem;
    color: #fff;
}

.hissc-summary-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.hissc-summary-body {
    padding: 1.5rem;
}

.hissc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.hissc-summary-label {
    color: #6b7280;
    font-size: 1rem;
}

.hissc-summary-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
}

.hissc-summary-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.hissc-summary-total {
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.hissc-summary-total .hissc-summary-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.hissc-summary-total .hissc-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.hissc-summary-note {
    margin-top: 1rem;
    padding: 0.875rem;
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
    border-radius: 0.375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #1e40af;
    line-height: 1.5;
}

.hissc-summary-note .material-icons {
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Actions Section */
.hissc-preview-actions {
    text-align: center;
    padding: 2rem 0;
}

.hissc-load-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hissc-load-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(0.9);
    color: #fff;
    text-decoration: none;
}

.hissc-load-cart-button:active {
    transform: translateY(0);
}

.hissc-load-cart-button:focus,
.hissc-load-cart-button:focus-visible {
    outline: none;
}

.hissc-button-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.hissc-load-cart-button:hover .hissc-button-icon {
    transform: translateX(4px);
}

.hissc-preview-help-text {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.9375rem;
}

/* Empty Cart */
.hissc-empty-cart {
    background: #fff;
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.hissc-empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.hissc-empty-cart h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}

.hissc-empty-cart p {
    color: #6b7280;
    margin: 0;
}

.hissc-error-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem 1rem;
}

.hissc-error-container .alert {
    padding: 2rem;
    margin-bottom: 2rem;
}

.hissc-error-container .alert h2 {
    margin-bottom: 1rem;
}

.hissc-error-actions {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hissc-preview-wrapper {
        padding: 1rem 0 2rem;
    }

    .hissc-preview-header-content {
        padding: 1.25rem;
    }

    .hissc-preview-title {
        font-size: 1.25rem;
    }

    .hissc-preview-note {
        font-size: 0.875rem;
    }

    .hissc-products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hissc-product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hissc-load-cart-button {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .hissc-summary-total .hissc-summary-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hissc-preview-container {
        padding: 0 0.75rem;
    }

    .hissc-preview-header-content {
        padding: 1.25rem;
    }

    .hissc-preview-title {
        font-size: 1.25rem;
    }

    .hissc-section-title {
        font-size: 1.25rem;
    }
}

/* Delete Confirmation Modal */
.hissc-delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.hissc-delete-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hissc-delete-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.hissc-delete-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.hissc-delete-modal.is-active .hissc-delete-modal__dialog {
    transform: scale(1);
}

.hissc-delete-modal__header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.hissc-delete-modal__icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: #fee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
}

.hissc-delete-modal__icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.hissc-delete-modal__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem;
}

.hissc-delete-modal__subtitle {
    font-size: 0.9375rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.hissc-delete-modal__body {
    padding: 1.5rem 2rem 2rem;
}

.hissc-delete-modal__actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.hissc-delete-modal__btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.hissc-delete-modal__btn--cancel {
    background: #f8f9fa;
    color: #6c757d;
}

.hissc-delete-modal__btn--cancel:hover {
    background: #e9ecef;
    color: #495057;
}

.hissc-delete-modal__btn--confirm {
    background: #dc3545;
    color: #fff;
}

.hissc-delete-modal__btn--confirm:hover {
    background: #c82333;
    color: #fff;
}

.hissc-delete-modal__btn:focus,
.hissc-delete-modal__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

@media (max-width: 480px) {
    .hissc-delete-modal__dialog {
        width: 95%;
        margin: 1rem;
    }

    .hissc-delete-modal__header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .hissc-delete-modal__body {
        padding: 1rem 1.5rem 1.5rem;
    }

    .hissc-delete-modal__title {
        font-size: 1.25rem;
    }

    .hissc-delete-modal__actions {
        flex-direction: column-reverse;
    }

    .hissc-delete-modal__btn {
        width: 100%;
    }
}

