/**
 * WooCommerce Product Styles - Beautiful Product Display
 *
 * @package ATH_ATRAHI_DESIGN
 */

/* ==========================================================================
   Product Archive Page
   ========================================================================== */

.woo-archive-page {
    background: #fff;
    min-height: 100vh;
}

.woo-archive-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.woo-archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b99d63' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.woo-archive-hero .hero-content {
    position: relative;
    z-index: 1;
}

.woo-archive-hero,
.woo-archive-hero .hero-content,
.woo-archive-hero .hero-content * {
    color: #ffffff;
}

.woo-archive-hero .page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(185, 157, 99, 0.15);
    border: 1px solid rgba(185, 157, 99, 0.3);
    border-radius: 30px;
    color: var(--atrahi-gold);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.woo-archive-hero .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--atrahi-gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.woo-archive-title {
    font-family: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', 'Inter', system-ui, sans-serif;
    font-size: 48px;
    color: #fff;
    margin-bottom: 15px;
}

/* ==========================================================================
   Products Section
   ========================================================================== */

.woo-products-section {
    padding: 60px 0 80px;
}

/* Toolbar */
.woo-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.woo-result-count p,
.woocommerce-result-count {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.woo-ordering select,
.woocommerce-ordering select {
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: var(--atrahi-dark);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 15px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woo-ordering select:hover,
.woo-ordering select:focus {
    border-color: var(--atrahi-gold);
    outline: none;
}

/* Products Grid */
.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   Product Card
   ========================================================================== */

.woo-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    list-style: none;
}

.woo-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Product Image */
.product-card-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f8f9fa;
}

.product-card-image .product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.woo-product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #eee);
    color: #ccc;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.sale {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
}

.product-badge.new {
    background: linear-gradient(135deg, var(--atrahi-gold), var(--atrahi-gold-dark));
    color: #fff;
}

.product-badge.large {
    padding: 10px 18px;
    font-size: 14px;
}

/* Quick Actions */
.product-quick-actions {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.woo-product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-quick-actions .button,
.product-quick-actions .add_to_cart_button {
    flex: 1;
    padding: 12px 15px;
    background: var(--atrahi-gold);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-quick-actions .button:hover,
.product-quick-actions .add_to_cart_button:hover {
    background: var(--atrahi-gold-dark);
}

.quick-view-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    color: var(--atrahi-dark);
    transition: all 0.3s ease;
}

.quick-view-btn:hover {
    background: var(--atrahi-dark);
    color: #fff;
}

/* Product Content */
.product-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: #1f2937;
}

.product-category {
    display: inline-block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin-bottom: 8px;
}

.product-category:hover {
    color: var(--atrahi-gold-dark);
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.product-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--atrahi-gold);
}

/* Product Rating */
.product-rating {
    margin-bottom: 10px;
}

.product-rating .star-rating {
    font-size: 14px;
    color: #ffc107;
}

/* Product Price */
.product-price {
    margin-top: auto;
}

.product-price .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--atrahi-dark);
}

.product-price del {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin-right: 8px;
}

.product-price ins {
    text-decoration: none;
    color: #e53e3e;
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */

.woo-single-page {
    background: #fff;
    min-height: 100vh;
}

.woo-product-detail {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 120px;
}

.gallery-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 15px;
}

.gallery-main-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.gallery-thumb {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--atrahi-gold);
}

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

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

.product-single-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(185, 157, 99, 0.1);
    border-radius: 20px;
    color: var(--atrahi-gold);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 15px;
}

.product-single-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--atrahi-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-single-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-single-rating .star-rating {
    font-size: 16px;
    color: #ffc107;
}

.product-single-price {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.product-single-price .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--atrahi-dark);
}

.product-single-price del {
    font-size: 18px;
    color: #999;
    margin-right: 15px;
}

.product-single-price ins {
    text-decoration: none;
    color: #e53e3e;
}

.product-single-excerpt {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.8;
}

/* Add to Cart */
.product-single-add-to-cart {
    margin-bottom: 30px;
}

