/* Product Purchase Page Styles */

/* Product Purchase Container */
.product-purchase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.purchase-image-section {
    position: sticky;
    top: 100px;
}

.product-large-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
}

.large-product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: scale(1.10);
    animation: fadeInScale 0.8s ease-out;
}

.image-fallback-purchase {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #444;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: none;
}

/* Purchase Details Section */
.purchase-details-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.purchase-header {
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
}

.purchase-title {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.2;
}

.purchase-price {
    font-size: 24px;
    color: #aaa;
    letter-spacing: 2px;
    font-weight: 500;
}

.purchase-description {
    font-size: 14px;
    line-height: 1.6;
    color: #bbb;
}

/* Selection Label */
.selection-label {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Size Selection */
.size-selection {
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.size-btn {
    flex: 1;
    min-width: 55px;
    max-width: 90px;
    padding: 15px;
    background-color: transparent;
    border: 1px solid #444;
    color: #aaa;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.size-btn:hover {
    border-color: #ff0000;
    color: #f0f0f0;
}

.size-btn.active {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #fff;
}

/* Specifications */
.specifications {
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-label {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
}

.spec-value {
    font-size: 13px;
    color: #ddd;
    font-weight: 500;
}

/* Quantity Selector */
.quantity-selector {
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #444;
    background-color: transparent;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: #ff0000;
    color: #ff0000;
}

.qty-input {
    width: 60px;
    padding: 8px 12px;
    background-color: #111;
    border: 1px solid #444;
    color: #f0f0f0;
    font-size: 14px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.qty-input:focus {
    outline: none;
    border-color: #ff0000;
}

/* Buy Button */
.buy-button {
    padding: 18px 30px;
    background-color: #ff0000;
    color: #fff;
    border: none;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.buy-button:hover {
    background-color: #cc0000;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.buy-button:active {
    transform: scale(0.98);
}

/* Purchase Footer Info */
.purchase-footer-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #888;
    letter-spacing: 0.5px;
}

.info-item i {
    color: #ff0000;
    font-size: 14px;
}

/* ===== PRODUCT PAGE ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    }
}

@keyframes buttonPulse {
    0%, 100% {
        background-color: #ff0000;
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
    }
    50% {
        background-color: #ff3333;
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1.10);
    }
}

.product-purchase-container {
    animation: fadeInUp 0.8s ease-out;
}

.purchase-image-section {
    animation: slideInLeft 0.9s ease-out;
}

.product-large-image {
    border-radius: 2px;
}

.purchase-details-section {
    animation: slideInRight 0.9s ease-out;
}

.purchase-header {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.purchase-title {
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.purchase-price {
    animation: fadeIn 0.8s ease-out 0.4s both;
    transition: all 0.3s ease;
}

.purchase-description {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.size-selection {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.size-btn {
    animation: fadeIn 0.6s ease-out backwards;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.size-btn:nth-child(1) { animation-delay: 0.5s; }
.size-btn:nth-child(2) { animation-delay: 0.55s; }
.size-btn:nth-child(3) { animation-delay: 0.6s; }
.size-btn:nth-child(4) { animation-delay: 0.65s; }
.size-btn:nth-child(5) { animation-delay: 0.7s; }
.size-btn:nth-child(6) { animation-delay: 0.75s; }

.size-btn:hover {
    transform: translateY(-3px);
}

.specifications {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.spec-item {
    animation: fadeIn 0.6s ease-out backwards;
}

.spec-item:nth-child(1) { animation-delay: 0.7s; }
.spec-item:nth-child(2) { animation-delay: 0.75s; }
.spec-item:nth-child(3) { animation-delay: 0.8s; }
.spec-item:nth-child(4) { animation-delay: 0.85s; }
.spec-item:nth-child(5) { animation-delay: 0.9s; }
.spec-item:nth-child(6) { animation-delay: 0.95s; }

.spec-label {
    transition: color 0.3s ease;
}

.spec-item:hover .spec-label {
    color: #ff0000;
}

.quantity-selector {
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.qty-btn {
    animation: fadeIn 0.6s ease-out 0.75s both;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qty-btn:hover {
    transform: scale(1.1);
}

.qty-input {
    animation: fadeIn 0.6s ease-out 0.8s both;
    transition: all 0.3s ease;
}

.buy-button {
    animation: fadeInUp 0.8s ease-out 0.8s both, buttonPulse 3s ease-in-out 1s infinite;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.buy-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
}

.purchase-footer-info {
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.info-item {
    animation: fadeInUp 0.6s ease-out backwards;
    transition: all 0.3s ease;
}

.info-item:nth-child(1) { animation-delay: 1s; }
.info-item:nth-child(2) { animation-delay: 1.05s; }
.info-item:nth-child(3) { animation-delay: 1.1s; }

.info-item:hover {
    transform: translateX(5px);
    color: #ff0000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-purchase-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .purchase-image-section {
        position: static;
    }

    .purchase-title {
        font-size: 28px;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-purchase-container {
        gap: 30px;
    }

    .purchase-title {
        font-size: 24px;
    }

    .purchase-price {
        font-size: 20px;
    }

    .size-grid {
        gap: 8px;
    }

    .size-btn {
        min-width: 48px;
        max-width: 80px;
        padding: 12px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-purchase-container {
        gap: 20px;
    }

    .purchase-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .purchase-price {
        font-size: 16px;
    }

    .size-btn {
        min-width: 42px;
        max-width: 70px;
        padding: 10px;
        font-size: 11px;
    }

    .quantity-controls {
        gap: 10px;
    }

    .qty-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .qty-input {
        width: 50px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .buy-button {
        padding: 14px 20px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .product-purchase-container {
        gap: 15px;
    }

    .purchase-title {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .purchase-price {
        font-size: 14px;
    }

    .purchase-description {
        font-size: 12px;
    }

    .size-btn {
        min-width: 36px;
        max-width: 60px;
        padding: 8px;
        font-size: 10px;
    }

    .selection-label {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .buy-button {
        padding: 12px 16px;
        font-size: 11px;
    }

    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .qty-input {
        width: 40px;
        padding: 4px 8px;
        font-size: 11px;
    }

    .info-item {
        font-size: 10px;
    }
}

@media (min-width: 1400px) {
    .product-purchase-container {
        max-width: 1200px;
        margin: 0 auto;
    }
}
