/**
 * Modern Cart Styles with Animations
 * Includes Transform Box sections and Quick Cart popup
 *
 * @package Transtoyou
 */

/* ========================================
   CART PAGE STYLES
   ======================================== */

.tty-cart-modern {
    padding: 30px 0 80px 0;
    min-height: 60vh;
    background: var(--tty-bg-primary);
}

.tty-cart-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cart Header */
.tty-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.5s ease;
}

.tty-cart-items-list .tty-max-order-notice {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #005f5f;;
  background-color: #d9e6e4;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 0;
}

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

.tty-cart-title {
 font-weight: 700;
  color: var(--tty-header-primary);
  font-size: clamp(40px, 6vw, 56px);
  margin: 0px 0px 5px 0px;
}

.tty-cart-count-badge {
    background: linear-gradient(135deg, var(--tty-primary) 0%, var(--tty-primary-light) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tty-cart-header-actions {
    display: flex;
    gap: 12px;
}

.tty-cart-clear-btn,
.tty-cart-save-btn {
    padding: 10px 20px;
    border: 2px solid var(--tty-border-light);
    background: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tty-cart-clear-btn:hover {
    background: #ff4444;
    border-color: #ff4444;
    color: white;
    transform: translateY(-2px);
}

.tty-cart-save-btn:hover {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
    color: white;
    transform: translateY(-2px);
}

/* Cart Layout */
.tty-cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Cart Sections */
.tty-cart-section {
    background: white;
    border-radius: 30px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.tty-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tty-section-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
    color: var(--tty-header-primary);
    margin: 0;
}

.tty-section-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tty-section-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--tty-primary);
}

.tty-section-count {
    background: var(--tty-bg-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tty-text-secondary);
    white-space: nowrap;
}

/* Transform Box Section */
.tty-transform-box-products {
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.03) 0%, rgba(0, 95, 95, 0.06) 100%);
    border: 2px solid var(--tty-primary);
    position: relative;
    overflow: hidden;
}

.tty-transform-box-products::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 95, 95, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tty-transform-header h2 {
    color: var(--tty-primary);
}

.tty-transform-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tty-create-transform-box-btn {
    background: linear-gradient(135deg, var(--tty-primary) 0%, var(--tty-primary-light) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tty-create-transform-box-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.tty-create-transform-box-btn:hover::before {
    left: 100%;
}

.tty-create-transform-box-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 95, 95, 0.3);
}

.tty-transform-box-notice {
    background: rgba(0, 95, 95, 0.08);
    border-left: 4px solid var(--tty-primary);
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.tty-transform-box-notice p {
    margin: 0;
    color: var(--tty-primary);
    font-size: 14px;
    font-weight: 500;
}

/* Cart Items */
.tty-cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tty-cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px;
    background: var(--tty-bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

/* Transform Box Items */
.tty-transform-item {
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.05) 0%, transparent 100%);
    border: 1px solid rgba(0, 95, 95, 0.1);
}

.tty-transform-item:hover {
    border-color: var(--tty-primary);
}

/* Item Image */
.tty-cart-item-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

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

.tty-transform-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--tty-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.tty-transform-badge svg {
    width: 14px;
    height: 14px;
    fill: white;
}

