.product-selected-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    display: none;
    z-index: 2;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1));
}

.product-selected-indicator svg {
    width: 100%;
    height: 100%;
}

.product-card {
    position: relative;
}

.cart-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
    display: none;
}

.cart-notification.show {
    display: block;
}

.cart-notification-content {
    background: linear-gradient(135deg, #5CC777 0%, #4CAF50 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(92, 199, 119, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    text-align: center;
    animation: pulse 2s infinite;
}

.cart-notification-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cart-notification-header .success-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-notification-header .success-icon svg {
    width: 16px;
    height: 16px;
    stroke: white;
    stroke-width: 2;
}

.cart-notification-header h4 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.cart-notification-content p {
    margin: 0;
    color: white;
    font-size: 14px;
    opacity: 0.9;
}

.attribute-group-section {
    margin-bottom: 20px;
}

.attribute-group-section h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.attribute-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 10px;
}

.attribute-option {
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    font-size: 14px;
    white-space: nowrap;
}

.attribute-option:hover {
    background: #f5f5f5;
}

.attribute-option.selected {
    background: #000;
    color: white;
}

.attribute-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #ddd;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #000;
    transform: scale(1.1);
}

.color-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .attribute-options {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 8px;
    }
    
    .attribute-option {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }
    
    .color-option {
        width: 35px;
        height: 35px;
    }
}

.influencer-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 40px;
}

/* Left Column - Gallery */
.influencer-slider-section {
    width: 60%;
    display: flex;
    gap: 20px;
}

.influencer-thumbnail-list {
    width: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.influencer-thumbnail-item {
    width: 100px;
    position: relative;
    padding-top: 150%;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 10px;
}

.influencer-thumbnail-item.active {
    border: 1px solid #000;
}

.influencer-thumbnail-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.influencer-main-image {
    flex: 1;
    position: relative;
    height: 0;
    padding-bottom: 110%;
    background: #f8f8f8;
    overflow: hidden;
}

#main-gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease-in-out;
}

.mobile-gallery {
    display: none;
}

.mobile-dots {
    display: none;
}

/* Mobile styles */
@media (max-width: 767px) {
    .influencer-detail-container {
        flex-direction: column;
        padding: 0;
        gap: 15px;
    }

    .influencer-slider-section {
        width: 100%;
        display: block;
        position: relative;
        margin-top: 10px;
    }

    .influencer-thumbnail-list {
        display: none;
    }

    #main-gallery-image {
        display: none;
    }

    .mobile-gallery {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        width: max-content;
        height: 100%;
    }

    .gallery-slide {
        width: 100vw;
        height: 100%;
        flex-shrink: 0;
    }

    .gallery-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 0;
    }

    .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        border: 1px solid #000;
        transition: all 0.2s ease;
    }

    .dot.active {
        background: #000;
    }

    .influencer-main-image {
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 130%;
    }

    .influencer-main-image::-webkit-scrollbar {
        display: none;
    }

    .gallery-slide {
        scroll-snap-align: start;
    }
}

/* Right Column - Products */
.influencer-info {
    width: 40%;
    padding-right: 20px;
}

.influencer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.influencer-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
}

.influencer-subtitle {
    color: #666;
    font-size: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    position: relative;
    border: none;
    padding: 0;
    width: 100%;
}

.influencer-product-image {
    width: 100%;
    position: relative;
    padding-top: 133.33%;
    margin-bottom: 10px;
}

.influencer-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-selected-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #5CC777;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.product-selected-indicator svg {
    width: 14px;
    height: 14px;
}

.product-card.selected .product-selected-indicator {
    display: flex;
}

.product-info {
    padding: 0;
}

.product-title {
    display: block;
    width: 100%;
    margin-top: 8px;
    font-size: 12px;
    line-height: 19px;
    letter-spacing: 0.7px;
    color: rgb(0, 0, 0);
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    text-decoration: none;
    height: 19px;
}

.product-price {
    font-weight: 600;
    font-size: 12px;
    line-height: 19px;
    letter-spacing: 0.7px;
    margin-bottom: 9px;
    color: black;
}

/* Variant Selector */
.variant-selector {
    position: relative;
}

.variant-button {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 200px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-button:hover {
    background: #f5f5f5;
}

/* Modal Styles */
.share-modal,
.size-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.share-modal.show,
.size-modal.show {
    display: flex;
}

.share-modal-content,
.size-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.size-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    color: #666;
}

