.giftbox-wrapper {
    min-height: 100vh;
    padding: 0;
    margin-top: 50px;
  }
  .giftbox-wrapper .giftbox-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  .giftbox-wrapper .main-card {
    background: white;
    border-radius: 20px; /*box-shadow:0 10px 40px rgba(0,0,0,.08);*/
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  .giftbox-wrapper .header-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background: #fff;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .giftbox-wrapper .header-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(
      circle,
      rgba(16, 185, 129, 0.1) 0%,
      transparent 70%
    );
    top: -250px;
    right: -250px;
    animation: pulse 4s ease-in-out infinite;
  }
  .giftbox-wrapper .header-section::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(
      circle,
      rgba(16, 185, 129, 0.05) 0%,
      transparent 70%
    );
    bottom: -150px;
    left: -150px;
    animation: pulse 4s ease-in-out infinite reverse;
  }
  @keyframes pulse {
    0%,
    100% {
      transform: scale(1);
      opacity: 0.5;
    }
    50% {
      transform: scale(1.1);
      opacity: 0.8;
    }
  }
  .giftbox-wrapper .header-section h1 {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .giftbox-wrapper .header-section p {
    position: relative;
    z-index: 1;
    opacity: 0.9;
    font-size: 1.1rem;
  }
  .giftbox-wrapper .main-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    min-height: 600px;
  }
  .giftbox-wrapper .products-section {
    padding: 1.5rem;
    background: #fafbfc;
    border-right: 1px solid #e5e7eb;
  }
  .giftbox-wrapper .section-header-products {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }
  .giftbox-wrapper .section-header-products h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
  }
  .giftbox-wrapper .products-count {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
  }
  .giftbox-wrapper .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 0.5rem;
    padding-top: 3px;
  }
  .giftbox-wrapper .products-grid::-webkit-scrollbar {
    width: 6px;
  }
  .giftbox-wrapper .products-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
  }
  .giftbox-wrapper .products-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }
  .giftbox-wrapper .products-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
  .giftbox-wrapper .product-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.75rem;
    gap: 1rem;
    position: relative;
    overflow: hidden;
  }
  .giftbox-wrapper .product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      135deg,
      transparent 0%,
      rgba(16, 185, 129, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .giftbox-wrapper .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
  }
  .giftbox-wrapper .product-card:hover::before {
    opacity: 1;
  }
  .giftbox-wrapper .product-image-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
  }
  .giftbox-wrapper .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  .giftbox-wrapper .product-card:hover .product-image {
    transform: scale(1.1);
  }
  .giftbox-wrapper .out-of-stock-badge {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 20%);
    display: flex