/* Item Info */
.tty-cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tty-cart-item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.tty-cart-item-title a {
    color: var(--tty-header-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.tty-cart-item-title a:hover {
    color: var(--tty-secondary);
}

.tty-cart-header-wrapper .tty-heartbeat-container {
  align-items: start;
  justify-content: start;
  margin: 0px;
}

.tty-cart-header-wrapper {
  margin-bottom: 18px;
}

.tty-cart-item-dosage {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.tty-cart-item-dosage .tty-dosage-badge {
    background: var(--tty-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tty-package-info {
    color: var(--tty-text-secondary);
    font-size: 14px;
}

/* Custom variant description in cart */
.tty-cart-item-dosage .tty-custom-variant-desc {
    white-space: normal;
    line-height: 1.3;
    max-width: 100%;
}


/* Medical Indicators */
.tty-cart-medical-indicators {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.tty-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.tty-indicator i {
  font-size: 15px;
}

.tty-indicator svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.tty-quick-medical-badges .tty-indicator:hover {
  transform: none;
  box-shadow: none;
}

.tty-indicator.prescription {
    background: linear-gradient(135deg, #ee9118, #f1a968);
    color: white;
}

.tty-indicator.transgender {
  background: linear-gradient(135deg, #a270de, #b08fd8);
  color: white;
}

.tty-indicator.addictive {
  background: linear-gradient(135deg, #985004, #b86f1f);
  color: white;
}

.tty-indicator.video {
    background: linear-gradient(135deg, #5944be, #7059d9);
    color: white;
}

.tty-indicator.id {
    background: linear-gradient(135deg, #0077B6, #0099e0);
    color: white;
}

.tty-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Tooltip */
.tty-indicator[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tty-text-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    z-index: 10;
}

.tty-indicator:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Item Actions */
.tty-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Quantity Selector */
.tty-quantity-selector {
 display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 4px;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  width: fit-content;
}

.tty-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--tty-bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--tty-primary);
}

.tty-qty-btn:hover {
    background: var(--tty-primary);
    color: white;
    transform: scale(1.1);
}

.tty-qty-btn:active {
    transform: scale(0.95);
}

.tty-cart-item-actions .tty-quantity-input {
 width: 40px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--tty-text-primary);
  -moz-appearance: textfield;
  padding: 0px !important;
  box-shadow: none;
}

.tty-quantity-input::-webkit-outer-spin-button,
.tty-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Item Price */
.tty-cart-item-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--tty-primary);
    min-width: 100px;
    text-align: right;
    color: #515151;
}

.tty-cart-item-price {
  min-width: 100px;
}

/* Remove Button */
.tty-cart-item-remove {
    width: 40px;
    height: 40px;
    border: 2px solid var(--tty-border-light);
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #dc3545;
}

.tty-cart-item-remove:hover {
  transform: translateY(-1px);
  box-shadow: var(--tty-shadow-sm);
  border-color: var(--tty-primary);
}

/* Item States */
.tty-cart-item.is-updating {
    opacity: 0.6;
    pointer-events: none;
}

.tty-cart-item.updated {
    animation: highlight 0.5s ease;
}

@keyframes highlight {
    0%, 100% { background: var(--tty-bg-secondary); }
    50% { background: rgba(0, 95, 95, 0.1); }
}

.tty-cart-item.removing {
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.tty-cart-item.removed {
    animation: slideOutRight 0.5s ease;
    opacity: 0;
}

@keyframes slideOutRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Cart Sidebar */
.tty-cart-sidebar {
    position: sticky;
    top: 100px;
}

.tty-cart-summary-card {
    background: white;
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tty-cart-summary-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--tty-header-primary);
}

/* Medical Requirements */
.tty-medical-requirements {
    background: linear-gradient(135deg, rgba(229, 146, 76, 0.05) 0%, rgba(229, 146, 76, 0.08) 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.tty-medical-requirements h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--tty-secondary);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tty-requirements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tty-requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tty-secondary);
}

.tty-requirement-item i {
  font-size: 20px;
  margin-right: 4px;
}

.tty-requirement-item svg {
    width: 20px;
    height: 20px;
}

.tty-requirement-item[data-modal] {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tty-requirement-item[data-modal]:hover {
    background-color: rgba(var(--tty-secondary-rgb, 0, 0, 0), 0.05);
}

.tty-requirement-item[data-modal] svg {
    margin-left: auto;
    opacity: 0.5;
    flex-shrink: 0;
}

.tty-requirement-item[data-modal]:hover svg {
    opacity: 1;
}

/* Price Breakdown */
.tty-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 20px;
}

.tty-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.tty-price-row span:first-child {
    color: #515151;
    font-size: 16px;
    font-weight: 500;
}

.tty-price-row.tty-total span {
  font-size: 18px;
  font-weight: 700;
  color: var(--tty-header-primary);
}

.tty-price-value {
    font-weight: 600;
    color: var(--tty-text-primary);
}

.tty-price-row.tty-discount .tty-price-value {
    color: #28a745;
}

.tty-price-row.tty-total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    border-top: 2px solid var(--tty-border-light);
}

.tty-price-row.tty-total .tty-price-value {
    color: var(--tty-primary);
    font-size: 18px;
}

/* Checkout Actions */
.tty-checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tty-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--tty-primary) 0%, var(--tty-primary-light) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tty-checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.tty-checkout-btn:hover::before {
    left: 100%;
}

.tty-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 95, 95, 0.3);
    color: white;
}

.tty-checkout-arrow {
    transition: transform 0.3s ease;
}

.tty-checkout-btn:hover .tty-checkout-arrow {
    transform: translateX(4px);
}

/* Coupon Form */
.tty-coupon-form {
    display: flex;
    gap: 8px;
}

.tty-coupon-form input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--tty-border-light);
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tty-coupon-form input:focus {
    outline: none;
    border-color: var(--tty-primary);
    box-shadow: 0 0 0 3px rgba(0, 95, 95, 0.1);
}

