/**
 * Public Styles for Whisky Affiliate Manager
 */

/* Product Grid */
.wam-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.wam-product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.wam-product-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.wam-product-image {
    position: relative;
    padding-top: 100%;
    background: #f8f8f8;
    overflow: hidden;
}

.wam-product-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.wam-product-card:hover .wam-product-image img {
    transform: translate(-50%, -50%) scale(1.05);
}

.wam-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2271b1;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.wam-product-badge.featured {
    background: #dba617;
}

.wam-product-badge.sale {
    background: #d63638;
}

.wam-product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wam-product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}

.wam-product-title a {
    color: #1d2327;
    text-decoration: none;
}

.wam-product-title a:hover {
    color: #2271b1;
}

.wam-product-meta {
    color: #646970;
    font-size: 13px;
    margin-bottom: 12px;
}

.wam-product-meta span {
    margin-right: 12px;
}

.wam-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.wam-stars {
    color: #dba617;
    font-size: 14px;
}

.wam-rating-text {
    color: #646970;
    font-size: 13px;
}

.wam-product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f0f0f1;
}

.wam-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
}

.wam-product-price .sale-price {
    color: #d63638;
}

.wam-product-price .original-price {
    font-size: 14px;
    color: #646970;
    text-decoration: line-through;
    margin-left: 8px;
}

.wam-buy-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2271b1;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.wam-buy-button:hover {
    background: #135e96;
    color: #fff;
}

/* Product Detail Page */
.wam-product-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.wam-product-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .wam-product-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.wam-product-gallery {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wam-product-gallery img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.wam-product-info h1 {
    font-size: 32px;
    margin: 0 0 15px;
}

.wam-product-info .distillery {
    color: #646970;
    font-size: 16px;
    margin-bottom: 20px;
}

.wam-product-info .distillery a {
    color: #2271b1;
}

.wam-product-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: #f6f7f7;
    border-radius: 8px;
}

.wam-spec {
    display: flex;
    flex-direction: column;
}

.wam-spec-label {
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wam-spec-value {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

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

.wam-product-actions .wam-buy-button {
    flex: 1;
    justify-content: center;
    padding: 15px 30px;
    font-size: 16px;
}

.wam-wishlist-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border: 2px solid #c3c4c7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wam-wishlist-button:hover {
    border-color: #d63638;
    color: #d63638;
}

/* Flavor Profile */
.wam-flavor-profile {
    margin: 30px 0;
}

.wam-flavor-profile h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.wam-flavor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wam-flavor-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f0f6fc;
    color: #2271b1;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.wam-flavor-intensity {
    display: flex;
    gap: 2px;
}

.wam-flavor-intensity span {
    width: 4px;
    height: 12px;
    background: #2271b1;
    border-radius: 2px;
    opacity: 0.3;
}

.wam-flavor-intensity span.active {
    opacity: 1;
}

/* Search & Filters */
.wam-search-container {
    background: #f6f7f7;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.wam-search-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.wam-search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #c3c4c7;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.wam-search-input:focus {
    outline: none;
    border-color: #2271b1;
}

.wam-search-button {
    padding: 15px 30px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wam-search-button:hover {
    background: #135e96;
}

.wam-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.wam-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wam-filter label {
    font-size: 13px;
    color: #646970;
    font-weight: 500;
}

.wam-filter select {
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
}

/* Pagination */
.wam-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.wam-pagination a,
.wam-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.wam-pagination a {
    color: #2271b1;
    background: #fff;
}

.wam-pagination a:hover {
    background: #f0f6fc;
    border-color: #2271b1;
}

.wam-pagination span.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.wam-pagination span.dots {
    border: none;
}

/* Affiliate Disclosure */
.wam-affiliate-disclosure {
    background: #f6f7f7;
    border-left: 4px solid #2271b1;
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 13px;
    color: #646970;
}

.wam-affiliate-disclosure strong {
    color: #1d2327;
}

/* Price Comparison */
.wam-price-comparison {
    margin: 25px 0;
}

.wam-price-comparison h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.wam-merchant-list {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.wam-merchant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.wam-merchant:last-child {
    border-bottom: none;
}

.wam-merchant:hover {
    background: #f6f7f7;
}

.wam-merchant-name {
    font-weight: 600;
}

.wam-merchant-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wam-merchant-price .price {
    font-size: 18px;
    font-weight: 700;
    color: #2271b1;
}

.wam-merchant-visit {
    padding: 8px 16px;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.wam-merchant-visit:hover {
    background: #135e96;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .wam-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .wam-search-form {
        flex-direction: column;
    }
    
    .wam-filters {
        flex-direction: column;
    }
    
    .wam-filter {
        width: 100%;
    }
    
    .wam-filter select {
        width: 100%;
    }
    
    .wam-product-specs {
        grid-template-columns: 1fr;
    }
    
    .wam-product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wam-product-grid {
        grid-template-columns: 1fr;
    }
}
