#cart-icon {
    position: fixed;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Mobile-first approach - default to bottom right */
    bottom: 20px;
    right: 20px;
    top: auto; /* Ensure top position is cleared */
}

#cart-icon i {
    color: white;
    font-size: 20px;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Desktop positioning */
@media screen and (min-width: 992px) {
    #cart-icon {
        bottom: auto; /* Clear bottom position */
        top: 20px;
        right: 20px;
    }
}

/* iPhone specific adjustments */
@media screen and (max-width: 428px) { /* iPhone 14 Pro Max width */
    #cart-icon {
        bottom: 30px; /* Slightly higher from bottom to avoid gesture bar */
        right: 20px;
    }
}

.photo-container {
    position: relative;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: #222;
    border-radius: 4px;
}

.photo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.photo-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #333;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.photo-info p {
    margin: 0;
    font-weight: 500;
    color: white;
}

.purchase-icon {
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.purchase-icon:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.image-container {
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
}

#purchase-preview {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.total-cost-container {
    background: #333;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border: 1px solid #444;
    color: white;
}

.total-cost-container label {
    font-weight: 500;
    margin-bottom: 5px;
    color: white;
}

.cart-item {
    background: #333;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #444;
    transition: all 0.3s ease;
    color: white;
}

.cart-item:hover {
    background: #444;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cart-item img {
    max-width: 100px;
    height: auto;
    margin-right: 15px;
    border-radius: 4px;
}

.cart-item h6 {
    margin-bottom: 5px;
    font-weight: 500;
    color: white;
}

.cart-item p {
    margin-bottom: 5px;
    color: #aaa;
}

#checkout-form {
    padding: 20px;
    background: #333;
    border-radius: 4px;
    margin-top: 20px;
}

#checkout-form label {
    font-weight: 500;
    color: white;
}

#checkout-form .form-control {
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px;
    background: #222;
    color: white;
}

#checkout-form .form-control:focus {
    border-color: #666;
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,.1);
}

.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: #222;
}

.modal-header {
    border-bottom: 1px solid #444;
    background: #333;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: white;
}

.modal-footer {
    border-top: 1px solid #444;
    background: #333;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn-primary {
    padding: 8px 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #4285f4;
    border-color: #4285f4;
}

.btn-primary:hover {
    background: #3367d6;
    border-color: #3367d6;
}

.btn-success {
    padding: 8px 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.photo-text-more {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-text-more:hover {
    opacity: 1;
}

.photo-text-more .icon {
    font-size: 24px;
    color: white;
}

.close {
    color: white;
    text-shadow: none;
}

.close:hover {
    color: #ddd;
}

.modal-title {
    color: white;
}

#total-cost {
    color: white;
}

.form-group label {
    color: white;
}

select.form-control {
    background: #333;
    color: white;
    border: 1px solid #444;
}

select.form-control:focus {
    background: #333;
    color: white;
}

.btn-secondary {
    background: #666;
    border-color: #666;
}

.btn-secondary:hover {
    background: #777;
    border-color: #777;
}

.fancybox-cart-icon {
    position: absolute;
    top: 20px;
    right: 100px;
    background: #4285f4;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.fancybox-cart-icon:hover {
    background: #3367d6;
    transform: scale(1.1);
}

.fancybox-cart-icon i {
    font-size: 20px;
    color: white;
} 