.tty-apply-coupon {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--tty-primary);
    color: var(--tty-primary);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tty-apply-coupon:hover {
    background: var(--tty-primary);
    color: white;
    transform: translateY(-2px);
}

/* Empty Cart State */
.tty-cart-empty-state {
    text-align: center;
    padding: 80px 20px;
    animation: fadeIn 0.5s ease;
}

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

.tty-empty-animation {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
}

.tty-empty-cart-icon {
    width: 100%;
    height: 100%;
    border: 3px solid var(--tty-border-light);
    border-radius: 50%;
    position: relative;
    animation: emptyPulse 2s infinite;
}

@keyframes emptyPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.tty-empty-cart-icon .fa-duotone.fa-cart-shopping {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  opacity: 0.3;
}

.tty-cart-empty-state h2 {
    font-size: 28px;
    color: var(--tty-header-primary);
    margin-bottom: 12px;
}

.tty-cart-empty-state p {
    color: var(--tty-text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
}

.tty-button-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--tty-primary) 0%, var(--tty-primary-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tty-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 95, 95, 0.3);
}

/* ========================================
   QUICK CART POPUP STYLES
   ======================================== */

.tty-quick-cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    animation: modalIn 0.3s ease;
}

.tty-quick-cart-modal.is-open {
    display: block;
}

.tty-quick-cart-modal.is-visible .tty-quick-cart-panel {
    transform: translateX(0);
    opacity: 1;
}

.tty-quick-cart-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tty-quick-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    height: 100%;
    background: white;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header */
.tty-quick-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.tty-quick-cart-title {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    font-weight: 600;
    color: var(--tty-header-primary);
    margin: 0;
}

.tty-cart-items-count {
  color: var(--tty-secondary-color);
  font-size: 14px;
  line-height: 18px;
}

.tty-quick-cart-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tty-animation-normal) ease;
  color: var(--tty-text-secondary, #666);
  font-size: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  border: none !important;
}

.tty-quick-cart-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

/* Content */
.tty-quick-cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Cart Items Container */
.tty-quick-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tty-quick-cart-items::-webkit-scrollbar {
    width: 6px;
}

.tty-quick-cart-items::-webkit-scrollbar-track {
    background: var(--tty-bg-secondary);
    border-radius: 3px;
}

.tty-quick-cart-items::-webkit-scrollbar-thumb {
    background: var(--tty-primary);
    border-radius: 3px;
}

/* Quick Cart Item */
.tty-quick-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
    padding: 12px;
    background: var(--tty-bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tty-quick-cart-item.transform-eligible {
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.05) 0%, rgba(0, 95, 95, 0.08) 100%);
    border: 1px solid rgba(0, 95, 95, 0.1);
}

/* Quick Item Image */
.tty-quick-item-image {
    position: relative;
    border-radius: 8px;
}