;
    align-items: center;
    justify-content: center;
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    font-size: .6rem;
    backdrop-filter: blur(2px);
    text-shadow: 1px 1px 5px #726f6f;
    letter-spacing: 1px;
  }
  .giftbox-wrapper .product-info {
    flex: 1;
    min-width: 0;
  }
  .giftbox-wrapper .product-name {
    font-size:1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
  }
  .giftbox-wrapper .product-price {
    font-size: .8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
  }
  .giftbox-wrapper .btn-add-product {
    background: var(--primary-color);
    color: white;
    border: none;
    text-transform: uppercase;
    padding: 0.2rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
  }
  .giftbox-wrapper .btn-add-product::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
  }
  .giftbox-wrapper .btn-add-product:hover:not(:disabled)::after {
    transform: translateX(100%);
  }
  .giftbox-wrapper .btn-add-product:hover:not(:disabled) {
    filter: saturate(2);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  }
  .giftbox-wrapper .btn-add-product:active:not(:disabled) {
    transform: scale(0.98);
  }
  .giftbox-wrapper .btn-add-product:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
  }
  .giftbox-wrapper .btn-add-product.added {
    background: #059669;
  }
  .giftbox-wrapper .sidebar {
    background: white;
    display: flex;
    flex-direction: column;
  }
  .giftbox-wrapper .gift-box-section {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fcfcfd;
  }
  .giftbox-wrapper .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
  .giftbox-wrapper .section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    margin: 0;
  }
  .giftbox-wrapper .progress-info {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
  }
  .giftbox-wrapper .reset-button {
    background: #fee2e2;
    border: none;
    color: #dc2626;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .giftbox-wrapper .reset-button:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.05);
  }
  .giftbox-wrapper .progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
  }
  .giftbox-wrapper .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #62ff99 0%, #059669 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
  }
  .giftbox-wrapper .progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: shimmer 2s infinite;
  }
  @keyframes shimmer {
    0% {
      transform: translateX(-30px);
    }
    100% {
      transform: translateX(30px);
    }
  }
  .giftbox-wrapper .gift-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  .giftbox-wrapper .gift-slot {
    aspect-ratio: 1;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    background: #f8fafc;
    cursor: pointer;
    overflow: hidden;
  }
  .giftbox-wrapper .gift-slot:not(.filled) {
    pointer-events: none;
  }
  .giftbox-wrapper .gift-slot:hover:not(.filled) {
    border-color: var(--primary-color);
    background: #f0fdf4;
    transform: scale(1.05);
  }
  .giftbox-wrapper .gift-slot.filled {
    border: 2px solid var(--primary-color);
    background: white;
    cursor: default;
    animation: slotFill 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes slotFill {
    0% {
      transform: scale(0) rotate(-180deg);
      opacity: 0;
    }
    50% {
      transform: scale(1.15) rotate(10deg);
    }
    100% {
      transform: scale(1) rotate(0deg);
      opacity: 1;
    }
  }
  .giftbox-wrapper .slot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 3px;
    border-radius: 8px;
  }
  .giftbox-wrapper .slot-remove {
    position: absolute;
    top: -3px;
    right: -3px;
    padding: 2px;
    background: #ef4444;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  .giftbox-wrapper .gift-slot.filled:hover .slot-remove {
    opacity: 1;
    transform: scale(1);
  }
  .giftbox-wrapper .slot-remove:hover {
    background: #dc2626;
    transform: scale(1.2) rotate(90deg);
  }
  .giftbox-wrapper .price-details-section {
    padding: 1.5rem;
    background: #fafbfc;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .giftbox-wrapper .box-base-price {
    display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .5rem .1rem;
        border-radius: 10px;
        margin-bottom: 1rem;
  }
  .giftbox-wrapper .box-base-price span:first-child {
    color: #0369a1;
    font-weight: 500;
  }
  .giftbox-wrapper .box-base-price span:last-child {
    color: #0369a1;
    font-weight: 700;
    font-size: 1.1rem;
  }
  .giftbox-wrapper .products-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    max-height: 250px;
    padding-right: 0.5rem;
  }
  .giftbox-wrapper .products-list::-webkit-scrollbar {
    width: 4px;
  }
  .giftbox-wrapper .products-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
  }
  .giftbox-wrapper .products-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
  }
  .giftbox-wrapper .product-group {
    position:relative;
    background: white;
    border-radius: 10px;
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease;
  }
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  .giftbox-wrapper .product-group:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
  }
  .giftbox-wrapper .product-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .giftbox-wrapper .product-group-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
  }
  .giftbox-wrapper .product-group-info {
    flex: 1;
    min-width: 0;
  }
  .giftbox-wrapper .product-group-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .giftbox-wrapper .product-group-price {
    color: #64748b;
    font-size: 0.8rem;
  }
  .giftbox-wrapper .quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 0.125rem;
  }
  .giftbox-wrapper .quantity-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    padding: 4px;
    font-size: 0.75rem;
  }
  .giftbox-wrapper .quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
  }
  .giftbox-wrapper .quantity-btn:active {
    transform: scale(0.95);
  }
  .giftbox-wrapper .quantity-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
  }
  .giftbox-wrapper .total-price-group {
    text-align: right;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
  }
  .giftbox-wrapper .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
  }
  .giftbox-wrapper .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    animation: bounce 2s infinite;
  }
  @keyframes bounce {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  .giftbox-wrapper .total-section {
    border-top: 2px solid #1e293b;
    padding-top: 1.25rem;
    margin-top: auto;
  }
  .giftbox-wrapper .total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
  }
  .giftbox-wrapper .total-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
  }
  .giftbox-wrapper .total-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    animation: totalUpdate 0.5s ease;
  }
  @keyframes totalUpdate {
    0% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }
  .giftbox-wrapper .btn-add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #059669 100%);
    background: var(--primary-color);
    color: var(--primary-text-color);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  .giftbox-wrapper .btn-add-to-cart::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
  }
  .giftbox-wrapper .btn-add-to-cart:hover:not(:disabled)::before {
    width: 400px;
    height: 400px;
  }
  .giftbox-wrapper .btn-add-to-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  }
  .giftbox-wrapper .btn-add-to-cart:active:not(:disabled) {
    transform: translateY(0);
  }
  .giftbox-wrapper .btn-add-to-cart:disabled {
    background: #e5e7eb;
    cursor: not-allowed;
    box-shadow: none;
    color: #afafaf;
    user-select: none;
    pointer-events: none;
  }
  .giftbox-wrapper .floating-product {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: white;
    overflow: hidden;
    border: 2px solid var(--primary-color);
  }
  @media (max-width: 1024px) {
    .giftbox-wrapper .main-content {
      grid-template-columns: 1fr;
    }
    .giftbox-wrapper .sidebar {
      border-top: 1px solid #e5e7eb;
    }
    .giftbox-wrapper .products-grid {
      max-height: 400px;
    }
  }
  @media (max-width: 590px) {
    .giftbox-wrapper {
      margin-top: 0;
      width: 120%;
      margin-left: -10%;
    }
    .giftbox-wrapper .main-card
    {
      border-radius: 0;
    }
  }
  @media (max-width: 768px) {
    .giftbox-wrapper .header-section {
      padding: 2rem 1rem;
    }
    .giftbox-wrapper .header-section h1 {
      font-size: 1.5rem;
    }
    .giftbox-wrapper .giftbox-container {
      padding: 0;
    }
    .giftbox-wrapper .slot-image {
      padding: 2px; 
  }
    .giftbox-wrapper .products-grid {
      grid-template-columns: 1fr;
    }
    .giftbox-wrapper .gift-slots-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.375rem; 
      max-width: 100%;
    }
    .giftbox-wrapper .gift-slot {
      aspect-ratio: 1;
      max-width: 100%; 
      height: auto; 
  }
  .giftbox-wrapper .gift-box-section {
    padding: 1rem;
}
    .giftbox-wrapper .product-card {
      padding: 1rem;
      margin-top: 5px;
    }
    .giftbox-wrapper .product-price {
      font-size: 0.8rem;
    }
    .giftbox-wrapper .sidebar {
      max-width: 100vw;
      overflow-x: hidden;
  }
  .giftbox-wrapper #giftSlotsGrid {
    max-width: 100%;
    margin: 0 auto;
}
    .giftbox-wrapper .product-image-wrapper {
      width: 60px;
      height: 60px;
    }
    .giftbox-wrapper .slot-remove {
      opacity: 1;
    }
    .giftbox-wrapper .floating-product {
      will-change: transform, opacity, top, left; 
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      perspective: 1000px;
  }
  }
  @media (max-width: 380px) {
    .giftbox-wrapper .gift-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
        padding: 0 0.25rem; 
    }
    
    .giftbox-wrapper .gift-slot {
        border-width: 1px;
    }
}

  .s-icon.s-small {
    width: 18px;
    height: 18px;
  }
  .s-icon.reset {
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M4.854 2.146a.5.5 0 0 1 0 .708L3.707 4H9a4.5 4.5 0 1 1 0 9H5a.5.5 0 0 1 0-1h4a3.5 3.5 0 1 0 0-7H3.707l1.147 1.146a.5.5 0 1 1-.708.708l-2-2a.5.5 0 0 1 0-.708l2-2a.5.5 0 0 1 .708 0' clip-rule='evenodd'/%3E%3C/svg%3E");
  }
  .s-icon.plus {
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 12h6m6 0h-6m0 0V6m0 6v6'/%3E%3C/svg%3E");
  }
  .s-icon.minus {
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5.25 12a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5H6a.75.75 0 0 1-.75-.75'/%3E%3C/svg%3E");
  }
  .s-icon.addtocart {
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' color='%23000'%3E%3Cpath d='m8 16l8.72-.727c2.729-.227 3.341-.823 3.643-3.544L21 6M6 6h1.5M22 6h-3m-8.5 1s1 0 2 2c0 0 3.177-5 6-6'/%3E%3Ccircle cx='6' cy='20' r='2'/%3E%3Ccircle cx='17' cy='20' r='2'/%3E%3Cpath d='M8 20h7M2 2h.966c.945 0 1.768.625 1.997 1.515L7.94 15.076a1.96 1.96 0 0 1-.35 1.686L6.631 18'/%3E%3C/g%3E%3C/svg%3E");
    display: inline-block;
    width: 28px;
    height: 28px;
    vertical-align: middle;
  }
  .s-icon.filter-cat{
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M4 4h6v6H4zm10 0h6v6h-6zM4 14h6v6H4zm10 3a3 3 0 1 0 6 0a3 3 0 1 0-6 0'/%3E%3C/svg%3E");
  }
  
  .giftbox-wrapper .variant-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.giftbox-wrapper .variant-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.giftbox-wrapper .variant-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.giftbox-wrapper .variant-modal-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.giftbox-wrapper .variant-modal-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
}

