/* Enhanced Product Page Styles */
/* Add these styles to your existing css/product.css */

/* ===================================
   Enhanced Action Buttons
   =================================== */

.product-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.btn-add-to-cart,
.btn-buy-now {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-to-cart {
    background: #00ADEF;
    color: white;
}

.btn-add-to-cart:hover {
    background: #0091cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 173, 239, 0.3);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-add-to-cart.btn-success {
    background: #28a745;
}

.btn-buy-now {
    background: #FFD700;
    color: #1a1a1a;
}

.btn-buy-now:hover {
    background: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.btn-add-to-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Secondary Actions */
.secondary-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-secondary-action {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary-action:hover {
    border-color: #00ADEF;
    color: #00ADEF;
    background: #f8f9fa;
}

.btn-secondary-action i {
    font-size: 18px;
}

/* ===================================
   Cart Success Modal
   =================================== */

.cart-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-success-modal.show {
    opacity: 1;
}

.cart-success-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cart-success-modal.show .cart-success-content {
    transform: scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.cart-success-content h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cart-success-content p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 16px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-continue,
.btn-view-cart {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-continue {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e0e0e0;
}

.btn-continue:hover {
    background: white;
    border-color: #00ADEF;
    color: #00ADEF;
}

.btn-view-cart {
    background: #00ADEF;
    color: white;
}

.btn-view-cart:hover {
    background: #0091cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 173, 239, 0.3);
}

/* ===================================
   Sticky Add to Cart Bar
   =================================== */

.sticky-add-to-cart {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    z-index: 999;
    transition: bottom 0.3s ease;
}

.sticky-add-to-cart.visible {
    bottom: 0;
}

.sticky-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sticky-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.sticky-product-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.sticky-product-details h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.sticky-price {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #00ADEF;
}

.sticky-add-btn {
    padding: 14px 40px;
    background: #00ADEF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sticky-add-btn:hover {
    background: #0091cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 173, 239, 0.3);
}

/* ===================================
   Custom Alert
   =================================== */

.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 300px;
}

.custom-alert.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-alert i {
    font-size: 20px;
}

.alert-warning {
    border-left: 4px solid #ffc107;
}

.alert-warning i {
    color: #ffc107;
}

.alert-info {
    border-left: 4px solid #17a2b8;
}

.alert-info i {
    color: #17a2b8;
}

/* ===================================
   Improved Size Selector
   =================================== */

.size-selector {
    margin: 25px 0;
}

.selector-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.size-option {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.size-option:hover:not(.out-of-stock) {
    border-color: #00ADEF;
    background: #f8f9fa;
}

.size-option.active {
    border-color: #00ADEF;
    background: #e7f6fd;
}

.size-option.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.size-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.size-price {
    display: block;
    font-size: 14px;
    color: #00ADEF;
    font-weight: 600;
}

.stock-label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    font-weight: 500;
}

.stock-label.low-stock {
    color: #dc3545;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }

    .btn-add-to-cart,
    .btn-buy-now {
        width: 100%;
    }

    .secondary-actions {
        flex-direction: column;
    }

    .btn-secondary-action {
        width: 100%;
    }

    .sticky-bar-content {
        flex-direction: column;
        gap: 15px;
    }

    .sticky-add-btn {
        width: 100%;
        justify-content: center;
    }

    .modal-actions {
        flex-direction: column;
    }

    .cart-success-content {
        padding: 30px 20px;
    }

    .size-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .custom-alert {
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .sticky-product-info img {
        width: 50px;
        height: 50px;
    }

    .sticky-product-details h6 {
        font-size: 14px;
    }

    .sticky-price {
        font-size: 16px;
    }
}

/* ===================================
   Animation Enhancements
   =================================== */

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

.product-actions,
.secondary-actions {
    animation: slideUp 0.5s ease-out;
}

/* Button loading state */
.btn-add-to-cart .fa-spinner {
    animation: spin 1s linear infinite;
}

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