.tty-quick-item-image .attachment-thumbnail.size-thumbnail {
  width: 75px;
  height: 75px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.tty-transform-mini-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--tty-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tty-transform-mini-badge svg {
    width: 12px;
    height: 12px;
    fill: white;
}

/* Quick Item Details */
.tty-quick-item-details h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--tty-header-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 20px;
}

.tty-quick-medical-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

/* Quick Cart Dosage Info */
.tty-quick-item-dosage {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.tty-quick-item-dosage .tty-dosage-badge {
    background: var(--tty-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.tty-quick-item-dosage .tty-package-info {
    color: var(--tty-text-secondary);
    font-size: 12px;
}

/* Custom variant description in popup */
.tty-quick-item-dosage .tty-custom-variant-desc {
    white-space: normal;
    line-height: 1.3;
}

.tty-mini-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.tty-mini-badge.rx {
    background: linear-gradient(135deg, #ee9118, #f1a968);
    color: white;
}

.tty-mini-badge.video {
    background: linear-gradient(135deg, #5944be, #7059d9);
    color: white;
}

.tty-quick-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tty-quick-item-details h4 a {
  color: var(--tty-text-primary);
  font-weight: 600;
  font-size: 15px;
}

.tty-quick-price {
  font-size: 13px !important;
  font-weight: 500;
  color: #515151;
}

.tty-quick-qty {
    color: var(--tty-text-secondary);
    font-size: 14px;
}

/* Quick Item Actions */
.tty-quick-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.tty-max-order-notice {
  font-size: 11px;
  color: #3B82F6;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tty-quick-qty-selector {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tty-quick-qty-btn {
 font-size: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--tty-primary);
  background: var(--tty-bg-primary);
}

.tty-quick-qty-btn:hover {
    background: var(--tty-primary);
    color: white;
}

.tty-quick-qty-display {
    padding: 0 12px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.tty-quick-remove i {
  color: #dc3545;
}

.tty-quick-remove {
 background: white;
  border: 2px solid white;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);;
}

.tty-quick-remove:hover {
background: white;
  border: 2px solid var(--tty-primary);
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Empty State */
.tty-quick-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    height: 100%;
}

.tty-empty-icon {
    margin-bottom: 20px;
    opacity: 0.3;
}

.tty-quick-cart-empty p {
    color: var(--tty-text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
}

.tty-continue-shopping {
    padding: 12px 24px;
    background: var(--tty-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tty-continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 95, 95, 0.3);
}

/* Footer */
.tty-quick-cart-footer {
    padding: 20px;
    background: var(--tty-bg-secondary);
    border-top: 2px solid var(--tty-border-light);
}

.tty-quick-medical-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(229, 146, 76, 0.1) 0%, rgba(229, 146, 76, 0.15) 100%);
    border-radius: 8px;
    margin-bottom: 16px;
}

.tty-notice-icon {
    color: var(--tty-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.tty-quick-medical-notice span:last-child {
    color: var(--tty-secondary);
    font-size: 13px;
    font-weight: 500;
}

.tty-quick-cart-subtotal {
    display: none;
}

.tty-quick-cart-subtotal span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-text-secondary);
}

.tty-subtotal-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--tty-primary);
}

.tty-quick-cart-actions {
    display: flex;
    gap: 12px;
}

.tty-view-cart-btn {
    flex: 1;
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--tty-primary);
    color: var(--tty-primary);
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tty-view-cart-btn:hover {
    background: var(--tty-primary);
    color: white;
    transform: translateY(-2px);
}

.tty-checkout-btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--tty-primary) 0%, var(--tty-primary-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.tty-checkout-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 95, 95, 0.3);
    color: white;
}

.tty-checkout-btn-primary svg {
    transition: transform 0.3s ease;
}

.tty-checkout-btn-primary:hover svg {
    transform: translateX(4px);
}

/* Cart Added Animation */
.tty-quick-cart-modal.item-added .tty-quick-cart-panel {
    animation: addedBounce 0.5s ease;
}

@keyframes addedBounce {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(5px); }
}

/* Notification Styles */
.tty-cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tty-cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.tty-cart-notification::before {
    content: '';
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 12px 0 0 12px;
}