.giftbox-wrapper .variant-modal-info {
    flex: 1;
}

.giftbox-wrapper .variant-modal-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.giftbox-wrapper .variant-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.giftbox-wrapper .variant-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.giftbox-wrapper .variant-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.giftbox-wrapper .variant-select option:disabled {
    color: #9ca3af;
    font-style: italic;
}

.giftbox-wrapper .variant-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.giftbox-wrapper .variant-modal-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.giftbox-wrapper .variant-modal-confirm {
    background: var(--primary-color);
    color: white;
}

.giftbox-wrapper .variant-modal-confirm:hover {
    background: #059669;
    transform: translateY(-2px);
}

.giftbox-wrapper .variant-modal-cancel {
    background: #f3f4f6;
    color: #64748b;
}

.giftbox-wrapper .variant-modal-cancel:hover {
    background: #e5e7eb;
}

.giftbox-wrapper .price-strike {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    font-weight: 300;
}

.giftbox-wrapper .variant-info {
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
}

.giftbox-wrapper .stock-info {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

.giftbox-wrapper .btn-add-product.limited-stock {
    background: #fbbf24;
}

.giftbox-wrapper .btn-add-product.limited-stock:hover:not(:disabled) {
    background: #f59e0b;
}
.giftbox-wrapper .variant-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    border: 1px solid #bae6fd;
}