.product-single-add-to-cart .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.product-single-add-to-cart .quantity input {
    width: 60px;
    padding: 12px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.product-single-add-to-cart .single_add_to_cart_button {
    padding: 15px 40px;
    background: var(--atrahi-gold);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-single-add-to-cart .single_add_to_cart_button:hover {
    background: var(--atrahi-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(185, 157, 99, 0.3);
}

/* Product Meta */
.product-single-meta {
    padding: 20px 0;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.product-single-meta .sku_wrapper,
.product-single-meta .posted_in,
.product-single-meta .tagged_as {
    margin-bottom: 8px;
}

.product-single-meta a {
    color: var(--atrahi-gold);
    text-decoration: none;
}

/* Share */
.product-single-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
}

.share-label {
    font-size: 14px;
    color: #666;
}

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

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.zalo {
    background: #0068ff;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Product Tabs
   ========================================================================== */

.woo-product-tabs-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.woocommerce-tabs {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.woocommerce-tabs .tabs,
.woocommerce-tabs ul.tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.woocommerce-tabs .tabs li {
    margin: 0;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 20px 30px;
    color: #666;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce-tabs .tabs li.active a,
.woocommerce-tabs .tabs li a:hover {
    color: var(--atrahi-gold);
    border-bottom-color: var(--atrahi-gold);
}

.woocommerce-tabs .panel {
    padding: 30px;
}

.woocommerce-tabs .panel h2 {
    font-size: 22px;
    color: var(--atrahi-dark);
    margin-bottom: 20px;
}

.woocommerce-tabs .panel p {
    color: #666;
    line-height: 1.8;
}

/* ==========================================================================
   Related Products
   ========================================================================== */

.woo-related-section {
    padding: 60px 0 80px;
}

.woo-related-section .related > h2,
.woo-related-section .upsells > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--atrahi-dark);
    text-align: center;
    margin-bottom: 40px;
}

/* ==========================================================================
   No Products
   ========================================================================== */

.woo-no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.woo-no-products h3 {
    font-size: 24px;
    color: var(--atrahi-dark);
    margin-bottom: 10px;
}

.woo-no-products p {
    color: #666;
    margin-bottom: 25px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.woo-pagination {
    margin-top: 50px;
}

.woo-pagination nav.woocommerce-pagination {
    text-align: center;
}

.woo-pagination ul.page-numbers {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woo-pagination .page-numbers li a,
.woo-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: var(--atrahi-dark);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woo-pagination .page-numbers li a:hover,
.woo-pagination .page-numbers li span.current {
    background: var(--atrahi-gold);
    border-color: var(--atrahi-gold);
    color: #fff;
}

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

@media (max-width: 1200px) {
    .products,
    ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .products,
    ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .woo-archive-title {
        font-size: 32px;
    }
    
    .woo-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .product-single-title {
        font-size: 24px;
    }
    
    .product-single-price .price {
        font-size: 22px;
    }
    
    .woocommerce-tabs .tabs {
        flex-direction: column;
    }
    
    .woocommerce-tabs .tabs li a {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .products,
    ul.products {
        grid-template-columns: 1fr;
    }
    
    .product-card-content {
        padding: 15px;
    }
    
    .product-single-add-to-cart .single_add_to_cart_button {
        width: 100%;
        margin-top: 15px;
    }
}

/* ==========================================================================
   PRODUCTS WOO GRID - Project Style
   ========================================================================== */

.products-woo-page .product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.products-woo-page .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.products-woo-page .pc-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b99d63;
    margin: 16px 0;
}

.products-woo-page .pc-price del {
    font-size: 1rem;
    color: #999;
    margin-right: 8px;
}

.products-woo-page .pc-price ins {
    text-decoration: none;
    color: #e74c3c;
}

.products-woo-page .pc-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.products-woo-page .pc-rating .star-rating {
    font-size: 14px;
}

.products-woo-page .rating-count {
    font-size: 0.875rem;
    color: #666;
}

.products-woo-page .pc-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin: 12px 0;
    line-height: 1.6;
}

.products-woo-page .pc-actions-bottom {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.products-woo-page .pc-actions-bottom .btn {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.products-woo-page .badge-sale {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.products-woo-page .badge-gallery {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .products-woo-page .pc-actions-bottom {
        flex-direction: column;
    }
    
    .products-woo-page .pc-actions-bottom .btn {
        width: 100%;
    }
}
