.aim-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.aim-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.aim-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
img.fancybox-image {
    background: #FFF;
}
.aim-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.aim-grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.aim-grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.aim-product-item {
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    background: #fff;
}

.aim-product-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.aim-product-title {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.aim-product-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.aim-product-actions .button {
    flex: 1;
    text-align: center;
}

@media (max-width: 1024px) {
    .aim-grid-cols-4,
    .aim-grid-cols-5,
    .aim-grid-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .aim-product-grid,
    .aim-grid-cols-2,
    .aim-grid-cols-3,
    .aim-grid-cols-4,
    .aim-grid-cols-5,
    .aim-grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .aim-product-grid,
    .aim-grid-cols-2,
    .aim-grid-cols-3,
    .aim-grid-cols-4,
    .aim-grid-cols-5,
    .aim-grid-cols-6 {
        grid-template-columns: 1fr;
    }
}

/* Cart Styles */
.aim-cart-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.aim-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aim-cart-table th, 
.aim-cart-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}

.aim-cart-table th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
}

.aim-cart-table td {
    vertical-align: middle;
}

.aim-cart-table td a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.aim-cart-table td a:hover {
    color: #007bff;
}

.aim-cart-qty {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
}

.aim-cart-ral {
    width: 130px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.aim-cart-ral:focus {
    outline: none;
    border-color: #007bff;
}

.aim-remove-item {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.3s;
}

.aim-remove-item:hover {
    background: #c82333;
}

.aim-checkout-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aim-checkout-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.5em;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 10px;
}

.aim-checkout-form .form-row {
    margin-bottom: 20px;
}

.aim-checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.aim-checkout-form input[type="text"],
.aim-checkout-form input[type="email"],
.aim-checkout-form input[type="tel"],
.aim-checkout-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.aim-checkout-form input:focus,
.aim-checkout-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.aim-checkout-form textarea {
    resize: vertical;
    font-family: inherit;
}

.aim-checkout-form .form-note {
    margin-top: 15px;
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

/* Success and Error Messages */
.aim-success-message,
.aim-error-message {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: normal;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aim-success-message {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.aim-error-message {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

/* Submit Button */
.aim-submit-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3);
}

.aim-submit-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(40, 167, 69, 0.4);
}

.aim-submit-btn:active {
    transform: translateY(0);
}

.aim-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.aim-submit-btn .btn-loading {
    display: inline-block;
}

.aim-submit-btn .btn-loading:after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Menu Cart */
.aim-menu-cart a { display: flex; align-items: center; }
.aim-menu-cart .dashicons { margin-right: 5px; }

.fancybox__image {
    opacity: 1 !important;
    visibility: visible !important;
}

.fancybox-image {
    opacity: 1 !important;
    visibility: visible !important;
}