.giftbox-wrapper .variant-badge i {
    font-size: 0.6rem;
}

.giftbox-wrapper .price-from {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 400;
    display: block;
    margin-bottom: 0.125rem;
}

.giftbox-wrapper .variant-count {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-left: 0.25rem;
}

.giftbox-wrapper .btn-add-product.has-variants {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}

.giftbox-wrapper .btn-add-product.has-variants:hover:not(:disabled) {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
}

.giftbox-wrapper .all-variants-out {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}
.giftbox-wrapper .category-filter-container {
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.giftbox-wrapper .category-select {
  width: 100%;
  max-width: 300px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: .75rem;
}

.giftbox-wrapper .category-select:hover {
  border-color: var(--primary-color);
}

.giftbox-wrapper .category-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}


.giftbox-wrapper .free-product-badge {
  position: absolute;
  top: 22px;
  right: 14px;
  z-index: 2;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 0.35rem 0.89rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.giftbox-wrapper .free-product-info {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fbbf24;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.5s ease;
}

.giftbox-wrapper .free-product-info i {
  color: #f59e0b;
  font-size: 1.5rem;
}

.giftbox-wrapper .free-product-text {
  flex: 1;
}

.giftbox-wrapper .free-product-title {
  font-weight: 600;
  color: #92400e;
  font-size: 0.9rem;
}

.giftbox-wrapper .free-product-desc {
  font-size: 0.8rem;
  color: #b45309;
  margin-top: 0.25rem;
}
.giftbox-wrapper .gift-slot.filled.free-product {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  position: relative;
}

.giftbox-wrapper .gift-slot.filled.free-product::before {
  content: 'OMAGGIO';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  z-index: 1;
}

.giftbox-wrapper .gift-slot.filled.free-product .slot-remove{
  display: none;
}
@media screen and (max-width: 590px){

.giftbox-wrapper .category-select{
  font-size: 14px;
}
.giftbox-wrapper .products-section {
  padding: 1rem;
}
.giftbox-wrapper .free-product-badge{
  top: 30px;
}
.giftbox-wrapper .product-name {
  font-size: 1.25rem;
}
.giftbox-wrapper .btn-add-product i{
  width: 18px;
  height: 18px;
}
.giftbox-wrapper .btn-add-product {
  max-height: 30px;
}
}