.size-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.product-preview {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal-product-image {
    width: 100px;
    height: 133px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-product-info {
    flex: 1;
}

.modal-product-name {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 500;
}

.modal-product-price {
    font-size: 16px;
    font-weight: 600;
}

.size-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-done {
    background: #000;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 200px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-done:hover {
    background: #333;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.size-option {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.size-option:hover {
    background: #f5f5f5;
}

.size-option.selected {
    border-color: #000;
    background: #000;
    color: white;
}

.size-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

@media (max-width: 576px) {
    .size-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .size-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

.attribute-group-section {
    margin-bottom: 20px;
}

.attribute-option {
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    font-size: 14px;
    white-space: nowrap;
}

.attribute-option:hover {
    background: #f5f5f5;
}

.attribute-option.selected {
    background: #000;
    color: white;
}

.attribute-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #ddd;
}

@media (max-width: 767px) {
    .influencer-detail-container {
        flex-direction: column;
        padding: 0;
        gap: 20px;
    }

    .influencer-info {
        width: 100%;
        padding: 0 15px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-title {
        font-size: 11px;
        line-height: 16px;
        margin-bottom: 4px;
    }

    .product-price {
        font-size: 11px;
        line-height: 16px;
        margin-bottom: 6px;
    }

    .variant-button {
        padding: 8px;
        font-size: 12px;
    }

    .cart-notification {
        top: auto;
        bottom: 20px;
        right: 15px;
        left: 15px;
    }

    .cart-notification-content {
        min-width: auto;
        padding: 15px 30px;
    }

    .cart-notification-header h4 {
        font-size: 14px;
    }

    .cart-notification-content p {
        font-size: 13px;
    }

    .cart-notification-header .success-icon {
        width: 28px;
        height: 28px;
    }

    .add-to-cart-button {
        padding: 14px;
        font-size: 14px;
    }
}

.cart-notification.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

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

/* Cart Button */
.cart-actions {
    margin-top: 20px;
}

.add-to-cart-button {
    width: 100%;
    padding: 16px;
    background: #5CC777;
    color: white;
    border: none;
    border-radius: 200px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-button:hover {
    background: #4ba862;
}

.add-to-cart-button.error {
    background: #E04F4F;
    animation: none;
}

.add-to-cart-button.error:hover {
    background: #cc4747;
}

.add-to-cart-button.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

.add-to-cart-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.add-to-cart-button .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.add-to-cart-button.loading .spinner {
    display: block;
}

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

.color-section, .size-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.color-section h5, .size-section h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #000;
    transform: scale(1.1);
}

.color-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
}

.attribute-options {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.attribute-option {
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    font-size: 14px;
    white-space: nowrap;
}

.attribute-option:hover {
    background: #f5f5f5;
}

.attribute-option.selected {
    background: #000;
    color: white;
}

.attribute-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #ddd;
}

@media (max-width: 767px) {
    .attribute-options {
        grid-template-columns: repeat(8, 1fr);
        gap: 8px;
    }
    
    .attribute-option {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }
}

/* Share Modal */
.share-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.share-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.share-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.share-modal .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    color: #666;
}

.share-product-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.share-product-image {
    width: 100px;
    height: 100px;
}

.share-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.share-product-details {
    flex: 1;
}

.share-product-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
}

.share-product-price {
    font-weight: 600;
    margin-bottom: 4px;
}

.share-product-handle {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #323232;
    transition: all 0.2s ease;
    font-size: 14px;
}

.share-btn:hover {
    background: #f5f5f5;
}

.share-btn-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .share-modal-content {
        padding: 20px;
    }
    
    .share-product-image {
        width: 80px;
        height: 80px;
    }
    
    .share-product-title {
        font-size: 14px;
    }
    
    .share-btn {
        padding: 10px;
        font-size: 13px;
    }

    .cart-notification {
        top: 20px;
        right: 20px;
        left: 20px;
    }

    .cart-notification-content {
        min-width: auto;
        padding: 15px 30px;
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(92, 199, 119, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(92, 199, 119, 0.5);
    }
    100% {
        box-shadow: 0 10px 30px rgba(92, 199, 119, 0.3);
    }
}

.cart-notification.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

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