/* ==============================
   Product Layout CSS (substitui Tailwind)
   ============================== */

/* Container e Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Breadcrumb */
.breadcrumb-section {
    background: #f9fafb;
    padding: 0.75rem 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-nav a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: #000;
}

.breadcrumb-nav i {
    color: #9ca3af;
    font-size: 0.75rem;
}

.breadcrumb-nav span {
    color: #000;
    font-weight: 500;
}

/* Product Section */
.product-main {
    padding: 2rem 0;
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 24rem;
    object-fit: contain;
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: bold;
    z-index: 10;
}

.zoom-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.zoom-btn:hover {
    background: #f3f4f6;
}

/* Product Info */
.product-info-wrapper {
    padding: 0;
}

.product-title-section {
    margin-bottom: 1rem;
}

.sold-count {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin: 0;
}

@media (min-width: 768px) {
    .product-title {
        font-size: 2rem;
    }
}

/* Price Section */
.price-section {
    margin-bottom: 1.5rem;
}

.price-main-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.price-main {
    font-size: 1.875rem;
    font-weight: bold;
    color: #000;
}

.price-old {
    font-size: 1.125rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount-percentage {
    background: #000;
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

.installment-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.payment-link {
    font-size: 0.875rem;
    color: #2563eb;
    text-decoration: none;
}

.payment-link:hover {
    text-decoration: underline;
}

/* Variants Section */
.variants-section {
    margin-bottom: 1.5rem;
}

.variants-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.75rem;
}

.variants-label span {
    font-weight: normal;
    color: #6b7280;
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.variant-btn {
    font-size: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    text-align: center;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.variant-btn:hover {
    border-color: #000;
}

.variant-btn.selected {
    border-color: #000;
    background: #f9fafb;
    font-weight: 600;
}

/* Quantity Section */
.quantity-section {
    margin-bottom: 1.5rem;
}

.quantity-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.75rem;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    width: 8rem;
}

.qty-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.qty-btn:hover {
    background: #f3f4f6;
}

.qty-btn:first-child {
    border-radius: 0.25rem 0 0 0.25rem;
}

.qty-btn:last-child {
    border-radius: 0 0.25rem 0.25rem 0;
}

.qty-input {
    width: 3rem;
    height: 2.5rem;
    text-align: center;
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    border-left: none;
    border-right: none;
    font-weight: 500;
    background: white;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    background: #000;
    color: white;
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 1.5rem;
}

.add-to-cart-btn:hover {
    background: #374151;
}

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

/* Payment Methods */
.payment-methods-section {
    margin-bottom: 1.5rem;
}

.payment-methods-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.75rem;
}

.payment-icons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.payment-icons img {
    height: 1.5rem;
    width: 2.5rem;
    object-fit: contain;
}

/* Security Features */
.security-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.security-item i {
    color: #6b7280;
}

.security-item-content p:first-child {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

.security-item-content p:not(:first-child) {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

/* Description Section */
.description-section {
    margin-top: 3rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
}

.description-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1.5rem;
}

.variants-list-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    text-decoration: underline;
}

.variants-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .variants-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.variants-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.variants-list i {
    color: #059669;
    margin-top: 0.125rem;
}

.variants-list span {
    color: #374151;
}

.description-text {
    max-width: none;
    color: #374151;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.features-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
}

.features-list i {
    color: #059669;
}

/* Fixed Contact Button */
.fixed-contact-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}

.contact-btn {
    background: #25d366;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
}

.contact-btn:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.contact-btn i {
    font-size: 1.5rem;
}

.contact-btn span {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .product-main {
        padding: 1rem 0;
    }
    
    .product-image-wrapper {
        padding: 1rem;
        min-height: 350px;
    }
    
    .variants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .description-section {
        padding: 1rem;
    }
}