.tty-cart-notification.success::before {
    background: #28a745;
}

.tty-cart-notification.error::before {
    background: #ff4444;
}

.tty-cart-notification.info::before {
    background: var(--tty-primary);
}

.tty-cart-notification.warning::before {
    background: var(--tty-secondary);
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .tty-cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    element {
}
    .tty-cart-items-list .tty-max-order-notice {
        width: 100%;
        background: none;
        padding: 0px;
}
    
    .tty-cart-title {
        margin-top: 0px;
        white-space: nowrap;
    }
    
    .tty-quick-medical-notice {
        display: none;
    }
    
    .tty-cart-header-actions {
        display: none !important;
    }
    
    .tty-cart-sidebar {
        position: static;
    }
    
    .tty-cart-items-list {
        margin-top: 10px;
    }
    
    .tty-cart-section.tty-regular-products .tty-section-header {
        display: none;
    }
    
    .tty-cart-item-info .tty-cart-item-title {
        text-align: left;
    }
    
    .tty-cart-header-wrapper .tty-heartbeat-container {
        margin: 0px;
    }
    
    .tty-cart-section.tty-transform-box-products .tty-section-header {
        flex-direction: column;
        gap: 6px;
    }
    
    .tty-cart-section.tty-transform-box-products {
         padding: 20px;
        border-radius: 12px;
    }
    
    .tty-cart-section {
        background: transparent;
        border-radius: 0px;
        padding: 0px;
        margin-bottom: 24px;
        box-shadow: none;
    }
    
    .tty-cart-header {
        gap: 16px;
        align-items: flex-start;
    }
    
    .tty-cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .tty-cart-item-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid var(--tty-border-light);
    }
    
    .tty-cart-item-actions {
        gap: 0px;
        flex-wrap: wrap;
    }
    
    .tty-cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    /* Quick Cart Mobile - Full Screen */
    .tty-quick-cart-panel {
        width: 100%;
        border-radius: 0px;
        top: auto;
        bottom: 0;
        height: 100%;
        transition: none;
        transform:none;
    }
    
    .tty-cart-summary-card {
        padding: 15px;
    }
    
    .tty-cart-modern {
        padding: 30px 0 80px 0;
    }
    
    .tty-quick-cart-header {
        padding: 15px 20px;
    }
    
    .tty-quick-cart-close {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 95, 95, 0.08);
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.15s ease;
        color: var(--tty-primary);
    }
    
    .tty-quick-cart-modal.is-visible .tty-quick-cart-panel {
        transform: translateY(0);
    }
    
}

@media (max-width: 480px) {
    
    .tty-create-transform-box-btn {
        width: 100%;
    }
    
    .tty-cart-item-title {
        font-size: 16px;
    }
    
    .tty-quantity-selector {
        scale: 0.9;
    }
}

/* ========================================
   DARK THEME SUPPORT
   ======================================== */

[data-theme="dark"] .tty-cart-modern {
    background: var(--tty-bg-primary);
}

[data-theme="dark"] .tty-cart-section,
[data-theme="dark"] .tty-cart-summary-card {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tty-cart-item {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .tty-cart-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .tty-quantity-selector {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-qty-btn {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tty-quick-cart-panel {
    background: var(--tty-bg-primary);
}

[data-theme="dark"] .tty-quick-cart-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 95, 95, 0.08) 100%);
}

[data-theme="dark"] .tty-quick-cart-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tty-quick-cart-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-quick-cart-footer {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .tty-cart-notification {
    background: var(--tty-bg-primary);
    color: var(--tty-text-light);
}

/* Transform Box Glow Effect */
.tty-transform-items .tty-cart-item.transforming {
    animation: transformGlow 0.5s ease;
}

@keyframes transformGlow {
    0% {
        box-shadow: 0 0 0 rgba(0, 95, 95, 0);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 95, 95, 0.5);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 rgba(0, 95, 95, 0);
        transform: scale(1);
    }
}

/* Body Lock when modal open */
body.tty-cart-modal-open {
    overflow: hidden;
}