/* ========================================
   Global Styles & Reset
   ======================================== */

.gtara-single-product-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.gtara-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Breadcrumbs
   ======================================== */

.gtara-breadcrumbs {
    padding: 16px 0;
    font-size: 14px;
    color: #555; /* Improved contrast from #666 */
    margin-bottom: 24px;
}

.gtara-breadcrumbs a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.3s;
}

.gtara-breadcrumbs a:hover {
    color: #ffb300;
    text-decoration: underline;
}

.gtara-breadcrumbs span {
    color: #333;
}

/* ========================================
   Product Header Section
   ======================================== */

.gtara-product-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gtara-header-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gtara-product-image {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.gtara-product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gtara-product-image:hover img {
    transform: scale(1.05);
}

.gtara-header-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gtara-product-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #222;
}

.gtara-product-brand {
    font-size: 16px;
    color: #555; /* Improved contrast from #666 */
}

.gtara-product-brand .label {
    font-weight: 600;
    color: #222; /* Improved contrast from #333 */
}

.gtara-product-brand a {
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.gtara-product-brand a:hover {
    color: #ffb300;
}

.gtara-short-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.gtara-overall-rating {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-radius: 8px;
    border: 2px solid #ffc107;
}

.gtara-overall-rating .rating-score {
    font-size: 48px;
    font-weight: 700;
    color: #ffc107;
    line-height: 1;
}

.gtara-overall-rating .rating-stars {
    font-size: 32px;
    color: #ffc107;
    line-height: 1;
}

.gtara-overall-rating .rating-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gtara-product-price {
    font-size: 18px;
}

.gtara-product-price .label {
    font-weight: 600;
    color: #333;
}

.gtara-product-price .amount {
    font-size: 28px;
    font-weight: 700;
    color: #28a745;
    margin-left: 8px;
}

.gtara-launch-date {
    font-size: 15px;
    color: #555; /* Improved contrast from #666 */
}

.gtara-launch-date .label {
    font-weight: 600;
    color: #222; /* Improved contrast from #333 */
}

.gtara-affiliate-buttons h3 {
    font-size: 18px;
    margin: 0 0 12px 0;
    color: #333;
}

.gtara-add-to-comparison {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid #ffc107;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gtara-add-to-comparison:hover {
    background: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.gtara-add-to-comparison:focus {
    outline: 3px solid #333;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.3);
}

.gtara-add-to-comparison.in-comparison {
    background: #28a745;
    border-color: #28a745;
    color: #ffffff;
}

.gtara-add-to-comparison.in-comparison:focus {
    outline: 3px solid #155724;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0.3);
}

.gtara-add-to-comparison .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* ========================================
   YouTube Video Section
   ======================================== */

.gtara-youtube-section {
    margin-bottom: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gtara-youtube-section h2 {
    font-size: 24px;
    margin: 0 0 20px 0;
    color: #222;
}

.gtara-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.gtara-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   Detailed Ratings Section
   ======================================== */

.gtara-detailed-ratings {
    margin-bottom: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gtara-detailed-ratings h2 {
    font-size: 24px;
    margin: 0 0 24px 0;
    color: #222;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rating-bar-item {
    display: grid;
    grid-template-columns: 140px 1fr 60px;
    align-items: center;
    gap: 16px;
}

.rating-bar-item .rating-label {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.rating-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #ffb300 100%);
    border-radius: 6px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.rating-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.rating-bar-item .rating-value {
    font-weight: 700;
    color: #ffc107;
    font-size: 16px;
    text-align: right;
}

/* ========================================
   Pros & Cons Section
   ======================================== */

.gtara-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.gtara-pros,
.gtara-cons {
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gtara-pros {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 5px solid #28a745;
}

.gtara-cons {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 5px solid #dc3545;
}

.gtara-pros h3,
.gtara-cons h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    margin: 0 0 16px 0;
}

.gtara-pros h3 {
    color: #155724;
}

.gtara-cons h3 {
    color: #721c24;
}

.gtara-pros h3 i,
.gtara-cons h3 i {
    font-size: 24px;
}

.gtara-pros ul,
.gtara-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gtara-pros li,
.gtara-cons li {
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

.gtara-pros li {
    color: #155724;
}

.gtara-cons li {
    color: #721c24;
}

.gtara-pros li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
    margin-right: 8px;
}

.gtara-cons li:before {
    content: "✗ ";
    color: #dc3545;
    font-weight: bold;
    font-size: 18px;
    margin-right: 8px;
}

/* ========================================
   Specifications Section
   ======================================== */

.gtara-specifications {
    margin-bottom: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gtara-specifications h2 {
    font-size: 24px;
    margin: 0 0 20px 0;
    color: #222;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th {
    text-align: left;
    padding: 16px;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    width: 35%;
    font-size: 15px;
}

.specs-table td {
    padding: 16px;
    color: #555;
    font-size: 15px;
}

.specs-table tr:hover {
    background: #f8f9fa;
}

/* ========================================
   Review Content Section
   ======================================== */

.gtara-review-content {
    margin-bottom: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gtara-review-content h2 {
    font-size: 24px;
    margin: 0 0 20px 0;
    color: #222;
}

.gtara-review-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

.gtara-review-content h3 {
    font-size: 20px;
    margin: 24px 0 12px 0;
    color: #333;
}

.gtara-review-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* ========================================
   User Ratings Summary
   ======================================== */

.gtara-user-ratings-summary {
    margin-bottom: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.gtara-user-ratings-summary h3 {
    font-size: 22px;
    margin: 0 0 16px 0;
    color: #222;
}

.gtara-user-ratings-summary .user-rating-avg {
    font-size: 48px;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 8px;
}

.gtara-user-ratings-summary p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Affiliate Buttons Wrapper */
.gtara-affiliate-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    align-items: center;
}

/* Individual Affiliate Button */
.gtara-affiliate-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gtara-affiliate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0.95;
}

.gtara-affiliate-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Button Icon */
.gtara-affiliate-button i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Button Content */
.gtara-button-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.gtara-button-text {
    font-size: 15px;
    line-height: 1.2;
}

.gtara-button-price {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 500;
}

/* Loading State */
.gtara-affiliate-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.gtara-affiliate-button.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gtara-affiliate-buttons-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gtara-affiliate-button {
        width: 100%;
        justify-content: center;
    }
    
    .gtara-button-content {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .gtara-affiliate-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .gtara-affiliate-button i {
        font-size: 16px;
    }
    
    .gtara-button-text {
        font-size: 14px;
    }
    
    .gtara-button-price {
        font-size: 12px;
    }
}

/* Accessibility */
.gtara-affiliate-button:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.5);
}

.gtara-affiliate-button:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.gtara-affiliate-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.5);
}

/* ========================================
   Rating System Styles
   ======================================== */

/* Rating Display (Stars + Numeric) */
.gtara-rating-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gtara-stars-display {
    display: inline-flex;
    gap: 2px;
    font-size: 20px;
    line-height: 1;
}

.gtara-stars-display .star {
    color: #ffc107;
    transition: color 0.2s;
}

.gtara-stars-display .star-full {
    color: #ffc107;
}

.gtara-stars-display .star-half {
    background: linear-gradient(90deg, #ffc107 50%, #e0e0e0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gtara-stars-display .star-empty {
    color: #e0e0e0;
}

.gtara-rating-numeric {
    font-size: 16px;
    color: #333;
}

.gtara-rating-numeric strong {
    font-size: 20px;
    font-weight: 700;
    color: #ffc107;
}

/* Rating Summary */
.gtara-rating-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
}

.gtara-aggregate-rating {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.gtara-rating-score {
    margin-bottom: 12px;
}

.gtara-rating-score .score-value {
    font-size: 48px;
    font-weight: 700;
    color: #ffc107;
    line-height: 1;
}

.gtara-rating-score .score-max {
    font-size: 24px;
    color: #666;
    font-weight: 500;
}

.gtara-aggregate-rating .gtara-stars-display {
    justify-content: center;
    font-size: 28px;
    margin-bottom: 8px;
}

.gtara-aggregate-rating .gtara-rating-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.gtara-rating-breakdown {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.gtara-author-rating,
.gtara-user-rating {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.gtara-rating-breakdown .rating-type {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gtara-rating-breakdown .rating-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.gtara-rating-breakdown .rating-count {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    margin-left: 6px;
}

/* Rating Form Wrapper */
.gtara-rating-form-wrapper {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.gtara-rating-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
}

/* Rating Input Section */
.gtara-rating-input {
    margin-bottom: 24px;
}

.gtara-rating-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
}

.gtara-stars-input {
    display: inline-flex;
    gap: 6px;
    font-size: 32px;
    cursor: pointer;
    margin-bottom: 8px;
}

.gtara-stars-input .star {
    color: #e0e0e0;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.gtara-stars-input .star:hover,
.gtara-stars-input .star.hover {
    color: #ffb300;
    transform: scale(1.1);
}

.gtara-stars-input .star.active {
    color: #ffc107;
}

.gtara-stars-input .star:focus {
    outline: 3px solid #ffc107;
    outline-offset: 4px;
    border-radius: 4px;
    background-color: rgba(255, 193, 7, 0.1);
    transform: scale(1.1);
}

.gtara-rating-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    min-height: 20px;
}

/* Review Input Section */
.gtara-review-input {
    margin-bottom: 20px;
}

.gtara-review-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.gtara-review-text {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.gtara-review-text:focus {
    outline: none;
    border-color: #ffc107;
}

.gtara-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.gtara-char-count.warning {
    color: #ff9800;
    font-weight: 600;
}

/* Submit Button */
.gtara-submit-rating {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.gtara-submit-rating:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.gtara-submit-rating:active {
    transform: translateY(0);
}

.gtara-submit-rating:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.gtara-submit-rating:focus {
    outline: 3px solid #333;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.5);
}

/* Rating Messages */
.gtara-rating-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.gtara-rating-message:not(:empty) {
    display: block;
}

.gtara-rating-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gtara-rating-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.gtara-rating-message.gtara-already-rated {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gtara-rating-summary {
        padding: 20px;
    }
    
    .gtara-rating-score .score-value {
        font-size: 40px;
    }
    
    .gtara-aggregate-rating .gtara-stars-display {
        font-size: 24px;
    }
    
    .gtara-rating-breakdown {
        flex-direction: column;
        gap: 16px;
    }
    
    .gtara-rating-form-wrapper {
        padding: 20px;
    }
    
    .gtara-stars-input {
        font-size: 28px;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .gtara-rating-score .score-value {
        font-size: 36px;
    }
    
    .gtara-stars-input {
        font-size: 24px;
        gap: 3px;
    }
    
    .gtara-submit-rating {
        width: 100%;
        padding: 12px 24px;
    }
}

/* Animation for rating submission */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gtara-rating-message {
    animation: fadeIn 0.3s ease;
}

/* ========================================
   Shortcode Styles
   ======================================== */

/* Product Card Shortcode */
.gtara-product-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gtara-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #ffc107;
}

.gtara-product-card-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 4/3;
}

.gtara-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gtara-product-card:hover .gtara-product-card-image img {
    transform: scale(1.05);
}

.gtara-product-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gtara-product-card-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    line-height: 1.4;
}

.gtara-product-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.gtara-product-card-title a:hover {
    color: #ffc107;
}

.gtara-product-card-rating {
    margin-bottom: 12px;
}

.gtara-rating-count {
    font-size: 13px;
    color: #555; /* Improved contrast from #666 */
    margin-left: 6px;
}

.gtara-product-card-excerpt {
    color: #555; /* Improved contrast from #666 */
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.gtara-product-card-price {
    margin-bottom: 16px;
}

.gtara-price {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
}

.gtara-product-card-buttons {
    margin-top: auto;
}

.gtara-product-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gtara-product-card-meta {
    margin-bottom: 8px;
}

.gtara-post-date {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid Layout */
.gtara-grid {
    display: grid;
    gap: 24px;
    margin: 30px 0;
}

.gtara-grid-1 {
    grid-template-columns: 1fr;
}

.gtara-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gtara-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gtara-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Badges */
.gtara-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.gtara-badge-new {
    background: #ffc107;
    color: #333;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.gtara-badge-best {
    background: #28a745;
    color: #ffffff;
}

.gtara-badge-value {
    background: #17a2b8;
    color: #ffffff;
}

/* Buttons */
.gtara-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.gtara-button-primary {
    background: #ffc107;
    color: #333;
}

.gtara-button-primary:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.gtara-button-primary:focus {
    outline: 3px solid #333;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.3);
}

.gtara-button-secondary {
    background: #6c757d;
    color: #ffffff;
}

.gtara-button-secondary:hover {
    background: #5a6268;
}

.gtara-button-secondary:focus {
    outline: 3px solid #343a40;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(108, 117, 125, 0.3);
}

/* No Products Message */
.gtara-no-products,
.gtara-error {
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

.gtara-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Latest Review Card Specific */
.gtara-latest-review-card .gtara-product-card-image {
    position: relative;
}

/* Top Rated Products */
.gtara-top-rated-products {
    margin: 30px 0;
}

/* Latest Reviews */
.gtara-latest-reviews {
    margin: 30px 0;
}

/* Comparison Bar Shortcode */
.gtara-comparison-bar {
    background: #ffffff;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gtara-comparison-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.gtara-comparison-bar-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.gtara-comparison-count {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.gtara-comparison-count .current {
    color: #ffc107;
    font-size: 18px;
}

.gtara-comparison-bar-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.gtara-comparison-bar-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    position: relative;
}

.gtara-comparison-bar-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}

.gtara-comparison-bar-title {
    display: block;
    font-size: 13px;
    color: #333;
    line-height: 1.3;
}

.gtara-comparison-bar-item .gtara-remove-comparison {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.gtara-comparison-bar-item .gtara-remove-comparison:hover {
    background: #c82333;
    transform: scale(1.1);
}

.gtara-comparison-bar-item .gtara-remove-comparison .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.gtara-comparison-empty-message {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 20px;
}

.gtara-comparison-bar-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.gtara-comparison-bar-actions .gtara-button {
    flex: 1;
    max-width: 200px;
}

/* Affiliate Buttons Shortcode */
.gtara-affiliate-buttons-shortcode {
    margin: 30px 0;
}

.gtara-affiliate-buttons-title {
    margin-bottom: 16px;
    font-size: 20px;
    color: #333;
}

.gtara-affiliate-buttons-grid .gtara-affiliate-buttons-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.gtara-affiliate-buttons-list .gtara-affiliate-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gtara-affiliate-buttons-list .gtara-affiliate-button {
    width: 100%;
    justify-content: center;
}

.gtara-no-links {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
}

/* Compact Affiliate Buttons (for comparison table) */
.gtara-affiliate-buttons-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gtara-affiliate-buttons-compact .gtara-affiliate-button {
    padding: 8px 16px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
}

.gtara-affiliate-buttons-compact .gtara-button-content {
    align-items: center;
}

.gtara-affiliate-buttons-compact .gtara-button-price {
    font-size: 11px;
}

/* ========================================
   Comparison Table Responsive Styles
   ======================================== */

.gtara-comparison-wrapper {
    margin: 40px 0;
}

.gtara-comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #ffc107;
}

.gtara-comparison-header h2 {
    font-size: 28px;
    margin: 0;
    color: #222;
}

.gtara-clear-comparison {
    padding: 10px 20px;
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gtara-clear-comparison:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.gtara-clear-comparison:focus {
    outline: 3px solid #721c24;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.3);
}

.gtara-comparison-table-container {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gtara-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.gtara-comparison-table thead th {
    background: #f8f9fa;
    padding: 20px;
    border: 1px solid #e0e0e0;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.gtara-comparison-label {
    text-align: left;
    width: 180px;
    background: #f8f9fa !important;
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 5;
}

.gtara-comparison-product {
    text-align: center;
    vertical-align: top;
}

.gtara-comparison-product-header {
    position: relative;
    padding: 10px;
}

.gtara-comparison-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 12px;
    border-radius: 8px;
}

.gtara-comparison-title {
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

.gtara-comparison-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.gtara-comparison-title a:hover {
    color: #ffc107;
}

.gtara-remove-comparison {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.gtara-remove-comparison:hover {
    background: #c82333;
    transform: scale(1.1);
}

.gtara-remove-comparison:focus {
    outline: 3px solid #721c24;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.3);
    transform: scale(1.1);
}

.gtara-remove-comparison .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.gtara-comparison-row td {
    padding: 16px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

.gtara-comparison-value {
    text-align: center;
    font-size: 14px;
    color: #555;
}

.gtara-comparison-value.gtara-best-value {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    font-weight: 600;
    color: #155724;
    position: relative;
}

.gtara-comparison-section-header td {
    background: #f8f9fa;
    padding: 16px;
    border: 1px solid #e0e0e0;
}

.gtara-comparison-section-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.gtara-rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gtara-rating-number {
    font-size: 20px;
    font-weight: 700;
    color: #ffc107;
}

.gtara-stars-outer {
    display: inline-block;
    position: relative;
    font-size: 18px;
    color: #e0e0e0;
}

.gtara-stars-outer::before {
    content: "★★★★★";
}

.gtara-stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #ffc107;
}

.gtara-stars-inner::before {
    content: "★★★★★";
}

.gtara-rating-score {
    font-weight: 600;
    color: #333;
}

.gtara-na {
    color: #999;
    font-style: italic;
}

.gtara-pros-list,
.gtara-cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.gtara-pros-list li,
.gtara-cons-list li {
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.5;
}

.gtara-pros-list li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 6px;
}

.gtara-cons-list li:before {
    content: "✗ ";
    color: #dc3545;
    font-weight: bold;
    margin-right: 6px;
}

.gtara-comparison-empty {
    padding: 60px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
}

.gtara-comparison-empty p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* ========================================
   Responsive Breakpoints
   ======================================== */

/* Desktop Large (1200px and above) - Default styles */

/* Desktop (1024px - 1199px) */
@media (max-width: 1199px) {
    .gtara-container {
        max-width: 1000px;
    }
    
    .gtara-product-title {
        font-size: 28px;
    }
    
    .gtara-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) {
    .gtara-container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .gtara-product-header {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
    }
    
    .gtara-product-title {
        font-size: 26px;
    }
    
    .gtara-overall-rating .rating-score {
        font-size: 40px;
    }
    
    .gtara-overall-rating .rating-stars {
        font-size: 28px;
    }
    
    .rating-bar-item {
        grid-template-columns: 120px 1fr 50px;
        gap: 12px;
    }
    
    .gtara-grid-3,
    .gtara-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gtara-comparison-table {
        min-width: 700px;
    }
    
    .gtara-comparison-label {
        width: 140px;
    }
}

/* Tablet Portrait (600px - 767px) */
@media (max-width: 767px) {
    .gtara-breadcrumbs {
        font-size: 13px;
        padding: 12px 0;
    }
    
    .gtara-product-header {
        padding: 20px;
        gap: 24px;
    }
    
    .gtara-product-title {
        font-size: 24px;
    }
    
    .gtara-product-price .amount {
        font-size: 24px;
    }
    
    .gtara-overall-rating {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .gtara-youtube-section,
    .gtara-detailed-ratings,
    .gtara-specifications,
    .gtara-review-content,
    .gtara-user-ratings-summary {
        padding: 24px;
    }
    
    .gtara-pros-cons {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rating-bar-item {
        grid-template-columns: 100px 1fr 50px;
        gap: 10px;
        font-size: 14px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 12px;
        font-size: 14px;
    }
    
    .specs-table th {
        width: 40%;
    }
    
    .gtara-grid-2,
    .gtara-grid-3,
    .gtara-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .gtara-comparison-bar-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gtara-product-card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .gtara-button {
        width: 100%;
    }
    
    .gtara-comparison-header h2 {
        font-size: 22px;
    }
    
    .gtara-comparison-table {
        min-width: 600px;
        font-size: 13px;
    }
    
    .gtara-comparison-label {
        width: 120px;
        font-size: 13px;
    }
    
    .gtara-comparison-row td {
        padding: 12px;
    }
}

/* Mobile (480px - 599px) */
@media (max-width: 599px) {
    .gtara-container {
        padding: 0 12px;
    }
    
    .gtara-product-header {
        padding: 16px;
        gap: 20px;
        margin-bottom: 24px;
    }
    
    .gtara-product-title {
        font-size: 22px;
    }
    
    .gtara-short-desc {
        font-size: 15px;
    }
    
    .gtara-overall-rating .rating-score {
        font-size: 36px;
    }
    
    .gtara-overall-rating .rating-stars {
        font-size: 24px;
    }
    
    .gtara-product-price .amount {
        font-size: 22px;
    }
    
    .gtara-add-to-comparison {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .gtara-youtube-section,
    .gtara-detailed-ratings,
    .gtara-specifications,
    .gtara-review-content,
    .gtara-user-ratings-summary {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .gtara-youtube-section h2,
    .gtara-detailed-ratings h2,
    .gtara-specifications h2,
    .gtara-review-content h2 {
        font-size: 20px;
    }
    
    .rating-bar-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .rating-bar-item .rating-label {
        font-size: 14px;
    }
    
    .rating-bar-item .rating-value {
        text-align: left;
    }
    
    .gtara-pros,
    .gtara-cons {
        padding: 20px;
    }
    
    .gtara-pros h3,
    .gtara-cons h3 {
        font-size: 18px;
    }
    
    .specs-table {
        font-size: 13px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 10px;
        display: block;
        width: 100%;
    }
    
    .specs-table th {
        background: #f8f9fa;
        border-bottom: none;
        padding-bottom: 6px;
    }
    
    .specs-table td {
        padding-top: 6px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .gtara-review-content p {
        font-size: 15px;
    }
    
    .gtara-grid-2,
    .gtara-grid-3,
    .gtara-grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .gtara-comparison-bar-products {
        grid-template-columns: 1fr;
    }
    
    .gtara-comparison-bar-actions {
        flex-direction: column;
    }
    
    .gtara-comparison-bar-actions .gtara-button {
        max-width: 100%;
    }
    
    .gtara-product-card-title {
        font-size: 16px;
    }
    
    .gtara-price {
        font-size: 18px;
    }
    
    .gtara-comparison-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .gtara-clear-comparison {
        width: 100%;
    }
    
    .gtara-comparison-table {
        min-width: 500px;
        font-size: 12px;
    }
    
    .gtara-comparison-label {
        width: 100px;
        font-size: 12px;
        padding: 10px;
    }
    
    .gtara-comparison-row td {
        padding: 10px;
    }
    
    .gtara-comparison-image {
        max-width: 100px;
    }
    
    .gtara-comparison-title {
        font-size: 14px;
    }
}

/* Mobile Small (320px - 479px) */
@media (max-width: 479px) {
    .gtara-product-title {
        font-size: 20px;
    }
    
    .gtara-overall-rating .rating-score {
        font-size: 32px;
    }
    
    .gtara-overall-rating .rating-stars {
        font-size: 20px;
    }
    
    .gtara-product-price .amount {
        font-size: 20px;
    }
    
    .gtara-affiliate-buttons h3 {
        font-size: 16px;
    }
    
    .gtara-youtube-section h2,
    .gtara-detailed-ratings h2,
    .gtara-specifications h2,
    .gtara-review-content h2 {
        font-size: 18px;
    }
    
    .gtara-pros h3,
    .gtara-cons h3 {
        font-size: 16px;
    }
    
    .gtara-comparison-header h2 {
        font-size: 18px;
    }
    
    .gtara-comparison-table {
        min-width: 400px;
        font-size: 11px;
    }
    
    .gtara-comparison-label {
        width: 80px;
        font-size: 11px;
        padding: 8px;
    }
    
    .gtara-comparison-row td {
        padding: 8px;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .gtara-affiliate-buttons-wrapper,
    .gtara-affiliate-buttons,
    .gtara-comparison-bar,
    .gtara-button,
    .gtara-add-to-comparison,
    .gtara-remove-comparison,
    .gtara-clear-comparison,
    .gtara-rating-form-wrapper {
        display: none !important;
    }
    
    .gtara-product-header {
        grid-template-columns: 1fr;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }
    
    .gtara-youtube-section,
    .gtara-detailed-ratings,
    .gtara-specifications,
    .gtara-review-content {
        box-shadow: none;
        border: 1px solid #e0e0e0;
        page-break-inside: avoid;
    }
    
    .gtara-pros-cons {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: none;
        color: #333;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 11px;
        color: #666;
    }
}

/* ========================================
   Accessibility Enhancements
   ======================================== */

/* Focus Styles - Enhanced for visibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

/* Ensure focus is visible on all interactive elements */
.gtara-affiliate-button:focus,
.gtara-add-to-comparison:focus,
.gtara-remove-comparison:focus,
.gtara-clear-comparison:focus,
.gtara-submit-rating:focus,
.gtara-button:focus {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

/* Focus styles for rating stars */
.gtara-stars-input .star:focus {
    outline: 3px solid #ffc107;
    outline-offset: 4px;
    border-radius: 4px;
    transform: scale(1.1);
}

/* Focus styles for links */
.gtara-product-card-title a:focus,
.gtara-comparison-title a:focus,
.gtara-related-product-title a:focus {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
    text-decoration: underline;
    background-color: rgba(255, 193, 7, 0.1);
}

/* Focus styles for form inputs */
.gtara-review-text:focus,
.gtara-rating-form input:focus,
.gtara-rating-form textarea:focus {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

/* Ensure focus indicators are never removed */
*:focus {
    outline-width: 3px !important;
}

/* Focus-visible support for modern browsers */
*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

/* Skip to content link */
.gtara-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ffc107;
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 100;
}

.gtara-skip-link:focus {
    top: 0;
}

/* Screen reader only text */
.gtara-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gtara-product-card,
    .gtara-product-header,
    .gtara-youtube-section,
    .gtara-detailed-ratings,
    .gtara-specifications,
    .gtara-review-content {
        border: 3px solid currentColor;
    }
    
    .gtara-affiliate-button,
    .gtara-button {
        border: 3px solid currentColor;
    }
    
    /* Enhance focus indicators in high contrast mode */
    *:focus {
        outline-width: 4px !important;
        outline-style: solid !important;
    }
    
    /* Ensure text has maximum contrast */
    .gtara-product-brand,
    .gtara-breadcrumbs,
    .gtara-launch-date,
    .gtara-rating-count,
    .gtara-product-card-excerpt {
        color: #000;
    }
    
    /* Enhance button contrast */
    .gtara-affiliate-button,
    .gtara-button-primary,
    .gtara-submit-rating {
        border: 3px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .rating-fill::after {
        animation: none;
    }
}


/* ========================================
   Related Products Section
   ======================================== */

.gtara-related-products-section {
    margin-bottom: 40px;
}

.gtara-related-products-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gtara-related-products-wrapper h2,
.gtara-related-products-wrapper h3 {
    font-size: 24px;
    margin: 0 0 24px 0;
    color: #222;
}

.gtara-related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gtara-related-product-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gtara-related-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #ffc107;
}

.gtara-related-product-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #ffffff;
}

.gtara-related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gtara-related-product-item:hover .gtara-related-product-image img {
    transform: scale(1.05);
}

.gtara-related-product-content {
    padding: 16px;
}

.gtara-related-product-title {
    font-size: 16px;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.gtara-related-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.gtara-related-product-title a:hover {
    color: #ffc107;
}

.gtara-related-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.gtara-related-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* ========================================
   Comments Section
   ======================================== */

.gtara-comments-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.gtara-comments-section .comments-title {
    font-size: 24px;
    margin: 0 0 24px 0;
    color: #222;
}

.gtara-comments-section .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gtara-comments-section .comment {
    padding: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.gtara-comments-section .comment-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.gtara-comments-section .comment-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.gtara-comments-section .comment-content {
    color: #555;
    line-height: 1.6;
}

.gtara-comments-section .comment-reply-link {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 16px;
    background: #ffc107;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gtara-comments-section .comment-reply-link:hover {
    background: #ffb300;
}

.gtara-comments-section .comment-respond {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.gtara-comments-section .comment-form {
    display: grid;
    gap: 16px;
}

.gtara-comments-section .comment-form input[type="text"],
.gtara-comments-section .comment-form input[type="email"],
.gtara-comments-section .comment-form input[type="url"],
.gtara-comments-section .comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.gtara-comments-section .comment-form input:focus,
.gtara-comments-section .comment-form textarea:focus {
    outline: none;
    border-color: #ffc107;
}

.gtara-comments-section .comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.gtara-comments-section .comment-form .form-submit {
    margin: 0;
}

.gtara-comments-section .comment-form .submit {
    padding: 12px 32px;
    background: #ffc107;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gtara-comments-section .comment-form .submit:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* ========================================
   Loading States
   ======================================== */

.gtara-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 193, 7, 0.3);
    border-radius: 50%;
    border-top-color: #ffc107;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.gtara-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gtara-loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

/* ========================================
   Utility Classes
   ======================================== */

.gtara-text-center {
    text-align: center;
}

.gtara-text-left {
    text-align: left;
}

.gtara-text-right {
    text-align: right;
}

.gtara-mt-0 {
    margin-top: 0;
}

.gtara-mt-1 {
    margin-top: 8px;
}

.gtara-mt-2 {
    margin-top: 16px;
}

.gtara-mt-3 {
    margin-top: 24px;
}

.gtara-mt-4 {
    margin-top: 32px;
}

.gtara-mb-0 {
    margin-bottom: 0;
}

.gtara-mb-1 {
    margin-bottom: 8px;
}

.gtara-mb-2 {
    margin-bottom: 16px;
}

.gtara-mb-3 {
    margin-bottom: 24px;
}

.gtara-mb-4 {
    margin-bottom: 32px;
}

.gtara-p-0 {
    padding: 0;
}

.gtara-p-1 {
    padding: 8px;
}

.gtara-p-2 {
    padding: 16px;
}

.gtara-p-3 {
    padding: 24px;
}

.gtara-p-4 {
    padding: 32px;
}

.gtara-hidden {
    display: none !important;
}

.gtara-visible {
    display: block !important;
}

.gtara-flex {
    display: flex;
}

.gtara-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gtara-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gtara-flex-column {
    display: flex;
    flex-direction: column;
}

.gtara-gap-1 {
    gap: 8px;
}

.gtara-gap-2 {
    gap: 16px;
}

.gtara-gap-3 {
    gap: 24px;
}

.gtara-gap-4 {
    gap: 32px;
}

/* ========================================
   Dark Mode Support (Optional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .gtara-single-product-wrap {
        color: #e0e0e0;
    }
    
    .gtara-product-header,
    .gtara-youtube-section,
    .gtara-detailed-ratings,
    .gtara-specifications,
    .gtara-review-content,
    .gtara-user-ratings-summary,
    .gtara-related-products-wrapper,
    .gtara-comments-section {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .gtara-product-title,
    .gtara-youtube-section h2,
    .gtara-detailed-ratings h2,
    .gtara-specifications h2,
    .gtara-review-content h2,
    .gtara-related-products-wrapper h2,
    .gtara-comments-section .comments-title {
        color: #ffffff;
    }
    
    .gtara-product-brand,
    .gtara-short-desc,
    .gtara-launch-date,
    .gtara-review-content p,
    .specs-table td {
        color: #b0b0b0;
    }
    
    .specs-table th {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .specs-table tr:hover {
        background: #2a2a2a;
    }
    
    .gtara-related-product-item {
        background: #2a2a2a;
        border-color: #3a3a3a;
    }
    
    .gtara-comments-section .comment {
        background: #2a2a2a;
    }
    
    .gtara-comparison-table-container {
        background: #1e1e1e;
    }
    
    .gtara-comparison-table thead th,
    .gtara-comparison-label {
        background: #2a2a2a !important;
        color: #e0e0e0;
    }
    
    .gtara-comparison-row td {
        border-color: #3a3a3a;
        color: #b0b0b0;
    }
    
    .gtara-comparison-section-header td {
        background: #2a2a2a;
    }
}

/* ========================================
   Animation Keyframes
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to sections (optional - can be enabled via JS) */
.gtara-animate-on-scroll {
    opacity: 0;
}

.gtara-animate-on-scroll.gtara-animated {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   Responsive Adjustments for Related Products
   ======================================== */

@media (max-width: 1023px) {
    .gtara-related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .gtara-related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .gtara-related-products-wrapper {
        padding: 20px;
    }
    
    .gtara-comments-section {
        padding: 20px;
    }
}


/* ========================================
   Archive Page Styles
   ======================================== */

.gtara-archive-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    padding: 40px 0;
}

.gtara-archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-radius: 12px;
    border: 2px solid #ffc107;
}

.gtara-archive-header .archive-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #222;
}

.gtara-archive-header .archive-description {
    font-size: 16px;
    color: #555;
    margin: 0 0 16px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.gtara-product-count {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gtara-product-count strong {
    color: #ffc107;
    font-weight: 700;
}

/* Filter Bar */
.gtara-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.filter-left,
.filter-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gtara-sort-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gtara-sort-form label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.gtara-sort-form select {
    padding: 8px 32px 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.gtara-sort-form select:focus {
    outline: none;
    border-color: #ffc107;
}

.gtara-view-toggle {
    display: flex;
    gap: 8px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 6px;
}

.gtara-view-toggle button {
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    font-size: 16px;
}

.gtara-view-toggle button:hover {
    color: #333;
    background: #e0e0e0;
}

.gtara-view-toggle button.active {
    background: #ffc107;
    color: #333;
}

/* Taxonomy Filters */
.gtara-taxonomy-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.filter-group {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-group h3 {
    font-size: 18px;
    margin: 0 0 16px 0;
    color: #222;
    padding-bottom: 12px;
    border-bottom: 2px solid #ffc107;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.filter-list a:hover {
    background: #f8f9fa;
    color: #ffc107;
    padding-left: 16px;
}

.filter-list .count {
    font-size: 12px;
    color: #999;
    font-weight: 600;
}

/* Products Grid */
.gtara-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.gtara-products-grid[data-view="list"] {
    grid-template-columns: 1fr;
}

.gtara-product-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.gtara-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gtara-products-grid[data-view="list"] .gtara-product-item {
    display: grid;
    grid-template-columns: 300px 1fr;
}

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gtara-products-grid[data-view="list"] .product-card {
    flex-direction: row;
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 4/3;
}

.gtara-products-grid[data-view="list"] .product-image {
    aspect-ratio: auto;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gtara-product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gtara-product-item:hover .product-actions {
    opacity: 1;
}

.gtara-add-comparison {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    color: #333;
}

.gtara-add-comparison:hover {
    background: #ffc107;
    transform: scale(1.1);
}

.gtara-add-comparison.in-comparison {
    background: #28a745;
    color: #ffffff;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-title {
    font-size: 18px;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: #ffc107;
}

.product-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rating-stars {
    display: flex;
    gap: 2px;
    font-size: 18px;
}

.rating-stars .star {
    color: #e0e0e0;
}

.rating-stars .star.filled {
    color: #ffc107;
}

.rating-score {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.product-price {
    margin-bottom: 16px;
}

.price-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #28a745;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffc107;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.product-link:hover {
    background: #ffb300;
    transform: translateX(5px);
}

.product-link i {
    transition: transform 0.3s;
}

.product-link:hover i {
    transform: translateX(5px);
}

/* Pagination */
.gtara-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.gtara-pagination .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

.gtara-pagination .page-numbers li {
    display: inline-block;
}

.gtara-pagination .page-numbers a,
.gtara-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.gtara-pagination .page-numbers a:hover {
    background: #ffc107;
    border-color: #ffc107;
    color: #333;
}

.gtara-pagination .page-numbers .current {
    background: #ffc107;
    border-color: #ffc107;
    color: #333;
}

.gtara-pagination .page-numbers .dots {
    border: none;
    background: transparent;
}

/* No Products */
.gtara-no-products {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.gtara-no-products i {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.gtara-no-products h2 {
    font-size: 28px;
    margin: 0 0 12px 0;
    color: #333;
}

.gtara-no-products p {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px 0;
}

.gtara-no-products .button {
    display: inline-block;
    padding: 12px 32px;
    background: #ffc107;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.gtara-no-products .button:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* ========================================
   Archive Responsive Styles
   ======================================== */

@media (max-width: 1199px) {
    .gtara-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 1023px) {
    .gtara-archive-header .archive-title {
        font-size: 32px;
    }
    
    .gtara-taxonomy-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .gtara-archive-wrap {
        padding: 24px 0;
    }
    
    .gtara-archive-header {
        padding: 30px 16px;
        margin-bottom: 24px;
    }
    
    .gtara-archive-header .archive-title {
        font-size: 28px;
    }
    
    .gtara-filter-bar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .filter-left,
    .filter-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .gtara-sort-form {
        flex: 1;
    }
    
    .gtara-sort-form select {
        flex: 1;
    }
    
    .gtara-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gtara-products-grid[data-view="list"] .gtara-product-item {
        grid-template-columns: 1fr;
    }
    
    .gtara-products-grid[data-view="list"] .product-card {
        flex-direction: column;
    }
    
    .gtara-products-grid[data-view="list"] .product-image {
        aspect-ratio: 4/3;
        height: auto;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .price-amount {
        font-size: 20px;
    }
}

@media (max-width: 599px) {
    .gtara-archive-header {
        padding: 24px 12px;
    }
    
    .gtara-archive-header .archive-title {
        font-size: 24px;
    }
    
    .gtara-filter-bar {
        padding: 16px;
    }
    
    .filter-group {
        padding: 16px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .gtara-pagination .page-numbers a,
    .gtara-pagination .page-numbers span {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 479px) {
    .gtara-archive-header .archive-title {
        font-size: 22px;
    }
    
    .gtara-sort-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .gtara-view-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .product-link {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Frontend JavaScript Animations & States
   ======================================== */

/* Loading Spinner */
.gtara-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: gtara-spin 0.6s linear infinite;
}

@keyframes gtara-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading Overlay */
.gtara-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: inherit;
}

.gtara-loading-overlay .gtara-spinner {
    width: 40px;
    height: 40px;
    border-width: 4px;
    border-color: rgba(255, 193, 7, 0.3);
    border-top-color: #ffc107;
}

/* Shake Animation for Errors */
@keyframes gtara-shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.gtara-shake {
    animation: gtara-shake 0.5s ease-in-out;
}

/* Fade In Animation */
@keyframes gtara-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gtara-fade-in {
    animation: gtara-fade-in 0.6s ease-out;
}

/* Pulse Animation for Stars */
@keyframes gtara-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.gtara-stars-input .star.pulse {
    animation: gtara-pulse 0.3s ease-in-out;
}

/* Slide In Animation */
@keyframes gtara-slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gtara-slide-in {
    animation: gtara-slide-in 0.4s ease-out;
}

/* Success Message Styles */
.gtara-rating-success-message {
    text-align: center;
    padding: 40px 20px;
    animation: gtara-fade-in 0.5s ease-out;
}

.gtara-rating-success-message .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #28a745;
    margin-bottom: 16px;
}

.gtara-rating-success-message h4 {
    font-size: 24px;
    margin: 0 0 12px 0;
    color: #28a745;
}

.gtara-rating-success-message p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Button Loading State */
.gtara-button.loading,
.gtara-submit-rating.loading,
.gtara-affiliate-button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.gtara-button.loading::before,
.gtara-submit-rating.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: gtara-spin 0.6s linear infinite;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Focus Visible Styles for Accessibility */
.gtara-affiliate-button:focus-visible,
.gtara-submit-rating:focus-visible,
.gtara-button:focus-visible {
    outline: 3px solid rgba(255, 193, 7, 0.5);
    outline-offset: 2px;
}

/* Character Counter Styles */
.gtara-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    transition: color 0.3s;
}

.gtara-char-count .current {
    font-weight: 600;
}

.gtara-char-count.warning {
    color: #ff9800;
}

.gtara-char-count.warning .current {
    color: #ff9800;
}

.gtara-char-count.error {
    color: #dc3545;
}

.gtara-char-count.error .current {
    color: #dc3545;
}

/* Comparison Counter (Floating) */
.gtara-comparison-counter {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffc107;
    color: #333;
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    animation: gtara-slide-in 0.4s ease-out;
}

.gtara-comparison-counter:hover {
    background: #ffb300;
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.gtara-comparison-counter-text {
    font-weight: 600;
    font-size: 15px;
}

.gtara-comparison-counter-badge {
    background: #333;
    color: #ffc107;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Notification Styles (Toast) */
.gtara-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    animation: gtara-slide-in-right 0.3s ease;
    max-width: 400px;
}

@keyframes gtara-slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.gtara-notification-success {
    border-left: 4px solid #28a745;
}

.gtara-notification-error {
    border-left: 4px solid #dc3545;
}

.gtara-notification-warning {
    border-left: 4px solid #ff9800;
}

.gtara-notification .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.gtara-notification-success .dashicons {
    color: #28a745;
}

.gtara-notification-error .dashicons {
    color: #dc3545;
}

.gtara-notification-warning .dashicons {
    color: #ff9800;
}

/* Hover Effects for Interactive Elements */
.gtara-product-card,
.gtara-affiliate-button,
.gtara-add-to-comparison,
.gtara-submit-rating {
    transition: all 0.3s ease;
}

/* Scroll Reveal Animation */
.gtara-scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gtara-scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation for Grid Items */
.gtara-grid .gtara-product-card {
    animation: gtara-fade-in 0.6s ease-out backwards;
}

.gtara-grid .gtara-product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.gtara-grid .gtara-product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.gtara-grid .gtara-product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.gtara-grid .gtara-product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.gtara-grid .gtara-product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.gtara-grid .gtara-product-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .gtara-comparison-counter {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
    }
    
    .gtara-comparison-counter-text {
        font-size: 14px;
    }
    
    .gtara-comparison-counter-badge {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .gtara-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .gtara-affiliate-button,
    .gtara-submit-rating,
    .gtara-button {
        border: 2px solid currentColor;
    }
    
    .gtara-stars-input .star:focus {
        outline-width: 3px;
    }
}

/* Dark Mode Support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .gtara-notification {
        background: #2d2d2d;
        color: #f0f0f0;
    }
    
    .gtara-loading-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Print Styles */
@media print {
    .gtara-comparison-counter,
    .gtara-notification,
    .gtara-loading-overlay,
    .gtara-add-to-comparison,
    .gtara-submit-rating {
        display: none !important;
    }
}
